Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问clear审计未展示

spec-writing规范编写

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

220

周安装

9

GitHub Stars

公开资料未说明

下载量

71
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add linaqruf/cc-plugins --skill "spec-writing"

简介

spec-writing 用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。

  • 适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。
  • 通过 npx skills add linaqruf/cc-plugins --skill "spec-writing" 命令安装。
  • 使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

name
spec-writing
description
Use when the user wants to create project specs, design systems, or feature plans. Triggers on "create spec", "plan project", "design system", "plan feature", or "write specification".
version
3.0.0

Spec Writing v3.0

Generate comprehensive project specifications with SPEC.md as the core file and optional supplements for reference material.

Core Principle

SPEC.md is always the complete spec. SPEC/ files are optional lookup supplements.

SPEC.md               # Always created, always self-sufficient
CLAUDE.md             # Generated with spec references

SPEC/                 # Optional, created when user agrees
├── api-reference.md  # Lookup: endpoint schemas, request/response
├── sdk-patterns.md   # Lookup: external SDK usage patterns
└── data-models.md    # Lookup: complex entity schemas

Key distinction:

  • SPEC.md = Things you READ (narrative, decisions, requirements)
  • **SPEC/*.md** = Things you LOOK UP (schemas, SDK patterns, external API details)

Single Adaptive Flow

One interview flow replaces previous Quick/SPEC/DEEP modes:

Interview starts
    ↓
Build SPEC.md progressively
    ↓
Hit reference-heavy topic? ──→ Ask: "Create SPEC/[topic].md for lookup?"
    ↓                                    ↓
Continue interview                  User decides (yes/no)
    ↓
Generate SPEC.md + CLAUDE.md
    ↓
If user said yes → Generate SPEC/[topic].md files

Interview Workflow

Phase 1: Vision & Problem

  • Problem statement
  • Target users
  • Success criteria

Phase 2: Requirements

  • MVP features (must-have)
  • Out of scope (explicit)
  • User flows

Phase 3: Architecture

  • System type detection
  • Architecture pattern (present 2-3 alternatives with tradeoffs)
  • Tech stack with recommendations

Phase 4: Tech Stack Details

  • Frontend (if applicable)
  • Backend (if applicable)
  • Database (if applicable)
  • Use multiple choice with recommendations

Phase 5: Design & Security

  • Visual design (if frontend)
  • Authentication approach
  • Constraints & compliance

Supplement Prompts (Mid-Interview)

When hitting reference-heavy topics, ask:

"Your API has 15 endpoints with detailed schemas. Should I: - A) Keep it inline in SPEC.md (shorter reference section) - B) Create SPEC/api-reference.md as a separate lookup file"

Create supplements only for:

  • Reference material - Stuff you look up, not read through
  • External dependencies - SDK docs, library patterns, third-party APIs

Opinionated Recommendations

Lead with recommended options, allow override:

Which package manager?

- A) bun (Recommended) - Fastest, built-in test runner, drop-in npm replacement
- B) pnpm - Fast, strict dependency resolution, good for monorepos
- C) npm - Universal compatibility, no setup needed
- D) yarn - If team already uses it

Principles:

  1. Lead with recommended option + brief rationale
  2. Context-aware (desktop app? acknowledge Tauri vs Electron tradeoffs)
  3. Acknowledge "it depends" cases (team familiarity, existing codebase)
  4. Stay current with ecosystem changes

SPEC.md Structure

# [Project Name]

## Overview
Problem, solution, target users, success criteria.

## Product Requirements
Core features (MVP), future scope, out of scope, user flows.

## Technical Architecture
Tech stack (with rationale), system design diagram, data models, API endpoints.

## System Maps
- Architecture diagram (ASCII)
- Data model relations
- User flow diagrams
- Wireframes (key screens)

## Design System
(If frontend) Colors, typography, components, accessibility.

## File Structure
Project directory layout.

## Development Phases
Phased implementation plan with checkboxes.

## Open Questions
Decisions to make during development.

---

## References
(If supplements exist) Trigger-based links to SPEC/ files.

Connecting SPEC.md to Supplements

When supplements exist, reference them with triggers:

Inline (in relevant sections):

## API Design

**Endpoints overview:**
- `POST /auth/login` - User authentication
- `GET /projects` - List user projects

→ When implementing endpoints, reference `SPEC/api-reference.md` for full request/response schemas.

References section (bottom):

---

## References

→ When implementing API endpoints: `SPEC/api-reference.md`
→ When using Anthropic SDK: `SPEC/sdk-patterns.md`

CLAUDE.md Generation

Agent-optimized pointer file:

# [Project Name]

[One-line description]

## Spec Reference

Primary spec: `SPEC.md`

→ When implementing API endpoints: `SPEC/api-reference.md`
→ When using [SDK/Library]: `SPEC/sdk-patterns.md`

## Key Constraints

- [Critical constraint 1 - surfaced from spec]
- [Critical constraint 2]
- [Out of scope reminder]

## Commands

- `[package-manager] run dev` - Start development
- `[package-manager] run test` - Run tests
- `[package-manager] run build` - Production build

## Current Status

→ Check `SPEC.md` → Development Phases section

Principles:

  • Surface critical constraints directly (prevent missed context)
  • Trigger-based supplement references
  • Short - pointer, not duplication
  • Status points to SPEC.md (single source)

Context7 Integration

After tech choices, fetch relevant documentation:

1. resolve-library-id for each technology
2. query-docs for setup guides and patterns
3. Include insights in relevant spec files

Best Practices

Interview Conduct

  • Multiple choice: Use AskUserQuestion options, not open-ended text
  • 2-3 alternatives: For key decisions, show options with tradeoffs
  • YAGNI: Ruthlessly simplify - "Do we really need this for MVP?"
  • Supplements on demand: Only offer when content is truly reference-heavy

Output Quality

  • Be specific and actionable
  • Include code examples for data models
  • Reference Context7 documentation
  • Keep scope realistic for MVP
  • Include system maps (architecture, data relations, user flows)

Reference Files

Templates

  • references/output-template.md - SPEC.md structure
  • templates/index.template.md
  • templates/overview.template.md
  • templates/architecture.template.md
  • templates/frontend.template.md
  • templates/backend.template.md
  • templates/design-system.template.md
  • templates/api-reference.template.md
  • templates/cli-reference.template.md
  • templates/data-models.template.md
  • templates/security.template.md

References

  • references/interview-questions.md - Question bank with recommendations
  • references/spec-folder-template.md - Supplement structure guide

Examples

  • examples/web-app-spec.md
  • examples/cli-spec.md
  • examples/api-spec.md
  • examples/library-spec.md

Related Commands

  • /spec - Generate project specification
  • /feature - Generate feature specification
  • /design - Generate design system specification
  • /sync - Sync spec with codebase changes (git-aware)

Integration with Other Skills

feature-dev

After creating specs, use feature-dev agents:

  1. code-explorer - Analyze existing patterns
  2. code-architect - Design implementation
  3. code-reviewer - Review implementation

frontend-design

Use design specs to implement components following the specification.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

27.48%
按下载量换算20

windsurf

23.84%
按下载量换算17

OpenCode

20.69%
按下载量换算15

Claude Code

12.28%
按下载量换算9

Antigravity

8.92%
按下载量换算6

Gemini CLI

3.39%
按下载量换算2

安全审计

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

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

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

来源信息

继续浏览同类 Skills