Analyzes codebases and conversation context to recommend relevant existing skills and suggest valuable custom skills to create. Use when exploring a project for the first time, when asked what skills would be useful, or when seeking to optimize workflow for a specific codebase.
/plugin marketplace add AnthonyKazyaka/plugin-marketplace/plugin install anthonykazyaka-useful-skills@AnthonyKazyaka/plugin-marketplaceThis skill inherits all available tools. When active, it can use any tool Claude has access to.
references/analysis-patterns.mdreferences/skill-suggestion-examples.mdscripts/analyze_codebase.pyscripts/scan_directory.pyThis skill analyzes directory structure, file types, frameworks, tech stack, and conversation context to provide comprehensive skill recommendations. It identifies which existing skills would be most valuable for the current project and suggests custom skills that could streamline project-specific workflows.
Invoke this skill when:
This skill follows an automatic analysis workflow that gathers comprehensive information, then provides detailed recommendations.
Run the analysis script to gather comprehensive codebase information:
python3 scripts/analyze_codebase.py <directory>
This detects:
Output interpretation:
For additional context about project organization, optionally run:
python3 scripts/scan_directory.py <directory>
This provides:
Use this when you need to understand project organization or when automated analysis needs clarification.
Review recent conversation history to understand:
Combine this context with codebase analysis to prioritize recommendations.
Match detected patterns against known skill mappings:
Load analysis patterns reference when you need detailed pattern-to-skill mappings:
See references/analysis-patterns.md for comprehensive pattern matching
Cross-reference findings:
Prioritize by relevance:
Produce a comprehensive recommendation report with:
For each recommended skill:
Example format:
### Recommended Existing Skills
#### High Priority
**`document-skills:xlsx`** - Spreadsheet creation and analysis
- **Detected:** 45 .xlsx files, openpyxl dependency
- **Use cases:**
- Analyze sales data spreadsheets
- Generate financial reports from data
- Process CSV exports into formatted Excel
- **Trigger examples:** "Analyze sales-report.xlsx", "Create summary spreadsheet from this data"
**`example-skills:webapp-testing`** - Frontend testing toolkit
- **Detected:** React application with Jest, Playwright in package.json
- **Use cases:**
- Test user flows in the dashboard
- Verify component rendering
- Debug UI behavior issues
- **Trigger examples:** "Test the login flow", "Check if the form validates correctly"
For suggested custom skills, use the templates and guidelines from references/skill-suggestion-examples.md.
Load this reference when generating custom skill suggestions:
See references/skill-suggestion-examples.md for suggestion templates and examples
For each suggestion, provide:
Prioritize custom skill suggestions by:
Example format:
### Suggested Custom Skills
#### `api-integration-helper`
**Purpose:** Streamline integration with the company's internal REST API, handling authentication, common queries, and data transformation.
**Key Features:**
- Auto-authenticate with API credentials
- Query common endpoints (users, orders, products)
- Transform API responses to required formats
- Handle error cases and retries
**When to Use:**
- When fetching data from internal API
- When testing API endpoints
- When building features that consume API data
**Bundled Resources:**
- `references/api-docs.md` - Internal API documentation
- `references/schemas.md` - Request/response schemas
- `scripts/api_client.py` - Python client helper
**Example Use Cases:**
1. "Get all orders from the last month"
2. "Fetch user profile data for user ID 12345"
3. "Update product inventory via API"
Deliver a comprehensive analysis report with the following structure:
# Skill Recommendations for [Project Name]
## Codebase Overview
[Brief summary of project type, primary languages, key frameworks]
## Analysis Summary
- **Total Files:** [count]
- **Primary Languages:** [languages with file counts]
- **Key Frameworks:** [frameworks detected]
- **Project Type:** [web app, data science, etc.]
## Recommended Existing Skills
### High Priority
[Skills that are immediately relevant and frequently useful]
### Medium Priority
[Skills that are relevant for specific tasks]
### Low Priority
[Skills that might be occasionally useful]
## Suggested Custom Skills
[2-5 custom skill suggestions, prioritized by value]
## Next Steps
1. Install recommended skills:
```bash
claude skill install [skill-identifiers]
Consider creating custom skills for:
Start using skills by:
## Best Practices
### Analysis Depth
- **Quick scan:** Run only `analyze_codebase.py` for basic recommendations
- **Comprehensive:** Run both scripts and review references for detailed analysis
- **Context-heavy:** Spend more time on conversation context integration when user has specific goals
### Recommendation Quality
- **Be specific:** Provide concrete use cases, not generic descriptions
- **Be actionable:** Users should know exactly how to use each recommendation
- **Be realistic:** Only suggest skills that genuinely add value
- **Be prioritized:** Rank by actual relevance, not quantity
### Custom Skill Suggestions
- **Focus on patterns:** Suggest skills for workflows that repeat
- **Require specifics:** Need enough information to define useful behavior
- **Provide templates:** Use skill-suggestion-examples.md templates consistently
- **Consider resources:** Ensure suggested bundled resources are feasible
### Conversation Integration
Pay special attention to:
- **User's current task:** What they're working on right now
- **Mentioned pain points:** Frustrations or time-consuming processes
- **Technology references:** Tools and frameworks they discuss
- **Workflow patterns:** How they describe their process
## Handling Edge Cases
### Large Codebases
For projects with >10,000 files:
- Use `--depth` parameter to limit analysis depth
- Focus on root-level and key subdirectories
- Prioritize patterns by frequency and importance
### Monorepos
For monorepo structures:
- Analyze each major component separately
- Note which skills apply to which parts
- Suggest skills for monorepo management if relevant
### Unfamiliar Tech Stacks
When encountering unknown frameworks/patterns:
- Describe the pattern characteristics clearly
- Suggest general-purpose skills that might help
- Note the gap as a potential custom skill opportunity
### Minimal Conversation Context
When conversation history is limited:
- Rely more heavily on codebase analysis
- Provide broader recommendations
- Note that priorities can be refined with more context
- Ask user about their goals if appropriate
## Resources
This skill includes bundled resources for analysis and recommendation generation:
### scripts/
**`analyze_codebase.py`** - Comprehensive codebase analysis tool
- Detects file types, languages, frameworks, and patterns
- Outputs structured analysis data
- Use: `python3 scripts/analyze_codebase.py <directory>`
**`scan_directory.py`** - Quick directory structure scanner
- Provides simplified directory tree
- Identifies important configuration files
- Use: `python3 scripts/scan_directory.py <directory>`
### references/
**`analysis-patterns.md`** - Pattern-to-skill mapping reference
- Maps common codebase patterns to relevant skills
- Organized by category (documents, web, data, DevOps, etc.)
- Load when matching detected patterns to skills
**`skill-suggestion-examples.md`** - Custom skill suggestion templates
- Templates for different skill types
- Example suggestions with full details
- Guidelines for quality suggestions
- Load when generating custom skill recommendations
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.