// Pattern detection and automatic skill recommendation system. Activates when analyzing Cortex memory files, detecting recurring work patterns, or determining if new skills are needed. Analyzes .cortex_log.md, PRD files, and task lists to identify patterns (API calls, testing, deployment, etc.) appearing 5+ times. Generates Synapse_RECOMMENDATIONS.md with prioritized skill suggestions. Use when optimizing workflows or identifying automation opportunities.
| name | synapse |
| description | Pattern detection and automatic skill recommendation system. Activates when analyzing Cortex memory files, detecting recurring work patterns, or determining if new skills are needed. Analyzes .cortex_log.md, PRD files, and task lists to identify patterns (API calls, testing, deployment, etc.) appearing 5+ times. Generates Synapse_RECOMMENDATIONS.md with prioritized skill suggestions. Use when optimizing workflows or identifying automation opportunities. |
| allowed-tools | Read, Write, Bash, Grep, Glob |
Analyzes your work patterns and automatically generates the skills you need.
Synapse is the brain of the skill ecosystem. It watches Cortex memory, reads your PRD files, analyzes your tasks, and automatically creates new skills when patterns emerge.
Synapse performs unified analysis from multiple sources:
.cortex_log.md and .cortex_status.json*PRD*.md, *REQUIREMENTS*.md, *ROADMAP*.md)Synapse runs automatically and generates skills without user intervention:
Skills are auto-generated when:
You work normally
↓
Cortex traces everything
↓
Synapse monitors automatically:
- Cortex memory (patterns)
- PRD files (requirements)
- Task lists (TODO)
↓
Detects patterns >= threshold
↓
Auto-generates skills if priority >= high:
- Creates .claude/skills/[skill-name]/
- Generates SKILL.md with progressive disclosure
- Creates scripts with Cortex API integration
- Records in Cortex memory
↓
New skill ready immediately!
↓
Claude uses it automatically
No user intervention needed.
Synapse assigns priorities based on frequency and task count:
Only HIGH and CRITICAL priorities trigger automatic generation.
Synapse generates Synapse_RECOMMENDATIONS.md with prioritized skill recommendations:
# Synapse Skill Recommendations
## Summary
- Total recommendations: 3
- High priority: 2
- Medium priority: 1
## Recommended Skills
### 1. 🔴 api-optimizer (CRITICAL)
**Pattern:** api_call
**Frequency:** 3.5 times/day (24 total in 7 days)
**Reason:** Frequent API operations detected
...
See OUTPUT_FORMAT.md for complete output specification.
Run auto-generator to analyze and generate skills automatically:
python .claude/skills/synapse/scripts/auto_skill_generator.py
Skills with HIGH or CRITICAL priority will be generated automatically.
Generate recommendations without auto-creating skills:
python .claude/skills/synapse/scripts/synapse_analyzer.py
This creates Synapse_RECOMMENDATIONS.md for manual review.
Add to crontab for automatic periodic checks:
# Every 30 minutes
*/30 * * * * /path/to/.claude/skills/synapse/scripts/synapse_auto_watch.sh
Or use as git hook (see INSTALLATION.md).
Synapse and Cortex work together seamlessly:
This creates a self-improving system where skills emerge from actual usage patterns.
Synapse creates skills following best practices:
generated-skill/
├── SKILL.md (with YAML frontmatter)
├── scripts/
│ └── main.py (with Cortex API integration)
└── references/ (if needed)
All generated skills:
Synapse works with any CLI-based LLM:
Synapse_RECOMMENDATIONS.mdSynapse_RECOMMENDATIONS.mdSee MULTI_LLM.md for LLM-specific guides.
See ADVANCED.md for detailed documentation.
Create .synapse_config.json for custom settings:
{
"analysis": {
"threshold": 5,
"window_days": 7
},
"sources": {
"cortex_memory": true,
"prd_files": true,
"task_lists": true
}
}
See CONFIGURATION.md for all options.
Cortex → Remembers everything Synapse → Analyzes and generates Generated skills → Solve specific problems Skills use Cortex → Pattern detection improves
Synapse makes the system intelligent and self-improving.
Synapse - The universal skill recommendation and generation engine