Token导航 LogoToken导航

Agent Skill · 研究检索

feature-spec(功能规格)

feature-spec 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

feature-spec 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证为 MIT,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 42,577。

总安装 1,058周安装 45GitHub Stars 32下载 371核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:feature-spec(功能规格)
来源仓库:https://github.com/steveclarke/dotfiles
仓库路径:skills/feature-spec
安装命令:
npx skills add https://github.com/steveclarke/dotfiles --skill feature-spec
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/steveclarke/dotfiles --skill feature-spec

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

feature-spec 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。适用于研究检索类任务,如功能规格查找和信息筛选。通过 npx skills add 命令从指定 GitHub 仓库安装并使用。

安装前建议确认权限范围和维护状态,注意可能触发联网或文件读写操作。可结合原始 README 继续核验具体用法和功能细节。

来源仓库内路径:skills/feature-spec

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/steveclarke/dotfiles --skill feature-spec;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

feature-spec 怎么安装?

在终端执行 npx skills add https://github.com/steveclarke/dotfiles --skill feature-spec。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

feature-spec 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

feature-spec 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

feature-spec 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

feature-spec 用的人多吗?

公开数据是累计安装 1,058 次,近一周安装 45 次,下载 371 次,GitHub 32 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

feature-spec 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
feature-spec

功能规格 · 本页

1,05832调用外部服务MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Technical Specification

Overview

Structured command to help create concise technical specification documents by guiding through architectural decisions, system contracts, and technical design without getting bogged down in implementation details.

Create a technical specification document following the established feature development process. Comprehensive context available:

Required Reading:

  • Feature development guide: @~/.local/share/dotfiles/ai/guides/feature-development-process.md
  • Vision document: @vision.md
  • Requirements document: @requirements.md

Note: If the project has a local copy of the guide at @project/guides/feature-development-process.md, you may reference that instead for project-specific modifications.

Additional Context Available:

  • Full Codebase: Examine existing patterns in backend/ and frontend/ directories
  • Implementation Guides: Review backend/docs/guides/ and frontend/docs/guides/ for established patterns
  • Design Context: Use available MCP connections for design system access where relevant

Approach: Use all available context to inform your technical decisions. Most implementation patterns and architectural decisions should be derived from existing codebase analysis rather than asking basic questions.

IMPORTANT: Start by creating a TODO list to track phases of specification creation (typically 3 phases; add optional Phase 4 for design brief if feature has UI/UX complexity). Mark the first phase as "in_progress" and others as "pending".

Technical Specification Structure

CRITICAL: Specs define architecture and system contracts, NOT implementation details. Keep specs concise (5-10 pages) focused on WHAT and WHY, not HOW to code.

Specs Include:

  • Architecture Overview: Core decisions and system structure
  • System Components: What pieces exist and their roles/contracts
  • Data Contracts: Type definitions (frontend/backend appropriate to your language), database schemas, API contracts
  • Configuration Architecture: How the system is configured (not detailed examples)
  • Integration Patterns: How it fits with existing systems
  • Quality Attributes: Performance, reliability, maintainability requirements

Specs DO NOT Include:

  • ❌ Implementation code examples (those go in plans)
  • ❌ Step-by-step implementation details
  • ❌ Repetitive explanations of the same concepts

Process: Work Through These 3 Phases Sequentially

Phase 1: Context Analysis & Scope Confirmation

First, analyze the available context to understand the feature scope:

Context Analysis:

  1. Review the vision and requirements documents to understand the feature scope
  2. Examine the codebase to identify existing patterns and architectural approaches
  3. Check implementation guides in backend/docs/guides/ and frontend/docs/guides/ for relevant patterns
  4. Identify similar existing features to follow established patterns

Scope Confirmation - Ask clarifying questions only as needed:

  • Based on the requirements, this appears to be [full-stack/backend-only/frontend-only/background processing] - is this correct?
  • Are there any specific implementation constraints or preferences not covered in the requirements?
  • Is this a complete feature implementation or a specific phase (e.g., "Phase 1: Backend foundation")?
  • Any existing systems integration requirements beyond what's documented?

