Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问clear审计未展示

spec-writer规范编写者

Agent Skill

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

总安装

349

周安装

14

GitHub Stars

公开资料未说明

下载量

113
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add zpankz/mcp-skillset --skill "spec-writer"

简介

用于查找、检索和筛选相关信息。spec-writer 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

  • 适合在关键词搜索或任务场景中快速定位候选结果。
  • 可结合来源仓库和原始 README 核验具体用法。
  • 安装前建议确认权限范围和维护状态。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • 注意是否会触发联网、命令执行或文件读写操作。

SKILL.md

name
spec-writer
description
This skill should be used when writing technical specifications, architecture documents, or design proposals that require structured analysis, clear documentation, and actionable implementation plans.
license
Complete terms in LICENSE.txt

Specification Writer

This skill provides guidance for writing high-quality technical specifications that communicate complex systems, design decisions, and implementation strategies effectively.

Core Capabilities

This skill supports:

  1. System Architecture Specs - Document system design, component interactions, data flow
  2. Feature Specifications - Define requirements, user stories, acceptance criteria
  3. Technical Proposals - Present solutions, trade-offs, implementation strategies
  4. Design Documents - Capture design decisions, rationale, alternatives considered
  5. Process Documentation - Describe workflows, procedures, automation pipelines
  6. Mapping Specifications - Document conversion strategies between systems

When to Use This Skill

Use this skill when:

  • Writing architectural decision records (ADRs)
  • Creating system design documents
  • Proposing new features or enhancements
  • Documenting complex integrations or migrations
  • Explaining technical trade-offs to stakeholders
  • Creating implementation roadmaps
  • Mapping between different systems or frameworks

Specification Structure Template

Frontmatter (YAML/Metadata)

Every specification should begin with structured metadata:

---
title: Descriptive Title
version: 1.0.0
date: YYYY-MM-DD
status: draft | review | approved | deprecated
authors:
  - Name/Entity
categories:
  - category1
  - category2
related:
  - path/to/related/doc1
  - path/to/related/doc2
---

Purpose: Makes specs discoverable, trackable, and navigable.

Document Sections

1. Executive Summary

Length: 2-4 paragraphs Purpose: High-level overview for decision-makers

Include:

  • What is being proposed/documented
  • Why it matters (business/technical value)
  • Key outcomes or decisions
  • Critical success factors

2. Problem Statement / Context

Length: 1-3 sections Purpose: Establish shared understanding of the problem

Include:

  • Current state analysis
  • Pain points or limitations
  • User impact or business drivers
  • Constraints or requirements

3. Proposed Solution / Design

Length: Variable (main body of spec) Purpose: Detailed technical approach

Include:

  • High-level architecture diagram (mermaid/ASCII)
  • Component breakdown with responsibilities
  • Data flow and interactions
  • Key design decisions with rationale
  • Technology choices (with alternatives considered)

4. Implementation Plan

Length: 1-2 sections Purpose: Actionable roadmap

Include:

  • Phased approach (Phase 1, 2, 3...)
  • Dependencies and prerequisites
  • Timeline estimates
  • Risk mitigation strategies
  • Success metrics

5. Trade-offs and Limitations

Length: 1 section Purpose: Honest assessment of constraints

Include:

  • What this solution doesn't address
  • Known limitations or caveats
  • Performance/scalability considerations
  • Security implications
  • Cost analysis (time, resources, complexity)

6. Alternatives Considered

Length: 1 section Purpose: Show due diligence

Include:

  • Alternative approaches (2-3)
  • Why each was rejected
  • Comparative analysis when relevant

7. Open Questions / Future Work

Length: Short list Purpose: Surface unknowns and next steps

Include:

  • Unresolved technical questions
  • Areas requiring more research
  • Future enhancements out of scope
  • Follow-up specifications needed

8. References

Length: List Purpose: Citations and further reading

Include:

  • Related documentation
  • External resources
  • API documentation
  • Research papers or blog posts

Writing Style Guidelines

Use Imperative/Infinitive Form

Good: "To accomplish X, configure Y" Bad: "You should configure Y to accomplish X"

Good: "Process files in batches" Bad: "The system will process files in batches"

Rationale: Direct, action-oriented language is clearer for both humans and AI agents.

Be Specific and Concrete

Vague: "The system should be fast" Specific: "Process 1000 requests/sec with <100ms p99 latency"

Vague: "Use appropriate error handling" Specific: "Retry with exponential backoff (3 attempts, 2x multiplier)"

Show, Don't Just Tell

Include:

  • Code examples for key interfaces
  • Diagram for complex flows
  • Sample input/output for transformations
  • Before/after comparisons for changes

Layer Information Progressively

Structure from high-level to low-level:

  1. Abstract overview
  2. Component-level design
  3. Implementation details
  4. Edge cases and optimizations

Readers can stop at appropriate depth for their needs.

Diagrams and Visualizations

Mermaid Diagrams

Use mermaid for:

  • Flowcharts (graph TB)
  • Sequence diagrams (sequenceDiagram)
  • State machines (stateDiagram-v2)
  • Entity relationships (erDiagram)

Example:

graph TB
    A[Input] --> B{Validate?}
    B -->|Valid| C[Process]
    B -->|Invalid| D[Error]
    C --> E[Output]

ASCII Diagrams

Use for simple structures:

Input → [Validator] → [Processor] → [Storage]
            ↓              ↓
        [Logger]      [Metrics]

Architecture Patterns

Use standard patterns when applicable:

  • Pipes and Filters (Unix philosophy)
  • Event-Driven Architecture
  • Layered Architecture
  • Microservices
  • MVC/MVP/MVVM

Specification Types and Templates

1. System Architecture Spec

Focus on:

  • Component boundaries
  • Data flow and state management
  • API contracts
  • Scalability and performance
  • Failure modes and recovery

2. Feature Specification

Focus on:

  • User stories and use cases
  • Acceptance criteria
  • UI/UX considerations
  • API changes
  • Testing strategy

3. Migration/Mapping Spec

Focus on:

  • Current state → Target state
  • Conversion strategy (1:1, hybrid, workaround)
  • Fidelity assessment (what's preserved, what's lost)
  • Validation and testing
  • Rollback plan

4. Integration Spec

Focus on:

  • External systems and protocols
  • Authentication and authorization
  • Rate limiting and quotas
  • Error handling and retries
  • Monitoring and alerting

5. Process/Workflow Spec

Focus on:

  • Step-by-step procedures
  • Input/output for each step
  • Automation opportunities
  • Error recovery
  • Metrics and success criteria

Best Practices

1. Start with "Why"

Always explain the motivation before diving into "how". Readers need context to evaluate solutions.

2. Use Consistent Terminology

Define terms once, use consistently throughout. Create a glossary for complex domains.

3. Be Honest About Trade-offs

Every design has limitations. Acknowledging them builds credibility and helps stakeholders make informed decisions.

4. Include Success Metrics

Define measurable criteria for success:

  • Performance targets
  • Quality metrics
  • User satisfaction indicators
  • Business outcomes

5. Version and Date Specs

Technical decisions evolve. Timestamps and versions help readers understand when decisions were made and which is canonical.

6. Make Specs Searchable

Use:

  • Clear headings (H1, H2, H3)
  • Keywords in frontmatter
  • Descriptive filenames
  • Internal links for cross-references

7. Keep Specs Living Documents

Update specs when:

  • Implementation reveals new insights
  • Requirements change
  • Alternatives are discovered
  • Lessons are learned post-launch

Mark deprecated sections clearly.

Anti-Patterns to Avoid

❌ Vague Requirements

Bad: "The system should be secure and fast" Good: "Encrypt data at rest (AES-256) and in transit (TLS 1.3). Support 10k req/s with <200ms p95 latency."

❌ Implementation Without Rationale

Bad: "Use Redis for caching" Good: "Use Redis for caching because it provides atomic operations, pub/sub, and persistence options. Considered Memcached (faster but lacks persistence) and Hazelcast (better for distributed scenarios but adds complexity)."

❌ Assuming Knowledge

Bad: "Configure the usual K8s setup" Good: "Deploy as StatefulSet with 3 replicas, PersistentVolumeClaim per pod, headless service for DNS-based discovery."

❌ No Examples

Provide concrete examples for:

  • API requests/responses
  • Configuration files
  • Command-line usage
  • File formats

❌ Ignoring the Reader

Consider your audience:

  • Engineers: Need implementation details
  • Architects: Need system-level view
  • Product: Need feature/benefit explanation
  • Executives: Need ROI and timeline

Write sections for each or use progressive disclosure.

Templates

Quick Spec Template

---
title: [Feature/System Name]
version: 1.0.0
date: YYYY-MM-DD
status: draft
---

# [Title]

