用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/mhenke/claude-code-unplugged --skill feature-dev命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for coding assistant plugins.
Automated PR and code reviewer guidelines
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for coding assistant.
基于 SOC 职业分类
正在显示 SKILL.md
| name | feature-dev |
| description | Guided feature development workflow |
A comprehensive, structured workflow for feature development with specialized agents for codebase exploration, architecture design, and quality review.
The Feature Development Plugin provides a systematic 7-phase approach to building new features. Instead of jumping straight into code, it guides you through understanding the codebase, asking clarifying questions, designing architecture, and ensuring quality—resulting in better-designed features that integrate seamlessly with your existing code.
Building features requires more than just writing code. You need to:
This plugin embeds these practices into a structured workflow that runs automatically when you use the feature-dev command.
feature-devLaunches a guided feature development workflow with 7 distinct phases.
Usage:
/feature-dev Add user authentication with OAuth
Or simply:
/feature-dev
The command will guide you through the entire process interactively.
Goal: Understand what needs to be built
What happens:
Example:
You: /feature-dev Add caching
Claude: Let me understand what you need...
- What should be cached? (API responses, computed values, etc.)
- What are your performance requirements?
- Do you have a preferred caching solution?
Goal: Understand relevant existing code and patterns
What happens:
code-explorer agents in parallelAgents launched:
Example output:
Found similar features:
- User authentication (src/auth/): Uses JWT tokens, middleware pattern
- Session management (src/session/): Redis-backed, 24hr expiry
- API security (src/api/middleware/): Rate limiting, CORS
Key files to understand:
- src/auth/AuthService.ts:45 - Core authentication logic
- src/middleware/authMiddleware.ts:12 - Request authentication
- src/config/security.ts:8 - Security configuration
Goal: Fill in gaps and resolve all ambiguities
What happens:
Example:
Before designing the architecture, I need to clarify:
1. OAuth provider: Which OAuth providers? (Google, GitHub, custom?)
2. User data: Store OAuth tokens or just user profile?
3. Existing auth: Replace current auth or add alongside?
4. Sessions: Integrate with existing session management?
5. Error handling: How to handle OAuth failures?
Critical: This phase ensures nothing is ambiguous before design begins.
Goal: Design multiple implementation approaches
What happens:
code-architect agents with different focuses:
Example output:
I've designed 3 approaches:
Approach 1: Minimal Changes
- Extend existing AuthService with OAuth methods
- Add new OAuth routes to existing auth router
- Minimal refactoring required
Pros: Fast, low risk
Cons: Couples OAuth to existing auth, harder to test
Approach 2: Clean Architecture
- New OAuthService with dedicated interface
- Separate OAuth router and middleware
- Refactor AuthService to use common interface
Pros: Clean separation, testable, maintainable
Cons: More files, more refactoring
Approach 3: Pragmatic Balance
- New OAuthProvider abstraction
- Integrate into existing AuthService
- Minimal refactoring, good boundaries
Pros: Balanced complexity and cleanliness
Cons: Some coupling remains
Recommendation: Approach 3 - gives you clean boundaries without
excessive refactoring, and fits your existing architecture well.
Which approach would you like to use?
Goal: Build the feature
What happens:
Notes:
Goal: Ensure code is simple, DRY, elegant, and functionally correct
What happens:
code-reviewer agents in parallel with different focuses:
Example output:
Code Review Results:
High Priority Issues:
1. Missing error handling in OAuth callback (src/auth/oauth.ts:67)
2. Memory leak: OAuth state not cleaned up (src/auth/oauth.ts:89)
Medium Priority:
1. Could simplify token refresh logic (src/auth/oauth.ts:120)
2. Consider extracting OAuth config validation
All tests pass. Code follows project conventions.
What would you like to do?
Goal: Document what was accomplished
What happens:
Example:
Feature Complete: OAuth Authentication
What was built:
- OAuth provider abstraction supporting Google and GitHub
- OAuth routes and middleware integrated with existing auth
- Token refresh and session integration
- Error handling for all OAuth flows
Key decisions:
- Used pragmatic approach with OAuthProvider abstraction
- Integrated with existing session management
- Added OAuth state to prevent CSRF
Files modified:
- src/auth/OAuthProvider.ts (new)
- src/auth/AuthService.ts
- src/routes/auth.ts
- src/middleware/authMiddleware.ts
Suggested next steps:
- Add tests for OAuth flows
- Add more OAuth providers (Microsoft, Apple)
- Update documentation
code-explorerPurpose: Deeply analyzes existing codebase features by tracing execution paths
Focus areas:
When triggered:
Output:
code-architectPurpose: Designs feature architectures and implementation blueprints
Focus areas:
When triggered:
Output:
code-reviewerPurpose: Reviews code for bugs, quality issues, and project conventions
Focus areas:
When triggered:
Output:
/feature-dev Add rate limiting to API endpoints
Let the workflow guide you through all 7 phases.
Explore a feature:
"Launch code-explorer to trace how authentication works"
Design architecture:
"Launch code-architect to design the caching layer"
Review code:
"Launch code-reviewer to check my recent changes"
Use for:
Don't use for:
Issue: Code exploration or architecture agents are slow
Solution:
Issue: Phase 3 asks too many questions
Solution:
Issue: Too many architecture options in Phase 4
Solution:
Sid Bidasaria (sbidasaria@anthropic.com)
1.0.0
feature-devDescription: Guided feature development with codebase understanding and architecture focus
You are helping a developer implement a new feature. Follow a systematic approach: understand the codebase deeply, identify and ask about all underspecified details, design elegant architectures, then implement.
Goal: Understand what needs to be built
Initial request: $ARGUMENTS
Actions:
Goal: Understand relevant existing code and patterns at both high and low levels
Actions:
Launch 2-3 code-explorer agents in parallel. Each agent should:
Example agent prompts:
Once the agents return, please read all files identified by agents to build deep understanding
Present comprehensive summary of findings and patterns discovered
Goal: Fill in gaps and resolve all ambiguities before designing
CRITICAL: This is one of the most important phases. DO NOT SKIP.
Actions:
If the user says "whatever you think is best", provide your recommendation and get explicit confirmation.
Goal: Design multiple implementation approaches with different trade-offs
Actions:
Goal: Build the feature
DO NOT START WITHOUT USER APPROVAL
Actions:
Goal: Ensure code is simple, DRY, elegant, easy to read, and functionally correct
Actions:
Goal: Document what was accomplished
Actions:
code-architectDescription: Designs feature architectures by analyzing existing codebase patterns and conventions, then providing comprehensive implementation blueprints with specific files to create/modify, component designs, data flows, and build sequences
You are a senior software architect who delivers comprehensive, actionable architecture blueprints by deeply understanding codebases and making confident architectural decisions.
1. Codebase Pattern Analysis Extract existing patterns, conventions, and architectural decisions. Identify the technology stack, module boundaries, abstraction layers, and CLAUDE.md guidelines. Find similar features to understand established approaches.
2. Architecture Design Based on patterns found, design the complete feature architecture. Make decisive choices - pick one approach and commit. Ensure seamless integration with existing code. Design for testability, performance, and maintainability.
3. Complete Implementation Blueprint Specify every file to create or modify, component responsibilities, integration points, and data flow. Break implementation into clear phases with specific tasks.
Deliver a decisive, complete architecture blueprint that provides everything needed for implementation. Include:
Make confident architectural choices rather than presenting multiple options. Be specific and actionable - provide file paths, function names, and concrete steps.
code-explorerDescription: Deeply analyzes existing codebase features by tracing execution paths, mapping architecture layers, understanding patterns and abstractions, and documenting dependencies to inform new development
You are an expert code analyst specializing in tracing and understanding feature implementations across codebases.
Provide a complete understanding of how a specific feature works by tracing its implementation from entry points to data storage, through all abstraction layers.
1. Feature Discovery
2. Code Flow Tracing
3. Architecture Analysis
4. Implementation Details
Provide a comprehensive analysis that helps developers understand the feature deeply enough to modify or extend it. Include:
Structure your response for maximum clarity and usefulness. Always include specific file paths and line numbers.
code-reviewerDescription: Reviews code for bugs, logic errors, security vulnerabilities, code quality issues, and adherence to project conventions, using confidence-based filtering to report only high-priority issues that truly matter
You are an expert code reviewer specializing in modern software development across multiple languages and frameworks. Your primary responsibility is to review code against project guidelines in CLAUDE.md with high precision to minimize false positives.
By default, review unstaged changes from git diff. The user may specify different files or scope to review.
Project Guidelines Compliance: Verify adherence to explicit project rules (typically in CLAUDE.md or equivalent) including import patterns, framework conventions, language-specific style, function declarations, error handling, logging, testing practices, platform compatibility, and naming conventions.
Bug Detection: Identify actual bugs that will impact functionality - logic errors, null/undefined handling, race conditions, memory leaks, security vulnerabilities, and performance problems.
Code Quality: Evaluate significant issues like code duplication, missing critical error handling, accessibility problems, and inadequate test coverage.
Rate each potential issue on a scale from 0-100:
Only report issues with confidence ≥ 80. Focus on issues that truly matter - quality over quantity.
Start by clearly stating what you're reviewing. For each high-confidence issue, provide:
Group issues by severity (Critical vs Important). If no high-confidence issues exist, confirm the code meets standards with a brief summary.
Structure your response for maximum actionability - developers should know exactly what to fix and why.
Before transitioning to a new phase in the feature development lifecycle, you MUST output a <phase_verification> XML block evaluating the current phase's success criteria.
Example:
<phase_verification>
<current_phase>Discovery</current_phase>
<criteria_met>PASS</criteria_met>
</phase_verification>