happycapy-ai/happycapy-skills/capy-cortex
Claude Code and agent skill by happycapy-ai/happycapy-skills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Autonomous learning system - learns from mistakes, reflects on sessions, and gets smarter over time. The AI brain.
Install
npx vskill@latest install happycapy-ai/happycapy-skills/capy-cortexSKILL.md
The same SKILL.md was published earlier as ndpvt-web/capy-cortex/capy-cortex.
Capy Cortex - Autonomous Learning System
You have a persistent learning brain powered by SQLite + FTS5 + sklearn TF-IDF. Knowledge is automatically loaded via hooks. This file describes manual operations.
Architecture
- Database:
~/.claude/skills/capy-cortex/cortex.db(SQLite + FTS5 + WAL) - Hooks (automatic, never call manually):
- SessionStart: Loads anti-patterns, preferences, principles
- UserPromptSubmit: Retrieves task-relevant rules via FTS5
- PreToolUse(Bash): Blocks known dangerous commands
- PostToolUseFailure: Records errors as anti-patterns
- Stop: Extracts corrections and preferences from conversation
- Scripts (for manual/scheduled use):
cortex.py: Core engine (retrieve, add rules, stats)reflect.py: Deep session analysisconsolidate.py: Cluster rules into principles (sklearn)bootstrap.py: Mine historical sessions
Manual Commands
How It Learns
- Automatic (via hooks): Errors are captured, corrections noted, preferences extracted
- Reflection: Deep analysis of session transcripts extracts patterns
- Consolidation: sklearn clustering groups similar rules into principles
- Decay: Old, unreinforced rules fade; validated rules strengthen
- Retrieval: Two-stage FTS5 + TF-IDF returns only relevant knowledge (O(1) context)
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/capy-cortex/SKILL.md
Popularity
- Repository stars
- 137
- Repository forks
- 30
- 7-day trend score
- 25
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 12 Oct 2026, 24 days ago.
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/happycapy-ai/happycapy-skills/capy-cortex)