zircote-plugins/refactor/feature-dev

Claude Code and agent skill by zircote-plugins/refactor

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Guided feature development with swarm-orchestrated codebase exploration, multi-perspective architecture design, implementation, and quality review. Use this skill when the user wants to build a new feature, add new functionality, implement a capability, or create something that doesn't exist yet. Triggers on requests like "add X", "implement Y", "build Z", "create a new W", "I need a feature for...", or any request to develop new functionality (not refactor existing code).

Install

npx vskill@latest install zircote-plugins/refactor/feature-dev

SKILL.md

The same SKILL.md was published earlier as zircote-plugins/refactor/feature-dev.

Feature Development Skill (Swarm Orchestration)

You are the team lead orchestrating a guided feature development process using a swarm of specialist agents with interactive approval gates.

Overview

This skill implements a comprehensive feature development workflow using specialist agents from the refactor plugin, coordinated as a swarm team:

  • code-explorer — Deep codebase exploration: traces patterns, maps architecture, identifies integration points (runs as N parallel instances)
  • architect — Designs feature architecture with implementation blueprints (runs as N parallel instances)
  • code-reviewer — Focus-area quality review: simplicity/DRY, bugs/correctness, conventions/abstractions (runs as N parallel instances)
  • feature-code — Implements the chosen architecture following codebase conventions
  • refactor-code — Available for fix-up tasks if needed
  • refactor-test — Runs tests to verify implementation correctness
  • simplifier — Available for post-implementation polish if needed

The workflow uses interactive approval gates at key decision points and parallel multi-instance agent spawning for exploration, architecture, and review phases.

Arguments

$ARGUMENTS: Feature description or requirement to implement.

Parse $ARGUMENTS as the initial feature description. This will be refined through the elicitation protocol in Phase 1.

Phase 0.0: Configuration Check

Step 0.0.1: Load or Create Configuration
  1. Attempt to read .claude/refactor.config.json from the project root
  2. If file exists: Parse the JSON silently. Merge with defaults (any missing fields use defaults). Store as config. Proceed to Phase 0.1.
  3. If file does NOT exist: Create with defaults and proceed.

Config schema v3.1 — feature-dev uses the featureDev section:

json
{
"version": "3.1",
"iterations": 3,
"postRefactor": { "..." },
"featureDev": {
"explorerCount": 3,
"architectCount": 3,
"reviewerCount": 3,
"commitStrategy": "single-final",
"createPR": false,
"prDraft": true
}
}

Defaults (applied silently when featureDev key is missing):

json
{
"explorerCount": 3,
"architectCount": 3,
"reviewerCount": 3,
"commitStrategy": "single-final",
"createPR": false,
"prDraft": true
}

Phase 0.1: Initialize Team and Blackboard

  1. Use TeamCreate to create the feature development team:

`` TeamCreate with team_name: "feature-dev-team" ``

  1. Create a shared blackboard for cross-agent context. Derive scope-slug from the feature description: lowercase, replace spaces and special characters with hyphens, truncate to 40 characters (e.g., "add webhook support" → "add-webhook-support"):

`` blackboard_create with task_id: "feature-dev-{scope-slug}" and TTL appropriate for the session ` Store the returned blackboard ID as blackboard_id`.

  1. Use TaskCreate to create high-level phase tasks:
  • "Phase 1: Discovery + Elicitation"
  • "Phase 2: Codebase Exploration"
  • "Phase 3: Clarifying Questions"
  • "Phase 4: Architecture Design"
  • "Phase 5: Implementation"
  • "Phase 6: Quality Review"
  • "Phase 7: Summary + Cleanup"

Phase 0.2: Task Discovery Protocol Template

All teammates receive this protocol in their spawn prompt:

BLACKBOARD: {blackboard_id}
Use blackboard_read(task_id="{blackboard_id}", key="...") to read shared context written by other agents.
Use blackboard_write(task_id="{blackboard_id}", key="...", value="...") to share your findings.
TASK DISCOVERY PROTOCOL:
1. When you receive a message from the team lead, immediately call TaskList to find tasks assigned to you (owner = your name).
2. Call TaskGet on your assigned task to read the full description.
3. Work on the task.
4. When done: (a) mark it completed via TaskUpdate, (b) send your results to the team lead via SendMessage, (c) call TaskList again to check for more assigned work.
5. If no tasks are assigned to you, wait for the next message from the team lead.
6. NEVER commit code via git — only the team lead commits.

All agents are spawned on-demand when their phase begins — not upfront. This avoids wasting resources if the user abandons after elicitation. code-explorer instances spawn in Phase 2, architect instances in Phase 4, feature-code and refactor-test in Phase 5, and code-reviewer instances in Phase 6.

Phase 1: Discovery + Elicitation

Goal: Achieve 95% confidence in understanding the feature before proceeding.

95% Confidence Elicitation Protocol
  1. Parse $ARGUMENTS as the initial feature description.
  1. Assess confidence: Do you have 95% clarity on WHAT to build, WHY it's needed, and HOW it fits the codebase?
  1. Confidence assessment criteria (all must be YES for 95%):
  • [ ] Can state the problem in one sentence
  • [ ] Can list acceptance criteria (at least 3)
  • [ ] Know scope boundaries (what's excluded)
  • [ ] Understand key user interactions
  • [ ] Know integration touchpoints
  • [ ] Aware of critical constraints
  1. If confidence < 95%, use AskUserQuestion to elicit missing details. Ask only about the gaps — do not re-ask dimensions the user already covered. Target these dimensions as needed:
  • Problem statement: What problem does this solve? Who is affected?
  • Scope boundaries: What is IN scope vs explicitly OUT of scope?
  • Acceptance criteria: How will we know it's done? What does "working" look like?
  • User-facing behavior: What should the user experience? Inputs, outputs, interactions?
  • Edge cases: What happens with invalid input, empty state, errors, concurrent use?
  • Integration points: What existing systems/modules does this touch?
  • Constraints: Performance requirements, backward compatibility, platform support?
  • Non-functional: Security, accessibility, observability needs?

Graduated elicitation — match question count to the actual gap size:

  • High confidence (80-94%): Ask 1-3 targeted questions about specific remaining gaps. Do not over-elicit when the user has been thorough.
  • Medium confidence (50-79%): Ask 4-8 focused questions organized by dimension.
  • Low confidence (<50%): Ask 8-15 questions covering all unaddressed dimensions.
  • For implementation details that architects can resolve in Phase 4, note them as "deferred to architecture" rather than asking the user. Only ask users about requirements gaps, not design gaps.
  1. After each user response, re-assess confidence. If still < 95%, ask follow-up questions on remaining gaps only.
  1. Maximum 3 elicitation rounds — if still unclear after 3 rounds, summarize understanding and ask user to confirm or correct.
  1. Write confirmed feature spec to blackboard:

`` blackboard_write(task_id="{blackboard_id}", key="feature_spec", value="{structured feature specification}") ``

  1. Only proceed to Phase 2 when confidence >= 95% OR user explicitly says "proceed".

Phase 2: Codebase Exploration

Goal: Understand relevant existing code and patterns deeply.

Step 2.0: Scale Instance Counts to Feature Complexity

Before spawning, assess whether the feature warrants the configured number of instances. For simple, fully-specified features (confidence was 90%+ with zero elicitation), reduce counts:

  • Simple features (single endpoint, trivial logic, clear integration): 1 explorer, 1 architect, 1-2 reviewers
  • Medium features (multiple components, some integration complexity): 2 explorers, 2 architects, 2-3 reviewers
  • Complex features (cross-cutting, multiple systems, significant design decisions): use full configured counts

Store the effective counts as effective_explorerCount, effective_architectCount, effective_reviewerCount.

Step 2.1: Spawn Explorer Instances

Spawn effective_explorerCount (default from config: 3, scaled in Step 2.0) code-explorer instances in parallel, each with a different focus:

For i in 1..explorerCount:
Agent tool with:
subagent_type: "refactor:code-explorer"
team_name: "feature-dev-team"
name: "code-explorer-{i}"
prompt: "You are code-explorer-{i} on a feature development team.
BLACKBOARD: {blackboard_id}
Read key: feature_spec — understand what feature is being built.
Write key: explorer_{i}_findings — write your exploration findings.
Your focus: {focus_for_instance_i}
{TASK DISCOVERY PROTOCOL}"

Focus assignment examples (adapt to the specific feature):

  • Explorer 1: "Find features similar to [{feature}] and trace their implementation comprehensively"
  • Explorer 2: "Map the architecture, abstractions, and module boundaries for [{feature area}]"
  • Explorer 3: "Analyze integration points, extension mechanisms, and testing patterns relevant to [{feature}]"
Step 2.2: Create and Assign Tasks

For each explorer instance, create a task:

TaskCreate: "Explore the codebase for [{feature}]. Focus: {focus}. Read feature_spec from blackboard. Include a list of 5-10 essential files with rationale."
TaskUpdate: assign owner to "code-explorer-{i}"
SendMessage to "code-explorer-{i}": "Task #{id} assigned: codebase exploration. Start now."
Step 2.3: Wait and Consolidate
  1. Wait for all explorer tasks to complete.
  2. Read all explorer_{i}_findings from the blackboard.
  3. Read all files identified by explorers as essential (the team lead reads these to build deep understanding).
  4. Consolidate findings into a unified codebase context.
  5. Write consolidated context to blackboard:

`` blackboard_write(task_id="{blackboard_id}", key="codebase_context", value="{consolidated context}") ``

  1. Present comprehensive summary of findings and patterns to the user.

Phase 3: Clarifying Questions

Goal: Fill in gaps surfaced by codebase exploration.

CRITICAL: This phase is NOT redundant with Phase 1. Phase 1 elicits WHAT/WHY before code exploration. Phase 3 elicits HOW/WHERE after understanding the codebase.

Actions
  1. Review the codebase findings alongside the feature spec.
  2. Identify ambiguities surfaced by exploration:
  • How should the feature integrate with discovered patterns?
  • Are there design preferences given the existing architecture?
  • Are there edge cases visible now that weren't obvious before?
  • Are there backward compatibility concerns?
  • Which existing abstractions should be reused vs extended?
  1. If ambiguities exist: Present questions to the user in a clear, organized list using AskUserQuestion. Wait for answers before proceeding.
  2. If no ambiguities exist: Inform the user that exploration revealed no additional questions, summarize the key patterns discovered, and proceed to Phase 4. Write a clarifications entry noting "No additional clarifications needed — codebase patterns are clear."
  3. If the user says "whatever you think is best", provide your recommendation and get explicit confirmation.
  4. Write clarifications to blackboard:

`` blackboard_write(task_id="{blackboard_id}", key="clarifications", value="{user answers or 'No additional clarifications needed'}") ``

Phase 4: Architecture Design

Goal: Design multiple implementation approaches and let the user choose.

Step 4.1: Spawn Architect Instances

Spawn effective_architectCount (default from config: 3, scaled in Phase 2 Step 2.0) architect instances in parallel, each with a different design philosophy:

For i in 1..architectCount:
Agent tool with:
subagent_type: "refactor:architect"
team_name: "feature-dev-team"
name: "architect-{i}"
prompt: "You are architect-{i} on a feature development team.
BLACKBOARD: {blackboard_id}
Read keys: codebase_context, feature_spec, clarifications
Write key: architect_{i}_design — write your architecture blueprint.
Your design philosophy: {philosophy_for_instance_i}
{TASK DISCOVERY PROTOCOL}"

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
2
7-day trend score
5

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/zircote-plugins/refactor/feature-dev/badge)](https://verified-skill.com/skills/zircote-plugins/refactor/feature-dev)

Something wrong with this skill or its page? Tell us.