Quickstart¶
1. Install¶
2. Pick your path¶
A) npx / pip — zero-clone workflow¶
cd /path/to/your/project
# Apply a preset
npx ds-agent-rules preset llm-project # npm
ds-agent-rules preset llm-project # pip
# Or interactive setup
npx ds-agent-rules new-project
B) Interactive setup (git clone) — guided walkthrough¶
Creates .ai-rules.yaml, syncs rules, and scaffolds directories.
C) One-liner with preset — fastest for common setups¶
D) Config file — recommended for ongoing projects¶
cd /path/to/your/project
~/.ai-rules/sync.sh --init # creates .ai-rules.yaml template
vim .ai-rules.yaml # edit to match your project
~/.ai-rules/sync.sh # sync (auto-reads config)
3. Useful flags¶
./sync.sh --list # show all overlays, snippets, presets
./sync.sh --dry-run ds-ml rag # preview without writing files
./sync.sh --diff # show unified diff before applying changes
./sync.sh --validate # check project structure against rules
./sync.sh --output-dir /other/proj # write to a different project
./sync.sh --team ./team-rules # include team-specific rules
4. Make targets¶
make help # show all available targets
make lint # run ShellCheck on all scripts
make test # run bats test suite
make validate # validate current project
make ci # lint + test (same as CI)