Skill站外收录 @skilllib/skill-2117939930272414761
docs-update
支持文档内容的规范化更新与维护,确保所有文档严格遵循单一事实来源原则,自动识别 SSOT 文件位置并校验引用关系,避免信息重复或冲突,同时提供标准化的 Markdown 编写规范和跨文档链接验证能力。
效率工具 AI 技能
Skills.MD
# Documentation Update Workflow
Workflow for documentation changes with SSOT awareness.
## Prerequisites
- **Use `git-workflow` Skill** for branch, commit, and PR workflow.
- **Understand SSOT structure** before editing any documentation.
## SSOT Awareness
**Critical**: Before editing documentation, identify if the file is an SSOT or references one.
### SSOT Locations
| Category | SSOT Location | Description |
|----------|---------------|-------------|
| Agent behavior | `AGENTS.md` | Entry point for all agents |
| Agent instruction design | `docs/design/ai-agents-instruction.md` | Command/Skill/Rule architecture |
| Label definitions | `docs/standards/task-classification.md` | All label types and meanings |
| Label → Skill mapping | `.claude/skills/label-context-mapping/` | Operational routing |
| Coding conventions | `docs/standards/coding-conventions.md` | Code style rules |
| Security rules | `docs/standards/security.md` | Security requirements |
| Testing standards | `docs/standards/testing.md` | Test requirements |
| Workflow | `docs/standards/workflow.md` | Development workflow |
### SSOT Rules
1. **If editing an SSOT file**: Update carefully, as other files reference it
2. **If editing a non-SSOT file**: Ensure it references the SSOT, don't duplicate information
3. **If information conflicts**: The SSOT is authoritative; update the referencing file
## Applicable Files
| Path | Type | Description |
|------|------|-------------|
| `AGENTS.md` | SSOT | Agent behavior entry point |
| `ARCHITECTURE.md` | SSOT | System architecture |
| `docs/standards/` | SSOT | Project standards |
| `docs/design/` | Reference | Design documents |
| `docs/guidelines/` | Reference | Detailed guidelines |
| `docs/crypto/` | Reference | Chain-specific documentation |
| `docs/task-contexts/` | Context | Task-specific procedures |
| `internal/AGENTS.md` | Scoped SSOT | Internal package guidelines |
| `pkg/AGENTS.md` | Scoped SSOT | Public package guidelines |
## Documentation Hierarchy
```
AGENTS.md (entry point)
│
├─ docs/design/ai-agents-instruction.md (instruction system design)
│
├─ docs/standards/ (SSOT for standards)
│ ├─ task-classification.md (label definitions)
│ ├─ coding-conventions.md
│ ├─ security.md
│ ├─ testing.md
│ └─ workflow.md
│
├─ docs/guidelines/ (detailed how-to)
│ ├─ database.md
│ └─ code-generation.md
│
└─ docs/task-contexts/ (task-specific context)
├─ bug-fix.md, feature-add.md, etc.
└─ chains/ (chain-specific)
```
## Workflow
### 1. Identify Document Type
Before editing, determine:
- Is this file an SSOT?
- Does this file reference an SSOT?
- What other files might be affected?
### 2. Check for Duplicated Information
If the information you're adding already exists elsewhere:
- Find the SSOT location
- Add a reference instead of duplicating
### 3. Make Changes
Follow markdown style guidelines:
- Use ATX-style headers (`#`, `##`, `###`)
- One blank line between sections
- Code blocks with language specifier
- Tables for structured data
- Relative links within docs
### 4. Verify Cross-References
After changes:
- [ ] Links work correctly
- [ ] SSOT references are accurate
- [ ] No information duplication
- [ ] Consistent formatting
## Markdown Style
### Headers
```markdown
# Top Level (document title)
## Section
### Subsection
```
### Code Blocks
Always specify language:
```markdown
```go
func example() {}
```
```bash
make go-lint
```
```
### Tables
Use tables for structured data:
```markdown
| Column 1 | Column 2 |
|----------|----------|
| Value 1 | Value 2 |
```
### Links
- Use relative links: `[link](../path/to/file.md)`
- Verify links work after moving files
- Update cross-references when renaming
## Self-Review Checklist
- [ ] SSOT location identified (if applicable)
- [ ] No duplicated information
- [ ] References point to correct SSOT
- [ ] Markdown renders correctly
- [ ] Links work
- [ ] Consistent formatting
- [ ] Tables align properly
## Commit & PR
Use `git-workflow` skill for commits:
- **Commit type**: `docs`
- **Scope**: Optional (or target area: `btc`, `eth`, `standards`, etc.)
Example: `docs(standards): update coding conventions for error handling`
## Related
- `git-workflow` - Branch, commit, PR workflow
- [AGENTS.md](../../../AGENTS.md) - Agent entry point
- [AI Agent Instruction Design](../../../docs/design/ai-agents-instruction.md) - System design
- [Task Classification](../../../docs/standards/task-classification.md) - Label SSOT
评论 0
还没有评论,来抢沙发。
相关内容
同类或同场景的收录内容
building-with-kafka-strimzi
在 Kubernetes 上构建基于 Apache Kafka 的事件驱动系统,支持高可靠的消息传递、事务性处理与精确一次语义,结合 Strimzi 运营商实现集群自动化管理,利用 Schema Registry 保障事件模式演进,适用于微服务间解耦通信与实时数据流处理场景。
站外数据与分析
609 0.0
personal-tool-builder
专注于从个人真实痛点出发快速构建实用工具,涵盖命令行程序、本地优先应用和自动化脚本的开发与演进,强调先满足自身需求再逐步扩展,通过持续自用打磨功能,避免过度设计,确保工具简洁有效且长期可维护。
站外商业与营销
196 0.0
threejs-lighting
实现三维场景中的光照与阴影控制,支持多种光源类型及环境光照明,提供从基础布光到高级阴影优化的完整方案,适用于需要真实感渲染或性能平衡的可视化项目。
站外效率工具
442 0.0
aggregation-helper
提供数据聚合场景的自动化辅助能力,涵盖 SQL 查询编写、统计分析建模、可视化方案设计及商业智能配置,支持从需求理解到生产级代码生成的全流程指导。
站外效率工具数据与分析
217 0.0
举报「docs-update」
举报信息仅审核团队可见,同一资产 24 小时内仅可举报一次