## Summary
[2-3 sentences: what, why, impact]

## Problem
[Current pain point or opportunity]

## Solution
[High-level approach]

## Implementation
1. Phase 1: [description]
2. Phase 2: [description]
3. Phase 3: [description]

## Trade-offs
- Pro: [benefit]
- Con: [limitation]

## Success Metrics
- Metric 1: [target]
- Metric 2: [target]

Architecture Spec Template

---
title: [System Name] Architecture
version: 1.0.0
date: YYYY-MM-DD
---

# [System Name] Architecture

## Overview
[2-3 paragraphs: purpose, scope, key components]

## Architecture Diagram
[mermaid or ASCII diagram]

## Components

### Component A
- **Responsibility**: [what it does]
- **Interface**: [API/contracts]
- **Dependencies**: [what it needs]

### Component B
[repeat structure]

## Data Flow
[Describe end-to-end flow]

## Key Design Decisions

### Decision 1: [title]
- **Context**: [why this decision needed]
- **Chosen**: [selected approach]
- **Alternatives**: [what was considered]
- **Rationale**: [why chosen over alternatives]

## Non-Functional Requirements
- **Performance**: [targets]
- **Scalability**: [growth plan]
- **Reliability**: [uptime, recovery]
- **Security**: [auth, encryption, compliance]

## Implementation Roadmap
[Phased plan with timeline]

## Risks and Mitigations
[Known risks with mitigation strategies]

Mapping Spec Template

---
title: [Source] → [Target] Mapping
version: 1.0.0
date: YYYY-MM-DD
---

# [Source] to [Target] Mapping Specification

## Executive Summary
[Viability, strategy, fidelity]

## Current State (Source)
[Structure, features, examples]

## Target State
[Target structure, constraints, capabilities]

## Mapping Strategy
[Direct, hybrid, workaround]

## Conversion Process

### Phase 1: [name]
[Steps, tools, validation]

### Phase 2: [name]
[Steps, tools, validation]

## Fidelity Analysis

### High Fidelity (>90%)
- Feature X maps directly
- Feature Y has equivalent

### Medium Fidelity (70-90%)
- Feature Z requires adaptation

### Low Fidelity (<70%)
- Feature W not supported

## Limitations
[What can't be mapped and why]

## Validation
[How to verify successful mapping]

## Automation
[Scripts, tools, continuous sync]

Examples

Example 1: Architecture Spec

See: specs/cursor-skills-mapping.md

  • Clear viability assessment
  • Detailed component mapping
  • Trade-offs documented
  • Implementation phases defined
  • Success metrics included

Example 2: Process Spec

See: specs/enhanced-skill-generator-pipeline.md

  • Unix philosophy applied
  • Atomic composability explained
  • Pipeline visualized with mermaid
  • Multiple usage examples provided
  • Success criteria enumerated

Example 3: Feature Spec

When documenting a new feature:

  1. User stories (what users want to do)
  2. Acceptance criteria (how to verify)
  3. API/interface changes
  4. Migration path for existing users
  5. Testing strategy

Integration with Skills

This skill complements:

  • architecture - For system design analysis
  • skill-creator - For skill specification documents
  • document-skills - For formatting and templates
  • mcp-builder - For MCP server specs

Validation Checklist

Before finalizing a spec, verify:

  • [ ] Frontmatter complete with title, version, date, status
  • [ ] Executive summary present (2-4 paragraphs)
  • [ ] Problem/context clearly stated
  • [ ] Solution explained with diagrams
  • [ ] Implementation plan with phases
  • [ ] Trade-offs and limitations documented
  • [ ] Alternatives considered section included
  • [ ] Success metrics defined
  • [ ] References provided
  • [ ] Consistent terminology throughout
  • [ ] Code examples for key interfaces
  • [ ] Diagrams for complex flows
  • [ ] Actionable for intended audience

References

Quick Reference

Command: Write clear, structured specifications Output: Actionable technical documentation Audience: Engineers, architects, stakeholders Format: Markdown with YAML frontmatter Tools: Diagrams (mermaid), examples, templates

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

OpenCode

28.35%
按下载量换算32

Claude Code

22.19%
按下载量换算25

windsurf

15.48%
按下载量换算17

Codex

12.22%
按下载量换算14

kiro-cli

7.06%
按下载量换算8

mcpjam

3%
按下载量换算3

安全审计

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

权限和风险

external-service

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

安装前确认

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

来源信息

继续浏览同类 Skills