Analyzes a codebase and suggests custom Claude Code skills and subagents to improve development workflow. Use when user wants tooling suggestions, automation ideas, or asks "what skills would help this project".
Analyzes your codebase to suggest custom skills and agents that automate your specific workflows. Triggers when you ask "what skills would help this project" or want tooling recommendations.
/plugin marketplace add BrendanShields/spec-flow/plugin install spec@spec-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
patterns/agents.mdpatterns/skills.mdreference.mdAnalyzes codebases to suggest custom skills and agents for workflow automation.
Progress:
- [ ] Analyze codebase patterns
- [ ] Match to tooling templates
- [ ] Present suggestions
- [ ] Generate approved items
Run lightweight analysis:
# Language detection
find . -type f -name "*.ts" -o -name "*.js" -o -name "*.py" | head -100
# Framework detection
ls package.json pyproject.toml Cargo.toml go.mod 2>/dev/null
# Workflow detection
ls .github/workflows/ .gitlab-ci.yml Dockerfile 2>/dev/null
# Existing tooling
ls .claude/skills/ .claude/agents/ 2>/dev/null
Collect:
Match detected patterns to suggestions:
| Signal | Skill Suggestion | Agent Suggestion |
|---|---|---|
| Jest/Pytest/Mocha | testing-code | - |
| REST routes | - | api-testing |
| Prisma/migrations | db-migrations | - |
| Dockerfile | deploying-code | - |
| ESLint/Prettier | linting-code | - |
| Auth patterns | - | security-review |
| Many .md files | documenting-code | - |
| PR workflow | - | code-reviewer |
See patterns/skills.md and patterns/agents.md for complete mappings.
Format suggestions for user review:
## Tooling Suggestions for {project}
Based on analysis of your codebase:
- Language: {detected}
- Framework: {detected}
- Existing tooling: {count} skills, {count} agents
### Recommended Skills
| # | Skill | Why | Priority |
|---|-------|-----|----------|
| 1 | {name} | {rationale} | P1 |
| 2 | {name} | {rationale} | P2 |
### Recommended Agents
| # | Agent | Why | Priority |
|---|-------|-----|----------|
| 1 | {name} | {rationale} | P1 |
Then ask user which to generate.
For each approved item:
Skills - Invoke creating-skills:
Use the creating-skills skill to create a {name} skill.
Purpose: {rationale}
Detected context:
- Framework: {framework}
- Test runner: {runner}
- Patterns: {patterns}
Generate a focused skill for this project.
Agents - Invoke creating-agents:
Use the creating-agents skill to create a {name} agent.
Purpose: {rationale}
Suggested tools: {tools}
Detected context:
- Project type: {type}
- Workflows: {workflows}
Generate a focused agent for this project.
See reference.md for detailed pattern definitions.
Compare detected needs against existing .claude/ configuration:
Detected workflows: Existing tooling:
- Testing (Jest) - (none)
- API (Express) - (none)
- CI (GitHub Actions) - (none)
Gaps: testing, api-testing, deployment
Only suggest tooling that fills gaps.
After generation, report:
## Tooling Created
| Type | Name | Location |
|------|------|----------|
| Skill | testing-code | .claude/skills/testing-code/ |
| Agent | code-reviewer | .claude/agents/code-reviewer.md |
### Restart Required
New skills and agents require a Claude restart to be available.
To continue where you left off:
\`\`\`bash
claude --continue
\`\`\`
### Next Steps
1. Restart Claude to load new tooling
2. Run `claude --continue` to resume
3. Review generated tooling in .claude/
4. Test skills with sample workflows
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.