From oco
Structured refactoring with impact analysis, staged changes, and verification. Auto-activates when the user asks to refactor, rename, restructure, extract, move, reorganize, decouple, or split code. Enforces a strict workflow: impact analysis before any change, staged modifications (implementation → consumers → tests → docs), full verification after each stage, subagent review if >10 files impacted. MANDATORY for all refactoring — never rename/move without this skill.
npx claudepluginhub hoklims/oco-marketplaceThis skill uses the workspace's default tool permissions.
You are performing a refactoring operation. Follow this staged, verification-gated workflow.
Guides Next.js Cache Components and Partial Prerendering (PPR) with cacheComponents enabled. Implements 'use cache', cacheLife(), cacheTag(), revalidateTag(), static/dynamic optimization, and cache debugging.
Guides building MCP servers enabling LLMs to interact with external services via tools. Covers best practices, TypeScript/Node (MCP SDK), Python (FastMCP).
Generates original PNG/PDF visual art via design philosophy manifestos for posters, graphics, and static designs on user request.
Share bugs, ideas, or general feedback.
You are performing a refactoring operation. Follow this staged, verification-gated workflow.
Clearly state:
Before making any changes:
Run impact analysis on the target symbol:
oco_impact MCP tool is available (preferred):
oco_impact({ symbol: "<target>", max_depth: 5 })
This returns all transitive callers (what breaks) and callees (what this depends on).oco_routes MCP tool is available (alternative):
oco_routes({ symbol: "<target>", direction: "both", max_depth: 5 })
yoyo.impact({ symbol: "<target>" })
yoyo.judge_change({ description: "<refactoring description>" })
oco.search_codebase or Grep for symbol references manually.Map the dependency graph from the impact results:
Produce impact summary:
If impact is high (>10 files or breaking changes), delegate deep analysis to @refactor-reviewer subagent.
Apply changes in this order:
After each stage, verify the build compiles.
Run the full verification suite:
cargo build / npm run build / equivalentcargo check / tsc --noEmit / equivalentcargo test / npm test / equivalentcargo clippy / eslint / equivalentFollow the verification workflow described in the oco-verify-fix skill (build, test, lint, typecheck in order).
Delegate reviews to the appropriate subagents:
@refactor-reviewer — check for stale references, breaking changes, and hidden impact@patch-verifier — semantic review of the change for correctness and completeness