Start or complete a specific refactoring task from a task file (for sub-agents)
Manages refactoring tasks by executing structured workflows from task files with verification and progress tracking.
/plugin marketplace add jamie-bitflight/claude_skills/plugin install plugin-creator@jamie-bitflight-skills<task-file-path> [--task <task-id>] [--complete <task-id>]sonnetstart-refactor-task/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
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 | |
| claude-hooks-reference-2026 | Hooks format |
| prompt-optimization-claude-45 | 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="claude-skills-overview-2026") # Load format reference
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.