文档规范与风格指南
docs-standards
微软风格指南(Microsoft Style Guide)+ Squad 特定的文档模式。
- License 许可
- MIT
- 所属仓库
- github/gh-aw
- 最近更新
- 2026-11-15
- Stars
- ★ 5.6k
- Forks
- 626
01 前言 Front Matter
- name
- docs-standards
- domain
- documentation
- source
- earned (PAO charter, multiple doc PR reviews)
- confidence
- high
- description
- Microsoft Style Guide + Squad-specific documentation patterns
03 SKILL.md 正文
Context
Squad documentation follows the Microsoft Style Guide with Squad-specific conventions. Consistency across docs builds trust and improves discoverability.
Patterns
Microsoft Style Guide Rules
- Sentence-case headings: "Getting started" not "Getting Started"
- Active voice: "Run the command" not "The command should be run"
- Second person: "You can configure..." not "Users can configure..."
- Present tense: "The system routes..." not "The system will route..."
- No ampersands in prose: "and" not "&" (except in code, brand names, or UI elements)
Squad Formatting Patterns
- Scannability first: Paragraphs for narrative (3-4 sentences max), bullets for scannable lists, tables for structured data
- "Try this" prompts at top: Start feature/scenario pages with practical prompts users can copy
- Experimental warnings: Features in preview get callout at top
- Cross-references at bottom: Related pages linked after main content
Structure
- Title (H1) → Warning/callout → Try this code → Overview → HR → Content (H2 sections)
Test Sync Rule
- Always update test assertions: When adding docs pages to
features/,scenarios/,guides/, update correspondingEXPECTED_*arrays intest/docs-build.test.tsin the same commit
Examples
✓ Correct:
# Getting started with Squad
> ⚠️ **Experimental:** This feature is in preview.
Try this:
\`\`\`bash
squad init
\`\`\`
Squad helps you build AI teams...
---
## Install Squad
Run the following command...
✗ Incorrect:
# Getting Started With Squad // Title case
Squad is a tool which will help users... // Third person, future tense
You can install Squad with npm & configure it... // Ampersand in prose
Anti-Patterns
- Title-casing headings because "it looks nicer"
- Writing in passive voice or third person
- Long paragraphs of dense text (breaks scannability)
- Adding doc pages without updating test assertions
- Using ampersands outside code blocks
04 同仓库更多 Skills
cracktro
Edit, preview, and verify the standalone interactive talk deck in docs/public/cracktro (slides, SVG diagrams, transitions, WebAudio sound).
create-connector
Create or extend a declaration-only third-party connector, with narrow reads, separate safe outputs, optional protected triggers, and offline conformance evidence.
GitHub 智能体工作流
GitHub Agentic Workflows
GitHub Agentic Workflows(`gh-aw`)是一个 GitHub CLI 扩展,用于以 Markdown 编写 Agentic Workflows(智能体工作流)并将其编译为 GitHub Actions。
Windows 跨平台兼容处理
windows-compatibility
跨平台路径处理和命令模式。
Squad SDK 语义化版本规范
versioning-policy
Squad SDK 和 CLI 的 Semver(语义化版本)版本规则——防止预发布版本事故。
智能体分层记忆管理
tiered-memory
三层智能体记忆模型(热/冷/维基),用于减少每次生成(spawn)时的上下文。