Token导航 LogoToken导航TokenDH.com
研究检索执行命令unknown未标认证来源可访问许可证需确认审计未展示

feature-spec功能规格

Agent Skill

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

总安装

240

周安装

10

下载量

80
Local Agent

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。当前暂无明确安装命令,请以来源页面说明为准。

简介

feature-spec 工具聚焦于功能需求的细化与验收标准制定。

  • 适用于敏捷开发中的用户故事拆分与 DoD 定义。
  • 支持用例场景枚举与边界条件覆盖检查。feature-spec 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 规格文档应保持与技术实现强同步防止漂移。
  • 非功能性需求如性能与安全也需纳入考量范围。

SKILL.md

Generate a feature specification document for the feature $1.

Workflow

Copy this checklist and track progress:

Feature Spec Progress:
- [ ] Directory guard
- [ ] Handle arguments (feature name)
- [ ] Create feature directory
- [ ] Existing file guard (prevent overwrite)
- [ ] Run guided Q&A process (from PROMPT.md)
- [ ] Write FEATURE_SPEC.md
- [ ] Capture deferred requirements
- [ ] Cross-model review (if Codex available)

Directory Guard

  1. If .toolkit-marker exists in the current working directory → STOP: "You're in the toolkit repo. Feature skills run from your project directory. Run: cd ~/Projects/your-project && /feature-spec $1"
  2. Check .claude/toolkit-version.json exists in the current working directory (confirms /setup was run). If missing → STOP: "Toolkit not installed. Run /setup from the toolkit first."
  3. Check AGENTS.md exists in the current working directory (confirms project root). If missing → STOP: "Run this from your project root (where AGENTS.md lives)."

Arguments

  • $1 = feature name (e.g., analytics, dark-mode)
  • If $1 is empty, ask the user for the feature name
  • PROJECT_ROOT = current working directory
  • FEATURE_DIR = PROJECT_ROOT/features/$1

Create features/$1/ if it doesn't exist:

mkdir -p "features/$1"

Existing File Guard (Prevent Overwrite)

Before asking any questions, check whether FEATURE_DIR/FEATURE_SPEC.md already exists.

  • If it does not exist: continue normally.
  • If it exists: STOP and ask the user what to do:

1. Backup then overwrite (recommended): read the existing file and write it to FEATURE_DIR/FEATURE_SPEC.md.bak.YYYYMMDD-HHMMSS, then write the new document to FEATURE_DIR/FEATURE_SPEC.md 2. Overwrite: replace FEATURE_DIR/FEATURE_SPEC.md with the new document 3. Abort: do not write anything; suggest they rename/move the existing file first

Process

Read .claude/skills/feature-spec/PROMPT.md and follow its instructions exactly:

  1. Ask the user to describe the feature they want to add
  2. Work through each question category (Problem, Users, Behavior, Integration, Scope)
  3. Make recommendations with confidence levels
  4. Generate the final FEATURE_SPEC.md document

Output

Write the completed specification to FEATURE_DIR/FEATURE_SPEC.md.

Deferred Requirements Capture (During Q&A)

IMPORTANT: Capture deferred requirements interactively during the Q&A process, not after.

Write deferred items to PROJECT_ROOT/DEFERRED.md (not the feature directory).

When to Trigger

During the Q&A, watch for signals that the user is deferring something:

  • "out of scope"
  • "not in this feature" / "separate feature"
  • "v2" / "future version"
  • "later" / "eventually"
  • "follow-up" / "future enhancement"
  • "nice to have"
  • "we'll skip that for now"

Capture Flow

When you detect a deferral signal, immediately use AskUserQuestion:

Question: "Would you like to save this to your deferred requirements?"
Header: "Defer?"
Options:
  - "Yes, capture it" — I'll ask a few quick questions to document it
  - "No, skip" — Don't record this

If user selects "Yes, capture it":

Ask these clarifying questions:

  1. What's being deferred? "In one sentence, what's the requirement or feature?" (Pre-fill with your understanding from context)
  2. Why defer it? Options: "Out of scope for this feature" / "Separate feature" / "V2" / "Needs more research" / "Other"
  3. Notes for later? "Any context that will help when revisiting this?" (Optional — user can skip)

Write to DEFERRED.md Immediately

After collecting answers, append to PROJECT_ROOT/DEFERRED.md right away.

If file doesn't exist, create it:

# Deferred Requirements

> Captured during specification Q&A. Review when planning future versions.

## From FEATURE_SPEC.md: {FEATURE_NAME} ({date})

| Requirement | Reason | Notes |
|-------------|--------|-------|
| {user's answer} | {selected reason} | {notes or "—"} |

If file exists, add new feature section or append to existing:

## From FEATURE_SPEC.md: {FEATURE_NAME} ({date})

| Requirement | Reason | Notes |
|-------------|--------|-------|
| {user's answer} | {selected reason} | {notes or "—"} |

Continue Q&A

After capturing (or skipping), continue the spec Q&A where you left off.

Verification (Automatic)

After writing FEATURE_SPEC.md, run quality verification:

  1. Invoke /verify-spec feature-spec on the generated document
  2. This runs quality checks only (no upstream context preservation since FEATURE_SPEC.md has no upstream):

- Q-001: Vague/unmeasurable language ("fast", "user-friendly", "simple") - Q-002: Subjective terms without targets ("better", "improved") - Q-003: Missing rationale for decisions - Q-005: Implicit assumptions - Q-006: Conflicting requirements - Q-PS-001: Missing user flow (feature mentioned without step-by-step interaction) - Q-PS-002: Only happy path described (no edge cases) - Q-PS-003: Unbounded scope ("all", "any", "every" without limits) - Q-PS-004: Missing non-functional requirements (performance, security, accessibility)

  1. Present CRITICAL issues with resolution options (max 2 fix iterations)
  2. Do not proceed to cross-model review until verification passes or user explicitly chooses to proceed with noted issues

Cross-Model Review (Automatic)

After verification, run cross-model review if Codex CLI is available:

  1. Check if Codex CLI is installed: codex --version
  2. If available, run /codex-consult on the generated document
  3. Present any findings to the user before proceeding

Consultation invocation:

/codex-consult --research "feature requirements, user stories" features/$1/FEATURE_SPEC.md

If Codex finds issues:

  • Show critical issues and recommendations
  • Ask user: "Address findings before proceeding?" (Yes/No)
  • If Yes: Apply suggested fixes
  • If No: Continue with noted issues

If Codex unavailable: Skip silently and proceed to Next Step.

Error Handling

SituationAction
Feature name argument is empty and user does not provide onePrompt again with AskUserQuestion; do not proceed without a feature name
FEATURE_SPEC.md already exists and user selects "Abort"Stop immediately, do not write any files, suggest renaming or moving the existing file
PROMPT.md not found at .claude/skills/feature-spec/PROMPT.mdStop and report "Skill asset missing — reinstall toolkit or run /setup"
DEFERRED.md write fails (permissions or disk)Output deferred items to terminal, warn user, continue with spec generation
Codex CLI invocation fails or times outLog the error, skip cross-model review, proceed to Next Step

Next Step

When complete, inform the user:

FEATURE_SPEC.md created at features/$1/FEATURE_SPEC.md
Deferred Requirements: {count} items captured to DEFERRED.md
Verification: PASSED | PASSED WITH NOTES | NEEDS REVIEW
Cross-Model Review: PASSED | PASSED WITH NOTES | SKIPPED

Next: Run /feature-technical-spec $1

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Local Agent

81.47%
按下载量换算65

安全审计

暂无安全审计结果可展示。

权限和风险

执行命令

安装流程涉及命令执行,可能通过 第三方 CLI 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills