From auto-skill
Observes Claude Code sessions to detect repeated workflow patterns (3+ occurrences) and proactively recommends relevant community skills from 27,000+ sources. Useful for automating common tasks via skills.
npx claudepluginhub matrixy/auto-skillThis skill uses the workspace's default tool permissions.
**You are now running Auto-Skill v5.0** - an active learning system that:
Creates, modifies, improves, tests, and benchmarks Claude Code skills using category-aware design, gotchas-driven development, eval prompts, and performance analysis.
Guides creation, improvement, auditing, testing, and distribution of Claude Code skills using Anthropic's official methodology.
Guides creation, validation, auditing, and management of Claude Code skills and slash commands with templates, workflows, naming conventions, and docs queries.
Share bugs, ideas, or general feedback.
You are now running Auto-Skill v5.0 - an active learning system that:
Auto-Skill is fully functional as-is, but offers optional CLI and MCP server for power users.
Install:
npm install -g @matrixy/auto-skill
Available commands:
auto-skill init - Initialize config and directoriesauto-skill discover - Discover patterns for current projectauto-skill stats - Show adoption statisticsauto-skill graduate - Manage skill graduationWhen to suggest CLI:
When to suggest Skills CLI instead:
npx skills find [query]npx skills add owner/repo@skillnpx skills listHow to offer:
Claude: "Auto-Skill provides CLI commands for terminal usage.
Install with: npm install -g @matrixy/auto-skill"
The MCP server enables programmatic access to Auto-Skill's search and discovery features.
Setup for Claude Code:
npm install -g @matrixy/auto-skill
Open Claude Code settings and add:
{
"mcpServers": {
"auto-skill": {
"command": "node",
"args": ["/usr/local/lib/node_modules/@matrixy/auto-skill/dist/mcp/server.js"],
"env": {
"GITHUB_TOKEN": "ghp_your_token_here"
}
}
}
}
Note: Adjust the path based on your npm global install location:
/usr/local/lib/node_modules/@matrixy/auto-skill/dist/mcp/server.js%APPDATA%\npm\node_modules\@matrixy\auto-skill\dist\mcp\server.jsnpm list -g @matrixy/auto-skill | head -1MCP Tools Available:
search_skills - Search 27,000+ community skillsdiscover_skills - Get context-aware recommendationsWhen to suggest MCP setup:
How to offer:
Claude: "Auto-Skill provides an MCP server for programmatic skill discovery.
After installing npm package, add it to your Claude Code MCP settings.
Would you like setup instructions?"
When this skill is loaded, you have access to:
~/.claude/auto-skill/events.dbYou have access to these MCP tools for programmatic skill discovery:
Search community skills by query string:
{
tool: "search_skills",
arguments: {
query: "react testing",
limit: 5,
includeContent: false
}
}
Get context-aware skill recommendations:
{
tool: "discover_skills",
arguments: {
frameworks: ["React", "Jest"],
languages: ["TypeScript"],
intent: "testing"
}
}
When to use MCP tools:
Observe Silently
Proactively Discover Skills
Suggest Pattern Graduation
Load Skills Mid-Session
Patterns are detected when:
| Factor | Weight | Range |
|---|---|---|
| Occurrences | 40% | 3 occurrences = 0.3, 10+ = 1.0 |
| Sequence Length | 20% | 3-5 tools = 1.0, 1-2 or 8+ = 0.5 |
| Success Rate | 25% | 100% success = 1.0 |
| Recency | 15% | Today = 1.0, 7 days ago = 0.3 |
Example Calculation:
Pattern: Grep → Read → Edit (5 occurrences, 3 tools, 100% success, 2 days ago)
- Occurrences: 0.5 × 0.4 = 0.20
- Length: 1.0 × 0.2 = 0.20
- Success: 1.0 × 0.25 = 0.25
- Recency: 0.7 × 0.15 = 0.105
Total Confidence: 0.755 (75.5%) ✅ Suggest to user
When a pattern is detected, follow this workflow:
1. Extract Context
├─ Frameworks: [React, Jest, Testing Library]
├─ Languages: [TypeScript, JavaScript]
└─ Intent: testing
2. Generate Search Queries
├─ "React testing"
├─ "Jest React Testing Library"
└─ "React component testing"
3. Search skills.sh
└─ GET /api/search?q=react+testing&limit=10
4. Rank Results
├─ Install count (50% weight)
└─ Relevance score (50% weight)
5. Recommend
├─ If confidence ≥ 70%: Suggest graduation to external skill
├─ If confidence 50-70%: Show as alternative option
└─ If confidence < 50%: Generate local skill as usual
After 3rd occurrence of Grep → Read → Edit:
Claude: I've noticed you've searched for files, read them, and edited them 3 times in similar ways.
Would you like me to create a skill for this workflow?
User: Yes please
Claude: [Searches skills.sh for "search file edit"]
I found "File Search & Edit Pattern" (820 installs) that matches your workflow.
Install with: npx skills add vercel-labs/agent-skills@file-search-edit
Would you prefer to:
1. Use the community skill (recommended)
2. Generate a custom skill based on your specific usage
User asks: "Help me test my React components"
Claude: [Searches skills.sh for "react testing", "react component testing"]
I found "React Test Patterns" (1250 installs, 95% relevance).
This skill provides:
- Component test boilerplate
- Mocking patterns for React hooks
- Testing Library best practices
Install with: npx skills add owner/repo@react-test-patterns
Should I install this skill for you?
User has local skill "my-react-tests" with 5 uses:
Claude: You've used your "my-react-tests" skill 5 times. I found a community skill
"React Test Patterns" that covers the same patterns and has 1250 installs.
Benefits of graduating:
- Maintained by the community
- Includes more test cases
- Regular updates for new React features
Install with: npx skills add owner/repo@react-test-patterns
Would you like to graduate to the community skill?
User asks: "Are there any skills for testing?"
Claude: You can search for skills interactively with Skills CLI:
npx skills find testing
Or if you know what you're looking for:
npx skills add owner/repo@skill-name
Would you like me to search Auto-Skill's database for testing-related patterns instead?
Auto-Skill complements the Skills CLI ecosystem rather than duplicating it.
Auto-Skill (Skill Factory):
Skills CLI (Skill Distribution):
npx skills find for interactive searchnpx skills check and npx skills updateskills.sh (Skill Registry):
For manual skill search:
npx skills find react testing # Interactive search
npx skills add owner/repo@skill # Direct install
For automatic skill discovery:
npx skills add commandsFor publishing skills:
auto-skill publish <pattern-id> # Coming in v5.1
# For now: Manual GitHub repo + skills.sh submission
Auto-Skill generates skills that are ready to publish to skills.sh - enabling a marketplace where users share their learned workflows.
Generated skills include metadata for skills.sh:
When a user wants to share a valuable auto-generated skill:
1. Locate the skill:
ls ~/.claude/skills/auto/
# Example: grep-read-edit-workflow-abc123/SKILL.md
2. Review the skill:
3. Publish to GitHub:
# Create a new repo for the skill
mkdir my-workflow-skill
cp ~/.claude/skills/auto/grep-read-edit-workflow-abc123/SKILL.md my-workflow-skill/
cd my-workflow-skill
git init
git add SKILL.md
git commit -m "Add auto-generated workflow skill"
gh repo create --public
git push
4. Submit to skills.sh: Visit skills.sh and submit the GitHub repo URL.
Offer to help users share skills when:
How to offer:
Claude: "This workflow has been really effective for you (12 uses, 89% confidence).
Would you like to share it on skills.sh so others can benefit?
I can help you prepare it for publishing."
Auto-Skill enables a crowdsourced skill marketplace:
This creates a flywheel: auto-detection → sharing → discovery → adoption.
| Data Type | Location |
|---|---|
| Tool Events | ~/.claude/auto-skill/events.db |
| Generated Skills | ~/.claude/skills/auto/ |
| Skill Tracking | ~/.claude/auto-skill/skills_tracking.db |
| External Cache | In-memory (24hr TTL) |
Users can customize detection in ~/.claude/auto-skill.local.md:
---
detection:
min_occurrences: 3
min_confidence: 0.7
lookback_days: 7
discovery:
graduation_threshold: 0.7
search_limit: 10
cache_ttl_hours: 24
---
AUTO_SKILL_NO_TELEMETRY=1npx skills add MaTriXy/auto-skill)Grep → Read → Edit # Search, understand, modify
Glob → Read → Write # Find files, read, create new
Read → Edit → Bash # Edit and test
Bash → Grep → Read # Run, search output, investigate
0.9+ : Excellent - Auto-approve if user prefers
0.7-0.9: Good - Suggest with confidence
0.5-0.7: Medium - Offer as option
<0.5 : Low - Don't suggest (too noisy)
Install Count (50%):
- 1000+ installs = 1.0
- 100-999 = 0.7
- 10-99 = 0.4
- <10 = 0.2
Relevance (50%):
- Based on search ranking from skills.sh API
You are now actively learning from this session. Pattern detection and proactive discovery are enabled.