A command-line tool that helps developers pull curated AI agent rules, skills, and workflows from a centralized repository into their projects. No more hunting through scattered rule files β get the exact rules you need for your tech stack with a simple command.
# Install and configure rules for your project (one command!)
npx @quanvo99/ai-rules@latest initOr use the Web UI to visually select rules and generate the CLI command.
AI Rules CLI solves the problem of scattered, hard-to-find AI agent rule files across different projects. Instead of manually copying rules from various sources, you can:
- Discover rules, skills, and workflows for your AI agent
- Install only what you need for your specific project
- Update to the latest versions with a single command
- Add more content to an existing project without re-initializing
| Agent | Rules | Skills | Workflows |
|---|---|---|---|
| Cursor | β | β | β |
| Claude Code | β | β | β |
| Antigravity | β | β | β |
| Windsurf | β | β | β |
| Aider | β | β | β |
| Continue | β | β | β |
| Cody | β | β | β |
Interactive setup wizard β or use flags for non-interactive mode:
# Interactive (prompts for everything)
npx @quanvo99/ai-rules@latest init
# Non-interactive with specific selections
npx @quanvo99/ai-rules@latest init --agent cursor --categories typescript,react-hooks --overwrite-strategy force
# With skills and workflows
npx @quanvo99/ai-rules@latest init --agent antigravity --categories all --skills tdd-design,bdd-design --workflows feature-development
# Skip certain content types
npx @quanvo99/ai-rules@latest init --agent cursor --no-skills --no-workflowsRe-install all content tracked in .ai-rules.json with latest versions:
npx @quanvo99/ai-rules@latest pull
npx @quanvo99/ai-rules@latest pull --overwrite-strategy skipAdd content to an already-initialized project:
npx @quanvo99/ai-rules@latest add --categories testing,database
npx @quanvo99/ai-rules@latest add --skills test-quality-reviewer --workflows commit-plan
npx @quanvo99/ai-rules@latest add --categories all --overwrite-strategy forcePublish a local skill directory as a private, scoped skill (see Private Skills). Requires the AI_RULES_SECRET environment variable. (Renamed from the old top-level upload command β upload no longer exists.)
AI_RULES_SECRET=β¦ npx @quanvo99/ai-rules@latest skill upload ./path/to/skill-dir --agent claude-code --scope work
AI_RULES_SECRET=β¦ npx @quanvo99/ai-rules@latest skill upload ./my-skill --agent cursor --scope work,client-xThe directory must contain a SKILL.md; any other files are uploaded as supporting files. The skill name is the directory's basename, and re-uploading the same {agent, name} replaces it.
Manage private skills you've already uploaded. Requires AI_RULES_SECRET:
AI_RULES_SECRET=β¦ npx @quanvo99/ai-rules@latest skill list
AI_RULES_SECRET=β¦ npx @quanvo99/ai-rules@latest skill update <id> --description "new description"
AI_RULES_SECRET=β¦ npx @quanvo99/ai-rules@latest skill delete <id>skill list prints each private skill's id/name/agent/scopes. skill update <id> accepts --name / --content / --content-file / --description / --scope / --global β at least one is required, and only the fields you pass change (--description "" clears it). skill delete <id> removes a skill permanently. Both update and delete exit non-zero on an unknown <id>.
Manage a KB entry by id. Requires AI_RULES_SECRET:
AI_RULES_SECRET=β¦ npx @quanvo99/ai-rules@latest kb update <id> --title "new title"
AI_RULES_SECRET=β¦ npx @quanvo99/ai-rules@latest kb delete <id>kb update <id> accepts --title / --body / --body-file / --scope / --global β at least one is required, and only the fields you pass change. kb delete <id> removes an entry permanently. Both exit non-zero on an unknown <id>.
Public skills are available to everyone. Private skills are stored separately and only returned to callers who present a matching secret and scope β so you can keep team- or client-specific skills out of the public catalog while still installing them with the same CLI.
Two pieces of state unlock them, and both are required:
AI_RULES_SECRETβ a shared secret in your environment, sent as thex-ai-rules-secretheader.scopeβ a tag in.ai-rules.json, sent as thex-ai-rules-scopeheader.
| Secret | Scope | Result |
|---|---|---|
| β | β (matching) | Public + scoped private skills |
| β | β | Public only |
| β | β | Public only (scope alone unlocks nothing) |
On any auth failure the server silently returns the public-only payload β there is no error and no existence leak. So if private skills don't appear after a pull, re-check the secret value and the scope rather than looking for an error.
# 1. Make the secret available (keep it out of version control)
export AI_RULES_SECRET='β¦'
# 2. Add a scope to .ai-rules.json (see Configuration), then pull
npx @quanvo99/ai-rules@latest pull # now fetches public + scoped private skillsTip: ask your AI agent to run the
setup-private-skillsskill β it walks through the secret, scope, upload, and pull steps for you.
Categories include: typescript, react-hooks, react-server-components, component-architecture, styling, testing, database, meta, url-state, and more.
Reusable capability packages: TDD, BDD, code refactoring, context7 integration, web search, create-PR, implementation planning, test quality review, private-skill setup, and more.
Step-by-step procedural guides: feature development, commit planning, code review, repo knowledge generation, structured brainstorming.
The system uses a local-first architecture:
- Next.js API Server reads content from the local filesystem and caches in MongoDB
- CLI Tool fetches from the API server and installs to the correct agent-specific paths
- Web UI provides visual rule selection with CLI command and ChatGPT prompt generation
Content Repository (/rules, /skills, /workflows)
β (local filesystem)
API Server (Next.js + MongoDB cache)
β (HTTP API)
CLI Tool β installs to project
# Start API server
npm run dev:api
# Run CLI in dev mode
npm run dev init
# Run tests (API server must be running)
npm test
# Lint
npm run lintThe CLI creates a .ai-rules.json file in your project root:
{
"version": "1.0",
"agent": "antigravity",
"categories": ["typescript", "react-hooks"],
"skills": ["tdd-design", "bdd-design"],
"workflows": ["feature-development", "commit-plan"]
}The optional scope field opts the project into private skills. When set (and paired with AI_RULES_SECRET), pull/add also fetch private skills tagged with that scope:
{
"agent": "claude-code",
"scope": "work",
"skills": []
}- Repository Knowledge β Comprehensive codebase docs
- System Design β Detailed architecture
- ADRs β Architecture Decision Records
- Manifest Schema β Rule manifest format
- Tag Guidelines β How to tag rule categories
MIT License β see LICENSE for details.
Made with β€οΈ for the developer community