gadaalabs/claude-code-on-steroids/chronicle
Claude Code and agent skill by gadaalabs/claude-code-on-steroids
- community
Checking that the SKILL.md file is still in the repository.
Store and retrieve patterns from past work using semantic search; adds self-learning capability to Superpowers
Install
npx vskill@latest install gadaalabs/claude-code-on-steroids/chronicleSKILL.md
Learning From Experience
Overview
CHRONICLE — Chronicles are authoritative records of what happened and why — consulted before repeating history. When invoked: searches the ReasoningBank for patterns matching the current task before work begins, and stores a structured entry (problem → investigation → solution → reusable insight) after the task completes.
Core principle: Never solve the same problem twice without remembering what worked.
This skill adds self-learning capability to Superpowers. After each task, you store what worked. Before each task, you search for relevant past patterns.
Announce at start: "Running CHRONICLE to search and store patterns."
The Learning Loop
- Search ReasoningBank → 2. Review matches → 3. Apply patterns → 4. Execute task → 5. Extract pattern → 6. Store in ReasoningBank
Phase 1: Pre-Task Pattern Retrieval
BEFORE starting any non-trivial task:
Progressive Filtering Protocol (Token-Efficient Search)
Use a 3-layer funnel — stop at the earliest layer that answers the question. Never read all pattern files upfront.
Token savings vs. reading all files: ~5-10x. Never reach Layer 3 without Layer 1 and 2 first.
Step 1: Search ReasoningBank
The ReasoningBank lives in the project memory directory alongside MEMORY.md. Pattern files use the naming convention: pattern_<domain>_<keywords>.md
How to search — use Grep on the memory directory:
In Claude Code sessions — use the Read and Grep tools:
- Read
MEMORY.mdto see the pattern index - Grep the memory directory for relevant keywords
- Read matching pattern files in full
Query construction — search for:
- Problem category:
bug-fix,feature,refactor,integration,debugging - Technologies:
react,postgresql,redis,aws-lambda - Keywords from the goal:
latency,validation,caching,auth
Example searches:
Step 2: Review Top 5 Matches
For each match, extract:
- What worked: The successful approach
- What failed: Dead ends encountered
- Time to solution: How long it took
- Context differences: How is this situation different?
Step 3: Apply Relevant Patterns
If pattern applies directly:
"Found matching pattern from<key>: <one-sentence summary>. Applying this approach."
If pattern partially applies:
"Pattern from<key>is relevant but needs adaptation: <what changes>"
If no patterns found:
"No matching patterns in ReasoningBank. This is a novel problem — will create new pattern after solving."
Phase 2: Post-Task Pattern Storage
AFTER each task completes successfully:
Step 4: Extract the Pattern
Answer these questions:
- Problem statement: What was the actual problem? (one sentence)
- Solution approach: What worked? (2-3 sentences)
- Key insight: What was the non-obvious part? (one sentence)
- Failed attempts: What didn't work? (list)
- Time to solution: How long did it take?
- Applicability: When should this pattern be reused?
Step 5: Store in ReasoningBank
How to store — write a pattern file to memory:
File name: pattern_<domain>_<keywords>.md Location: ~/.claude/projects/<project-hash>/memory/
Then add a one-line entry to MEMORY.md:
Pattern file format:
Key naming convention:
Step 6: Consolidate Memory (EWC++-style)
Before storing, check for conflicts:
- Search for related keys:
`` grep -rl "<domain> <problem-type>" ~/.claude/projects/<hash>/memory/ ``
- Check for contradictions:
- Does new pattern contradict old pattern?
- Is old pattern a special case of new pattern?
- Should old pattern be updated or deprecated?
- Consolidation actions:
- Merge: If patterns are similar, combine into one
- Deprecate: If new pattern strictly better, mark old as deprecated
- Specialize: If contexts differ, clarify boundaries
- Keep both: If both valid in different contexts
Example consolidation:
Pattern Quality Gates
Before storing, verify:
- [ ] Pattern actually worked (verified with tests or production success)
- [ ] Generalizable beyond this specific case
- [ ] Clear when to apply vs. not apply
- [ ] Includes minimal working code snippet
- [ ] Documents failed attempts (anti-patterns)
- [ ] Has descriptive key name (searchable)
ReasoningBank Storage — Native Memory Integration
CRITICAL: Use the auto-memory system, not docs/patterns/.
The Claude Code auto-memory system (~/.claude/projects/<project-hash>/memory/) is loaded at EVERY session start via MEMORY.md. Patterns stored there are automatically available in future conversations without any manual search.
Storage Protocol
Step 1: Write the pattern file
Use the standard pattern format (see Step 5 in Phase 2 above).
Step 2: Register in MEMORY.md
Add one line to MEMORY.md:
This makes it auto-loaded next session.
Finding Your Memory Directory
The project memory directory for this session is shown in system context. It follows the pattern:
For this project: Check the MEMORY.md path shown in system context at conversation start.
Storage Priority
| Priority | Backend | When to Use | |
|---|---|---|---|
| 1 (default) | Auto-memory (~/.claude/projects/.../memory/) | ALL patterns — auto-loaded next session | |
| 2 | Git-tracked (docs/superpowers/patterns/) | Team sharing — manually referenced | |
| 3 | External (MCP memory tools) | Cross-project, if MCP memory server installed |
Never use `docs/patterns/` as primary storage — it requires manual search and is not auto-loaded.
Auto-Memory Structure
Pattern Retrieval During Task Execution
If stuck mid-task:
Pattern-Enhanced Subagent Dispatch
When dispatching subagents, include relevant patterns:
Metrics and Improvement
Track pattern effectiveness:
| Metric | Target | Measurement | |
|---|---|---|---|
| Reuse rate | >30% tasks use patterns | Count pattern matches per task | |
| Success rate | >90% patterns work | Track if applied pattern succeeded | |
| Search time | <30 seconds | Time to find relevant pattern | |
| Storage growth | 5-10 patterns/week | New patterns stored weekly |
Red Flags
Never:
- Store patterns that didn't actually work
- Store without documenting failed attempts
- Store with vague key names (unsearchable)
- Skip consolidation (leads to contradictions)
- Store only successes (document failures too)
Integration with Other Skills
Used by:
superpowers:architect— Search for past design approachessuperpowers:hunter— Search for similar bug patternssuperpowers:phantom— Include patterns in task contextsuperpowers:blueprint— Reference patterns in plan steps
Calls:
superpowers:sentinel— Verify pattern worked before storing
Example: Complete Learning Cycle
Final Rule
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/chronicle/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/gadaalabs/claude-code-on-steroids/chronicle)