skillbuilder
v1.0.1
Published
CLI tool to create and maintain project-level AI instructions across multiple editors
Maintainers
Readme
SkillBuilder
CLI tool to create and maintain project-level AI instructions across multiple editors
SkillBuilder helps developers create and maintain consistent AI rules/instructions as Markdown files for Cursor, Windsurf, VS Code Copilot, and Antigravity.
Features
- 🎯 Multi-editor support: Generate rules for Cursor, Windsurf, VS Code Copilot, and Antigravity
- 📝 Interactive TUI: Beautiful terminal interface with arrow key navigation
- 🔄 Watch mode: Auto-sync rules when documentation changes
- 🔒 Safe merging: Preserves manual edits outside managed sections
- 📚 Documentation ingestion: Fetch from URLs and local files
- 🎨 Style presets: Strict, balanced, or minimal rule templates
- 🔍 Diagnostics: Built-in doctor and lint commands
Installation
# From npm (once published)
npm install -g skillbuilder
# Or install from GitHub
npm install -g https://github.com/praveencs87/skillbuilderQuick Start
- Initialize in your repository:
cd your-project
skillbuilder init- Create a skill:
skillbuilder create "frontend-rules" --goal "Next.js app guidelines"- Add documentation sources:
skillbuilder add-url https://docs.example.com/architecture --skill frontend-rules
skillbuilder add-file ./docs/CONTRIBUTING.md --skill frontend-rules- Sync rules to editors:
skillbuilder sync- Watch for changes:
skillbuilder watchCommands
skillbuilder init
Bootstrap SkillBuilder in a repository.
Options:
--targets <targets>- Comma-separated list (cursor,windsurf,vscode,antigravity)--style <style>- Rule style (strict, balanced, minimal)--non-interactive- Skip prompts for CI
Example:
skillbuilder init --targets cursor,windsurf --style balancedskillbuilder create [name]
Create a new skill/rule pack.
Options:
--goal <goal>- Goal statement--scope <scope>- Comma-separated path globs--non-interactive- Skip prompts
Example:
skillbuilder create "backend-rules" --goal "API development guidelines" --scope "src/api/**"skillbuilder add-url <url>
Add a URL as a documentation source.
Options:
--skill <skill-id>- Skill ID to add the URL to
Example:
skillbuilder add-url https://nextjs.org/docs --skill frontend-rulesskillbuilder add-file <file>
Add a local file as a documentation source.
Options:
--skill <skill-id>- Skill ID to add the file to
Example:
skillbuilder add-file ./docs/ARCHITECTURE.md --skill coreskillbuilder build
Build skill content from sources (fetches URLs, reads files, caches).
Example:
skillbuilder buildskillbuilder sync
Generate and update editor-specific rules files.
Options:
--targets <targets>- Only sync specific targets
Example:
skillbuilder sync --targets cursor,windsurfskillbuilder watch
Watch for changes and auto-sync.
Example:
skillbuilder watchskillbuilder doctor
Diagnose configuration issues.
Example:
skillbuilder doctorskillbuilder lint
Lint skill configuration for errors and warnings.
Example:
skillbuilder lintConfiguration
SkillBuilder uses skillbuilder.json in your repository root:
{
"version": "1.0",
"targets": ["cursor", "windsurf", "vscode", "antigravity"],
"style": "balanced",
"skills": [
{
"id": "core",
"name": "Core Project Rules",
"goal": "How to work in this repo safely",
"scopes": [],
"sources": {
"urls": ["https://docs.example.com"],
"files": ["./README.md"]
},
"constraints": {
"tone": "concise",
"safety": "strict",
"formatting": {
"noEmDash": true
}
}
}
],
"output": {
"cursor": { "dir": ".cursor/rules" },
"windsurf": { "dir": ".windsurf/rules", "global": ".windsurf/global_rules.md" },
"vscode": { "file": ".github/copilot-instructions.md" },
"antigravity": { "dir": ".antigravity/rules" }
},
"limits": {
"maxUrlChars": 12000,
"maxFileChars": 12000,
"maxGeneratedCharsPerFile": 18000
}
}Rule Styles
Strict
- Short, focused rules
- Cautious about refactors
- Always run tests
- Clear do/don't sections
Balanced (recommended)
- Includes repo commands
- Structure hints
- Moderate refactors allowed
- Comprehensive documentation
Minimal
- High-level constraints only
- Safety rules
- Minimal verbosity
Output Formats
Cursor
Generates .cursor/rules/*.md files, one per skill.
Windsurf
Generates .windsurf/rules/*.md files plus optional global_rules.md.
VS Code / GitHub Copilot
Generates .github/copilot-instructions.md with all skills merged.
Antigravity
Generates .antigravity/rules/*.md files.
Safe Merging
SkillBuilder uses marker-based merging to preserve manual edits:
<!-- skillbuilder:begin core -->
... generated content ...
<!-- skillbuilder:end core -->
Your manual notes here are preserved!CI/CD Integration
Use non-interactive mode in CI:
# Initialize
skillbuilder init --targets cursor,windsurf --style balanced --non-interactive
# Create skill
skillbuilder create "ci-rules" --goal "CI guidelines" --non-interactive
# Sync
skillbuilder sync
# Lint
skillbuilder lintMonorepo Support
Use scopes to target specific paths:
skillbuilder create "web-app" --scope "apps/web/**"
skillbuilder create "api" --scope "services/api/**"Troubleshooting
Run diagnostics:
skillbuilder doctorCommon issues:
- Not in git repo: Initialize git first
- Missing config: Run
skillbuilder init - Markers corrupted: Check for manual edits inside markers
- Cache issues: Delete
.skillbuilder/cacheand rebuild
Development
# Install dependencies
npm install
# Build
npm run build
# Run locally
node dist/cli.js init
# Run tests
npm test
# Watch mode
npm run devLicense
MIT
Contributing
Contributions welcome! Please read CONTRIBUTING.md first.
