From rules-review
Orchestrates structured dev workflow: plan → review → implement → check/test → code review → rules update. For developing features, fixing bugs, refactoring code.
npx claudepluginhub hiroro-work/claude-plugins --plugin apply-rulesThis skill is limited to using the following tools:
```text
Orchestrates iterative development workflow: clarifies requirements, conditionally plans with swe-planner, implements via specialist agents for Docker/Go/GraphQL/etc., refactors, QA, documents features.
Full SDLC workflow for implementing features, fixing bugs, refactoring code, testing, releasing, publishing, and deploying. Use this skill when implementing, fixing, refactoring, testing, adding features, building new code, or releasing/publishing/deploying.
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Share bugs, ideas, or general feedback.
/dev-workflow --init # Project setup (detect check/test commands)
/dev-workflow [-i N | --iterations N] <task> # Execute workflow (default)
reviewer setting, default: ask-peer): Required for plan/code review. Supported: ask-peer, ask-claude, ask-codex, ask-gemini, ask-copilot. If the configured skill is unavailable, ask user directly instead.Settings file: dev-workflow.local.md (YAML frontmatter only)
.claude/dev-workflow.local.md (takes precedence)~/.claude/dev-workflow.local.md---
reviewer: "ask-peer"
review_iterations: 3
custom_instructions: "Always use TDD. Write tests before implementation."
check_commands:
- "pnpm run lint:fix"
- "pnpm run format"
- "pnpm run typecheck"
test_commands:
- "Skill(run-tests)"
hooks:
on_complete:
- "Skill(work-complete)"
---
ask-peer). Choose from: ask-peer, ask-claude, ask-codex, ask-gemini, ask-copilot. Unsupported values fall back to ask-peer3, must be a positive integer). Can be overridden per invocation with -i N / --iterations N.claude/rules/ and explicit user requests take precedence if they conflict["Skill(run-tests)"]. The run-tests skill is generated by --init and handles test execution via subagent (see Step 7). Run --init to generate or update the skillSkill(<name>) or shell command string--init → Init Mode (-i / --iterations is ignored)Read references/init-mode.md and follow the procedure.
Note: Skills generated by
--init(e.g.run-tests) are recognized from the next session onward. Do not run/dev-workflow <task>in the same session as--init.
.claude/dev-workflow.local.md (project-level, priority) or ~/.claude/dev-workflow.local.md (user-level)/dev-workflow --init and stopreviewer from config. If not specified or not in the supported list (ask-peer, ask-claude, ask-codex, ask-gemini, ask-copilot), use ask-peer-i / --iterations option is present and is a positive integer, use itreview_iterations is present and is a positive integer, use it3hooks from config. Warn and ignore if hooks.on_complete has invalid format. Parse custom_instructions from config (optional, string). Warn and ignore if not a stringTodoWrite, including review iterations. Do NOT skip any phase:
hooks.on_complete is configured)
Mark each item in_progress when starting and completed when done. Registering all phases upfront gives the user visibility into overall progress and prevents steps from being accidentally dropped. Implementation sub-tasks in Step 5 are additions, not replacements.git rev-parse HEAD) for later diff comparisonEnterPlanModecustom_instructions to shape plan priorities and structure (must include test plan: what to test, test types, scope, and which existing test files to update or new test files to create — or justification why no tests are needed)This step is an internal review — the reviewer refines the plan before the user sees it, so the user receives a higher-quality plan in Step 4. Do not present the plan to the user or ask for feedback during this step.
Mark Step 3: Plan Review as in_progress. Process each pending iteration item (Step 3-1 through 3-N) in order:
in_progress. Call the reviewer skill resolved in Step 1 (e.g. Skill(ask-peer)): Review the plan.
.claude/rules/ for project conventions.claude/rules/ compliance
b. Approach & alternatives: simpler methods, architectural fit with existing code
c. Completeness: edge cases, error handling, test plan adequacy (verify specific test files are identified and existing related tests are covered for update)custom_instructions is configured, include the instructions text in the review request and have the reviewer verify alignment and report conflictscompleted (skip). Mark Step 3: Plan Review as completed and proceed to Step 4.completed.
completed (skip)
Continue to the next pending iteration item with:.claude/rules/ reference, and "No actionable findings" requirementMark Step 3: Plan Review as completed.
ExitPlanMode and begin implementationTodoWrite. Apply custom_instructions throughout implementationImplementation often introduces unnecessary complexity that's easier to spot in a dedicated pass after the code works.
Skill(simplify): Review changed code for reuse, quality, and efficiency, then fix any issues found. Pass custom_instructions as constraints for simplificationcheck_commands in order (always run all)
Skill(run-tests) with --base-commit <sha> (from Step 2) via $ARGUMENTS
GATE: Verify Steps 2-7 are completed (check TodoWrite status; if status is inconsistent, verify actual completion by reviewing work done). Mark Step 7.5 as
in_progress.
Dedicated rules compliance check, separate from code review (Step 8). This ensures rule enforcement gets focused attention rather than competing with correctness and design concerns.
Skill(rules-review) with --base-commit <sha> (base-commit recorded in Step 2) via $ARGUMENTSSkill(rules-review) with --base-commit <sha> for verification (2nd cycle)
d. If violations persist after 2 cycles, present remaining violations to user for decision. Wait for user response before marking completed.Mark Step 7.5: Rules Compliance Review as completed only after all violations are resolved or user has decided on remaining violations.
GATE: Verify Steps 2-7.5 are completed (check TodoWrite status; if status is inconsistent, verify actual completion by reviewing work done). Mark Step 8 as
in_progress.
Code review catches bugs, convention violations, and design issues that tests alone miss — skipping it risks shipping preventable defects. Always run this step even when tests pass cleanly.
Mark Step 8: Code Review as in_progress. Process each pending iteration item (Step 8-1 through 8-N) in order:
in_progress. Call the reviewer skill resolved in Step 1 (e.g. Skill(ask-peer)): Review code changes.
git diff <base-commit> (base-commit recorded in Step 2) to capture all changes since workflow start.claude/rules/ violations as a safety net — especially for code modified after Step 7.5.claude/rules/ compliance (lightweight check — Step 7.5 handles the thorough review)
c. Simplicity & maintainability: unnecessary complexity, duplication, unclear abstractionscustom_instructions is configured, include the instructions text in the review request and have the reviewer verify compliance and report conflictscompleted (skip). Mark Step 8: Code Review as completed and proceed to Step 9.completed.
completed (skip)
Continue to the next pending iteration item with:git diff <base-commit>.claude/rules/ reference, and "No actionable findings" requirementMark Step 8: Code Review as completed.
Skill(extract-rules) with --from-conversation (always)Skill(extract-rules) with --update (only if significant structural/pattern changes occurred)Skip this step if hooks.on_complete is not configured. Mark Step 10: Completion Hooks as in_progress.
hooks.on_complete in order:
Skill(<name>) pattern: invoke the skillStep 10: Completion Hooks as completed and proceed to CompletionReport summary: tasks completed, files modified, test results, review outcomes, rules updated.