.cursorrules (deprecated)
.cursorrules.cursorrulesroot
Quality
64/100
Scores the file, not the repository.Length
2,688 words
78 headings · 9 code blocksRepository
2
— · pushed 2 days agoLast changed
3 days ago
First indexed 3 days ago.12# === BACKLOG.MD GUIDELINES START ===3# Instructions for the usage of Backlog.md CLI Tool45## Backlog.md: Comprehensive Project Management Tool via CLI67### Assistant Objective89Efficiently manage all project tasks, status, and documentation using the Backlog.md CLI, ensuring all project metadata10remains fully synchronized and up-to-date.1112### Core Capabilities1314✅ **Task Management**: Create, edit, assign, prioritize, and track tasks with full metadata15✅ **Acceptance Criteria**: Granular control with add/remove/check/uncheck by index16✅ **Board Visualization**: Terminal-based Kanban board (`backlog board`) and web UI (`backlog browser`)17✅ **Git Integration**: Automatic tracking of task states across branches18✅ **Dependencies**: Task relationships and subtask hierarchies19✅ **Documentation & Decisions**: Structured docs and architectural decision records20✅ **Export & Reporting**: Generate markdown reports and board snapshots21✅ **AI-Optimized**: `--plain` flag provides clean text output for AI processing2223### Why This Matters to You (AI Agent)24251. **Comprehensive system** - Full project management capabilities through CLI262. **The CLI is the interface** - All operations go through `backlog` commands273. **Unified interaction model** - You can use CLI for both reading (`backlog task 1 --plain`) and writing (28 `backlog task edit 1`)294. **Metadata stays synchronized** - The CLI handles all the complex relationships3031### Key Understanding3233- **Tasks** live in `backlog/tasks/` as `task-<id> - <title>.md` files34- **You interact via CLI only**: `backlog task create`, `backlog task edit`, etc.35- **Use `--plain` flag** for AI-friendly output when viewing/listing36- **Never bypass the CLI** - It handles Git, metadata, file naming, and relationships3738---3940# ⚠️ CRITICAL: NEVER EDIT TASK FILES DIRECTLY. Edit Only via CLI4142**ALL task operations MUST use the Backlog.md CLI commands**4344- ✅ **DO**: Use `backlog task edit` and other CLI commands45- ✅ **DO**: Use `backlog task create` to create new tasks46- ✅ **DO**: Use `backlog task edit <id> --check-ac <index>` to mark acceptance criteria47- ❌ **DON'T**: Edit markdown files directly48- ❌ **DON'T**: Manually change checkboxes in files49- ❌ **DON'T**: Add or modify text in task files without using CLI5051**Why?** Direct file editing breaks metadata synchronization, Git tracking, and task relationships.5253---5455## 1. Source of Truth & File Structure5657### 📖 **UNDERSTANDING** (What you'll see when reading)5859- Markdown task files live under **`backlog/tasks/`** (drafts under **`backlog/drafts/`**)60- Files are named: `task-<id> - <title>.md` (e.g., `task-42 - Add GraphQL resolver.md`)61- Project documentation is in **`backlog/docs/`**62- Project decisions are in **`backlog/decisions/`**6364### 🔧 **ACTING** (How to change things)6566- **All task operations MUST use the Backlog.md CLI tool**67- This ensures metadata is correctly updated and the project stays in sync68- **Always use `--plain` flag** when listing or viewing tasks for AI-friendly text output6970---7172## 2. Common Mistakes to Avoid7374### ❌ **WRONG: Direct File Editing**7576```markdown77# DON'T DO THIS:78791. Open backlog/tasks/task-7 - Feature.md in editor802. Change "- [ ]" to "- [x]" manually813. Add notes directly to the file824. Save the file83```8485### ✅ **CORRECT: Using CLI Commands**8687```bash88# DO THIS INSTEAD:89backlog task edit 7 --check-ac 1 # Mark AC #1 as complete90backlog task edit 7 --notes "Implementation complete" # Add notes91backlog task edit 7 -s "In Progress" -a @agent-k # Multiple commands: change status and assign the task when you start working on the task92```9394---9596## 3. Understanding Task Format (Read-Only Reference)9798⚠️ **FORMAT REFERENCE ONLY** - The following sections show what you'll SEE in task files.99**Never edit these directly! Use CLI commands to make changes.**100101### Task Structure You'll See102103```markdown104---105id: task-42106title: Add GraphQL resolver107status: To Do108assignee: [@sara]109labels: [backend, api]110---111112## Description113114Brief explanation of the task purpose.115116## Acceptance Criteria117118<!-- AC:BEGIN -->119120- [ ] #1 First criterion121- [x] #2 Second criterion (completed)122- [ ] #3 Third criterion123124<!-- AC:END -->125126## Implementation Plan1271281. Research approach1292. Implement solution130131## Implementation Notes132133Summary of what was done.134```135136### How to Modify Each Section137138| What You Want to Change | CLI Command to Use |139|-------------------------|----------------------------------------------------------|140| Title | `backlog task edit 42 -t "New Title"` |141| Status | `backlog task edit 42 -s "In Progress"` |142| Assignee | `backlog task edit 42 -a @sara` |143| Labels | `backlog task edit 42 -l backend,api` |144| Description | `backlog task edit 42 -d "New description"` |145| Add AC | `backlog task edit 42 --ac "New criterion"` |146| Check AC #1 | `backlog task edit 42 --check-ac 1` |147| Uncheck AC #2 | `backlog task edit 42 --uncheck-ac 2` |148| Remove AC #3 | `backlog task edit 42 --remove-ac 3` |149| Add Plan | `backlog task edit 42 --plan "1. Step one\n2. Step two"` |150| Add Notes | `backlog task edit 42 --notes "What I did"` |151152---153154## 4. Defining Tasks155156### Creating New Tasks157158**Always use CLI to create tasks:**159160```bash161# Example162backlog task create "Task title" -d "Description" --ac "First criterion" --ac "Second criterion"163```164165### Title (one liner)166167Use a clear brief title that summarizes the task.168169### Description (The "why")170171Provide a concise summary of the task purpose and its goal. Explains the context without implementation details.172173### Acceptance Criteria (The "what")174175**Understanding the Format:**176177- Acceptance criteria appear as numbered checkboxes in the markdown files178- Format: `- [ ] #1 Criterion text` (unchecked) or `- [x] #1 Criterion text` (checked)179180**Managing Acceptance Criteria via CLI:**181182⚠️ **IMPORTANT: How AC Commands Work**183184- **Adding criteria (`--ac`)** accepts multiple flags: `--ac "First" --ac "Second"` ✅185- **Checking/unchecking/removing** accept multiple flags too: `--check-ac 1 --check-ac 2` ✅186- **Mixed operations** work in a single command: `--check-ac 1 --uncheck-ac 2 --remove-ac 3` ✅187188```bash189# Examples190191# Add new criteria (MULTIPLE values allowed)192backlog task edit 42 --ac "User can login" --ac "Session persists"193194# Check specific criteria by index (MULTIPLE values supported)195backlog task edit 42 --check-ac 1 --check-ac 2 --check-ac 3 # Check multiple ACs196# Or check them individually if you prefer:197backlog task edit 42 --check-ac 1 # Mark #1 as complete198backlog task edit 42 --check-ac 2 # Mark #2 as complete199200# Mixed operations in single command201backlog task edit 42 --check-ac 1 --uncheck-ac 2 --remove-ac 3202203# ❌ STILL WRONG - These formats don't work:204# backlog task edit 42 --check-ac 1,2,3 # No comma-separated values205# backlog task edit 42 --check-ac 1-3 # No ranges206# backlog task edit 42 --check 1 # Wrong flag name207208# Multiple operations of same type209backlog task edit 42 --uncheck-ac 1 --uncheck-ac 2 # Uncheck multiple ACs210backlog task edit 42 --remove-ac 2 --remove-ac 4 # Remove multiple ACs (processed high-to-low)211```212213**Key Principles for Good ACs:**214215- **Outcome-Oriented:** Focus on the result, not the method.216- **Testable/Verifiable:** Each criterion should be objectively testable217- **Clear and Concise:** Unambiguous language218- **Complete:** Collectively cover the task scope219- **User-Focused:** Frame from end-user or system behavior perspective220221Good Examples:222223- "User can successfully log in with valid credentials"224- "System processes 1000 requests per second without errors"225- "When passing \n characters in description, plan, notes, the system correctly handles them by converting to new lines"226227Bad Example (Implementation Step):228229- "Add a new function handleLogin() in auth.ts"230- "Define expected behavior and document supported input patterns"231232### Task Breakdown Strategy2332341. Identify foundational components first2352. Create tasks in dependency order (foundations before features)2363. Ensure each task delivers value independently2374. Avoid creating tasks that block each other238239### Task Requirements240241- Tasks must be **atomic** and **testable** or **verifiable**242- Each task should represent a single unit of work for one PR243- **Never** reference future tasks (only tasks with id < current task id)244- Ensure tasks are **independent** and don't depend on future work245246---247248## 5. Implementing Tasks249250### 5.1. First step when implementing a task251252The very first things you must do when you take over a task are:253254* set the task in progress255* assign it to yourself256257```bash258# Example259backlog task edit 42 -s "In Progress" -a @{myself}260```261262### 5.2. Create an Implementation Plan (The "how")263264Previously created tasks contain the why and the what. Once you are familiar with that part you should think about a265plan on **HOW** to tackle the task and all its acceptance criteria. This is your **Implementation Plan**.266First do a quick check to see if all the tools that you are planning to use are available in the environment you are267working in.268When you are ready, write it down in the task so that you can refer to it later.269270```bash271# Example272backlog task edit 42 --plan "1. Research codebase for references\n2Research on internet for similar cases\n3. Implement\n4. Test"273```274275## 5.3. Implementation276277Once you have a plan, you can start implementing the task. This is where you write code, run tests, and make sure278everything works as expected. Follow the acceptance criteria one by one and MARK THEM AS COMPLETE as soon as you279finish them.280281### 5.4 Implementation Notes (PR description)282283When you are done implementing a tasks you need to prepare a PR description for it.284Because you cannot create PRs directly, write the PR as a clean description in the task notes.285286```bash287# Example288backlog task edit 42 --notes "Implemented using pattern X because Reason Y, modified files Z and W"289```290291**IMPORTANT**: Do NOT include an Implementation Plan when creating a task. The plan is added only after you start the292implementation.293294- Creation phase: provide Title, Description, Acceptance Criteria, and optionally labels/priority/assignee.295- When you begin work, switch to edit, set the task in progress and assign to yourself296 `backlog task edit <id> -s "In Progress" -a "..."`.297- Think about how you would solve the task and add the plan: `backlog task edit <id> --plan "..."`.298- Add Implementation Notes only after completing the work: `backlog task edit <id> --notes "..."`.299300## Phase discipline: What goes where301302- Creation: Title, Description, Acceptance Criteria, labels/priority/assignee.303- Implementation: Implementation Plan (after moving to In Progress and assigning to yourself).304- Wrap-up: Implementation Notes (Like a PR description), AC and Definition of Done checks.305306**IMPORTANT**: Only implement what's in the Acceptance Criteria. If you need to do more, either:3073081. Update the AC first: `backlog task edit 42 --ac "New requirement"`3092. Or create a new follow up task: `backlog task create "Additional feature"`310311---312313## 6. Typical Workflow314315```bash316# 1. Identify work317backlog task list -s "To Do" --plain318319# 2. Read task details320backlog task 42 --plain321322# 3. Start work: assign yourself & change status323backlog task edit 42 -s "In Progress" -a @myself324325# 4. Add implementation plan326backlog task edit 42 --plan "1. Analyze\n2. Refactor\n3. Test"327328# 5. Work on the task (write code, test, etc.)329330# 6. Mark acceptance criteria as complete (supports multiple in one command)331backlog task edit 42 --check-ac 1 --check-ac 2 --check-ac 3 # Check all at once332# Or check them individually if preferred:333# backlog task edit 42 --check-ac 1334# backlog task edit 42 --check-ac 2335# backlog task edit 42 --check-ac 3336337# 7. Add implementation notes (PR Description)338backlog task edit 42 --notes "Refactored using strategy pattern, updated tests"339340# 8. Mark task as done341backlog task edit 42 -s Done342```343344---345346## 7. Definition of Done (DoD)347348A task is **Done** only when **ALL** of the following are complete:349350### ✅ Via CLI Commands:3513521. **All acceptance criteria checked**: Use `backlog task edit <id> --check-ac <index>` for each3532. **Implementation notes added**: Use `backlog task edit <id> --notes "..."`3543. **Status set to Done**: Use `backlog task edit <id> -s Done`355356### ✅ Via Code/Testing:3573584. **Tests pass**: Run test suite and linting3595. **Documentation updated**: Update relevant docs if needed3606. **Code reviewed**: Self-review your changes3617. **No regressions**: Performance, security checks pass362363⚠️ **NEVER mark a task as Done without completing ALL items above**364365---366367## 8. Quick Reference: DO vs DON'T368369### Viewing Tasks370371| Task | ✅ DO | ❌ DON'T |372|--------------|-----------------------------|---------------------------------|373| View task | `backlog task 42 --plain` | Open and read .md file directly |374| List tasks | `backlog task list --plain` | Browse backlog/tasks folder |375| Check status | `backlog task 42 --plain` | Look at file content |376377### Modifying Tasks378379| Task | ✅ DO | ❌ DON'T |380|---------------|--------------------------------------|-----------------------------------|381| Check AC | `backlog task edit 42 --check-ac 1` | Change `- [ ]` to `- [x]` in file |382| Add notes | `backlog task edit 42 --notes "..."` | Type notes into .md file |383| Change status | `backlog task edit 42 -s Done` | Edit status in frontmatter |384| Add AC | `backlog task edit 42 --ac "New"` | Add `- [ ] New` to file |385386---387388## 9. Complete CLI Command Reference389390### Task Creation391392| Action | Command |393|------------------|-------------------------------------------------------------------------------------|394| Create task | `backlog task create "Title"` |395| With description | `backlog task create "Title" -d "Description"` |396| With AC | `backlog task create "Title" --ac "Criterion 1" --ac "Criterion 2"` |397| With all options | `backlog task create "Title" -d "Desc" -a @sara -s "To Do" -l auth --priority high` |398| Create draft | `backlog task create "Title" --draft` |399| Create subtask | `backlog task create "Title" -p 42` |400401### Task Modification402403| Action | Command |404|------------------|---------------------------------------------|405| Edit title | `backlog task edit 42 -t "New Title"` |406| Edit description | `backlog task edit 42 -d "New description"` |407| Change status | `backlog task edit 42 -s "In Progress"` |408| Assign | `backlog task edit 42 -a @sara` |409| Add labels | `backlog task edit 42 -l backend,api` |410| Set priority | `backlog task edit 42 --priority high` |411412### Acceptance Criteria Management413414| Action | Command |415|---------------------|-----------------------------------------------------------------------------|416| Add AC | `backlog task edit 42 --ac "New criterion" --ac "Another"` |417| Remove AC #2 | `backlog task edit 42 --remove-ac 2` |418| Remove multiple ACs | `backlog task edit 42 --remove-ac 2 --remove-ac 4` |419| Check AC #1 | `backlog task edit 42 --check-ac 1` |420| Check multiple ACs | `backlog task edit 42 --check-ac 1 --check-ac 3` |421| Uncheck AC #3 | `backlog task edit 42 --uncheck-ac 3` |422| Mixed operations | `backlog task edit 42 --check-ac 1 --uncheck-ac 2 --remove-ac 3 --ac "New"` |423424### Task Content425426| Action | Command |427|------------------|----------------------------------------------------------|428| Add plan | `backlog task edit 42 --plan "1. Step one\n2. Step two"` |429| Add notes | `backlog task edit 42 --notes "Implementation details"` |430| Add dependencies | `backlog task edit 42 --dep task-1 --dep task-2` |431432Descriptions support literal newlines; shell examples may show escaped `\\n`, but enter a single `\n` to create a newline.433434### Task Operations435436| Action | Command |437|--------------------|----------------------------------------------|438| View task | `backlog task 42 --plain` |439| List tasks | `backlog task list --plain` |440| Filter by status | `backlog task list -s "In Progress" --plain` |441| Filter by assignee | `backlog task list -a @sara --plain` |442| Archive task | `backlog task archive 42` |443| Demote to draft | `backlog task demote 42` |444445---446447## Common Issues448449| Problem | Solution |450|----------------------|--------------------------------------------------------------------|451| Task not found | Check task ID with `backlog task list --plain` |452| AC won't check | Use correct index: `backlog task 42 --plain` to see AC numbers |453| Changes not saving | Ensure you're using CLI, not editing files |454| Metadata out of sync | Re-edit via CLI to fix: `backlog task edit 42 -s <current-status>` |455456---457458## Remember: The Golden Rule459460**🎯 If you want to change ANYTHING in a task, use the `backlog task edit` command.**461**📖 Use CLI to read tasks, exceptionally READ task files directly, never WRITE to them.**462463Full help available: `backlog --help`464465# === BACKLOG.MD GUIDELINES END ===466
Also in wodsmith/thewodapp
Diff this repo’s formatsOne repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| wodsmith/thewodapp.claude/hooks/CLAUDE.md · 2 | CLAUDE.md | setupteststyle | 73/100 | 3 days ago | |
| wodsmith/thewodappAGENTS.md · 2 | AGENTS.md | teststylearchdo-not+1 | 73/100 | 3 days ago | |
| wodsmith/thewodappCLAUDE.md · 2 | CLAUDE.md | buildtestlint-formatstyle+7 | 96/100 | 3 days ago |
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| HerringtonDarkholme/megarepo.cursorrules · 17 | .cursorrules | setupbuildtestlint-format+13 | 96/100 | 3 days ago | |
| survivorforge/cursor-rulesrules/devops-docker/.cursorrules · 16 | .cursorrules | setupbuildteststyle+4 | 93/100 | 2 days ago | |
| survivorforge/cursor-rulesrules/devops-infrastructure/.cursorrules · 16 | .cursorrules | buildteststylesecurity+3 | 93/100 | 2 days ago | |
| survivorforge/cursor-rulesrules/api-microservices/.cursorrules · 16 | .cursorrules | buildteststylearch+5 | 92/100 | 2 days ago | |
| fall-out-bug/sdp_lab.cursorrules · 0 | .cursorrules | setupbuildtestlint-format+3 | 86/100 | 3 days ago | |
| bashdeban/fastmind.cursorrules · 5 | .cursorrules | buildtestlint-formattypes+5 | 81/100 | 3 days ago | |
| storybookjs/storybook.cursorrules · 91k | .cursorrules | teststylearchdo-not+1 | 78/100 | 3 days ago | |
| forem/forem.cursorrules · 23k | .cursorrules | teststyletypesdatabase+4 | 71/100 | 3 days ago |
