dev-rules
v1.3.0
Published
CLI tool to automate Senior Architect setup for new and existing projects
Maintainers
Readme
dev-rules CLI
CLI tool to automate "Senior Architect" setup for new and existing projects.
Installation
# Use directly with npx (no installation required)
npx dev-rules init my-app
# Or install globally
npm install -g dev-rulesCommands
dev-rules init <name>
Scaffold a new project with the latest standards.
dev-rules init my-app
dev-rules init my-app --template ts # TypeScript (default)
dev-rules init my-app --template python # PythonWhat it does:
- Creates project directory with standard structure
- Generates
AGENTS.mdwith strict development rules - Installs relevant rule files to
rules/ - Sets up basic project files (package.json/pyproject.toml, tsconfig, etc.)
dev-rules inject
Add standards to an existing project (current directory).
cd my-existing-project
dev-rules inject
dev-rules inject --force # Overwrite existing filesWhat it does:
- Detects project type (TypeScript, Python, Rust)
- Generates customized
AGENTS.md - Installs relevant rule files to
rules/
dev-rules update
Check and update outdated rules from the source.
dev-rules updateWhat it does:
- Compares local
rules/files with source - Shows which files are outdated
- Prompts user to select files to update
- Fetches and overwrites selected files
Source of Truth
The CLI automatically determines where to get rules from:
- Local: If running from within the
dev-handbookrepo, uses local files - Remote: Otherwise, fetches from GitHub
Development
cd cli
npm install
npm run build
npm run dev -- init test-app