From auto-skill
Automatically detects repeated workflow patterns from tool calls in coding sessions, generates reusable SKILL.md files, and loads them dynamically mid-session via /auto-skill commands.
npx claudepluginhub matrixy/auto-skillThis skill uses the workspace's default tool permissions.
This plugin automatically detects workflow patterns from your coding agent sessions, generates reusable skills, and can load them dynamically mid-session.
Evaluates Claude Code sessions for reusable workflows and generates new skills enforcing Agent Skills spec. Triggers on /auto-skill or phrases like 'save this as a 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.
Analyzes git session changes to detect reusable patterns and automatically generates Claude Code skills with duplicate checks and Agent Teams.
Share bugs, ideas, or general feedback.
This plugin automatically detects workflow patterns from your coding agent sessions, generates reusable skills, and can load them dynamically mid-session.
The agent skills are now installed, but to use CLI commands like auto-skill init, auto-skill discover, etc., you need to install the npm package.
Quick Install:
# Option 1: Run the included install script
bash ~/.agents/skills/auto-skill-guide/install-cli.sh
# Option 2: Install globally via npm
npm install -g @matrixy/auto-skill
# Option 3: Use without installing (via npx)
npx @matrixy/auto-skill init
Verify: auto-skill version
Session 1: Grep → Read → Edit ─┐
Session 2: Grep → Read → Edit ├──▶ Pattern Detected → SKILL.md
Session 3: Grep → Read → Edit ─┘
Review and approve detected patterns:
/auto-skill:review # List all detected patterns
/auto-skill:review preview ID # Preview a pattern as a skill
/auto-skill:review approve ID # Generate skill from pattern
/auto-skill:review reject ID # Dismiss a pattern
Load a generated skill into the current session:
/auto-skill:load # List available skills
/auto-skill:load <name> # Load specific skill immediately
Skills loaded this way become active immediately without requiring a session restart.
Show system diagnostics:
/auto-skill:status # Display stats, patterns, and config
Patterns are detected when:
| Factor | Weight | Description |
|---|---|---|
| Occurrences | 40% | More occurrences = higher confidence |
| Length | 20% | 3-5 tools is ideal |
| Success Rate | 25% | Successful patterns score higher |
| Recency | 15% | Recent patterns are prioritized |
Grep → Read → Edit # Search, read context, make changes
Glob → Read → Write # Find files, read, create new file
Read → Edit → Bash # Read file, edit, run tests
Unlike standard Claude Code skills (loaded at session start), auto-generated skills can be loaded mid-session using a registry system.
======================================================================
SKILL LOADED: <name>
Confidence: <score>
Allowed tools: <tools>
======================================================================
<skill instructions>
======================================================================
END OF SKILL - INSTRUCTIONS ARE NOW ACTIVE
======================================================================
Claude can automatically discover relevant skills using the skill-discovery skill:
auto-skill discover # Discover skill patterns
auto-skill stats # Show adoption statistics
auto-skill graduate # Manage skill graduation
auto-skill agents list # List known agents
auto-skill agents detect # Detect installed agents
To search for community skills, use Skills CLI:
npx skills find "query" # Interactive search
npx skills add owner/repo # Install skill
Generated skills automatically get appropriate execution settings:
| Pattern Type | Context | Agent | Why |
|---|---|---|---|
Grep → Read | Inline | Explore | Read-only, safe |
Read → Edit → Bash | Fork | general-purpose | Has side effects |
Inline: Runs in current conversation context.
Fork (context: fork): Runs in isolated subagent. Use for:
Generated skills include allowed-tools based on the pattern:
allowed-tools: Grep, Read, Edit
This prevents scope creep and ensures predictable behavior.
Auto-generated skills are saved to:
~/.claude/skills/auto/<skill-name>/SKILL.md
Each skill includes:
auto-generated: true flagcontext: fork if appropriateallowed-tools restrictionsDetection thresholds (in ~/.claude/auto-skill.local.md):
---
detection:
min_occurrences: 3 # Minimum pattern repetitions
min_sequence_length: 2 # Shortest pattern
max_sequence_length: 10 # Longest pattern
lookback_days: 7 # Analysis window
min_confidence: 0.7 # Suggestion threshold
---
| Data | Location |
|---|---|
| Events | ~/.claude/auto-skill/events.db |
| Skills | ~/.claude/skills/auto/ |
| Tracking | ~/.claude/auto-skill/skills_tracking.db |
AUTO_SKILL_NO_TELEMETRY=1 or DO_NOT_TRACK=1No patterns detected?
/auto-skill:status to see event countsSkill not loading?
auto-skill discover to refresh~/.claude/skills/auto/Hooks not working?
hooks/hooks.json configurationWant to reset?
~/.claude/auto-skill/events.db~/.claude/skills/auto/