ghm-sot-builder

在现有模板不能满足需求时创建新的真相源(SoT)文件。触发场景包括请求创建新 SoT 文件、添加新工件类型,或用户表示“我需要跟踪 [X],但没有对应的 SoT/创建 SoT/新建真相源”。输出为结构正确的 SoT.*.md 文件,包含 ID 前缀、前置元数据和更新协议。

仓库最近推送
GitHub Stars
179
Forks
12
Issues / PRs
6

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "ghm-sot-builder":https://skillpi.com/zh/skills/deepskill-49b2566679f7b6f663469e948d20ac8a63e7957c409512b9ae8a28a3ed67dbe6。安装前核对上游来源和版本:https://github.com/mattgierhart/PRD-driven-context-engineering。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

github.com

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

在现有模板不能满足需求时创建新的真相源(SoT)文件。触发场景包括请求创建新 SoT 文件、添加新工件类型,或用户表示“我需要跟踪 [X],但没有对应的 SoT/创建 SoT/新建真相源”。输出为结构正确的 SoT.*.md 文件,包含 ID 前缀、前置元数据和更新协议。

0 下载

介绍来源: third_party · mattgierhart · 0.0.1 参考来源

SkillPi 解读

能完成的任务
翻译待完成,请参阅来源文档。
适合谁
翻译待完成,请参阅来源文档。
输入和输出
翻译待完成,请参阅来源文档。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: ghm-sot-builder
description: >
  Creates new Source of Truth (SoT) files when existing templates don't fit your needs.
  Triggers on requests to create a new SoT file, add a new artifact type, or when user says
  "I need to track [X] but there's no SoT for it", "create SoT", "new source of truth".
  Outputs a properly structured SoT.*.md file with ID prefix, frontmatter, and update protocol.
context: fork
allowed-tools:
  - Read
  - Write
  - Edit
  - Glob
  - Grep

SoT Builder

Create new Source of Truth files that fit your product's unique needs while maintaining template purity.

When to Use This Skill

This skill is for rare occasions (3-4 times per product lifecycle) when:

  • You fork this repo and the existing SoT files don't cover your artifact types
  • Your product needs to track a concept that doesn't fit existing ID prefixes
  • You need to consolidate scattered documentation into a canonical SoT

Do NOT use when:

  • An existing SoT file covers your need (just add entries there)
  • You want to track temporary/session-specific data (use temp/ instead)
  • The artifact type is already covered by ghm-id-register

Workflow Overview

  1. Identify Need → Confirm no existing SoT fits
  2. Design Schema → Define ID prefix, categories, required fields
  3. Draft Template → Create pure structure (no methodology teaching)
  4. Validate Purity → Apply the litmus test
  5. Register & Integrate → Update SoT.README.md and ID system

Core Output Template

See assets/sot-template.md for the copy-paste starter template.

Element Definition Required
YAML Frontmatter version, purpose, id_prefix, authority Yes
Purpose Block Single paragraph explaining what this tracks Yes
Navigation Section Category links for quick access Yes
Entry Template Repeatable structure for each ID Yes
Cross-Reference Index Bidirectional links to other SoT files Yes
Update Protocol When/how to add new entries Yes

Step 1: Identify the Need

Before creating a new SoT, verify:

Checklist

  • [ ] Searched existing SoT files for similar artifact types
  • [ ] Confirmed the concept is durable (survives multiple sessions)
  • [ ] Confirmed the concept needs unique IDs for cross-referencing
  • [ ] Confirmed this isn't better served by a subsection in an existing SoT

Questions to Answer

  1. What artifact type does this track?

    • Bad: "Notes" (too generic)
    • Good: "Partner Integration Contracts" (specific, durable)
  2. Why can't existing SoT files handle this?

    • Valid: "We need different fields than API contracts for partner integrations"
    • Invalid: "I just want a separate file" (preference, not need)
  3. What ID prefix will you use?

    • Must be unique across the system
    • 2-4 uppercase letters
    • Check SoT/SoT.UNIQUE_ID_SYSTEM.md for existing prefixes

Step 2: Design the Schema

Define the structure before writing:

ID Prefix Selection

Format: [PREFIX]-[XXX]
Examples: PIC-001, INT-042, MIG-003

Rules:

  • 2-4 uppercase letters
  • Descriptive but short
  • Unique across all SoT files
  • Check existing prefixes in SoT/SoT.UNIQUE_ID_SYSTEM.md

Category Ranges

Reserve ID ranges for logical groupings:

**Category A** (XXX-001 to XXX-099):
**Category B** (XXX-101 to XXX-199):
**Category C** (XXX-201 to XXX-299):

