본문으로 건너뛰기
cccskills
무료GitHub에 공개

start-refactor-task

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.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md6.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

If the user's intent does not match this skill, route through /plugin-creator:plugin-lifecycle.

Start Refactor Task

You are implementing a specific refactoring task from a plugin refactoring plan.

<task_input> $ARGUMENTS </task_input>


Parse Arguments

  • 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)

If --complete <task-id> Provided

  1. READ the task file
  2. EDIT the task status from 🔄 IN PROGRESS to ✅ COMPLETE
  3. Output: Task {ID}: {Name} marked as COMPLETE
  4. EXIT

Starting a Task

1. Load Context

READ the task file. It contains everything you need:

  • Task details (status, dependencies, priority, complexity)
  • Target file being refactored
  • Issue type (SKILL_SPLIT, AGENT_OPTIMIZE, DOC_IMPROVE, ORPHAN_RESOLVE, STRUCTURE_FIX)
  • Acceptance criteria (your definition of done)
  • Required inputs (design spec sections, source files to read)
  • Expected outputs (files to create/modify)
  • Verification steps (how to prove completion)

The task file header links to the design spec. READ it for refactoring context.

2. Select Task

If --task <id> specified: Use that task.

Otherwise, find the first task where:

  • Status is ❌ NOT STARTED
  • All dependencies are ✅ COMPLETE or "None"

If no ready task: Output "No ready tasks" and EXIT.

3. Update Status

EDIT the task file: Change ❌ NOT STARTED to 🔄 IN PROGRESS

4. Plugin.json Safety — Read Before Creating Any Component

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:

  1. Read the existing array in plugin.json first
  2. Carry forward every existing entry
  3. Add the new entry alongside them

Declaring any subset overrides auto-discovery for the entire key — unlisted components become invisible. It is all or nothing.

5. Track 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"
)

6. Implement

Work through each acceptance criterion based on the issue type:

For SKILL_SPLIT Tasks

  1. READ the current skill file completely
  2. READ the design spec section for this split
  3. IDENTIFY content domains as specified in design
  4. CREATE new skill directories and SKILL.md files
  5. DISTRIBUTE content according to design spec
  6. UPDATE cross-references between skills
  7. CREATE shared references if specified — for what a shared reference is and how to place it, activate the /plugin-creator:shared-content-references skill
  8. VERIFY all links resolve

For AGENT_OPTIMIZE Tasks

  1. READ the current agent file
  2. READ the design spec section for optimization
  3. LOAD reference skills: claude-skills-overview-2026, prompt-optimization
  4. REWRITE description with trigger keywords
  5. IMPROVE instruction clarity
  6. REVIEW tool restrictions
  7. VALIDATE frontmatter format

For DOC_IMPROVE Tasks

  1. READ the current file
  2. READ the design spec section for improvements
  3. IDENTIFY specific quality issues
  4. REWRITE with improved clarity, triggers, examples
  5. ENSURE proper markdown formatting
  6. VALIDATE frontmatter if applicable

For ORPHAN_RESOLVE Tasks

  1. READ the orphaned file
  2. READ the design spec classification
  3. IF integrating: ADD link from appropriate SKILL.md
  4. IF removing: DELETE the file (after confirming no references)
  5. IF merging: COMBINE content with target file

For STRUCTURE_FIX Tasks

  1. READ all affected files
  2. IDENTIFY broken links or structural issues
  3. FIX links to point to correct locations
  4. VERIFY all cross-references resolve

Mark todos as you complete them.

7. Verify

Run each verification step from the task. All must pass.

Common verification steps:

  • Read the created/modified files to confirm content
  • Verify all internal links resolve
  • Check frontmatter validates against schema
  • Confirm file structure matches design spec

8. Complete

When all verification passes:

/plugin-creator:start-refactor-task {task_file_path} --complete {task_id}

Working Environment

Collaborative Agents

Other agents may be working nearby on related tasks. If you notice edits to files you didn't make:

  • This is intentional - the user or other agents made those changes
  • Include these changes in your considerations
  • If the changes block your work, STOP and report to the orchestrator with your reasoning

Reference Skills

Load these skills for guidance on proper formats:

SkillUse For
claude-skills-overview-2026Skill SKILL.md format
claude-plugins-reference-2026Plugin structure
Command format
hooks-guideHooks format
prompt-optimizationAgent prompt optimization

Research and Knowledge

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:

  1. READ existing skills/agents that are well-formatted
  2. CHECK reference skills for format requirements
  3. USE context7, Ref MCPs for documentation questions
  4. VERIFY patterns match what's actually in the codebase
# Good: Verify format before writing
READ ./plugins/example-plugin/skills/example/SKILL.md  # Check actual format
/plugin-creator:claude-skills-overview-2026  # Load format reference

Quality Standards

  • Follow existing patterns in the plugin
  • Preserve content fidelity during splits (no information loss)
  • Maintain or improve frontmatter quality
  • Ensure all cross-references resolve
  • Keep token counts within thresholds (run uvx skilllint@latest check <skill-path> after writing and follow its guidance on sizing)

Error Handling

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.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Add automated documentation updater to any Claude skill. Creates a Python sync script that downloads upstream docs, processes markdown for AI consumption, and maintains local cache with configurable refresh. Collects template variables, then delegates implementation through 5-phase workflow. Use when adding auto-updating reference documentation to plugins or skills.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Jamie-BitFlight/claude_skills672026년 10월 20일 업데이트

SAM-style feature initiation workflow — discovery through codebase analysis, architecture spec, task decomposition, validation, and context manifest. Use when a user asks to add a feature, plan a feature, or convert an idea into an executable SAM plan.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Jamie-BitFlight/claude_skills672026년 10월 20일 업데이트

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Jamie-BitFlight/claude_skills672026년 10월 20일 업데이트

Browser automation for AI agents using the agent-browser CLI and Playwright. Use when navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, logging into sites, or automating any browser task. Triggers on "open a website", "fill out a form", "click a button", "scrape data", "test this web app", "automate browser actions", or any programmatic web interaction request.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Jamie-BitFlight/claude_skills672026년 10월 20일 업데이트

Runs the description-drift experiment — spawns all Claude Code agents simultaneously to collect self-reported capabilities, then compares them against static frontmatter descriptions to reveal how reliable orchestrator routing based on descriptions actually is. Use when measuring description drift across the agent fleet, re-running the capability collection experiment, analyzing a specific agent's self-reported capabilities, or auditing whether frontmatter descriptions accurately reflect agent behavior.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Jamie-BitFlight/claude_skills672026년 10월 20일 업데이트

Create or adapt Claude Code agent definitions. Use when creating an agent, changing subagent configuration, selecting agent scope, or designing a specialized delegation role.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Jamie-BitFlight/claude_skills672026년 10월 20일 업데이트

Jamie-BitFlight의 스킬 모두 보기

이 스킬의 문제 신고