Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
parcadei avatar

Compound Learnings

  • 486 installs
  • 3.9k repo stars
  • Updated January 26, 2026
  • parcadei/continuous-claude-v3

compound-learnings is a Claude agent skill that extracts recurring lessons from coding sessions and converts them into permanent skills, rules, and agents for developers who want agent setups that improve after every pro

About

compound-learnings is a parcadei/continuous-claude-v3 skill that turns ephemeral session insights into permanent agent capabilities. It gathers learnings from recent work, identifies patterns that repeat across tasks, and recommends or writes durable artifacts such as SKILL.md files, Cursor rules, and sub-agent definitions. Allowed tools include Read, Glob, Grep, Write, Edit, Bash, and AskUserQuestion, so the skill can scan session history and materialize new configuration. Developers reach for compound-learnings after finishing a feature arc, debugging marathon, or repo onboarding when they notice the same corrections happening twice. Trigger phrases include improve my setup, learn from sessions, compound learnings, and what patterns should become skills. The outcome is a compounding agent toolchain instead of one-off chat memory.

  • Automatically captures key learnings after each agent interaction
  • Builds a persistent compound knowledge base across projects
  • Enables Claude to reference past decisions and mistakes
  • Reduces repeated errors and improves agent consistency
  • Works with any Claude-powered coding workflow

Compound Learnings by the numbers

  • 486 all-time installs (skills.sh)
  • +2 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #1,799 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/parcadei/continuous-claude-v3 --skill compound-learnings

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs486
repo stars3.9k
Last updatedJanuary 26, 2026
Repositoryparcadei/continuous-claude-v3

How do you turn session learnings into agent skills?

Let Claude continuously extract, store, and apply lessons from every coding session so the agent gets smarter over time.

Who is it for?

Developers maintaining a Claude Code or Cursor workspace who repeatedly fix the same issues and want those lessons codified as skills or rules.

Skip if: Teams needing one-off answers without changing agent configuration, or developers who do not persist skills or rules in the repo.

When should I use this skill?

Recent sessions surfaced repeatable patterns and the developer asks to improve setup, compound learnings, or promote patterns into skills.

What you get

New or updated SKILL.md files, Cursor rules, agent prompts, and a prioritized list of patterns promoted to permanent capabilities.

  • New SKILL.md files
  • Cursor or Claude rules
  • Agent definition prompts

By the numbers

  • Allows 7 tools: Read, Glob, Grep, Write, Edit, Bash, AskUserQuestion

Files

SKILL.mdMarkdownGitHub ↗

Compound Learnings

Transform ephemeral session learnings into permanent, compounding capabilities.

When to Use

  • "What should I learn from recent sessions?"
  • "Improve my setup based on recent work"
  • "Turn learnings into skills/rules"
  • "What patterns should become permanent?"
  • "Compound my learnings"

Process

Step 1: Gather Learnings