Required Fields per Entry

Define the minimum fields every entry needs:

Field Purpose Example
ID Unique identifier PIC-001
Title Human-readable name "Stripe Payment Integration"
Status Current state Active / Deprecated / Planned
Created Origin date 2025-01-10
Last Updated Last modification 2025-01-15
Related IDs Cross-references BR-101, API-045

Optional Fields

Add domain-specific fields as needed, but keep them structural (not methodology):

  • Good: "Partner Contact" (data field)
  • Bad: "Best Practices for Partner Selection" (methodology teaching)

Step 3: Draft the Template

Use assets/sot-template.md as your starting point.

Structure Sections

  1. YAML Frontmatter - Metadata for the file
  2. Title & Purpose Block - What this SoT tracks
  3. Navigation by Category - Quick links to entries
  4. Entry Template - Repeatable structure (copy for each new entry)
  5. Deprecated Section - Where old entries go
  6. Cross-Reference Index - Bidirectional links
  7. Update Protocol - When/how to maintain

Template Purity Rules

KEEP in the template (self-documentation):

  • When to add new entries
  • Required fields checklist
  • Cross-reference integrity checks
  • File-specific maintenance procedures

MOVE to skill references (methodology teaching):

  • "Best practices" for this domain
  • "What makes a good entry"
  • Example workflows beyond format
  • Evaluation criteria

Litmus Test

For each section, ask:

"Is this teaching me how to maintain the FILE STRUCTURE, or teaching me DOMAIN KNOWLEDGE about what makes good content?"

  • File structure maintenance → Keep in template
  • Domain knowledge → Move to skill references

Step 4: Validate Purity

Before finalizing, run this checklist:

Purity Checklist

  • [ ] No "how to analyze" or "how to evaluate" content
  • [ ] No "best practices" or "key learnings" sections
  • [ ] No cross-file workflows (multi-file coordination)
  • [ ] No "what makes a good entry" evaluation criteria
  • [ ] Examples show FORMAT only, not instructional CONTENT
  • [ ] Self-documentation is under 20% of total file size

Self-Documentation Checklist

  • [ ] Has "Update Protocol" section
  • [ ] Documents when to add new IDs
  • [ ] Includes cross-reference integrity checks
  • [ ] Specifies required fields for new entries
  • [ ] Self-documentation is file-specific (not generic)

Context Efficiency Checklist

  • [ ] Template can be read without loading other files
  • [ ] Methodology examples are in skill references, not template
  • [ ] General governance references SoT.README.md

Step 5: Register and Integrate

After creating the SoT file:

Update SoT.README.md

Add entry to the structure table:

| `SoT.{YOUR_FILE}.md` | {PREFIX}-### | {Purpose description} |

Update SoT.UNIQUE_ID_SYSTEM.md

Add new prefix to Section 1.2 Standard Prefixes:

| **{PREFIX}** | {Meaning} | `SoT.{YOUR_FILE}.md` |

Create Index Tables

Add empty index table in Part 2 of SoT.UNIQUE_ID_SYSTEM.md:

#### {Your Type} ({PREFIX}-XXX)

| ID | Title | Status | Used By |
|----|-------|--------|---------|
| {PREFIX}-001 | {Title} | Active | {IDs} |

Quality Gates

Pass Checklist

  • [ ] ID prefix is unique across all SoT files
  • [ ] Template follows purity standard
  • [ ] Update protocol included
  • [ ] Cross-reference index structure defined
  • [ ] SoT.README.md updated
  • [ ] SoT.UNIQUE_ID_SYSTEM.md updated

Testability Check

  • [ ] Can create a new entry using only the template instructions
  • [ ] Cross-references can be validated programmatically
  • [ ] Entries can be found by ID search

Anti-Patterns

Pattern Example Fix
Methodology in template "Best practices for partner selection" Move to skill references
Duplicate prefix Using BR- for a new file Choose unique prefix
Too generic "Notes.md" Be specific: "Partner_Integrations.md"
No update protocol Template with no maintenance section Add "Update Protocol" section
Orphan SoT Not registered in SoT.README.md Always register new files

Bundled Resources

  • references/sot-patterns.md — Common patterns across existing SoT files
  • references/examples.md — Before/after examples of SoT creation
  • assets/sot-template.md — Copy-paste starter template

Handoff

After creating a new SoT:

  1. SoT file exists at SoT/SoT.{NAME}.md
  2. SoT.README.md lists the new file
  3. SoT.UNIQUE_ID_SYSTEM.md has the new prefix
  4. Ready to use ghm-id-register for adding entries

