Repository navigation
Closed
Labels
area:workflowDeveloper workflow, commands, rules, skillseffort:largeMore than 4 hours or multi-sessionfeatureNew feature or requestpriority:mediumImportant but not urgentsemver:minorNew feature, backward-compatible
Milestone
Description
Description
Add new Cursor commands (.cursor/commands/) and rules (.cursor/rules/) to improve coding agent effectiveness across the full development lifecycle — from brainstorming and issue creation through implementation, testing, review, and CI debugging.
Follows up on #61 which added issue templates and changelog guidance. This issue covers the remaining agent workflow gaps.
Problem Statement
Currently, coding agents lack structured guidance for several common workflows:
- Brainstorming before implementation — agents jump straight into coding without exploring requirements, alternatives, or validating design decisions with the user
- Starting work on an issue — the
branch-naming.mdcrule provides passive guidance but there is no invokable command to run the fullgh issue developworkflow - Creating issues — no command to auto-detect template type, populate fields, and use correct labels
- Test-driven development — no enforcement of write-test-first discipline; agents default to code-first
- Self-review before PR — no structured review step between committing and submitting a PR
- Verification before claiming done — agents claim "done" without running tests or checking evidence
- CI diagnosis — no workflow for fetching failed CI logs and tracing root cause
- Systematic debugging — agents tend to guess-and-fix instead of following root cause analysis
- Plan-based execution — no structured way to break large features into tasks with checkpoints
Proposed Commands and Rules
Tier 1 — High impact, daily use
| Command/Rule | Type | Purpose |
|---|---|---|
brainstorm.md |
Command | Brainstorm before implementation: explore project context, ask critical questions one at a time, propose 2-3 approaches with trade-offs, present design in sections for validation, save design doc. Prevents agents from jumping straight into code. Inspired by superpowers:brainstorming. |
start-issue.md |
Command | Start work on an issue: read issue, gh issue develop, checkout branch, restore context |
create-issue.md |
Command | Create a GitHub issue: detect template type, populate fields, use correct labels |
tdd.md + tdd.mdc |
Command + Rule | Test-driven development: RED-GREEN-REFACTOR cycle using existing just test-* recipes. Inspired by superpowers:test-driven-development. |
review.md |
Command | Self-review: diff against base, check acceptance criteria, changelog, commit messages; structured severity report. Inspired by superpowers:requesting-code-review. |
verify.md |
Command | Verification before completion: run tests, check evidence, no "should pass" claims. Inspired by superpowers:verification-before-completion. |
Tier 2 — CI/GitHub integration
| Command | Type | Purpose |
|---|---|---|
check-ci.md |
Command | Check CI status: gh pr checks / gh run list, show pass/fail per workflow |
fix-ci.md |
Command | Diagnose failing CI: gh run view --log-failed, trace root cause, propose fix. Inspired by superpowers:systematic-debugging (CI-scoped). |
Tier 3 — Planning and debugging
| Command | Type | Purpose |
|---|---|---|
plan.md |
Command | Write implementation plan: break issue into bite-sized tasks with file paths and verification steps. Inspired by superpowers:writing-plans. |
execute-plan.md |
Command | Execute plan in batches with human checkpoints, sequential subagent dispatch. Inspired by superpowers:executing-plans. |
debug.md |
Command | Systematic debugging: 4-phase root cause process (investigate, analyze, hypothesize, implement). Inspired by superpowers:systematic-debugging. |
Future — Workflow redesign
| Item | Type | Purpose |
|---|---|---|
| Worktree-based development | Workflow change | git worktree support for parallel subagent execution; requires updating start-issue, submit-pr, after-pr-merge. Inspired by superpowers:using-git-worktrees. |
Brainstorm command details
The brainstorm.md command enforces a design-before-code discipline:
- Explore project context — read files, docs, recent commits to understand current state
- Ask clarifying questions — one at a time, prefer multiple choice; understand purpose, constraints, success criteria
- Propose 2-3 approaches — with trade-offs and a recommended option
- Present design in sections — scaled to complexity, get user approval after each section
- Save design doc — write to
docs/plans/YYYY-MM-DD-<name>-design.md - Transition to planning — hand off to
plan.mdfor implementation breakdown
Key principles:
- One question at a time (don't overwhelm)
- YAGNI ruthlessly — remove unnecessary features
- No code until design is approved
- Be ready to revise when something doesn't make sense
Inspiration
- obra/superpowers — agentic skills framework with brainstorming, TDD, systematic debugging, verification-before-completion, subagent-driven development, and code review skills
- Existing repo commands (
commit-msg.md,submit-pr.md,after-pr-merge.md) establish the pattern
Acceptance Criteria
- Tier 1 commands and rules created and functional (including
brainstorm.md) - Tier 2 commands created and functional
- Tier 3 commands created and functional
- Existing commands (
submit-pr.md) updated to referencereview.mdas prerequisite - CHANGELOG.md updated under
## Unreleased / ### Added
Implementation Notes
- Each command should follow the style of existing commands (see
commit-msg.md,submit-pr.md) - Rules (
.mdc) should usealwaysApply: truefor behavioral rules like TDD - Commands that invoke
ghCLI should handle common error cases (auth, permissions, rate limits) - The worktree workflow is intentionally deferred — it requires updating multiple existing commands and rules
- Consider splitting this into sub-issues per tier if the scope is too large for one branch
- The
brainstorm.mdcommand should be the natural entry point beforeplan.mdandexecute-plan.md
Metadata
Metadata
Assignees
Labels
area:workflowDeveloper workflow, commands, rules, skillseffort:largeMore than 4 hours or multi-sessionfeatureNew feature or requestpriority:mediumImportant but not urgentsemver:minorNew feature, backward-compatible
Activity
feat: add always-on coding principles rule
feat: add agent-driven development commands and TDD rule
feat: add agent-driven development commands and TDD rule
chore: resolve merge conflict in CHANGELOG.md
fix: remove sync-workspace hook from workspace template
fix: use sed/awk for hook removal to preserve YAML structure
chore: update sync-manifest and fix pre-commit formatting issues
fix: add COMMIT_MESSAGE_STANDARD.md to workspace sync
chore: merge feature/61 (agent-friendly templates and changelog rule)
gerchowl commentedon Feb 18, 2026
Design: Issue-Comment-Based Agent Plans
Date: 2026-02-18
Context: PR #68 discussion — gerchowl + c-vigo agreed to move plan/design storage from local files and issue bodies to GitHub issue comments.
Core Principle
The GitHub issue comment is the single source of truth for both implementation plans (from
/plan) and designs (from/brainstorm). No local plan files. The agent always reads from and writes to GitHub viagh api. Async-issuesworkflow trigger (fire-and-forget) provides eventual local availability.Changes to
/planPrecondition — unchanged (must be on an issue branch).
New workflow:
gh issue view).gh api. Comment starts with##(H2) to avoid header-level bumping in synced files.gh workflow run sync-issues.yml -f target-branch=<branch>.docs/plans/<issue_number>-plan.mdentirely.Comment format:
Changes to
/execute-planPrecondition — unchanged (must be on an issue branch).
New workflow:
gh api repos/{owner}/{repo}/issues/{number}/comments. Find the comment containing## Implementation Plan. Parse the task list.gh apito check off completed tasks (- [ ]→- [x]).Changes to
/brainstormCurrent: saves design to
docs/plans/YYYY-MM-DD-<name>-design.mdand commits it.New workflow:
##). Replaces local file + commit./plan— unchanged.API Calls
gh api repos/{owner}/{repo}/issues/{number}/comments -f body="..."gh api repos/{owner}/{repo}/issues/{number}/comments --jq '...'gh api repos/{owner}/{repo}/issues/comments/{comment_id} -X PATCH -f body="..."gh workflow run sync-issues.yml -f target-branch=<branch>Edge Cases
## Implementation Plan(plans) or## Design(brainstorm). If multiple exist, use the most recent.What Gets Removed
docs/plans/*-plan.mdpattern and its.gitignoreentry/planand/execute-plan/brainstormrefactor: move plan and design storage to GitHub issue comments
refactor: enforce per-phase TDD commits for audit compliance
refactor: sync claim-issue rename to workspace template
feat: agent-driven development workflows, templates, and declarative …
chore: release 0.3.0 (#270)