cfn-automatic-memory-persistence

Automatic, structured persistence of agent outputs to SQLite database. Use when tracking agent outputs across CFN Loop workflows, persisting confidence scores, or querying agent execution history.

14 stars

Best use case

cfn-automatic-memory-persistence is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

Automatic, structured persistence of agent outputs to SQLite database. Use when tracking agent outputs across CFN Loop workflows, persisting confidence scores, or querying agent execution history.

Teams using cfn-automatic-memory-persistence should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/auto/SKILL.md --create-dirs "https://raw.githubusercontent.com/masharratt/claude-flow-novice/main/.claude/skills/cfn-memory-persistence/lib/auto/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/auto/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How cfn-automatic-memory-persistence Compares

Feature / Agentcfn-automatic-memory-persistenceStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

Automatic, structured persistence of agent outputs to SQLite database. Use when tracking agent outputs across CFN Loop workflows, persisting confidence scores, or querying agent execution history.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

SKILL.md Source

# Automatic Memory Persistence Skill

## Overview
This skill provides automatic, structured persistence of agent outputs to a SQLite database, ensuring consistent memory tracking across CFN Loop workflows.

## Key Components
- `persist-agent-output.sh`: Primary script for saving agent outputs
- `query-agent-history.sh`: Query and retrieve past agent outputs
- `test-memory-persistence.sh`: Validation test suite

## Memory Schema
```json
{
  "agent/[agent-id]/output/[task-id]": {
    "output": "Raw agent output text",
    "confidence": 0.85,
    "iteration": 1,
    "timestamp": "2025-10-20T15:30:00Z",
    "parsed_data": null
  }
}
```

## Integration Points
- Loop 3 output processing
- Loop 2 output processing
- Product Owner decision parsing

## Usage Examples

### Persist Agent Output
```bash
./persist-agent-output.sh \
  "task_authentication_v1" \  # Task ID
  "backend-dev" \             # Agent ID
  "Implemented JWT auth" \    # Output
  0.85 \                      # Confidence
  1                           # Iteration
```

### Query Agent History
```bash
# Get last 5 outputs for a specific agent
./query-agent-history.sh "backend-dev" "" 5

# Get outputs for a specific task
./query-agent-history.sh "backend-dev" "task_authentication_v1"
```

## Security & Performance
- ACL Level 1 (Read-only access)
- Indexed by tags for fast retrieval
- Minimal performance overhead
- Escaped and normalized inputs

## Testing
Run comprehensive tests:
```bash
./test-memory-persistence.sh
```

## Sprint 7 Insights
- **Confidence**: 0.95
- **Priority**: 9
- Provides robust, zero-configuration memory tracking
- Eliminates manual output saving
- Supports multi-iteration workflows

## Best Practices
- Always use script for output persistence
- Do not modify SQLite database directly
- Use query script for retrieval
- Add structured parsing for complex outputs

Related Skills

SQLite Memory Access

14
from masharratt/claude-flow-novice

No description provided.

cfn-memory-persistence-redis

14
from masharratt/claude-flow-novice

Redis-based agent coordination with pub/sub and waiting mode

cfn-memory-persistence

14
from masharratt/claude-flow-novice

Data persistence for CFN Loop - SQLite storage, Redis coordination, automatic memory persistence

supabase-schema-sync

14
from masharratt/claude-flow-novice

Introspects Supabase DB after migrations and updates project db-query skill with current schema. Run after any migration to keep agent context accurate.

commit

14
from masharratt/claude-flow-novice

Stage, commit, and push changes using a background github-commit-agent. Accepts optional args for message override or push control.

cfn-vote-implement

14
from masharratt/claude-flow-novice

MUST BE USED after cfn-dry-review or cfn-alpha-launch:manifest produces a manifest. Also the verification phase of /cfn-loop-task. Do not manually implement code review suggestions - always route through this skill. 3-agent specialized voting. Unanimous (3/3) auto-implemented with TDD. 2/3 routed to product-owner agent. 1/3 surfaced to user via AskUserQuestion (batched 4 per call, at end).

cfn-utilities

14
from masharratt/claude-flow-novice

Reusable bash utility functions for CFN Loop - logging, error handling, retry, file operations. Use when you need structured logging, atomic file operations, retry logic with exponential backoff, or standardized error handling in bash scripts.

CFN Test Runner Skill

14
from masharratt/claude-flow-novice

**Version:** 1.0.0

cfn-test-framework

14
from masharratt/claude-flow-novice

Test execution, running, and webapp testing for CFN

cfn-task-planning

14
from masharratt/claude-flow-novice

Classify tasks, initialize structured configs with scope boundaries, decompose complex tasks

Specialist Injection Skill

14
from masharratt/claude-flow-novice

## Purpose

!/bin/bash

14
from masharratt/claude-flow-novice

# cfn-task-intelligence.sh