版本历史

  1. v3.2.0 GitHub ↗
    原版更新说明

    ## [3.2.0] — 2026-04-01 ### Added - `.claude/rules/` directory with 6 modular rule files (01-session-protocols through 06-cross-agent-communication) — auto-loaded by Claude Code via `alwaysApply: true` frontmatter - `SoT/SoT.LESSONS_LEARNED.md` — new SoT file with LL-XXX prefix for cross-session behavioral corrections and validated patterns - Staleness protocol in `SoT/SoT.UNIQUE_ID_SYSTEM.md` — <30d current, 30-90d review, >90d verify before use - `MEMORY_ARCHIVE.md` for all 4 agents — stores entries promoted to SoT during Phase E harvest - `.claude/hooks/traceability-gate.sh` — PreToolUse hook (Write|Edit) verifies active EPIC before source code writes - `.claude/hooks/sot-sync-reminder.sh` — PostToolUse hook (Write|Edit) reminds agent to update SoT after code writes - EPIC template: coordinator pattern (multi-agent routing table, synthesis checkpoint, self-contained worker prompts) - EPIC template: memory harvest step in Phase E (agent memory → SoT.LESSONS_LEARNED.md) - EPIC template: session ownership/locking with Active Session field (2-hour staleness threshold) - Squad Status dashboard in README.md (agent activity + EPIC status tables) - Cross-agent communication protocol rule (file-based async via SoT cross-references, EPIC observations, session state blockers) - Git-based memory sync: `subagent-memory-save.sh` auto-stages MEMORY.md changes; commit convention `memory({agent}): {summary}` - `context` and `allowed-tools` frontmatter fields added to all 33 skills - `CLAUDE.local.md` added to `.gitignore` for per-developer overrides - Context loading order documented as intentional cache architecture (stable→volatile for prompt cache efficiency) ### Changed - **Agent renamed**: `werk` → `devlab` across all files (AGENT.md, domain-profile.yaml, CHANGELOG, MIGRATION, all cross-references in horizon/studio/metro AGENT.md files) - Agent MEMORY.md simplified from 5-8 complex tables → 4 sections (Feedback, Patterns, Decisions, Handoff Notes) — prior format was never populated - `subagent-memory-save.sh` upgraded from passive `systemMessage` → active `hookSpecificOutput` with `additionalContext` (matches load hook pattern) - CLAUDE.md slimmed from 114 lines → ~30 lines (pointer to `.claude/rules/`) - `settings.json` expanded from 5 hook events → 7 (added PreToolUse, PostToolUse) - HOOK_CONTRACT.md updated with new hooks inventory, git commit conventions, Python dependency note - `domain-profile.yaml` — added LL prefix, agent registry updated (werk → devlab) ### Breaking - **Agent `werk` removed** — renamed to `devlab`. Repos referencing `werk` in EPIC leads, agent routing, or custom hooks must update to `devlab` - **CLAUDE.md content moved** — rules now in `.claude/rules/*.md`. CLAUDE.md is a pointer only. Repos that grep CLAUDE.md for rule content must update to search `.claude/rules/` - **MEMORY.md format changed** — old tables replaced with 4-section format. Repos with populated MEMORY.md files should migrate content into the new sections - **settings.json schema expanded** — PreToolUse and PostToolUse entries added. Repos using `/localize` must re-sync settings.json

  2. v3.1.0 GitHub ↗
    原版更新说明

    ## [3.1.0] — 2026-03-18 ### Added - `prd-v04-visual-prototype-gate` skill — converts SCR- entries into structured prompts for Google Stitch (or equivalent UI generation tool), captures stakeholder feedback routed back to SoT IDs. Sits between Screen Flow Definition and v0.5 Red Team Review. - `prd-v06-environment-setup` registered in domain-profile.yaml, skills-inventory.md, and DEVLAB agent (skill existed on disk but was missing from all registries) ### Changed - `.claude/domain-profile.yaml` — domain skills list updated (24 → 26 entries) - `.claude/skills/skills-inventory.md` — added Visual Prototype Gate and Environment Setup entries (Quick Nav, stage overview tables, full skill specs) - `.claude/agents/studio/AGENT.md` — added `prd-v04-visual-prototype-gate` to Skills I Invoke - `.claude/agents/devlab/AGENT.md` — added `prd-v06-environment-setup` to Skills I Invoke - `.claude/README.md` — updated v0.4 skill count (3 → 4) and v0.6 skill count (2 → 3) - Skill count: 26 → 28 PRD lifecycle skills + 5 methodology skills

  3. v3.0.0 GitHub ↗
    原版更新说明

    ## [3.0.0] — 2026-02-12 ### Added - `.claude/VERSION` — single source of truth for template version - `CHANGELOG.md` — structural changes documented per version - `MIGRATION.md` — step-by-step migration guide for derivative repos - `<!-- SECTION: -->` and `<!-- CUSTOMIZABLE: -->` markers in all template files for merge-friendly syncing - `.claude/hooks/HOOK_CONTRACT.md` — universal hook interface specification (language-agnostic) - `.claude/hooks/context-validation.sh` — shell variant of SessionStart hook - `.claude/hooks/context-density-gate.sh` — shell variant of UserPromptSubmit hook - `.claude/hooks/sot-update-trigger.sh` — shell variant of Stop hook - `.claude/domain-profile.yaml` — parameterized ID prefixes, skill taxonomy (core vs domain), agent registry - Dependency manifests in all hook `.md` documentation files - `template_version` frontmatter field in CLAUDE.md, PRD.md, README_template.md, EPIC_TEMPLATE.md, SoT.README.md ### Changed - EPIC template sections: numbered (`## 0. Session State`) → semantic (`## Session State`) - CLAUDE.md: "Section 0" references → "Session State" semantic references - ID Ownership in CLAUDE.md now references `domain-profile.yaml` as canonical registry - `.claude/README.md` updated to reflect actual directory structure (agents, hooks, skills) - Agent files restructured: flat `.claude/agents/DEVLAB.md` → `.claude/agents/devlab/AGENT.md` + `MEMORY.md` ### Breaking - Agent paths changed: `agents/{NAME}.md` → `agents/{name}/AGENT.md` + `agents/{name}/MEMORY.md` - EPIC section headers no longer numbered — scripts referencing "Section 0" must update to "Session State" - See `MIGRATION.md` for complete derivative update checklist

  4. v2.0.0 GitHub ↗
    原版更新说明

    ## [2.0.0] — 2026-01-12 ### Added - Complete skill library: 26 PRD lifecycle skills (v0.1–v0.9) + 5 methodology skills (ghm-*) (note: count updated to 28 in v3.1.0) - Skill-per-directory structure with SKILL.md + assets/ + references/ - 3 hooks: context-validation, context-density-gate, sot-update-trigger - Hook .md documentation paired with each script - 4 agent definitions: HORIZON, STUDIO, DEVLAB, METRO - 12 SoT files standardized to ~100-150 lines each - EPIC template with 5-phase execution model - Progressive documentation protocol in CLAUDE.md - README_template.md for derivative repos ### Changed - Standardized SoT files to consistent structure with YAML frontmatter - Methodology renamed to "PRD Led Context Engineering"

  5. v1.0.0 GitHub ↗
    原版更新说明

    ## [1.0.0] — 2025-12-22 ### Added - Initial template structure - CLAUDE.md agent operating guide - PRD.md progressive requirements template - SoT directory with ID-based knowledge graph - EPIC template for execution planning - README.md methodology explainer

