alekspetrov/navigator/nav-skill-creator
Claude Code and agent skill by alekspetrov/navigator
- community
Checking that the SKILL.md file is still in the repository.
Analyze codebase patterns and create custom skills for repetitive workflows. Use when project needs automation or pattern enforcement. Auto-invoke when user says "create a skill for...", "automate this workflow", or "we keep doing X manually".
Install
npx vskill@latest install alekspetrov/navigator/nav-skill-creatorSKILL.md
Navigator Skill Creator
Create project-specific skills by analyzing codebase patterns and automating repetitive workflows.
When to Invoke
Auto-invoke when user mentions:
- "Create a skill for [pattern]"
- "Automate this workflow"
- "We keep doing X manually"
- "Enforce this pattern"
- "Generate boilerplate for [feature type]"
- "We need consistency for [task type]"
What This Does
- Analyzes codebase to understand project patterns
- Identifies best practices from existing code
- Generates skill with:
- Auto-invocation triggers
- Predefined functions
- Templates
- Examples
- Tests the generated skill
- Documents the new skill
Execution Steps
Step 1: Understand Skill Request
Ask clarifying questions:
- What pattern/workflow to automate?
- What triggers should invoke this skill?
- What output format is expected?
- Are there existing examples in the codebase?
Example dialogue:
Step 2: Analyze Codebase Patterns
Use Task agent to explore (saves 60-80% tokens):
What to look for:
- File naming conventions (kebab-case, PascalCase, etc.)
- Directory structure patterns
- Import/export patterns
- Testing patterns
- Configuration patterns
- Documentation patterns
Example for React components:
Step 3: Design Skill Structure
Determine skill metadata:
Plan directory structure:
Design predefined functions:
- What repetitive logic can be automated?
- What validation should be enforced?
- What formatting ensures consistency?
Example functions for frontend-component skill:
component_generator.py- Generate component boilerplatetest_generator.py- Generate test filestyle_generator.py- Generate style filename_validator.py- Validate component naming
Step 4: Generate Skill Files
4.1 Create SKILL.md
4.2 Create Predefined Functions
4.3 Create Examples
4.4 Create Templates
Step 5: Test Generated Skill
5.1 Verify skill loads:
5.2 Test auto-invocation:
5.3 Test execution:
- Run through skill steps
- Verify functions work correctly
- Check output matches template
- Validate generated code follows patterns
5.4 Iterate if needed:
- Fix function bugs
- Improve templates
- Add missing examples
- Clarify instructions
Step 6: Document New Skill
Update project documentation:
- CLAUDE.md - Add to skills section:
- README.md - Add to skills list:
- .agent/system/plugin-patterns.md - Add to skill registry:
Register in plugin.json (if applicable):
Example Workflows
Example 1: Create Skill for Adding API Endpoints
User: "Create a skill for adding REST API endpoints"
Execution:
- Clarify:
- Which framework? (Express, Fastify, etc.)
- Where are routes defined?
- Authentication required?
- Testing strategy?
- Analyze (via Task agent):
``` Find existing API endpoints:
- Routes in api/routes/
- Controllers in api/controllers/
- Middleware in api/middleware/
- Tests in tests/api/
```
- Design:
``yaml name: backend-api-endpoint description: Add new REST API endpoint following project conventions. Use when user says "add endpoint", "create API", or "new route". allowed-tools: Read, Write, Edit, Grep, Glob, Bash ``
- Generate:
`` skills/backend-api-endpoint/ ├── SKILL.md ├── functions/ │ ├── endpoint_generator.py │ └── route_validator.py ├── examples/ │ └── user-endpoint.ts └── templates/ ├── route-template.ts └── test-template.spec.ts ``
- Test:
`` User: "Add a POST /posts endpoint" Skill: Auto-invoked, generates route + controller + test Verify: Files follow project conventions ``
- Document: Update CLAUDE.md, README.md, plugin-patterns.md
Example 2: Create Skill for React Components
User: "Automate creating new React components"
Execution:
- Clarify:
- TypeScript or JavaScript?
- Functional or class components?
- Style approach? (CSS modules, styled-components, etc.)
- Test library? (Jest, React Testing Library, etc.)
- Analyze (via Task agent):
``` Find React components:
- Components in src/components/
- PascalCase naming
- TypeScript (.tsx)
- CSS modules (.module.css)
- Tests with RTL
```
- Design:
``yaml name: frontend-component description: Create new React component with TypeScript, styles, and tests. Use when user says "create component", "add component", or "new React component". allowed-tools: Read, Write, Edit, Grep, Glob, Bash ``
- Generate:
`` skills/frontend-component/ ├── SKILL.md ├── functions/ │ ├── component_generator.py │ ├── test_generator.py │ └── style_generator.py ├── examples/ │ ├── Button.tsx │ └── Button.test.tsx └── templates/ ├── component-template.tsx ├── test-template.tsx └── style-template.module.css ``
- Test:
`` User: "Create a UserProfile component" Skill: Auto-invoked, generates component + test + styles Verify: Props interface, exports, naming correct ``
- Document: Update project docs
Output Format
After generating skill, show summary:
Best Practices
Pattern Analysis
- Use Task agent for codebase exploration (saves 60-80% tokens)
- Look at 3-5 examples minimum (find patterns vs outliers)
- Identify conventions explicitly followed
- Note edge cases in comments
Skill Design
- Keep skills focused (one pattern per skill)
- Clear auto-invocation triggers (3-5 phrases)
- Minimal tools needed (add only what's required)
- Progressive disclosure (details in functions, not main instructions)
Function Creation
- One function = one responsibility
- Type hints and docstrings required
- Handle errors gracefully
- Return structured data (not print statements)
Template Design
- Use clear placeholders (${VAR_NAME})
- Include comments explaining sections
- Follow project style guide
- Provide sensible defaults
Testing
- Test with real project context
- Verify auto-invocation works
- Check output against best practices
- Iterate based on actual usage
Common Patterns to Automate
Backend Patterns
- REST API endpoints
- GraphQL resolvers
- Database migrations
- Background jobs
- Middleware functions
- Authentication guards
Frontend Patterns
- React/Vue/Svelte components
- Redux/Vuex store modules
- API client functions
- Form validation schemas
- Route definitions
- Style component creation
Infrastructure Patterns
- Docker service configs
- CI/CD pipeline steps
- Deployment scripts
- Environment configs
- Monitoring setup
Documentation Patterns
- API documentation
- Component documentation
- Architecture decision records (ADRs)
- Runbook entries
- Changelog entries
Troubleshooting
Skill Not Auto-Invoking
Problem: Skill created but doesn't trigger automatically
Solutions:
- Check description has clear trigger phrases
- Verify
plugin.jsonincludes skill registration - Reload Claude Code to refresh skill index
- Test with exact trigger phrase from description
Functions Not Executing
Problem: Predefined functions throw errors
Solutions:
- Check Python syntax is valid
- Verify function imports are correct
- Test function independently first
- Check error messages in execution logs
Templates Not Matching Output
Problem: Generated code doesn't match project conventions
Solutions:
- Re-analyze codebase for missed patterns
- Update templates with correct structure
- Add more examples showing variations
- Validate against linter/formatter
Skill Too Broad
Problem: Skill tries to do too much
Solutions:
- Split into multiple focused skills
- Remove optional features to separate skills
- Keep core pattern simple
- Add extensions as separate skills
Success Criteria
This skill succeeds when:
- [ ] New skill auto-invokes correctly
- [ ] Generated output follows project conventions
- [ ] Functions execute without errors
- [ ] Templates produce valid code
- [ ] Examples are clear and relevant
- [ ] Documentation is updated
- [ ] Skill saves time vs manual work
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/nav-skill-creator/SKILL.md
Popularity
- Repository stars
- 195
- Repository forks
- 10
- 7-day trend score
- 26
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 22 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/alekspetrov/navigator/nav-skill-creator)