From patchy-bot
Master orchestration skill for implementing code changes with full safety coverage. This skill should be used when the user says "implement this", "build this feature", "make these changes", "code this up", "write the code", "implement the plan", "full implementation", "code changes", "/code-changes", or when beginning any non-trivial code implementation, feature build, refactor, or infrastructure change. Sequences 20+ skills across 5 phases: research → plan → implement → verify → close. Ensures no skill or agent is missed during implementation work. NOT for read-only analysis (use /read-only-plans) or debugging (use /debug-fix) or post-completion audits (use /post-changes-audit).
npx claudepluginhub kman182401/patchy-operationalThis skill uses the workspace's default tool permissions.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Implements structured self-debugging workflow for AI agent failures: capture errors, diagnose patterns like loops or context overflow, apply contained recoveries, and generate introspection reports.
$ARGUMENTS
Execute code changes through five mandatory phases. Every phase invokes specific skills in order. Do not skip phases. Do not skip skills within a phase unless explicitly inapplicable to the task.
Goal: Understand the problem space before touching code.
Sequential — complete before moving to Phase 2.
/researcher — Gather current best practices, library versions, API docs, security advisories for any technology involved. Skip only if the task is purely internal with no external dependencies./reuse-check — Scan the codebase for existing implementations, utilities, or patterns that solve part of the problem. Prevent reinventing existing code./the-fool — Challenge the proposed approach. Identify blind spots, unstated assumptions, and alternative designs before committing to a direction.Goal: Produce a decision-complete plan before writing code.
Sequential — complete before moving to Phase 3.
/plan-builder — Produce a durable, restartable implementation plan with milestones, validation gates, and risk assessment. Ground the plan in the actual repo state./assumptions-audit — Extract and classify every assumption in the plan. Verify critical assumptions. Flag risky ones as blockers./scope-guard — Lock the scope boundary. Define what files, modules, and systems are in-scope and what is explicitly out-of-scope. Enforce this boundary throughout execution./subagent-driven-development — Identify which subagents to delegate implementation work to. Map tasks to domain agents (python-pro, fastapi-developer, cli-developer, etc.)./dispatching-parallel-agents — Determine which agent tasks can run in parallel (independent files, no shared state) vs. which must run sequentially (dependencies, shared files).Goal: Implement the plan using domain agents and safety skills.
Mixed parallel/sequential — follow dispatch decisions from Phase 2.
/full-orchestration — Activate the five-phase orchestration checklist. Ensure every applicable domain agent and skill is identified and dispatched./plan-implementation — Execute the plan milestone by milestone. Follow the plan. Do not quietly substitute a different design./secure-code-guardian — Apply security controls during implementation: input validation, auth, encryption, OWASP Top 10 prevention. Invoke for any security-sensitive code as it is written./simplify-code — After each major implementation milestone, review for unnecessary complexity. Simplify abstractions, reduce indirection, flatten where possible./linter — Auto-lint every file immediately after editing. Run ruff (Python), shellcheck (Bash), prettier (JS/HTML/CSS). Do not batch — lint as you go./documentation — Update or create documentation for any new public APIs, config changes, or architectural decisions made during implementation.Task manager checkpoint:
15. /tm:update-task — Update the task tracker with implementation progress after each milestone.
Goal: Validate everything before claiming completion. Never skip.
Sequential — each step feeds the next.
/test-runner — Run the full test suite for touched modules. Confirm all tests pass. Report coverage./security-review — Scan all changed files for vulnerabilities using semgrep, bandit, and manual pattern checks. Flag HIGH/CRITICAL issues as blocking./diff-review — Inspect the actual git diff for debug leftovers, accidental changes, leaked secrets, and scope violations./verification-loop — Run the full verification chain: build → typecheck → lint → test → security scan → diff review./analyze — Deep post-completion review. Audit correctness, integration wiring, edge cases, and second-order effects of the changes.Goal: Clean handoff with evidence of completion.
/tm:update-task — Final task status update with completion evidence./requesting-code-review./finishing-a-development-branch.Launch in parallel when:
Run sequentially when:
Stop execution and report if:
assumptions-audit returns a Red risk assessment with unresolved blockerssecurity-review flags CRITICAL severity findingstest-runner reports failing tests that cannot be resolved within scopescope-guard detects scope violations that would require re-planningBefore claiming the task is complete, confirm every applicable skill was invoked: