2138文档说明2c67edb6

tools-only2026-10-24查看 1875复制 983

docs/ 文件夹中面向用户的文档标准

Download (.md)

📘如何使用这个技能

  1. 1
    复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
  2. 2
    打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
  3. 3
    粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
  4. 4
    直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景

💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。

SKILL.md4732 chars
---
description: "Standards for user-facing documentation in the docs/ folder"
applyTo: "docs/**/*.md"
---

# Documentation Standards

Instructions for creating and maintaining user-facing documentation in the `docs/` folder.

## Structure Requirements

### File Header

Every doc file must start with:

```markdown
# {Title}

> [Current Version](../../VERSION.md) | {One-line description}
```

Adjust the relative path depth based on folder nesting (`../../VERSION.md` from `docs/`,
`../../../VERSION.md` from `docs/subfolder/`).

### Single H1 Rule

Each file has exactly ONE H1 heading (the title). Use H2+ for all other sections.

### Link Style

- Use relative links for internal docs (example pattern: `Quickstart -> quickstart.md`)
- For root file references, increase `../` depth based on folder nesting (for example: `../VERSION.md`,
  `../../VERSION.md`)
- Use reference-style links for external URLs
- No broken links (validated in CI)

## Current Architecture (as of 2026-02-15)

### Agents (9 top-level + 5 subagents)

| Agent                | Purpose                                 |
| -------------------- | --------------------------------------- |
| `infraops-conductor` | Master orchestrator with approval gates |
| `requirements`       | Gather infrastructure requirements      |
| `architect`          | WAF assessment and architecture design  |
| `design`             | Architecture diagrams and ADRs          |
| `bicep-plan`         | Implementation planning and governance  |
| `bicep-code`         | Bicep template generation               |
| `deploy`             | Azure deployment execution              |
| `as-built`           | Step 7 workload documentation suite     |
| `diagnose`           | Post-deployment health diagnostics      |

### Subagents (in `_subagents/`)

| Subagent                        | Parent     | Purpose                         |
| ------------------------------- | ---------- | ------------------------------- |
| `cost-estimate-subagent`        | Architect  | Azure Pricing MCP queries       |
| `governance-discovery-subagent` | Bicep Plan | Azure Policy REST API discovery |
| `bicep-lint-subagent`           | Bicep Code | Syntax validation               |
| `bicep-review-subagent`         | Bicep Code | AVM/security code review        |
| `bicep-whatif-subagent`         | Deploy     | Deployment preview              |

### Skills (8 total)

| Skill                 | Category            | Purpose                                    |
| --------------------- | ------------------- | ------------------------------------------ |
| `azure-adr`           | Document Creation   | Architecture Decision Records              |
| `azure-artifacts`     | Artifact Generation | Template H2s, styling, generation rules    |
| `azure-defaults`      | Azure Conventions   | Regions, naming, AVM, WAF, pricing, tags   |
| `azure-diagrams`      | Document Creation   | Python architecture diagrams               |
| `github-operations`   | Workflow Automation | GitHub issues, PRs, CLI, Actions, releases |
| `git-commit`          | Tool Integration    | Commit conventions                         |
| `docs-writer`         | Documentation       | Repo-aware docs maintenance                |
| `make-skill-template` | Meta                | Skill creation helper                      |

## Prohibited References

Do NOT reference these removed agents/skills:

- ❌ `diagram.agent.md` → Use `azure-diagrams` skill
- ❌ `adr.agent.md` → Use `azure-adr` skill
- ❌ `docs.agent.md` → Use `azure-artifacts` skill or `as-built` agent
- ❌ `azure-workload-docs` skill → Use `azure-artifacts` skill
- ❌ `azure-deployment-preflight` skill → Merged into deploy agent
- ❌ `orchestration-helper` skill → Deleted (absorbed into conductor)
- ❌ `github-issues` / `github-pull-requests` skills → Use `github-operations`
- ❌ `gh-cli` skill → Merged into `github-operations`
- ❌ `_shared/` directory → Use `azure-defaults` + `azure-artifacts` skills

## Content Principles

| Principle                  | Application                                |
| -------------------------- | ------------------------------------------ |
| **DRY**                    | Single source of truth per topic           |
| **Current state**          | No historical context in main docs         |
| **Action-oriented**        | Every section answers "how do I...?"       |
| **Minimal**                | If it doesn't help users today, remove it  |
| **Prompt guide for depth** | Point to `docs/prompt-guide/` for examples |

## Validation

Documentation is validated in CI (warn-only):

- No references to removed agents
- Version numbers match `VERSION.md` (repo root)
- No broken internal links
- Markdown lint passes
来源:skillsdirectory

评论0

登录后参与评论

还没有评论,来抢沙发吧