CLI tool to set up Cursor rules and tasks for vastly improved agentic coding
npm install agentic-coding---
This CLI tool helps you quickly set up a comprehensive set of Cursor rules and task templates for agentic coding. Instead of manually creating rules files, simply run one command to copy a battle-tested collection of rules, actions, guides, tools, and task templates into your project.
The rules work as part of a complete agentic coding system:
- Rules (installed by this CLI) teach the AI how to build software
- Tasks (YAML files) tell the AI what to build next
- Code (your project) gets created and modified through this workflow
This creates a virtuous loop: Ideas become Tasks β Tasks invoke Rules β Rules change Code β passing code closes Tasks.
``bash`
npm install -g agentic-coding
Or clone and link locally:
`bash`
git clone
cd agentic-coding
npm link
Navigate to any project directory and run:
`bash`
agentic-coding setup
This will copy all rules and task templates to your current directory, creating:
``
your-project/
βββ .cursor/
β βββ rules/
β βββ actions/ # Step-by-step playbooks
β βββ behaviours/ # Always-on guardrails
β βββ guides/ # Deep-dive reference docs
β βββ tools/ # External CLI/API cheat-sheets
βββ .tasks/
βββ 0-draft/ # Ideas being refined
βββ now/ # Current sprint work
βββ next/ # Prioritized backlog
βββ later/ # Future considerations
βββ done/ # Completed tasks
βββ README.md # Task system documentation
The rules are designed to work with Cursor's context system:
- Agent-Requested: AI decides when to include based on relevance
- Always: Universal guidance that applies to every interaction
- Auto-Attached: Path-specific rules that load automatically
The rules work best when paired with a structured task system. A task is _both_ a ticket and an executable spec:
`yaml`
id: FEAT-102 # Immutable slug
context: # β Cursor loads these first (critical!)
code:
- src/features/workflowDesigner/β¦
docs:
- .cursor/guides/ui/confirmations.mdc
work_steps: # Ordered, file-level instructions
- step_id: 1
targets:
- src/β¦
instructions: Create DeleteConfirmationDialogβ¦
acceptance: # Proof that we're done
automated:
- command: "npm run test --silent"
description: All unit tests green
manual:
- description: Dialog matches design in Figma link
self_checklist: # "Did I β¦?" reminders
- "No direct DOM manipulation"
Because the schema is explicit, Cursor can:
1. Load context before editing (no blind changes)
2. Execute work_steps sequentially via edit_file, run_terminal_cmd, etc.
3. Prove success by running the same commands you would script in CI
Organize tasks in your project using a simple folder structure:
``
.tasks/
βββ 0-draft/ # Ideas being refined
βββ now/ # Current sprint work
βββ next/ # Prioritized backlog
βββ later/ # Future considerations
βββ done/ # Completed tasks
Or simply update the status: field in each YAML file.
1. Idea appears in chat: "We should support dark mode"
2. Dev runs /Generate Task β CREATE_TASK interviews them and emits THEM-201-dark-mode.yml into 0-draft/next/
3. Team refines acceptance criteria; file moves to EXECUTE_TASK
4. Sprint starts. Agent (or dev) opens task and says "execute" β loads context, edits code, runs tests, ticks checklistdone/
5. All checks pass, PR auto-opens with the diff; task file lands in
6. Any new knowledge becomes a Guide so the next dev never repeats the research
Ideas become Tasks β Tasks invoke Rules β Rules change Code β passing code closes Tasks β a virtuous loop.
To modify or extend the rules:
1. Edit files in the rules/ directoryagentic-coding setup` in a test project
2. Test with
3. Commit changes to version control
1. Fork the repository
2. Create a feature branch
3. Add or modify rules in the appropriate category
4. Test the CLI tool
5. Submit a pull request
---
> Philosophy: Process should accelerate engineers, not handcuff them. These rules turn tacit knowledge into executable guidance, letting humans and AI collaborate more effectively.