返回顶部
o

ogt-docs文档即真理

Documentation-as-Source-of-Truth workflow. Use when working with projects that use docs/ as the canonical source for definitions, rules, and tasks. Routes to specialized sub-skills for specific documentation types.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
928
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

ogt-docs

技能名称: ogt-docs
详细描述:

OGT 文档 - 以文档为事实来源

核心理念

文档是决策的数据库。代码仅仅是其实现。

┌─────────────────────────────────────────────────────────────────┐
│ 文档优先原则 │
├─────────────────────────────────────────────────────────────────┤
│ 1. 文档定义了事物是什么 │
│ 2. 代码实现了文档所规定的内容 │
│ 3. 冲突时以文档为准 │
│ │
│ 如果文档说X而代码做Y → 代码是错误的 │
└─────────────────────────────────────────────────────────────────┘

何时使用此技能

当您需要以下操作时,请使用 ogt-docs:

  • - 了解 docs/ 文件夹结构
  • 为特定任务找到正确的子技能
  • 初始化一个新的文档优先项目
  • 在不同定义类型之间导航

对于特定任务,请使用下面列出的专门子技能。

文档结构概览

docs/
├── definitions/ # 事物是什么
│ ├── business/ # 商业模式、定价、用户
│ ├── features/ # 产品功能和规格
│ ├── technical/ # 架构、服务、数据
│ └── domain/ # 领域特定概念

├── rules/ # 如何实现
│ ├── code/ # 编码标准
│ │ ├── frontend/
│ │ ├── backend/
│ │ └── infra/
│ ├── git/ # 版本控制规则
│ └── domain/ # 领域特定规则

├── todo/ # 任务管理
│ ├── pending/ # 未开始
│ ├── in_progress/ # 进行中
│ ├── review/ # 等待审查
│ ├── blocked/ # 无法继续
│ ├── done/ # 已完成并验证
│ └── rejected/ # 已拒绝的任务

├── guides/ # 操作指南
│ └── {topic}/

└── social/ # 营销与沟通
├── campaigns/
├── content/
└── branding/

文件夹即实体模式

每个可文档化的项目都是一个文件夹,包含:

{item_slug}/
├── {type}.md # 主文档 (task.md, feature.md 等)
├── {supporting_files}.md # 附加文档
└── .{signal_files} # 状态标记和元数据

优势:

  • - 在工作流阶段之间移动整个文件夹
  • 附加无限数量的支持文件
  • 通过点文件标记状态
  • 原子化版本控制和变更追踪

子技能参考

定义(事物是什么)

子技能用途使用场景
ogt-docs-define通用定义指导需要了解定义类型概览
ogt-docs-define-business
商业模式、定价、用户 | 定义业务概念 | | ogt-docs-define-feature | 产品功能和规格 | 定义新功能 | | ogt-docs-define-code | 技术架构 | 定义服务、数据模型 | | ogt-docs-define-marketing | 品牌、信息传达、受众 | 营销定义 | | ogt-docs-define-branding | 视觉识别、语气 | 品牌指南 | | ogt-docs-define-tools | 工具和 CLI 规格 | 定义开发者工具 |

规则(如何实现)

子技能用途使用场景
ogt-docs-rules通用规则指导需要了解规则类型概览
ogt-docs-rules-code
编码标准概览 | 通用代码规则 | | ogt-docs-rules-code-front | 前端特定规则 | React、CSS、组件 | | ogt-docs-rules-code-back | 后端特定规则 | API、数据库、服务 | | ogt-docs-rules-code-infra | 基础设施规则 | Docker、CI/CD、部署 | | ogt-docs-rules-git | 版本控制规则 | 提交、分支、PR |

任务(要做什么)

子技能用途使用场景
ogt-docs-create-task创建和管理任务需要创建/更新一个任务
ogt-docs-audit-task
验证任务完成 | 检查任务是否真正完成 |

其他

子技能用途使用场景
ogt-docs-create通用创建指导需要创建任何文档类型
ogt-docs-create-social
营销内容 | 创建社交/营销内容 | | ogt-docs-audit | 通用审计指导 | 审计文档 | | ogt-docs-init | 初始化文档结构 | 设置新项目 | | ogt-docs-config | 配置选项 | 自定义文档工作流 |

工作流概览

mermaid
flowchart TB
subgraph define [1. 定义]
D1[创建定义]
D2[获得批准]
end

subgraph regulate [2. 规范]
R1[创建规则]
R2[添加示例]
end

subgraph implement [3. 实现]
I1[创建任务]
I2[编写代码]
I3[审查]
end

subgraph verify [4. 验证]
V1[运行检查]
V2[确认匹配]
end

define --> regulate --> implement --> verify
verify -->|不匹配| implement
verify -->|文档错误| define

快速入门

我需要定义一些新内容

→ 使用 ogt-docs-define 了解类型,然后使用特定的子技能

我需要创建一个任务

→ 使用 ogt-docs-create-task

我需要检查一个任务是否真正完成

→ 使用 ogt-docs-audit-task

我需要添加编码规则

→ 使用 ogt-docs-rules-code 或特定的前端/后端/基础设施变体

我需要为新项目设置文档

→ 使用 ogt-docs-init

命名约定

元素格式示例
文件夹别名snakecaseglobalsearch, user_auth
主文件
小写类型 | task.md, feature.md, rule.md | | 支持文件 | 小写描述性 | phase_0.md, notes.md, progress.md | | 信号文件 | 点 + snakecase | .blockedreason, .approvedbyhuman |

信号文件参考

信号文件是表示状态或元数据的点文件。

信号类型含义
.version内容架构/文档版本 (JSON)
.blocked
空 | 项目被阻塞 |
| .blocked_reason | 内容 | 阻塞原因 |
| .approved | 空 | 批准实施 |
| .approvedby{name} | 空 | 批准人 |
| .rejected | 空 | 已拒绝 |
| .rejected_reason | 内容 | 拒绝原因 |
| .verified | 空 | 实现已验证 |
| .completed_at | 内容 | 完成时间戳 |
| .assignedto{agent} | 空 | 负责人员 |
| .pr_link | 内容 | 关联的 PR URL |
| .depends_on | 内容 | 依赖项列表 |

黄金法则

  1. 1. 如果没有文档记录,它就不存在
  2. 如果代码与文档矛盾,代码是错误的
  3. 未经验证,永远不要相信已完成状态
  4. 移动文件夹,不要复制文件
  5. 使用点文件发送信号,不要编辑状态字段

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 ogt-docs-1776339485 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 ogt-docs-1776339485 技能

通过命令行安装

skillhub install ogt-docs-1776339485

下载

⬇ 下载 ogt-docs v1.0.0(免费)

文件大小: 3.4 KB | 发布时间: 2026-4-17 15:22

v1.0.0 最新 2026-4-17 15:22
Initial release of the ogt-docs skill, establishing the Documentation-as-Source-of-Truth workflow.

- Provides guidance for projects using a docs/ folder as the source of definitions, rules, and tasks.
- Outlines folder structure, entity conventions, signal file standards, and workflow philosophy.
- Includes quick start instructions and sub-skill references for various documentation and task types.
- Explains the "doc-first" principle: documentation is authoritative over code implementation.
- Lists available sub-skills for definitions, rules, tasks, social/marketing content, audits, and configuration.
- Supports initializing new projects and customizing workflow.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部