/dev-pipeline:devfrom dev-pipeline
End-to-end autonomous development: goal → plan → TDD → implement → validate → PR → address feedback → wait for merge → close tracking. Human approves plan and merge only. Example: /dev implement rate limiting
Ships in dev-pipeline. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
One skill to go from goal to merged PR. The human intervenes at two gates:
Everything else runs autonomously: test writing, implementation, validation, PR creation, CI monitoring, addressing review comments.
Commit early and often. Push after every commit.
style: fix lint/formatting)/dev implement rate limiting for the admin API/dev https://trello.com/c/abc123If no argument, ask: "What should I build? (goal or Trello card URL)"
Run pwd. Must contain .claude/worktrees/.
If not: STOP. "Not in a worktree. Run claude --worktree first, then /dev again."
If .env doesn't exist:
cp ../../.env .envcp .env.example .envTrello card (URL contains trello.com/c/):
~/bin/trello card <ID>~/bin/trello move <ID> <LIST_ID> (look up via ~/bin/trello lists <BOARD_ID>)Plain text: use as-is.
The plan goes through two gates: structural validation by the PreToolUse hook on ExitPlanMode (mechanical), then user content review (judgment). The hook will deny any plan missing the required sections and tell you which sections to add.
dev/context/ for learnings, decisions, gotchasDraft a plan containing all four required sections (see ~/.claude/CLAUDE.md → "Plan Mode" for the full spec):
def test_block_indices_are_monotonic or tests/.../test_x.py::test_y. Not "we'll add tests" — the name commits the plan to a concrete failure mode.## External Contracts (or ## Invariants) — each external API/protocol this change touches and the invariant it must preserve. Write - None if genuinely none.## Assumptions — one falsifiable bullet per load-bearing assumption. Write - None if genuinely none.Plus the tracking content you'll persist downstream: goal, approach, test strategy, acceptance criteria, branch/PR/Trello.
Call ExitPlanMode with the plan as the plan argument. The PreToolUse hook (~/.claude/hooks/check_plan_quality.sh) validates the four required sections before the user ever sees the plan. If any section is missing, the hook denies with a reason naming what to add — revise and resubmit.
Once the hook passes, the user reviews the plan content via the native plan-mode approval flow. STOP and wait for approval. Adjust the plan if they have feedback.
After user approval, write the plan to dev/OBJECTIVE.md as the on-disk artifact for downstream stages. Use this template (which includes the required sections so the persisted file matches what the user approved):
# Objective
<One-sentence goal>
## Description
<Context informed by codebase research>
## Approach
- <Step 1: what to change and why>
- <Step 2: ...>
- <Step 3: ...>
## Hot-path sequence
<fenced code block with literal events / DDL / request-response / call sequence>
## External Contracts
- <contract>: <invariant that must be preserved>
## Assumptions
- <falsifiable assumption>
## Test Strategy
- Failing test: `<tests/.../test_x.py::test_y>` — one sentence on what it proves
- Additional unit tests: <what to test, which files>
- E2E tests: <whether needed, which scenarios>
## Acceptance Criteria
- [ ] Failing unit test (above) written
- [ ] Implementation makes all tests pass
- [ ] dev_checks passes
- [ ] <domain-specific criteria>
## Tracking
- Trello: <card URL or "none">
- Branch: <branch>
- PR: <filled later>
Commit the objective and push immediately — get the draft PR up before writing any code:
git add dev/OBJECTIVE.md
git commit -m "chore: set objective to <short-handle>"
git push -u origin $(git rev-parse --abbrev-ref HEAD)
gh pr create --draft --title "<type>: <title>" --body "$(cat <<'EOF'
## Objective
<objective statement>
## Approach
<approach from OBJECTIVE.md>
## Acceptance Criteria
<criteria>
EOF
)"
Update dev/OBJECTIVE.md Tracking section with the PR URL. If Trello card is linked, comment the PR URL on the card.
Write unit tests that define the expected behavior:
Run: uv run pytest <test_files> -v
Confirm tests fail because the feature doesn't exist, not due to import errors or test bugs. Fix test infrastructure issues until they fail cleanly.
git add <test_files>
git commit -m "test: add failing tests for <feature>"
git push
Implement the feature/fix according to the plan.
Use tests as the feedback loop: after each significant change, run the relevant tests to check progress. Don't wait until "done" to test — test continuously.
uv run pytest <test_files> -v
Commit at each milestone: when a test starts passing, when a module is complete, when a logical chunk of work is done. Push every commit.
Keep iterating until all new tests pass AND existing tests still pass:
uv run pytest tests/unit_tests/ -v
Commit and push when all tests are green.
Invoke /cleanup on the changed files to scan for dead code, complexity, duplication, and other quality issues. Fix safe issues, report the rest.
Commit and push any fixes immediately (e.g., style: cleanup pass).
Invoke the superpowers:requesting-code-review skill to self-review the implementation against the plan and acceptance criteria. Address any issues found before proceeding.
Execute the project's QC suite — "$(git rev-parse --show-toplevel)/scripts/dev_checks.sh" or equivalent (formatting, linting, type checking, tests, coverage). Check the project's CLAUDE.md or build docs for the right command if dev_checks.sh doesn't exist.
The script auto-stages formatting fixes. After it passes:
style: fix lint/formatting)Always do a basic smoke test of the actual user workflow, even when the test strategy says no formal e2e tests are needed. Unit tests verify logic; smoke tests verify the feature actually works end-to-end. Run the feature the way a user would and confirm it doesn't crash.
This step catches integration issues that unit tests miss (e.g., import-time side effects, config loading order, missing files).
Before building any manual test setup, search for existing test infrastructure:
tests/ for existing e2e fixtures and test files that cover the scenarioCLAUDE.md in the test directories — they document available test tiers and helpersIf the test strategy calls for formal e2e tests:
Add a changelog fragment. If one doesn't already exist for this branch:
feat→Features, fix→Fixes, refactor→Refactors, else→Chores & Docs)gh pr view --json number --jq .numberchangelog.d/<branch-name>.md:---
category: <CATEGORY>
pr: <PR_NUMBER>
---
**<Title>**: <summary from commits>
dev/OBJECTIVE.mddev/NOTES.mdgit add -A
git commit -m "chore: <objective-handle> is ready"
git push
gh pr ready
This stage runs autonomously until the PR is merged.
After pushing, launch a background monitor (run_in_background: true Bash command) that polls for CI failures, new comments, reviews, and merge conflicts:
PR=$(gh pr view --json number --jq .number)
PREV_COMMENTS=$(gh pr view $PR --json comments --jq '.comments | length')
PREV_REVIEWS=$(gh pr view $PR --json reviews --jq '.reviews | length')
ITER=0; MAX_ITER=80
while [ "$ITER" -lt "$MAX_ITER" ]; do
sleep 90
ITER=$((ITER + 1))
CI=$(gh pr checks $PR --json state --jq '.[].state' 2>/dev/null | sort -u)
if echo "$CI" | grep -q "FAILURE"; then
echo "ALERT:CI_FAILURE"
gh pr checks $PR
exit 0
fi
NEW_COMMENTS=$(gh pr view $PR --json comments --jq '.comments | length')
if [ "$NEW_COMMENTS" -gt "$PREV_COMMENTS" ]; then
echo "ALERT:NEW_COMMENTS"
gh pr view $PR --json comments --jq '.comments[-1] | "@\(.author.login): \(.body[0:500])"'
exit 0
fi
NEW_REVIEWS=$(gh pr view $PR --json reviews --jq '.reviews | length')
if [ "$NEW_REVIEWS" -gt "$PREV_REVIEWS" ]; then
echo "ALERT:NEW_REVIEW"
gh pr view $PR --json reviews --jq '.reviews[-1] | "@\(.author.login) (\(.state)): \(.body[0:500])"'
exit 0
fi
MERGEABLE=$(gh pr view $PR --json mergeable --jq '.mergeable')
if [ "$MERGEABLE" = "CONFLICTING" ]; then
echo "ALERT:MERGE_CONFLICT"
exit 0
fi
STATE=$(gh pr view $PR --json state --jq '.state')
if [ "$STATE" = "MERGED" ] || [ "$STATE" = "CLOSED" ]; then
echo "INFO:PR_$STATE"
exit 0
fi
done
echo "INFO:TIMEOUT"
When the monitor exits, act on the alert:
gh run view <run_id> --log-failed, diagnose, fix, pushgit fetch origin main && git merge origin/main, resolve, pushWhen notified, handle whichever condition triggered:
If checks fail:
gh run view <run_id> --log-failedIf mergeable is CONFLICTING:
git fetch origin main && git merge origin/mainFetch and present all comments:
gh pr view <number> --json reviews --jq '.reviews[] | select(.state != "APPROVED") | "\(.author.login) (\(.state)): \(.body)"'
gh api repos/<owner>/<repo>/pulls/<number>/comments --jq '.[] | "\(.path):\(.line // .original_line) — \(.user.login): \(.body)"'
For each comment:
After addressing comments:
fix: address review — <summary>)When reviewDecision is APPROVED and all checks pass:
Tell the user: "PR is approved and all checks pass. Ready to merge when you are."
Do NOT merge. The human merges.
Monitor PR state:
gh pr view <number> --json state --jq .state
When state is MERGED, proceed to Stage 8.
If a Trello card was linked:
~/bin/trello move <CARD_ID> <DONE_LIST_ID>Ticket complete:
PR: <URL> (merged)
CHANGELOG: <entry>
Trello: <moved to Done / not linked>
Done.
What SKILL.md sets; muted values are Claude Code's defaults
2 plugins ship this exact skill · first indexed Aug 15, 2026
Other plugins' skills for the same job
4 skills in this plugin
/address-prMid-review entry point: fetch PR comments and CI failures, address them, validate, push. Use when jumping into an existing PR. /dev handles this automatically./finish-ticketWrap up after implementation: cleanup, dev_checks, e2e, changelog, PR ready, monitor feedback, wait for merge. Use when joining mid-flow after implementation. /dev does this automatically./start-ticketTicket kickoff only (setup + plan + draft PR + failing tests). Use /dev for the full autonomous pipeline. Accepts goal or Trello card. Example: /start-ticket implement rate limitingnpx claudepluginhub jaidhyani/jai-cc-plugins --plugin dev-pipeline