Skip to content
Back to skills

Doc Architecture

ASecurity

> 将需求发现、领域建模、一致性审计整合到 /team-* 主链, 以 artifacts/adr/memory 为唯一落盘目标产出可审计文档。 当 Tech Lead、Architect、QA 需要补齐或演进架构文档时使用。

  • 3 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 12, 2026
ai-agentsgogitapi

Works with

  • api

Security analysis

A100/100

Pro scans all 15 files and shows the line behind each finding

Scanned September 12, 2026

npx -y skills add thedixitjain/the-mega-skill-library --skill doc-architecture --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Doc Architecture?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Doc Architecture
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/thedixitjain-doc-architecture/badge)](https://www.skillsdirectory.com/skills/thedixitjain-doc-architecture)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: doc-architecture
description: "> 将需求发现、领域建模、一致性审计整合到 /team-* 主链, 以 artifacts/adr/memory 为唯一落盘目标产出可审计文档。 当 Tech Lead、Architect、QA 需要补齐或演进架构文档时使用。"
category: engineering-core
source_repo: hashgraph-online/awesome-codex-plugins
source_path: "plugins/Colin4k1024/tsp/skills/doc-architecture/SKILL.md"
source_url: https://github.com/hashgraph-online/awesome-codex-plugins/blob/HEAD/plugins/Colin4k1024/tsp/skills/doc-architecture/SKILL.md
---


# Doc Architecture

## 用途

- 将文档能力拆入现有 team-skills 主链,不新增并行文档体系。
- 统一 Discovery、Service Decomposition、NFR、Audit 的输入输出结构。
- 保证文档可追溯落盘到 `docs/artifacts/`、`docs/adr/` 与 `docs/memory/`。

## 完整工作流

### Step 1: Discovery

1. 使用 [discovery-questionnaire.md](references/discovery-questionnaire.md) 收集项目背景、技术栈、架构风格与约束。
2. 若是既有项目(brownfield),先补做现状扫描:盘点现有模块、入口、外部依赖、关键数据流和历史包袱;必要时借助 `/update-codemaps` 生成 token-lean 结构快照。
2. 形成 Project Profile Card。
3. 按 [tech-stack-profiles.md](references/tech-stack-profiles.md) 锁定文档术语风格。

输出回落:`prd.md`、`delivery-plan.md`

### Step 2: Modeling

1. 使用 [service-decomposition-guide.md](references/service-decomposition-guide.md) 识别领域与服务边界。
2. 产出 Service Catalog 与 Communication Matrix。
3. 收集 NFR(可用性、性能、安全、可观测性)。

输出回落:`arch-design.md`、`api-contract.md`

### Step 3: Generation Mapping

1. 按 [artifact-mapping.md](references/artifact-mapping.md) 将文档输出映射到 artifacts。
2. 参考 `references/templates/` 选择章节结构。
3. 若属于 brownfield 任务,把现状扫描结果回落为 brownfield context snapshot,写入 `delivery-plan.md` / `arch-design.md`,不要新建平行事实源。
3. 对缺失信息使用 `<!-- TODO: ... -->` 标记,不虚构业务事实。

输出回落:`delivery-plan.md`、`arch-design.md`、`api-contract.md`

### Step 4: Execute Backfill

1. 在执行阶段记录实现偏差、接口漂移、事件变更。
2. 关键取舍进入 ADR,轻量决策进入 decisions。

输出回落:`execute-log.md`、`docs/adr/*.md`、`docs/memory/decisions.md`

### Step 5: Consistency Audit

1. 使用 [audit-checklist.md](references/audit-checklist.md) 做一致性审计。
2. 审计服务名、API 覆盖、事件覆盖、鉴权一致性、索引完整性。

输出回落:`test-plan.md`

### Step 6: Release & Evolution

1. 将发布、监控、回滚与观察项落入发布产物。
2. 按 [doc-evolution-guide.md](references/doc-evolution-guide.md) 做增量演进。

输出回落:`release-plan.md`、`docs/memory/sessions/*.md`

## 最小产物清单

1. `docs/artifacts/{date}-{slug}/prd.md`
2. `docs/artifacts/{date}-{slug}/delivery-plan.md`
3. `docs/artifacts/{date}-{slug}/arch-design.md`
4. `docs/artifacts/{date}-{slug}/api-contract.md`(按需)
5. `docs/artifacts/{date}-{slug}/execute-log.md`
6. `docs/artifacts/{date}-{slug}/test-plan.md`
7. `docs/artifacts/{date}-{slug}/release-plan.md`
8. `docs/adr/ADR-{NNN}-{slug}.md`(按需)
9. `docs/memory/project-context.md`、`docs/memory/decisions.md`、`docs/memory/lessons-learned.md`、`docs/memory/sessions/*.md`

## 何时优先调用

- `tech-lead` 需要把架构文档能力并入主链而不新增命令时。
- `architect` 需要在 `arch-design.md` 与 `api-contract.md` 形成可执行契约时。
- `qa-engineer` 需要把文档一致性纳入放行证据时。

## 参考资料

- [doc-architecture-integration.md](../../docs/runbooks/doc-architecture-integration.md)
- [team-command-output-contracts.md](../../docs/runbooks/team-command-output-contracts.md)
- [artifact-standards.md](../../rules/artifact-standards.md)
- [discovery-questionnaire.md](references/discovery-questionnaire.md)
- [service-decomposition-guide.md](references/service-decomposition-guide.md)
- [audit-checklist.md](references/audit-checklist.md)
- [doc-evolution-guide.md](references/doc-evolution-guide.md)
- [artifact-mapping.md](references/artifact-mapping.md)

---

**Source:** [`hashgraph-online/awesome-codex-plugins`](https://github.com/hashgraph-online/awesome-codex-plugins) → `plugins/Colin4k1024/tsp/skills/doc-architecture/SKILL.md`

Files in this skill

  • SKILL.md4.4 KB
  • agents/openai.yaml268 B
  • references/artifact-mapping.md649 B
  • references/audit-checklist.md720 B
  • references/discovery-questionnaire.md1.2 KB
  • references/doc-evolution-guide.md638 B
  • references/service-decomposition-guide.md789 B
  • references/tech-stack-profiles.md884 B
  • references/templates/agents-md.tmpl.md142 B
  • references/templates/architecture.tmpl.md148 B
  • references/templates/domain.tmpl.md161 B
  • references/templates/frontend.tmpl.md163 B
  • references/templates/plan.tmpl.md115 B
  • references/templates/runbook.tmpl.md120 B
  • references/templates/spec.tmpl.md152 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.