ghm-sot-builder
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "ghm-sot-builder" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-49b2566679f7b6f663469e948d20ac8a63e7957c409512b9ae8a28a3ed67dbe6. Verify the upstream source and version against https://github.com/mattgierhart/PRD-driven-context-engineering before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Create a new Source of Truth (SoT) file when existing templates do not meet the need. Triggered by requests to create a new SoT file, add a new artifact type, or when users state “I need to track [X] but there is no SoT,” “create SoT,” or “new source of truth.” Output is a properly structured SoT.*.md file that includes an ID prefix, front-matter metadata, and an update protocol.
Introduction source: third_party · mattgierhart · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Create new Source of Truth files that fit your product's unique needs while maintaining template purity.
- Audience
- 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`
- Inputs and outputs
- 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 |
- Testing
- Not tested
Browse files
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
- GrepSoT 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
- Identify Need → Confirm no existing SoT fits
- Design Schema → Define ID prefix, categories, required fields
- Draft Template → Create pure structure (no methodology teaching)
- Validate Purity → Apply the litmus test
- 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
-
What artifact type does this track?
- Bad: "Notes" (too generic)
- Good: "Partner Integration Contracts" (specific, durable)
-
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)
-
What ID prefix will you use?
- Must be unique across the system
- 2-4 uppercase letters
- Check
SoT/SoT.UNIQUE_ID_SYSTEM.mdfor 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
- YAML Frontmatter - Metadata for the file
- Title & Purpose Block - What this SoT tracks
- Navigation by Category - Quick links to entries
- Entry Template - Repeatable structure (copy for each new entry)
- Deprecated Section - Where old entries go
- Cross-Reference Index - Bidirectional links
- 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 filesreferences/examples.md— Before/after examples of SoT creationassets/sot-template.md— Copy-paste starter template
Handoff
After creating a new SoT:
- SoT file exists at
SoT/SoT.{NAME}.md - SoT.README.md lists the new file
- SoT.UNIQUE_ID_SYSTEM.md has the new prefix
- Ready to use
ghm-id-registerfor adding entries
Version history
-
v3.2.0
GitHub ↗
Original release notes
## [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
-
v3.1.0
GitHub ↗
Original release notes
## [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
-
v3.0.0
GitHub ↗
Original release notes
## [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
-
v2.0.0
GitHub ↗
Original release notes
## [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"
-
v1.0.0
GitHub ↗
Original release notes
## [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
Current listing version
0.0.1
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 针对特定架构体系(SoT)提供专业的文档结构创建能力
- 明确限定使用场景(产品生命周期中仅3-4次),避免滥用
Highlights
- 触发词覆盖多种自然语言变体,边界清晰
- 有效区分于相似功能 Skill(如 ghm-id-register)
Areas to improve
-
缺少端到端完整示例 Reported severity: Minor
文档引用了 assets/sot-template.md 作为模板,但未在 skill_body 中提供可直接复用的完整示例
Recommendation: 在 Step 3 中嵌入一个最小完整 SoT 文件示例,或确保 assets/sot-template.md 实际存在且完整
-
文档过长 Reported severity: Minor
skill_body 内容约600行,超出理想长度(≤500行)
Recommendation: 将部分详细说明(如 Anti-Patterns、Bundled Resources)移至独立参考文件,保持主流程简洁
Highlights
- 结构清晰,包含 When to Use、Workflow、Checklist、Quality Gates 等完整模块
- frontmatter 完整,符合规范
Areas to improve
-
引用文件未验证存在性 Reported severity: Minor
skill_body 引用了 assets/sot-template.md、references/sot-patterns.md 等文件,但未确认这些文件是否实际存在于 ZIP 包中
Recommendation: 确保所有被引用的资源文件均包含在 Skill ZIP 包内,或在文档中注明获取方式
Highlights
- 工具使用明确(Read/Write/Edit/Glob/Grep),参数正确
- 包含完整的验证清单(Purity Checklist、Quality Gates)和异常处理逻辑
- 不可逆操作(创建文件、注册前缀)有明确的确认机制
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.