plugins/plugin-creator/skills/start-refactor-task/SKILL.md
Start or complete a specific refactoring task from a task file. Use when a sub-agent needs to pick up a refactoring task, update its status, implement acceptance criteria, and run verification steps.
npx skillsauth add jamie-bitflight/claude_skills start-refactor-taskInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are implementing a specific refactoring task from a plugin refactoring plan.
<task_input> $ARGUMENTS </task_input>
task_file_path: Path to the task file (required)--task <id>: Task ID to start (optional, defaults to first ready task)--complete <id>: Task ID to mark complete (optional)--complete <task-id> Provided🔄 IN PROGRESS to ✅ COMPLETETask {ID}: {Name} marked as COMPLETEREAD the task file. It contains everything you need:
The task file header links to the design spec. READ it for refactoring context.
If --task <id> specified: Use that task.
Otherwise, find the first task where:
❌ NOT STARTED✅ COMPLETE or "None"If no ready task: Output "No ready tasks" and EXIT.
EDIT the task file: Change ❌ NOT STARTED to 🔄 IN PROGRESS
Commands, agents, and skills placed in default locations (commands/, agents/, skills/) are auto-discovered. Do NOT add them to plugin.json.
If a component is in a non-default location and must be declared:
plugin.json firstDeclaring any subset overrides auto-discovery for the entire key — unlisted components become invisible. It is all or nothing.
Use the Task API to track acceptance criteria:
TaskCreate(
subject="AC1: {criterion}",
description="{detailed criterion description}",
activeForm="Implementing {criterion}"
)
TaskCreate(
subject="Verification: Run all verification steps",
description="{verification steps}",
activeForm="Running verification"
)
Work through each acceptance criterion based on the issue type:
Mark todos as you complete them.
Run each verification step from the task. All must pass.
Common verification steps:
Read the created/modified files to confirm contentVerify all internal links resolveCheck frontmatter validates against schemaConfirm file structure matches design specWhen all verification passes:
/plugin-creator:start-refactor-task {task_file_path} --complete {task_id}
Other agents may be working nearby on related tasks. If you notice edits to files you didn't make:
Load these skills for guidance on proper formats:
| Skill | Use For | | ----------------------------- | ------------------------- | | claude-skills-overview-2026 | Skill SKILL.md format | | claude-plugins-reference-2026 | Plugin structure | | | Command format | | hooks-guide | Hooks format | | prompt-optimization | Agent prompt optimization |
Be bold with research. Be skeptical of built-in knowledge.
Your training data may be outdated. The codebase and reference skills are the source of truth.
Before implementing:
# Good: Verify format before writing
READ ./plugins/example-plugin/skills/example/SKILL.md # Check actual format
Skill(skill="plugin-creator:claude-skills-overview-2026") # Load format reference
uvx skilllint@latest check <skill-path> after writing and follow its guidance on sizing)Blocked by dependency: Report which tasks must complete first.
Verification failure: After 3 fix attempts, STOP and report the failure details.
Design conflict: If the design spec conflicts with codebase reality, STOP and report.
Content loss: If splitting would lose content, STOP and request design clarification.
development
When an application needs to store config, data, cache, or state files. When designing where user-specific files should live. When code writes to ~/.appname or hardcoded home paths. When implementing cross-platform file storage with platformdirs.
testing
Enforce mandatory pre-action verification checkpoints to prevent pattern-matching from overriding explicit reasoning. Use this skill when about to execute implementation actions (Bash, Write, Edit) to verify hypothesis-action alignment. Blocks execution when hypothesis unverified or action targets different system than hypothesis identified. Critical for preventing cognitive dissonance where correct diagnosis leads to wrong implementation.
tools
Reference guide for the Twelve-Factor App methodology — 15 principles (12 original + 3 modern extensions) for building portable, resilient, cloud-native applications. Use when evaluating application architecture, designing cloud-native services, reviewing codebases for methodology compliance, advising on configuration, scaling, observability, security, and deployment patterns. Incorporates the 2025 open-source community evolution and cloud-native reinterpretations of each factor.
tools
Converts user-facing documentation (how-to guides, tutorials, API references, examples) in any format — Markdown, PDF, DOCX, PPTX, XLSX, AsciiDoc, RST, HTML, Jupyter notebooks, man pages, TOML/YAML/JSON configs, and plain text — into Claude Code skill directories with SKILL.md plus thematically grouped references/*.md files. Use when given a docs directory or mixed-format documentation to transform into an AI skill. Uses MCP file-reader server for binary formats.