Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计提醒

spec规格说明

Agent Skill

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

总安装

563

周安装

23

GitHub Stars

8

下载量

180
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/phrazzld/claude-config --skill spec

简介

spec 用于查找和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据线索定位结果。
  • 通过 GitHub 安装,建议结合来源仓库和 README 核验用法。
  • 需确认是否会触发联网或命令执行后再使用。
  • spec 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

SPEC

"People don't want a quarter-inch drill. They want a quarter-inch hole." — Levitt

Role

Product lead clarifying WHAT to build and WHY. Technical HOW comes in /architect.

Dual Mode

Exploration mode — User invokes directly. Full interactive discovery. Quick mode — Autopilot invokes on well-defined issue. Streamlined interview, then spec.

Detection: Well-defined issue with clear problem statement + context = quick mode. Raw idea, vague issue, no issue, or user explicitly exploring = exploration mode.


Exploration Mode

Phase 1: Understand

Accept input: raw idea (string), issue ID, or observation.

  1. If no issue exists: create skeleton immediately (gh issue create)
  2. If issue exists: gh issue view $1 --comments
  3. Load project.md if present (falls back to vision.md)
  4. Read relevant codebase context (adjacent features, existing patterns)

Present: "Here's what I understand about this idea. Let me investigate the problem space."

Phase 2: Investigate

Launch agents in parallel:

AgentFocus
Problem explorerWhat's the real problem? Who has it? How painful?
Web research agentHow do others solve this? Current best practices, docs (Gemini)
Codebase explorerExisting patterns, affected files, reusable utilities
User impact analystWho's affected, how much, cost of inaction

Synthesize findings. Present: "Here's what we know about this problem space."

Use AskUserQuestion to validate understanding:

  • "Is this the right problem framing?"
  • "Who's the primary user here?"
  • "What does success look like?"

Phase 3: Brainstorm Product Approaches

For raw or vague ideas, open with /brainstorming before entering the spec loop. It surfaces design options via dialogue with user approval gates before writing anything.

Generate 3-5 approaches from a product perspective. For each:

  • What the user experiences — Concrete interaction flow
  • What value it delivers — Why someone would care
  • Scope — Small / Medium / Large
  • What it enables downstream — Future possibilities

Recommend one. Present all with clear reasoning.

Phase 4: Discussion Loop

Iterate with the user. This loop continues until approach is locked:

  1. Present approaches with recommendation
  2. User questions, challenges, steers ("What about X?", "I prefer Y because Z")
  3. Agents dig deeper on areas of interest
  4. Refine approaches based on discussion
  5. User locks direction — or explores more

Use AskUserQuestion for structured decisions. Plain conversation for open-ended exploration.

No limit on rounds. The spec isn't ready until the user says it is.

Phase 5: Codify

Write product spec on the issue:

## Product Spec

### Problem
[Validated problem — 2-3 sentences]

### Users
**Primary**: [Role] — [context, pain, goal]

### Recommended Approach
[Chosen direction and why]

### Acceptance Criteria
- [ ] Given [precondition], when [action], then [outcome]
- [ ] Given [precondition], when [action], then [outcome]

### Affected Files
- `path/file.ts` — [what changes and why]

### User Stories
- As [persona], I want [action] so that [value]

### Success Metrics
| Metric | Target | How Measured |

### Non-Goals
- [What we're NOT building]

### Boundaries
- Do NOT modify [X]
- Do NOT change [Y]

### Verification

[commands to verify the implementation works]


### Open Questions for Architect

[Technical unknowns surfaced during exploration]

## Flow

flowchart LR A([User opens X]) --> B[Does Y] B --> C{Decision?} C -- Yes --> D[Path A] C -- No --> E[Path B] D & E --> F([Goal achieved])

Diagram selection:

  • Feature with user interaction → flowchart LR (user journey)
  • Feature with branching logic → flowchart TD (decision tree)
  • Integration/API feature → sequenceDiagram

Load ~/.claude/skills/visualize/references/github-mermaid-patterns.md for annotated examples and GitHub gotchas.

If scope is large: yield multiple atomic issues linked via epic.

Post spec as comment: gh issue comment $1 --body "..."

Update labels:

gh issue edit $1 --remove-label "status/needs-spec" --add-label "status/needs-design"

Stress-test with /critique $1 to find gaps.


Quick Mode (Autopilot)

Triggered when autopilot calls /spec on a well-defined issue.

  1. Read issue + comments: gh issue view $1 --comments
  2. Brief interview (1-2 AskUserQuestion max) — only if ambiguities exist
  3. Draft spec with Codex: codex exec "DRAFT product spec for [issue]. Problem: [X]. Users: [Y]. Include user stories, success metrics, non-goals." \ --output-last-message /tmp/codex-spec.md 2>/dev/null
  4. Validate with Thinktank: thinktank /tmp/spec-review.md./README.md --synthesis
  5. Post spec, update labels to status/needs-design

Completion

Exploration mode: "Product spec locked — includes flow diagram. Ready for /architect $1 or /shaping $1." Quick mode: "Product spec complete — includes flow diagram. Next: /architect $1"

Note: For interactive exploration with formal Shape Up methodology (Rs/Ss notation, fit checks), prefer /shaping. /spec is the product-only primitive used by autopilot's quick mode.

Visual Deliverable

After completing the core workflow, generate a visual HTML summary:

  1. Read ~/.claude/skills/visualize/prompts/spec-overview.md
  2. Read the template(s) referenced in the prompt
  3. Read ~/.claude/skills/visualize/references/css-patterns.md
  4. Generate self-contained HTML capturing this session's output
  5. Write to ~/.agent/diagrams/spec-{feature}-{date}.html
  6. Open in browser: open ~/.agent/diagrams/spec-{feature}-{date}.html
  7. Tell the user the file path

Skip visual output if:

  • The session was trivial (single finding, quick fix)
  • The user explicitly opts out (--no-visual)
  • No browser available (SSH session)

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

展示第三方安全扫描或审计结果

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

平台分布

Codex

37.4%
按下载量换算67

Claude

26.03%
按下载量换算47

Cursor

17.69%
按下载量换算32

Gemini CLI

9.18%
按下载量换算17

安全审计

Gen Agent Trust Hub

可疑

Socket

可疑

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

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

来源信息

继续浏览同类 Skills