Goal: Confirm technical scope and identify relevant existing patterns to follow.

ONE QUESTION AT A TIME - Wait for answers before proceeding.

Phase 2: Implementation Design Using Existing Patterns

Based on codebase analysis and scope confirmation, design implementation following established patterns:

Design Approach:

  1. Follow Existing Patterns: Use similar features in the codebase as templates
  2. Apply Established Conventions: Follow patterns found in implementation guides
  3. Leverage Existing Systems: Integrate with established RBAC, multi-tenancy, etc.
  4. Ask Specific Questions: Only ask about unique aspects not covered by existing patterns

For Backend/Database work:

  • Model data following existing entity patterns and relationships
  • Define service contracts using appropriate type definitions for your language
  • Design API endpoints following established REST conventions and response formats
  • Use type definitions to document API request/response contracts and data structures
  • Apply standard authorization permissions and validation patterns
  • Search Integration: Determine search scope and indexing strategy

- Does search need own entity fields only, or related entity data? - Document search configuration approach

  • Sort Parameters: Document sortable columns and default sort behavior

- List specific sortable columns - Specify default sort order

  • Multi-Context Considerations: For features spanning multiple application contexts (internal/external, admin/user, etc.)

- Create separate response structures when contexts need different data - Example: External-facing may exclude internal fields that admin context needs - Always create explicit separation for security isolation, even if currently identical

  • Permitted Parameters: Document allowed parameters for each context

- List fields that can be created/updated - Note any fields excluded (generated, computed, or restricted)

  • Multi-Context Authorization: For features with multiple contexts, define permissions for each

- Internal context: Full CRUD permissions - External context: Limited permissions (often read-only) - Public API: May use different authentication (API keys vs session auth) - Same permission name may exist in multiple contexts with different scopes

  • Ask: Any unique business logic, constraints, or data relationships not seen in similar features?

For Frontend/UI work:

  • Follow existing UI component architecture and data contract patterns
  • Use established responsive and navigation integration approaches
  • Apply standard design system and component library usage
  • Type Organization: Determine if types should be context-specific or shared

- Context-specific types: When different parts of the application need different data structures - Shared/core types: Only for truly shared types across all contexts - Request payload types: Colocate with the code that uses them

  • Ask: Do different contexts need the same data structure, or different subsets?
  • Ask: Any unique UI interactions or integration requirements?

For Background Processing:

  • Follow existing job processing and scheduling patterns
  • Apply standard error handling and monitoring approaches
  • Ask: Any unique processing requirements or timing constraints?

Goal: Leverage existing codebase patterns and ask only about unique implementation aspects.

Phase 3: Specification Document Creation

Goal: Create a concise (5-10 pages), architectural specification focused on system design and contracts.

Recommended Section Flow:

Organize sections to flow naturally from foundational data through backend to frontend, allowing each discipline to read contiguously:

  1. Overview - Universal context (everyone reads)
  2. Architecture Overview - Core design decisions (everyone reads)
  3. Data Architecture - Database schema, models, validation (backend starts here)
  4. API Architecture - Endpoints, request/response contracts (backend continues)
  5. Authorization Architecture - Permissions, policies (backend continues)
  6. Integration Architecture - Search, audit, documents, external systems (backend continues)
  7. Frontend Architecture - Types, components, pages (frontend reads, referencing API section as needed)
  8. Design & UX Requirements - Design brief reference and dev summary (designers + frontend)
  9. Configuration Architecture - Settings, feature flags (supporting concerns)
  10. File Organization - Where files live (supporting concerns)
  11. Quality Attributes - Performance, security, reliability (supporting concerns)

Why This Flow Works:

  • Contiguous reading: Backend devs read sections 1-6, frontend devs read 1-2 + 7-8
  • Natural progression: Data layer → Backend → Presentation → Supporting concerns
  • No jumping around: Each discipline gets their content in one block
  • Shared foundation: Everyone starts with overview and architecture context

Flexibility: Omit sections not relevant to your feature (e.g., backend-only features skip Frontend/Design sections).


Key Sections to Include (details for each section type):

  • API Architecture (if backend/API work):

- Endpoint definitions (routes, parameters, query params, sortable columns) - Request/Response Contracts (BACKEND ONLY - structure and format) - List response template/serializer files (architecture) - Show entity structure per context (contract) - Show response wrappers (collection/single entity patterns) - Show request payload examples - Document permitted attributes - NO implementation code - that's for the plan - Keep backend contracts separate from frontend types

  • Authorization Architecture (if authorization required):

- Permission Definitions (separate by context) - Internal context permissions (full access category) - External context permissions (limited access category) - Note if public API uses different authentication - Authorization Policy Contracts (type definitions for each context) - Name policies by context: "Internal Policy", "External Policy" - Public API: May use API key authentication instead of role-based - Add Authorization Notes referencing permissions section (don't repeat permissions)

  • Frontend Architecture (if UI work):

- Type Definitions (using your frontend language's type system) - Entity interfaces (one per context if different) - Response wrapper types - Request payload types (colocated with usage) - Context-specific vs shared type decisions - Components, modules, pages (organized by context) - Start each context section with "File Summary" (routes, pages, modules, types, components) - Follow with "Detailed Breakdown" for implementation details - File Summary gives developers quick reference cheat sheet

Spec Content Guidelines:

  • Include table of contents with systematic section numbering (1.1, 1.2, 2.1, 2.2, etc.) following markdown standards
  • Architecture Overview: Core decisions, technology choices, system structure
  • System Components: Define component roles and contracts using appropriate type definitions for your language
  • Data Architecture: Database schemas, API contracts, event structures - show the shape/contract, not implementation
  • Configuration Architecture: How components are configured (environment variables, config files) - not detailed examples
  • File Organization: Where components live and why
  • Quality Attributes: Performance, reliability, maintainability considerations
  • Integration Patterns: How it connects to existing systems
  • Requirement Cross-References: Use requirement IDs when referencing requirements (e.g., "implements REQ-2.1.1", "addresses US-1.1.2", "satisfies SC-3")

Backend API Response Design (Request/Response Contracts):

  • ✅ Focus on response structure: Show what the response should look like, not how to build it
  • ✅ File architecture: List response template/serializer files to show where logic lives
  • ✅ Response examples: Provide concrete examples for each context
  • ✅ Pure backend focus: Keep frontend types separate from backend contracts
  • ✅ Context-specific separation: For multi-context features, show separate contracts

- Example: Internal API entity (full data with internal fields) - Example: External API entity (limited data, public fields only) - Example: Public API entity (if different from external)

  • ✅ Wrapper patterns: Show how entities are wrapped (e.g., data and metadata keys)
  • ✅ Standard patterns: Reference standard pagination/filtering patterns without spelling out every field
  • ❌ No implementation code: Save implementation details for the plan
  • ❌ No repetitive examples: Reference earlier contracts instead of duplicating

Frontend Type Definitions:

  • ✅ Context-specific types: Types should be organized by context when they have different data structures

- Internal context may need full entity with all fields - External context may need simplified entity with limited fields

  • ✅ Shared types: Only use shared/core types for truly universal types across all contexts
  • ✅ Request payload types: Colocate with the code that uses them, not in separate type files

- Follow naming pattern appropriate to your framework

  • ✅ Match backend structure: Frontend types should mirror backend responses exactly
  • ✅ Include imports: Show proper import statements for shared types

Writing Guidelines:

  • ✅ Keep it concise: Each concept explained once, no repetition
  • ✅ Focus on contracts: Type definitions, database schemas, API structures
  • ✅ Architectural decisions: WHAT you're building and WHY, not HOW to code it
  • ✅ Clear structure: Logical flow from overview → components → integration
  • ✅ Backend/Frontend separation: Keep API sections pure backend (response structure), Frontend sections pure frontend (types)
  • ❌ No implementation code: No detailed code examples (save for implementation plans)
  • ❌ No repetitive examples: If you show a pattern once, don't show it again
  • ❌ Keep layers separate: API contracts separate from frontend types

Phase 4: Design Brief Creation (Optional)

When to Create: Features with UI/UX components that require designer collaboration.

When to Skip:

  • Backend-only features
  • Simple UI updates following established patterns
  • Features where requirements already contain sufficient design detail

Goal: Extract design-relevant information into standalone document so designer doesn't need to dig through requirements and spec.

Design Brief Content (design-brief.md):

  • Page Inventory: What pages/screens need to be designed
  • Component Requirements: What components are needed and what data they display (plain language, no code)
  • Interaction Patterns: User flows for key interactions
  • Form Fields: What fields, labels, validation rules, help text
  • Responsive Considerations: Mobile-first, breakpoints, accessibility
  • Design Deliverables: What designer should provide to developers

Writing Guidelines:

  • ✅ Plain language: No code or technical jargon
  • ✅ Data needs: "Component displays: title, date, location" not implementation
  • ✅ Standalone: Designer shouldn't need to refer back to requirements
  • ✅ Actionable: Every section helps designer make decisions
  • ❌ Don't prescribe colors: Let designer make visual choices
  • ❌ Don't include backend details: Focus on what user sees/does

Spec Integration: Add lightweight section in spec.md that references the full design brief and provides quick summary for developers.

Update discussion-summary.md

After generating spec documents, update the discussion summary:

  • Check if discussion-summary.md exists in the feature directory
  • If exists: Add a "Spec Phase" section with:

- Architectural decisions and their rationale - Technology choices explored and selected - Technical research conducted during spec phase - Update Key Decisions Log with spec decisions (continuing numbering) - Update Technical Context with newly referenced files

  • If not exists: Create it with full structure including earlier phase placeholders

Codebase Patterns to Reference

Always examine existing code before making technical decisions:

Backend Patterns:

  • API responses: Check existing response templates/serializers for multi-field entity examples
  • Response wrappers: Check how entities are wrapped (data and metadata patterns)
  • Search patterns: Review how search functionality is implemented
  • Context separation: Look for existing patterns where different contexts need different responses

Frontend Patterns:

  • Type organization: Review existing type files for entity and response type patterns
  • Data mutations: Review existing patterns for create/update operations
  • Context-specific types: Review existing features that have context-specific vs shared types
  • Response structure: See how frontend types mirror backend responses

Authorization Patterns:

  • Permission organization: Review how permissions are organized by context
  • Context-specific permissions: Same permission name may exist in different contexts with different scopes
  • Policy structure: Check existing authorization policy patterns
  • Public API: Note if public API uses different authentication (API keys vs sessions)

Implementation Guides

If your project has implementation guides, reference them instead of including implementation code in specs. Specs should mention WHAT needs to be implemented and reference the appropriate guide for HOW to implement it.

Common guide topics to consider:

  • Search functionality patterns
  • File upload and attachment patterns
  • Audit trail / change tracking
  • Multi-tenancy approaches
  • Role-based authorization
  • State machine patterns
  • Testing patterns and conventions
  • Authentication strategies
  • Database migration best practices

How to Reference Guides in Specs (if your project has them):

  • ✅ "See implementation guide for search configuration details"
  • ✅ "Follow established patterns for file attachment handling"
  • ✅ "Reference authorization guide for permission structure"
  • ❌ Don't include implementation code in specs
  • ❌ Don't duplicate guide content in specifications

Multi-Context Architecture Patterns

When features span multiple application contexts (internal, external, public), follow these patterns:

Complete Separation Principle:

  • Handlers/Controllers: Separate request handlers for each context
  • Response Templates: Separate response structures for each context, even if currently identical
  • Authorization: Separate authorization policies for each context; Public API may use different auth
  • Permissions: Define permissions for each context with appropriate scopes
  • Types: Context-specific types when data structures differ
  • Routes: Different route namespaces or prefixes for each context

Why Complete Separation:

  • Security: Prevents accidental data leakage between contexts
  • Flexibility: Each context can evolve independently
  • Clarity: Clear boundaries make intent explicit
  • Maintenance: Changes to one context don't affect others

Common Context Patterns:

  • Internal/Admin context: Full CRUD, includes management and audit fields
  • External/User context: Limited operations, excludes internal fields
  • Public API: Often most restricted, may use different authentication (API keys vs sessions)

Common Spec Pitfalls to Avoid

Backend/API Section Pitfalls

❌ Showing implementation code - Show response structure, not how to build it ❌ Mixing layers - Keep API sections pure backend, frontend types separate ❌ Over-engineering search - Only add complex search when actually needed ❌ Unnecessary fields - Ask whether audit/timestamp fields belong in API responses ❌ Spelling out standard patterns - Reference standard patterns without repeating details ❌ Wrong location for parameters - Document permitted attributes in authorization layer ❌ Reusing structures across contexts - Always create separate structures for security ❌ Missing context authorization - Define permissions for all contexts ❌ Generic "everything is sortable" - List specific sortable columns ❌ Inconsistent authentication - Document different auth approaches per context

Frontend/Type Section Pitfalls

❌ Shared types for context-specific data - Different contexts often need different type structures ❌ Centralizing request types - Keep them colocated with usage ❌ Repetitive type definitions - Don't duplicate types in API and Frontend sections ❌ Missing imports - Type definitions need proper import statements ❌ Unused imports - Only import types that are actually used ❌ Missing File Summary sections - Start each context with quick reference cheat sheet

General Spec Pitfalls

❌ Too much implementation code - Specs define contracts, plans define implementation ❌ Repetitive examples - Show pattern once, reference it elsewhere ❌ Missing architecture notes - Explain WHY things are separate (security, isolation) ❌ Repeating permissions - Reference Permission Definitions section, don't duplicate

Guidelines

  • Context First: Always analyze existing codebase patterns and implementation guides before asking questions
  • Smart Questions: Ask only about unique aspects not covered by existing patterns
  • Pattern Following: Base technical decisions on established codebase conventions
  • Architectural Focus: Define system structure and contracts, not implementation steps
  • Concise Communication: Explain each concept once clearly, avoid repetition
  • Minimal Interaction: Leverage comprehensive context to reduce back-and-forth questions
  • Update TODO list as you complete each phase
  • Phase 1: Analyze context and confirm scope rather than basic discovery
  • Phase 2: Design using existing patterns, ask only about unique aspects
  • Phase 3: Create architectural specification showing system contracts and decisions
  • Phase 4 (Optional): Create design brief for features with UI/UX complexity to give designer standalone document
  • Business Context: Reference vision and requirements for understanding, not for traceability
  • Practical Focus: Design immediately buildable solutions using proven patterns
  • Backend/Frontend Separation: Keep backend contracts separate from frontend types

Getting Started Process

  1. Create your TODO list immediately (3 phases, or 4 if design brief needed)
  2. Ask user: "What feature directory are you working in? Please provide the full path (e.g., project/features/FT033-feature-name)"
  3. Ask user: "Please tag your vision document with @vision.md and requirements document with @requirements.md"
  4. Validate the directory exists and confirm where you'll create spec.md
  5. Review the vision and requirements document to understand feature context
  6. Begin Phase 1 with the first technical discovery question
  7. Keep questions focused and wait for answers before proceeding to next questions

平台分布

windsurf

27.85%
按下载量换算103

OpenCode

26.76%
按下载量换算99

Codex

17.03%
按下载量换算63

Claude Code

14.61%
按下载量换算54

Antigravity

9.17%
按下载量换算34

Gemini CLI

3.55%
按下载量换算13

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills