Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计未展示

spec-knowledge规格知识

Agent Skill

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

总安装

528

周安装

22

GitHub Stars

公开资料未说明

下载量

176
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add elct9620/claude-spec-plugin --skill "spec-knowledge"

简介

spec-knowledge 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。

  • 适用于研究检索类任务,可结合来源仓库、安装命令和原始 README 继续核验具体用法。
  • 通过 npx skills add elct9620/claude-spec-plugin --skill "spec-knowledge" 命令安装。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

name
spec-knowledge
description
Maintains consistency when creating, modifying, reading, reviewing, or working with specifications. Use when user mentions SPEC.md, requirements, or any specification documents to ensure consistent handling. Provides specification knowledge—quality criteria, editing methods, and three-layer framework (Intent/Design/Consistency).
license
Apache-2.0
metadata
author
Aotokitsuruya

Specification

Expertise for working with software specifications.

What Makes a Good Specification

A specification describes the target state—what the system looks like when complete.

Specification ISSpecification is NOT
Target state descriptionImplementation plan
Design decisions (what)Decision rationale (why)
Declarative statementsNarrative explanations

Core principle: Constrain design, open implementation.

  • Specify all user-visible decisions
  • Leave internal implementation choices to implementers
  • If an implementer must guess a design decision, the specification is incomplete

Anti-patterns:

  • Note: — If clarification needed, specification is unclear. Rewrite directly.
  • (Future), (v2) — Describes target state, not phases. Remove or split into separate spec.
  • (Optional) — Either required for target state or belongs in Non-goals.

Three Layers

Complete specifications address three layers:

LayerPurposeKey Question
IntentWhy this existsWhat problem for whom?
DesignWhat to buildWhat boundaries, interfaces, behaviors?
ConsistencyHow to stay unifiedWhat patterns for similar problems?

Intent Layer

Provides context for judgment calls:

ElementRoleCore
PurposeWhat problem the system solves
UsersWho uses it, what they accomplish
ImpactsWhat behavior changes indicate success (drives priority)
Success criteriaWhat defines "done" and "working"
Non-goalsWhat is explicitly out of scope

Without intent, implementers make technically correct but misaligned decisions.

Design Layer

Defines observable behaviors and boundaries:

ElementRoleFormatCore
System boundaryWhat's inside vs outsideSee Boundary types
User journeysTask flows achieving impactsContext → Action → Outcome
InterfacesContracts between internal modules-
PresenterHow system presents to usersUI: colors, layout / CLI: output format / API: response structure
BehaviorsOutcomes for each state × operationState + Operation → Result
Error scenariosHow failures are handled-

Boundary types:

TypeDefinesExample
ResponsibilityWhat system does / does not do"Validates input; does not store history"
InteractionInput assumptions / Output guarantees"Assumes authenticated user; Returns JSON only"
ControlWhat system controls / depends on"Controls order state; Depends on payment service"

Consistency Layer

Establishes patterns for uniform implementation (all items enhance quality, none required for minimal spec):

ConceptRoleExample
ContextShared understanding"This is event-driven"
TerminologySame concept uses same name throughout"Order" not "Purchase/Transaction/Request"
PatternRecurring situation → approach"State changes via events"
FormExpected structure"Events have type, payload", "Primary: #FF0000", "Errors to stderr"
ContractInteraction agreement"Handlers must be idempotent"

Weave these into relevant sections rather than listing separately.

Implementation Standards (Optional)

For projects requiring code-level consistency across multiple contributors or extended development periods.

CategoryPurposeExamples
ArchitectureModule boundaries and dependenciesClean Architecture, Hexagonal, Layered
Design PatternsReusable solutionsRepository, Factory, Strategy
Testing StyleTest structure and conventionsGiven-When-Then, Arrange-Act-Assert
Code OrganizationDirectory structure and namingFeature-based, layer-based, naming conventions

When to include:

  • Multiple contributors work on the codebase
  • Development spans extended periods
  • Codebase requires shared conventions

When to skip:

  • Simple scripts or single-file utilities
  • Prototypes or proof-of-concept
  • Short-lived projects

Quality Criteria

Specification Rubric

Rate each item Y (yes) or N (no).

Intent Layer

#CriterionRequiredY/N
1Purpose stated in one sentence?
2Target users identified?
3Impacts (behavior changes) identified?
4Success criteria measurable or verifiable?

Design Layer

#CriterionRequiredY/N
5Each documented feature has defined behavior?
6Error scenarios cover all documented features?
7Interaction points (internal and external) have explicit contracts?
8Implementer can build without clarifying questions?

Consistency Layer

#CriterionRequiredY/N
9Key terms defined and used consistently throughout?
10Recurring situations have named patterns?
11Two implementers would produce compatible results?

Passing Criteria:

  • All Required Y → Specification is usable. Stop unless improving quality.
  • All items Y → Specification is complete. Stop.
  • Any Required N → Must address before implementation.
  • Non-required N → Address only if relevant to project scope.

Balance Check

QuestionDesign Decision (specify)Implementation Detail (open)
User-visible?Error messages, CLI outputLog format, variable names
Affects modules?Interface signaturesInternal functions
Needs consistency?Error handling patternAlgorithm choice
Could misalign?Business rulesPerformance optimization

Test: "If implemented differently, would users notice or would modules conflict?"

Warning signs of over-specification: internal implementation details, algorithm choices (unless user-visible)

Warning signs of under-specification: vague terms ("appropriate", "reasonable"), undefined behavior for reachable states

Common Problems

ProblemSymptomCauseFix
Missing intentTechnical tasks instead of user valueNo purpose/users definedAdd intent layer
Undefined scenariosInconsistent edge case behaviorIncomplete state coverageEnumerate all combinations
Over-specificationImplementer constrained unnecessarilyImplementation details includedKeep only observable behaviors
Inconsistent patternsSimilar problems solved differentlyNo shared conventionsExtract and reference patterns
Inconsistent terminologySame concept has multiple namesNo shared vocabularyDefine key terms, use consistently
Vague languageAmbiguous interpretation"Handle appropriately"Use specific values or criteria
Hidden assumptionsWorks only in specific contextUnstated prerequisitesMake all assumptions explicit
Explanatory notes"Note: because..." appearsMixing rationale with specRewrite as direct statement
Phase markers"(Future)", "(v2)" in specMixing planning with specRemove; spec describes target state

Applying This Knowledge

Progressive Approach

Apply to both writing new specifications and improving existing ones. When improving, identify current phase and proceed from there.

PhaseFocusOutputConfirm
1. IntentWhy and for whomPurpose, Users, ImpactsRubric #1-2 Y
2. ScopeWhat's includedFeature list, User journeys (Context → Action → Outcome)List complete
3. BehaviorHow it worksFeature behaviors, Error scenariosRubric #5-6, #8 Y
4. RefinementQualityPatterns, Contracts, TerminologyRubric #7, #9-11 as needed

Rules:

  • Do not write Phase 3 details until Phase 2 is confirmed
  • Phase 2 defines user-facing flows; Phase 3 defines internal behaviors
  • Return to earlier phases when new understanding emerges
  • Specification is usable after Phase 3 (all Required Y)

When Reviewing

Assess against three layers:

  1. Intent: Can I explain why this system exists and for whom?
  2. Design: Can I predict behavior for any user action?
  3. Consistency: Will similar situations be handled similarly?

Key questions:

  • Is this complete enough to implement without guessing?
  • Are all design decisions explicit?
  • Will two implementers produce compatible results?

Flag: missing layers, vague language, implementation details that should be open, design decisions that should be specified.

Splitting Content

Default: Keep everything in SPEC.md.

Use this decision table to determine when to extract content:

DecidesExpandsExternal→ Action
Y--Keep in SPEC.md
NN-Keep in SPEC.md
NYNMay extract (summary + link)
NYYExtract (link only)

Conditions:

  • Decides: Cannot understand what to build without reading this
  • Expands: Complete definition of a decision (all fields, all cases)
  • External: Maintained by different role/tool

Examples:

ContentDecidesExpandsExternal→ Action
Feature behaviorY--Keep
Decision tableY--Keep
Error handling rulesY--Keep
API endpoints (3-5)NN-Keep
Full DB schema (50+ fields)NYNMay extract
Complete test casesNYNMay extract
Figma designNYYExtract

When extracting:

  • SPEC.md keeps the decision/summary
  • Link: See [Schema](docs/schema.md) for field definitions
  • Detail documents follow same principles
TypeLocation
Data structuresdocs/schema.md
Visual designdocs/design.md or external
Test casesdocs/tests.md

When updating specifications:

  • First determine: decision or detail?
  • Decisions go in SPEC.md, details may go in referenced documents
  • If adding to external document, verify SPEC.md has the governing decision

Writing tip: Use tables (like this decision table) to define boundaries and rules. Tables make conditions explicit and reduce ambiguity.

Handling Uncertainty

Undecided design choices

Do not leave gaps. Instead:

  1. Present options with tradeoffs
  2. Request a decision
  3. Document the choice

Incomplete information

Mark explicitly what is decided vs pending:

## Technical Stack

Decided:
- Runtime: Node.js >= 20

To be decided:
- Database: PostgreSQL or SQLite
  (depends on deployment target)

Conflicting requirements

Surface the conflict explicitly and request resolution rather than making assumptions.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

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

平台分布

Claude Code

29.84%
按下载量换算53

OpenCode

23.51%
按下载量换算41

Codex

16.82%
按下载量换算30

Gemini CLI

12.2%
按下载量换算21

windsurf

8.3%
按下载量换算15

trae

3.84%
按下载量换算7

安全审计

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

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills