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

software-design-doc软件设计文档

Agent Skill

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

总安装

312

周安装

13

GitHub Stars

公开资料未说明

下载量

104
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/rjtpp/agent-software-doc-skills --skill software-design-doc

简介

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写,适合提炼结构或补齐章节。

  • 它能统一术语或检查链接,使用时需保留项目已有事实、命令和路径。
  • 避免把未确认的信息写成确定结论,涉及对外文案时还需控制语气。
  • 通过 npx skills add https://github.com/rjtpp/agent-software-doc-skills --skill software-design-doc 安装。
  • 适用于文档编写类任务,需确保内容准确。

SKILL.md

Software Design Description

Create or review an SDD using an IEEE 1016-inspired structure while staying pragmatic for project context.

Resources

Mandatory preflight sequence:

  1. Read available context first (PRD/SDD/repo docs relevant to the request).
  2. Optionally run a size check for large doc sets: python3 scripts/count_text_size.py --glob "<sdd-root>/**/*.md" --by-heading.
  3. Recommend mode, detail profile, and output root from that context.
  4. Ask for user confirmation before drafting.

Do not start drafting until preflight confirmation is received, unless user explicitly uses /fast or /assume.

Copyright and Standards Safety (Mandatory)

  • Treat IEEE 1016-2009 as a conceptual reference only.
  • Use original wording in all generated outputs.
  • Do not reproduce or closely paraphrase any copyrighted standard text, tables, or figures.
  • Do not provide clause text on request; provide section-alignment guidance and ask the user to consult their licensed standard copy for normative wording.
  • When referring to IEEE structure, cite section identifiers only (for example Clause 4), not normative text.
  • If a disclaimer is needed, include one concise line only (for example, IEEE 1016-inspired internal guidance, unofficial.).

Defaults

  • Mode: draft+review.
  • Completeness strictness: pragmatic.
  • Detail profile: ieee-pragmatic.
  • Codebase inspection: enabled when repository context is available.
  • Canonical output root: docs/sdd/
  • Artifact root: .agent-doc-skills/
  • Canonical output files:

- docs/sdd/index.md - docs/sdd/01-introduction.md - docs/sdd/02-03-system-context-and-concerns.md - docs/sdd/04-architecture-overview.md - docs/sdd/05-viewpoints-and-views.md - docs/sdd/06-design-elements-and-constraints.md - docs/sdd/07-08-traceability-and-rationale.md - docs/sdd/09-10-risks-and-summary.md

  • Review artifact files:

- .agent-doc-skills/sdd/gaps/YYYY-MM-DD.md - .agent-doc-skills/sdd/drift/YYYY-MM-DD.md

If the user specifies a different mode, follow the user preference. If the user specifies a different canonical output root or artifact root, only accept a safe relative directory inside the project folder.

Mode shortcuts accepted in user prompts:

  • /de or /draft+review -> draft+review
  • /d or /draft-only -> draft-only
  • /r or /review-only -> review-only
  • /dc or /drift-check -> drift-check

Mode resolution precedence:

  1. Explicit shortcut token in the prompt (/de, /d, /r, /dc, or long form)
  2. Clear natural-language intent (for example review only)
  3. Default to draft+review

Interaction options:

  • /ask (default): confirm scope/mode/inputs before drafting and request missing critical info.
  • /fast: proceed immediately with reasonable assumptions, then list assumptions in the output.
  • /assume: proceed with assumptions even if inputs are incomplete, and clearly mark assumption-based sections.

Detail profile options:

  • ieee-pragmatic (default): strict base structure with concise implementation guidance.
  • implementation-deep: keep all base sections and add deeper implementation files.

If user asks for detailed, implementation handoff, architecture deep dive, ERD/data dictionary, or full design package, use implementation-deep.

Output Root Safety (Mandatory)

  • Only write outputs within the repository root (project folder).
  • Allow custom canonical roots or artifact parent roots when they remain inside the repository (for example docs/architecture/sdd/ or .agent-doc-artifacts/).
  • Reject absolute paths and any path containing parent traversal (..).
  • Never write to sensitive paths (for example .git/, .github/workflows/, /etc/, home directories).
  • Never build shell commands by interpolating user-provided paths.

Input Contract

Expect at least one of:

  • project requirements/PRD context, or
  • an existing SDD document set root or index.md to review/update, or
  • a legacy single-file SDD to convert into the canonical document set.

If neither is available, stop and ask for missing inputs before drafting. Do not invent project-specific architecture details.

Useful optional inputs:

  • architecture constraints,
  • technology stack constraints,
  • required viewpoints,
  • completeness strictness override,
  • explicit output root inside the project folder.
  • explicit artifact root inside the project folder.

Before drafting, perform an intake check:

  1. Confirm mode, detail profile, and output root.
  2. Confirm whether repository inspection should be used.
  3. Identify missing critical inputs (PRD context, existing SDD input, key constraints).

If critical inputs are missing, ask concise clarification questions first. Only skip clarification when user explicitly uses /fast or /assume.

Modes

draft+review (default)

  1. Draft or update the canonical document set under docs/sdd/.
  2. Run completeness/gap analysis.
  3. Write the SDD files under docs/sdd/ and a dated gap report under .agent-doc-skills/sdd/gaps/.

draft-only

  1. Draft or update the canonical document set under docs/sdd/.
  2. Skip gap report unless requested.

review-only

  1. Accept an existing document-set SDD root or index.md as input.
  2. Do not rewrite source files unless user asks.
  3. Produce a dated gap report under .agent-doc-skills/sdd/gaps/ with concrete remediation actions for the document set.

drift-check

  1. Accept an existing document-set SDD root or index.md plus repository context.
  2. Read Doc Baseline Commit from the input SDD entrypoint index.md and compare <baseline>..HEAD using git history and diff summaries.
  3. Produce a dated drift report under .agent-doc-skills/sdd/drift/ with changed areas, likely affected SDD files/sections, and suggested next action.
  4. Do not rewrite source SDD files in this mode unless user explicitly asks after reviewing the drift report.

Required Workflow

  1. Discover context
  • Inspect repository docs and key code structure by default.
  • Identify available artifacts: PRD, existing document-set SDD files, legacy single-file SDDs, architecture notes, APIs, schemas.
  1. Identify stakeholders and concerns
  • Extract explicit and implied design stakeholders.
  • Convert requirements/risks/NFRs into design concerns.
  1. Select viewpoints
  • Choose only viewpoints that address identified concerns.
  • Mark omitted viewpoints as Not Applicable with justification.
  1. Draft or update the SDD document set
  • Use references/document-set/ as the canonical template library.
  • When the source is a legacy single-file SDD, redistribute its validated content into the canonical document set instead of preserving the old layout.
  • index.md is the document entrypoint and must contain document control metadata plus links to every generated section file in canonical order.
  • Store document-set drift metadata only in index.md; do not duplicate it across section files.
  • Include Doc Baseline Commit and Last Reviewed On in ## Document Control when repository context is available.
  • Use original wording; do not quote or mirror copyrighted standards text.
  • Preserve required section ownership by file.
  • Keep core architecture sections at the architectural abstraction level (layers/components/responsibilities), not file-by-file implementation listings.
  • Put concrete file/module paths in implementation-oriented files or appendices when needed.
  • Include Mermaid diagrams when they improve clarity.
  • Always include the core-3 formal artifacts:

- ## 4. Architecture Overview in 04-architecture-overview.md - ### 5.1 Viewpoint-to-View Mapping in 05-viewpoints-and-views.md - ### 6.1 Design Element Catalog (Formal Definitions) in 06-design-elements-and-constraints.md with fields: Component, Responsibility, Inputs, Outputs, Dependencies, Public Functions

  • Optional enhancements:

- Include quality-attribute scenarios using Stimulus, Environment, Response, Measurement when quality concerns are material. - Include a short future-evolution note in 06-design-elements-and-constraints.md and/or 11-data-design.md when persistent data is currently absent/static. - If optional enhancements are omitted, add a concise N/A rationale.

  • If detail profile is implementation-deep, include extension files:

- 11-data-design.md - 12-component-design.md - 13-human-interface-design.md - 14-requirements-traceability-matrix.md - 15-appendices.md - 16-design-decisions-locked.md

  1. Run pragmatic completeness pass
  • Check coverage against core IEEE-inspired structure themes without reproducing standard text.
  • Check concern-to-view coverage and missing decisions.
  • Ensure architecture/viewpoint/element formalization is explicit and reviewable across files.
  • Check consistency of terminology, component names, version references, and cited artifacts across the document set.
  • Check that index.md links to every generated section file.
  • Allow justified simplification for project scale.
  1. Run drift assessment when mode is drift-check
  • Read Doc Baseline Commit from index.md.
  • If the baseline is missing, invalid, or not reachable in git history, stop and ask the user to confirm how to establish a new baseline instead of fabricating one.
  • Compare <baseline>..HEAD with git log and git diff --stat style summaries.
  • Map changed areas to likely affected SDD files/sections.
  • Keep the output advisory; do not update canonical SDD files automatically.
  1. Write outputs
  • Ensure parent directory exists.
  • Resolve canonical output root and artifact parent root safely inside repository root only.
  • For draft+review or draft-only, write the canonical section files under docs/sdd/ or the approved custom canonical root.
  • For draft+review or review-only, write a dated gap report under .agent-doc-skills/sdd/gaps/ or the approved custom artifact parent root.
  • For drift-check, write a dated drift report under .agent-doc-skills/sdd/drift/ or the approved custom artifact parent root.
  • In review-only and drift-check, do not modify source SDD files unless explicitly requested.
  1. Validate canonical outputs
  • Run python3 scripts/check_sdd_structure.py --mode <draft+review|draft-only|review-only|drift-check> --docs-dir <canonical-output-root> --profile <ieee-pragmatic|implementation-deep>.
  • For evals/CI strictness, run with --require-all-subsections.
  • Section completeness is strict by default; use --allow-soft-sections only when section checks should be advisory.
  • In review-only or drift-check, add --strict-review-input when CI/evals should fail on missing canonical input files, missing document-map links, or missing required headings in the reviewed SDD set.
  • The checker validates only the canonical SDD document set. It does not validate gap or drift artifact files.
  • Treat checker hard-fail results as blockers and revise outputs before finalizing.
  1. Validate dated artifact outputs
  • For draft+review or review-only, run python3 scripts/check_doc_artifacts.py --artifact-root <artifact-root> --doc-kind sdd --artifact-kind gaps.
  • For drift-check, run python3 scripts/check_doc_artifacts.py --artifact-root <artifact-root> --doc-kind sdd --artifact-kind drift only when drift-check completed with a valid reachable baseline and produced a drift report.
  • The artifact checker enforces that dated markdown files exist and use YYYY-MM-DD.md naming.
  • Treat missing required artifact history as a blocker in evals/CI when that artifact type is expected for the exercised branch.

Canonical Base File Set

Use these files as the default document sequence:

  1. index.md
  2. 01-introduction.md
  3. 02-03-system-context-and-concerns.md
  4. 04-architecture-overview.md
  5. 05-viewpoints-and-views.md
  6. 06-design-elements-and-constraints.md
  7. 07-08-traceability-and-rationale.md
  8. 09-10-risks-and-summary.md

Gap Report Format

Use these headings in order:

  1. # SDD Gap Report
  2. ## Scope and Inputs
  3. ## Missing Required Content
  4. ## Weak or Implicit Rationale
  5. ## Traceability Gaps
  6. ## Recommended Fixes (Priority Ordered)
  7. ## Coverage Summary

Write dated gap reports under .agent-doc-skills/sdd/gaps/YYYY-MM-DD.md.

Drift Report Format

Use these headings in order:

  1. # SDD Drift Report — YYYY-MM-DD
  2. ## Scope and Baseline
  3. ## Changed Since Last Review
  4. ## Recommended SDD Files and Sections to Revisit
  5. ## Suggested Next Action

Include these metadata bullets near the top:

  • SDD Root:
  • Baseline Commit:
  • Current Commit:
  • Commits Since Baseline:
  • Checked On:

Write dated drift reports under .agent-doc-skills/sdd/drift/YYYY-MM-DD.md.

Pragmatic Completeness Rules

  • Treat mapped core content areas as required unless genuinely out of scope.
  • Treat core architecture/view/element formalization (04, 5.1, 6.1 with formal fields) as required.
  • Treat quality scenarios and future-evolution notes as recommended enhancements; allow omission with concise N/A rationale.
  • If an item is omitted, provide a short N/A rationale.
  • Favor correctness and implementability over ceremonial detail.
  • Keep terminology consistent with the project domain.
  • Prefer UX consistency / visual design constraints over vague labels such as aesthetics.
  • Prefer single consolidated stylesheet over monolithic stylesheet.
  • If the user asks for exact IEEE wording, decline and provide a non-verbatim summary.

Output Quality Bar

  • SDD sections are complete enough for implementation handoff.
  • index.md provides stable navigation and document control.
  • Architecture overview is explicit and includes logical plus deployment/runtime depiction.
  • Viewpoint choices are explicit with viewpoint-to-view mapping.
  • Design elements are formally defined with component fields.
  • Terminology, component names, and version/references are internally consistent across files.
  • Gap report recommendations are actionable and prioritized.
  • Drift reports clearly map code changes back to likely SDD updates without editing canonical docs automatically.
  • No machine-specific assumptions or absolute local-only dependencies in document content.

Example Requests That Should Trigger This Skill

  • "Write an SDD document set with an IEEE 1016-inspired structure from this PRD and repo structure."
  • "Review this multi-file SDD and list standards gaps with fixes."
  • "Check whether our SDD is outdated after these repo changes."
  • "What changed since the last SDD update?"
  • "Update our SDD docs after moving from monolith to microservices."
  • "Map PRD requirements to design sections and identify missing architecture details."

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

35.41%
按下载量换算37

Claude

30.48%
按下载量换算32

Cursor

18.78%
按下载量换算20

Gemini CLI

9.82%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/rjtpp/agent-software-doc-skills --skill software-design-doc 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills