zircote-plugins/refactor/feature-dev
Claude Code and agent skill by zircote-plugins/refactor
- community
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-devSKILL.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
- Attempt to read
.claude/refactor.config.jsonfrom the project root - If file exists: Parse the JSON silently. Merge with defaults (any missing fields use defaults). Store as
config. Proceed to Phase 0.1. - If file does NOT exist: Create with defaults and proceed.
Config schema v3.1 — feature-dev uses the featureDev section:
Defaults (applied silently when featureDev key is missing):
Phase 0.1: Initialize Team and Blackboard
- Use TeamCreate to create the feature development team:
`` TeamCreate with team_name: "feature-dev-team" ``
- Create a shared blackboard for cross-agent context. Derive
scope-slugfrom 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`.
- 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:
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
- Parse
$ARGUMENTSas the initial feature description.
- Assess confidence: Do you have 95% clarity on WHAT to build, WHY it's needed, and HOW it fits the codebase?
- 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
- 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.
- After each user response, re-assess confidence. If still < 95%, ask follow-up questions on remaining gaps only.
- Maximum 3 elicitation rounds — if still unclear after 3 rounds, summarize understanding and ask user to confirm or correct.
- Write confirmed feature spec to blackboard:
`` blackboard_write(task_id="{blackboard_id}", key="feature_spec", value="{structured feature specification}") ``
- 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:
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:
Step 2.3: Wait and Consolidate
- Wait for all explorer tasks to complete.
- Read all
explorer_{i}_findingsfrom the blackboard. - Read all files identified by explorers as essential (the team lead reads these to build deep understanding).
- Consolidate findings into a unified codebase context.
- Write consolidated context to blackboard:
`` blackboard_write(task_id="{blackboard_id}", key="codebase_context", value="{consolidated context}") ``
- 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
- Review the codebase findings alongside the feature spec.
- 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?
- If ambiguities exist: Present questions to the user in a clear, organized list using AskUserQuestion. Wait for answers before proceeding.
- 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."
- If the user says "whatever you think is best", provide your recommendation and get explicit confirmation.
- 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:
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
- SKILL.md in the repositoryCheckingskills/feature-dev/SKILL.md
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
[](https://verified-skill.com/skills/zircote-plugins/refactor/feature-dev)