.claude/skills/curator/SKILL.md
Full curator pipeline for autonomous learning from quality repositories. Executes: discovery → scoring → ranking → ingest → learn → vault sync. Writes to procedural memory AND Obsidian vault for Graph View visualization and graduation pipeline. Use for: populating procedural memory with domain patterns, first-time domain learning, comprehensive knowledge building. Triggers: /curator full, 'learn patterns from repos', 'build knowledge base'.
npx skillsauth add alfredolopez80/multi-agent-ralph-loop curatorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Full Autonomous Learning Pipeline - Discovers, scores, and learns from quality repositories.
Priorities (ordered): quality → coverage → relevance → performance → speed
Scope: Repository discovery, quality scoring, pattern extraction, procedural memory population.
Optimal Scenario: C (Integrated)
| Criterion | Weight | Score | Rationale | |-----------|--------|-------|-----------| | Coordination Need | 25% | 8/10 | Multi-stage pipeline requires orchestration | | Specialization Need | 25% | 5/10 | General API/git skills sufficient | | Quality Gate Need | 20% | 9/10 | Each stage needs validation | | Tool Restriction Need | 15% | 3/10 | Needs broad tool access | | Scalability | 15% | 8/10 | Can process many repos | | Total | 100% | 6.9/10 | Scenario C optimal |
# Integrated Team Workflow
TeamCreate(team_name="curator-pipeline", description="Learning from ${DOMAIN} repos")
# Stage 1: Discovery
Task(subagent_type="ralph-researcher", prompt="Search GitHub for ${DOMAIN} repositories")
→ Returns candidate list
# Stage 2: Scoring (parallel)
Task(subagent_type="ralph-reviewer", prompt="Score ${REPO_1} quality")
Task(subagent_type="ralph-reviewer", prompt="Score ${REPO_2} quality")
→ Returns quality scores
# Stage 3: Ranking
Team lead aggregates scores and selects top N
# Stage 4: Ingest & Learn (parallel)
Task(subagent_type="ralph-coder", prompt="Clone and extract patterns from ${TOP_REPO}")
→ Returns extracted patterns
# Stage 5: Quality Gate
TeammateIdle hook validates pattern quality
TaskCompleted hook verifies manifest population
# Stage 6: Injection
Procedural memory updated automatically
curator-discovery.sh)# Search GitHub for repositories
--type <domain> # backend, frontend, database, security, devops, testing
--lang <language> # typescript, python, go, rust, java
--tier <tier> # premium (1000+ stars), standard (500+), economic (100+)
Output: Candidate repository list with metadata.
curator-scoring.sh)Quality metrics:
Output: Scored repository list (0-100).
curator-rank.sh)# Select top repositories
--max <n> # Maximum repos to process (default: 3)
--diversity # Ensure organization diversity
Output: Ranked candidate list.
curator-ingest.sh)# Clone and prepare repositories
--clone-depth 1 # Shallow clone for efficiency
Output: Cloned repositories in corpus/pending/.
curator-approve.sh)# Manual or automatic approval
--auto # Auto-approve based on score threshold
--threshold 75 # Minimum score for auto-approval
Output: Repositories moved to corpus/approved/.
curator-learn.sh) - GAP FIXES v2.88# Extract patterns and populate procedural memory
# GAP-C01 FIX: Manifest files[] now populated
# GAP-C02 FIX: Domain detection and assignment
Output:
.claude/rules/learned/ (MemPalace taxonomy)files[] array/curator full --type backend --lang typescript
Executes all stages: discovery → scoring → ranking → ingest → approve → learn.
/curator quick --type security --lang python --repo owner/repo
Skips discovery, learns from specific repository.
/curator status
Shows:
// ~/.ralph/config/memory-config.json
{
"curator": {
"max_repos_per_run": 3,
"min_stars": 100,
"clone_depth": 1,
"auto_approve_threshold": 75,
"domains": ["backend", "frontend", "database", "security", "devops", "testing"]
},
"auto_learn": {
"enabled": true,
"blocking": false,
"min_rules_domain": 3
}
}
| Stage | Gate | Failure Action | |-------|------|----------------| | Discovery | Results > 0 | Retry with broader search | | Scoring | Top score >= 60 | Lower threshold or expand search | | Ingest | Clone success | Skip repo, continue | | Learn | Patterns > 0 | Log warning, proceed |
Before:
{"files": [], "patterns_extracted": 0}
After:
{
"files": ["src/handler.ts", "src/middleware.ts"],
"patterns_extracted": 5,
"detected_domain": "backend",
"detected_language": "typescript"
}
Rules now automatically categorized:
/curator-repo-learn - Single repository learning (Scenario B)/repo-learn - Alias for curator-repo-learn/smart-fork - Pattern extraction from external repos| Hook | Trigger | Purpose |
|------|---------|---------|
| orchestrator-auto-learn.sh | PreToolUse (Task) | Detect learning gaps |
| (removed in v3.0) | UserPromptSubmit | (curator-suggestion.sh deleted) |
| continuous-learning.sh | Stop | Extract from session → vault |
| vault-index-updater.sh | SessionEnd | Update vault indices |
Esta skill genera reportes automáticos completos para trazabilidad:
Cuando esta skill completa, se genera automáticamente:
docs/actions/curator/{timestamp}.md.claude/metadata/actions/curator/{timestamp}.jsonCada reporte incluye:
# Listar todos los reportes de esta skill
ls -lt docs/actions/curator/
# Ver el reporte más reciente
cat $(ls -t docs/actions/curator/*.md | head -1)
# Buscar reportes fallidos
grep -l "Status: FAILED" docs/actions/curator/*.md
source .claude/lib/action-report-lib.sh
start_action_report "curator" "Task description"
# ... ejecución ...
complete_action_report "success" "Summary" "Recommendations"
Action Reports System - Documentación completa
action-report-lib.sh - Librería helper
action-report-generator.sh - Generador
Learning System Audit
Learning System Scenarios
MULTI_AGENT_SCENARIOS_v2.88
development
Living knowledge base management. Actions: search (query vault), save (store learning), index (update indices), compile (raw->wiki->rules graduation), init (create vault structure). Follows Karpathy pipeline: ingest->compile->query. Use when: (1) searching accumulated knowledge, (2) saving learnings, (3) compiling raw notes into wiki, (4) initializing a new vault. Triggers: /vault, 'vault search', 'knowledge base', 'save learning'.
testing
Produce a verifiable technical specification before coding. 6 mandatory sections: Interfaces, Behaviors, Invariants (from Aristotle Phase 2), File Plan, Test Plan, Exit Criteria (executable bash commands + expected results). Use when: (1) before implementing features with complexity > 4, (2) as Step 1.5 in orchestrator workflow, (3) when requirements need formalization. Triggers: /spec, 'create spec', 'write specification', 'technical spec'.
testing
Pre-launch shipping checklist orchestrating /gates, /security, /browser-test, /perf. Ensures nothing ships without passing all quality checks. Use when: (1) before deploying, (2) before merging to main, (3) before release. Triggers: /ship, 'ship it', 'ready to deploy', 'pre-launch check'.
development
Performance optimization skill. Core Web Vitals via Lighthouse, bundle size analysis, metrics tracking over time. Use when: (1) optimizing frontend performance, (2) analyzing bundle size, (3) tracking metrics regression. Triggers: /perf, 'performance audit', 'core web vitals', 'bundle size'.