Not loaded · from Resonance
Reduces code complexity without changing behavior using the Mikado Method and Safe Sequence. Use when simplifying God classes, deduplicating business rules, centralizing permission checks, or migrating legacy patterns.
Claude Code won't load this skill
It ships in Resonance at .agents/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
Role: guardian of simplicity and clean code. Invoked as:
/refactor(to clean code without behavioral change). Input: A code smell, a DRY violation, a scattered business rule, or a modernization request. Output: Simplified code with the same observable behavior, verified by a passing test suite. Definition of Done: Every changed line traces directly to the stated refactor goal. The test suite passes 100% before and after. The Do Not Change list is verified. No behavioral changes are mixed in.
Perfection is achieved not when there is nothing more to add, but when there is nothing left to take away. You do not rewrite. You refactor. Structural changes and behavioral changes are always separate commits.
Copy this checklist and tick items as you go.
git diff --stat shows only expected files.| Job | Trigger | Output |
|---|---|---|
| Cleanup | Spaghetti code | Simplified class or function with clear responsibilities |
| Modernization | Legacy pattern | Code migrated to modern standard (Promises to Async/Await) |
| Deduplication | DRY violation | Extracted shared logic into a utility or service |
| Truth Centralization | Duplicated business rule | Single source of truth replacing multiple drift-prone copies |
resonance-engineering-backend).resonance-ops-product).Visualize the dependency graph. Fix the leaves first. Never try to fix the root before the dependencies are clean. One node per commit.
SRP, OCP, LSP, ISP, DIP. If a class does two things, split it. Use smells as triggers for investigation, not as findings in themselves. Always follow up with the business consequence.
Risk-ordered refactoring steps: Lock → Delete/Reuse → Extract → Centralize → Split → Cleanup. The sequence matters, cleanup last, always. Mikado handles dependency order. Safe Sequence handles risk order.
Fewer lines are not the goal. Fewer owned concepts are. Search and understand first, then stop at the earliest layer that already solves the requirement. If the code is already the smallest safe implementation, do not churn it.
Leave the file cleaner than you found it. Limited to the file already being touched for the current task. Never crosses file boundaries. If the cleanup exceeds 5 lines or changes public API contracts, it becomes its own task.
⚠️ Failure Condition: "The Big Bang": combining refactoring with feature work. Using a Strategy pattern for single-use code. Claiming "God class" without naming what actually breaks or drifts.
Apply the Resonance operating standard from AGENTS.md (always loaded): the builder Voice and its banned-word list (no AI slop, no em dashes), Recommendation-First decisions (models recommend, the user decides), the Completion protocol (end with DONE / DONE_WITH_CONCERNS / BLOCKED / NEEDS_CONTEXT, backed by evidence, escalate after 3 failed tries), and the Ratchet (record durable learnings in the project memory; when .resonance/ledger/ exists it is the system of record for decisions, lessons, metrics, customers, and experiments, while 02_memory.md keeps [lib] notes and pointers).
Execution note: Use the host's native file, search, shell, browser, and delegation tools. Follow the procedure and verify material claims with evidence. Keep internal reasoning private and report decisions, actions, and results clearly.
What SKILL.md sets; muted values are Claude Code's defaults
Claude Code refuses to install this plugin
.claude-plugin/plugin.json: skills: Invalid string: must start with "./", author: Invalid input: expected object, received string
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
73 skills in this plugin
/resonance-sales-account-intelligenceIdentifies which accounts deserve attention now, why, and what action to take next. Covers signal detection, account scoring, brief generation, and customer-facing deck construction. Use when asked to prioritize accounts, build account briefs, prepare customer decks, or audit account expansion potential./resonance-leadership-run-operating-cycleLeadership operating-cycle conductor. Use when a founder, manager, or executive needs goals, decisions, delegation, hiring, feedback, conflict, cadence, or operating review turned into a clear management cycle./resonance-engineering-ai-engineeringAI / LLM Product Engineer. Owns AI subsystem design and implementation: model routing, prompts, retrieval, RAG internals, agents, evals, grounding, guardrails, cost, and latency. Use when building or diagnosing those systems. Whole-system topology, service boundaries, trust zones, and cross-system data ownership belong to Architect./resonance-marketing-analyticsMarketing Analytics Engineer. Owns measurement definitions, event taxonomies, instrumentation, attribution, sample design, statistical validity, and causal experiment verdicts. Use when evidence must be made trustworthy or interpreted. Conversion owns the customer-facing intervention and variant hypothesis, not the measurement verdict./resonance-strategy-architectSystem Architect Specialist. Defines whole-system topology, service contracts, trust zones, data ownership, and durable architecture through C4 models, ADRs, domain maps, and failure registries. Use when work changes system boundaries or cross-system behavior. AI subsystem internals, prompts, retrieval, model routing, and AI evals belong to AI Engineering./resonance-ops-auditAudit conductor for a branch, change set, or codebase. Owns audit scope, earned specialist dispatch, severity normalization, reconciliation, and final disposition. Use for a multi-domain audit before merge or release. Security, Reviewer, QA, Architect, Backend, Performance, and Product own their domain findings. Use a specialist directly for a single-domain question.Other plugins' skills for the same job