/ctx:ctx-refactorfrom ctx
Refactors code safely using a test-first, one-change-at-a-time methodology that preserves behavior. Activated by phrases like 'refactor this' or 'clean this up'.
Ships in ctx. 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.
Refactor the specified code following strict safety rules. Refactoring changes structure, not outcomes.
/gitnexus-refactoring, invoke it; otherwise use grep-based
search to find all references before renaming)Follow these in order. Do not skip steps.
.context/CONVENTIONS.md
to ensure the refactored code follows established patterns..context/CONVENTIONS.md to load project patternsmake lint && make testBefore starting, present the plan:
## Refactoring Plan: <target>
1. <step>: why
2. <step>: why
...
Tests to verify: <list>
After each step, report: what changed, tests still passing.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub activememory/ctx --plugin ctx54 skills in this plugin
/ctx-agentLoad full context packet. Use at session start or when context seems stale or incomplete./ctx-architectureBuild and maintain architecture maps. Use to create or refresh ARCHITECTURE.md and DETAILED_DESIGN.md. Supports principal mode for deeper analysis: vision, future direction, bottlenecks, implementation alternatives, gaps, upstream proposals, and intervention points./ctx-architecture-enrichEnrich architecture artifacts with code intelligence data. Takes existing /ctx-architecture output as baseline, verifies and quantifies with GitNexus MCP (blast radius, execution flows, domain clustering, registration sites). Run after /ctx-architecture, not instead of it./ctx-archiveArchive completed tasks. Use when TASKS.md has many completed items cluttering the view.Other plugins' skills for the same job