当前收录版本

0.0.1

核对来源版本 ↗

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值65/100

亮点

  • 针对特定架构体系(SoT)提供专业的文档结构创建能力
  • 明确限定使用场景(产品生命周期中仅3-4次),避免滥用
触发精准85/100

亮点

  • 触发词覆盖多种自然语言变体,边界清晰
  • 有效区分于相似功能 Skill(如 ghm-id-register)
结构规范75/100

待提升项

  • 缺少端到端完整示例 原报告严重程度:轻微

    文档引用了 assets/sot-template.md 作为模板,但未在 skill_body 中提供可直接复用的完整示例

    改进建议:在 Step 3 中嵌入一个最小完整 SoT 文件示例,或确保 assets/sot-template.md 实际存在且完整

  • 文档过长 原报告严重程度:轻微

    skill_body 内容约600行,超出理想长度(≤500行)

    改进建议:将部分详细说明(如 Anti-Patterns、Bundled Resources)移至独立参考文件,保持主流程简洁

亮点

  • 结构清晰,包含 When to Use、Workflow、Checklist、Quality Gates 等完整模块
  • frontmatter 完整,符合规范
执行可靠80/100

待提升项

  • 引用文件未验证存在性 原报告严重程度:轻微

    skill_body 引用了 assets/sot-template.md、references/sot-patterns.md 等文件,但未确认这些文件是否实际存在于 ZIP 包中

    改进建议:确保所有被引用的资源文件均包含在 Skill ZIP 包内,或在文档中注明获取方式

亮点

  • 工具使用明确(Read/Write/Edit/Glob/Grep),参数正确
  • 包含完整的验证清单(Purity Checklist、Quality Gates)和异常处理逻辑
  • 不可逆操作(创建文件、注册前缀)有明确的确认机制
证据可验 (前四项均值)76/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。