From dp
Use when an active dev-pipeline run is at the codereview step. Runs an embedded simplify review (reuse / quality / efficiency) over this run's diff and applies fixes. Cross-platform (Claude Code + Cursor), self-contained — no external /simplify dependency.
How this skill is triggered — by the user, by Claude, or both
Slash command
/dp:codereviewThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Final step of the pipeline. Review the changes from this run for reuse, quality, and efficiency, then apply the fixes.
Final step of the pipeline. Review the changes from this run for reuse, quality, and efficiency, then apply the fixes.
This is a self-contained copy of Claude Code's built-in simplify skill, wrapped with dp pipeline rules. It does not depend on the external /simplify skill being installed, and runs identically on Claude Code and Cursor — both expose a subagent tool (Claude Code: Agent; Cursor 2.4+: Task).
RUN_DIR — run directory.Session id: if a DP_SESSION_ID=<id> line is present in your conversation context (see the orchestrator command's "Session id capture and propagation" section for the matching rule), substitute that value for every <DP_SESSION_ID> placeholder in the bun commands below. If the line is not in context, drop the --session "<DP_SESSION_ID>" argument entirely; advance.ts falls back to process.env.DP_SESSION_ID.
bun ${DP_PLUGIN_ROOT}/scripts/cli/advance.ts set <RUN_DIR> steps.codereview.status running --session "<DP_SESSION_ID>"
simplify harnessReview all changed files for reuse, quality, and efficiency. Fix any issues found.
Subagent tool: Phase 2 spawns the three review agents via your platform's subagent tool —
Agenton Claude Code,Taskon Cursor (2.4+). Send all three calls in a single message so they run concurrently. If your platform cannot spawn ad-hoc subagents, run the three reviews sequentially in the main context instead — same checks, same output.
Find the changes made during this pipeline run: run git diff (or git diff HEAD if there are staged changes) to see what changed. If there are no git changes, review the files this run created or edited. Review only files this run touched — never unrelated working-tree changes.
Launch all three agents concurrently in a single message. Pass each agent the full diff so it has the complete context.
For each change:
Review the same changes for hacky patterns:
a ? x : b ? y : ...), nested if/else, or nested switch 3+ levels deep — flatten with early returns, guard clauses, a lookup table, or an if/else-if cascadeReview the same changes for efficiency:
Wait for all three agents to complete. Aggregate their findings and fix each issue directly. If a finding is a false positive or not worth addressing, note it and move on — do not argue with the finding, just skip it.
Promise.all is ALWAYS skipped. Do not introduce or apply Promise.all parallelization edits, even when Agent 3's "Missed concurrency" check flags one. List any such finding under Skipped in the summary below.
Print a structured summary with two sections in this order: skipped findings (so the user sees rejected suggestions up front, with rationale), then applied fixes.
## Code review
### Skipped fixes (proposed but not applied)
1. `<path>:<line>` — <one-line description of the finding>
Skipped because: <one-line rationale — e.g. "Promise.all parallelization (dp:codereview rule: never auto-apply)", "would change observable behavior", "false positive".>
2. ...
### Applied fixes
1. `<path>:<line>` — <one-line description of what was changed>
2. ...
Rules:
bun ${DP_PLUGIN_ROOT}/scripts/cli/advance.ts advance <RUN_DIR> codereview --session "<DP_SESSION_ID>"
This is the last step — advance will set state.active = false and currentStep = "done".
Pipeline is complete. Print a short closing line referencing the run dir as a markdown link so the user can browse artifacts:
Pipeline complete — artifacts at [${DP_STATE_DIR}/feature-pipeline/<feature>/](${DP_STATE_DIR}/feature-pipeline/<feature>/).
No Skill invocation needed (this is the terminal step).
npx claudepluginhub kostia-official/claude-dev-pipeline-plugin --plugin dpGuides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.