# List learnings (most recent first)
ls -t $CLAUDE_PROJECT_DIR/.claude/cache/learnings/*.md | head -20

# Count total
ls $CLAUDE_PROJECT_DIR/.claude/cache/learnings/*.md | wc -l

Read the most recent 5-10 files (or specify a date range).

Step 2: Extract Patterns (Structured)

For each learnings file, extract entries from these specific sections:

Section HeaderWhat to Extract
## Patterns or Reusable techniquesDirect candidates for rules
**Takeaway:** or **Actionable takeaway:**Decision heuristics
## What WorkedSuccess patterns
## What FailedAnti-patterns (invert to rules)
## Key DecisionsDesign principles

Build a frequency table as you go:

| Pattern | Sessions | Category |
|---------|----------|----------|
| "Check artifacts before editing" | abc, def, ghi | debugging |
| "Pass IDs explicitly" | abc, def, ghi, jkl | reliability |

Step 2b: Consolidate Similar Patterns

Before counting, merge patterns that express the same principle:

Example consolidation:

  • "Artifact-first debugging"
  • "Verify hook output by inspecting files"
  • "Filesystem-first debugging"

→ All express: "Observe outputs before editing code"

Use the most general formulation. Update the frequency table.

Step 3: Detect Meta-Patterns

Critical step: Look at what the learnings cluster around.

If >50% of patterns relate to one topic (e.g., "hooks", "tracing", "async"): → That topic may need a dedicated skill rather than multiple rules → One skill compounds better than five rules

Ask yourself: "Is there a skill that would make all these rules unnecessary?"

Step 4: Categorize (Decision Tree)

For each pattern, determine artifact type:

Is it a sequence of commands/steps?
  → YES → SKILL (executable > declarative)
  → NO ↓

Should it run automatically on an event (SessionEnd, PostToolUse, etc.)?
  → YES → HOOK (automatic > manual)
  → NO ↓

Is it "when X, do Y" or "never do X"?
  → YES → RULE
  → NO ↓

Does it enhance an existing agent workflow?
  → YES → AGENT UPDATE
  → NO → Skip (not worth capturing)

Artifact Type Examples:

PatternTypeWhy
"Run linting before commit"Hook (PreToolUse)Automatic gate
"Extract learnings on session end"Hook (SessionEnd)Automatic trigger
"Debug hooks step by step"SkillManual sequence
"Always pass IDs explicitly"RuleHeuristic

Step 5: Apply Signal Thresholds

OccurrencesAction
1Note but skip (unless critical failure)
2Consider - present to user
3+Strong signal - recommend creation
4+Definitely create

Step 6: Propose Artifacts

Present each proposal in this format:

---

## Pattern: [Generalized Name]

**Signal:** [N] sessions ([list session IDs])

**Category:** [debugging / reliability / workflow / etc.]

**Artifact Type:** Rule / Skill / Agent Update

**Rationale:** [Why this artifact type, why worth creating]

**Draft Content:**
\`\`\`markdown
[Actual content that would be written to file]
\`\`\`

**File:** `.claude/rules/[name].md` or `.claude/skills/[name]/SKILL.md`

---

Use AskUserQuestion to get approval for each artifact (or batch approval).

Step 7: Create Approved Artifacts

For Rules:
# Write to rules directory
cat > $CLAUDE_PROJECT_DIR/.claude/rules/<name>.md << 'EOF'
# Rule Name

[Context: why this rule exists, based on N sessions]

## Pattern
[The reusable principle]

## DO
- [Concrete action]

## DON'T
- [Anti-pattern]

## Source Sessions
- [session-id-1]: [what happened]
- [session-id-2]: [what happened]
EOF
For Skills:

Create .claude/skills/<name>/SKILL.md with:

  • Frontmatter (name, description, allowed-tools)
  • When to Use
  • Step-by-step instructions (executable)
  • Examples from the learnings

Add triggers to skill-rules.json if appropriate.

For Hooks:

Create shell wrapper + TypeScript handler:

# Shell wrapper
cat > $CLAUDE_PROJECT_DIR/.claude/hooks/<name>.sh << 'EOF'
#!/bin/bash
set -e
cd "$CLAUDE_PROJECT_DIR/.claude/hooks"
cat | node dist/<name>.mjs
EOF
chmod +x $CLAUDE_PROJECT_DIR/.claude/hooks/<name>.sh

Then create src/<name>.ts, build with esbuild, and register in settings.json:

{
  "hooks": {
    "EventName": [{
      "hooks": [{
        "type": "command",
        "command": "$CLAUDE_PROJECT_DIR/.claude/hooks/<name>.sh"
      }]
    }]
  }
}
For Agent Updates:

Edit existing agent in .claude/agents/<name>.md to add the learned capability.

Step 8: Summary Report

## Compounding Complete

**Learnings Analyzed:** [N] sessions
**Patterns Found:** [M]
**Artifacts Created:** [K]

### Created:
- Rule: `explicit-identity.md` - Pass IDs explicitly across boundaries
- Skill: `debug-hooks` - Hook debugging workflow

### Skipped (insufficient signal):
- "Pattern X" (1 occurrence)

**Your setup is now permanently improved.**

Quality Checks

Before creating any artifact:

1. Is it general enough? Would it apply in other projects? 2. Is it specific enough? Does it give concrete guidance? 3. Does it already exist? Check .claude/rules/ and .claude/skills/ first 4. Is it the right type? Sequences → skills, heuristics → rules

Files Reference

  • Learnings: .claude/cache/learnings/*.md
  • Skills: .claude/skills/<name>/SKILL.md
  • Rules: .claude/rules/<name>.md
  • Hooks: .claude/hooks/<name>.sh + src/<name>.ts + dist/<name>.mjs
  • Agents: .claude/agents/<name>.md
  • Skill triggers: .claude/skills/skill-rules.json
  • Hook registration: .claude/settings.jsonhooks section

Related skills

How it compares

Pick compound-learnings over ad-hoc note-taking when the goal is durable agent configuration, not just a session summary.

FAQ

What does compound-learnings produce?

compound-learnings analyzes recent session work and outputs durable artifacts such as new SKILL.md files, Cursor rules, and agent definitions that encode recurring patterns instead of leaving them in chat history.

Which tools does compound-learnings use?

compound-learnings is authorized for Read, Glob, Grep, Write, Edit, Bash, and AskUserQuestion, allowing it to scan project history and write new skill and rule files into the workspace.

AI & Agent Buildingagentsautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.