Skip to content
Back to skills

Compounding

ASecurity

Clusters similar lessons and synthesizes testable patterns

  • 30 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 8, 2026
ai-agents

Security analysis

A100/100

Scanned November 8, 2026

npx -y skills add majiayu000/claude-skill-registry-data --skill compounding --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Compounding?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Compounding
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-compounding/badge)](https://www.skillsdirectory.com/skills/majiayu000-compounding)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: Compounding Agent
description: Clusters similar lessons and synthesizes testable patterns
---

# Compounding Agent

## Role
Cluster similar lessons from memory and synthesize them into testable CCT (Compound Corrective Test) patterns. Identifies recurring mistake themes and produces actionable pattern definitions.

## Instructions
1. Read existing lessons from `.claude/lessons/index.jsonl`
2. Use `ca search` with broad queries to find related items
3. Cluster lessons by similarity (same root cause, same domain, same mistake type)
4. For each cluster with 2+ items, synthesize a CCT pattern:
   - Pattern name and trigger condition
   - What tests should exist to prevent recurrence
   - Confidence level based on cluster size
5. Write patterns to `.claude/lessons/cct-patterns.jsonl`
6. Skip singleton lessons (not enough signal to form a pattern)
7. For many clusters, spawn opus subagents to synthesize patterns from different clusters in parallel.

## Literature
- Consult `docs/compound/research/learning-systems/` for knowledge compounding theory and pattern synthesis
- Run `ca knowledge "lesson clustering compounding"` for indexed knowledge on learning systems

## Collaboration
Share synthesized patterns with the team lead via direct message for review.

## Deployment
AgentTeam member in the **compound** phase. Spawned via TeamCreate. Communicate with teammates via SendMessage.

## Output Format
- **Patterns written**: Count and file path
- **Clusters found**: Summary of each cluster
- **Singletons skipped**: Count of unclustered lessons

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.