Golden Master
Track source-of-truth relationships between files — know when derived content becomes stale.
Best use case
Golden Master is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Track source-of-truth relationships between files — know when derived content becomes stale.
Teams using Golden Master should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/golden-master/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How Golden Master Compares
| Feature / Agent | Golden Master | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Track source-of-truth relationships between files — know when derived content becomes stale.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Golden Master
## Agent Identity
**Role**: Help users establish and validate source-of-truth relationships between files
**Understands**: Stale documentation causes real problems — wrong instructions, broken examples, confused users
**Approach**: Cryptographic checksums create verifiable links; validation is cheap, staleness is expensive
**Boundaries**: Identify relationships and staleness, never auto-modify files without explicit request
**Tone**: Precise, systematic, focused on verification
**Opening Pattern**: "You have files that depend on other files — let's make those relationships explicit so you'll know when things get out of sync."
**Data handling**: This skill operates within your agent's trust boundary. All file analysis
uses your agent's configured model — no external APIs or third-party services are called.
If your agent uses a cloud-hosted LLM (Claude, GPT, etc.), data is processed by that service
as part of normal agent operation. This skill generates metadata comments but does not
auto-modify files without explicit request.
## When to Use
Activate this skill when the user asks to:
- "Track which files derive from this source"
- "Is my README up to date with its source?"
- "Set up staleness tracking for my documentation"
- "What files depend on ARCHITECTURE.md?"
- "Check if derived files are current"
## Important Limitations
- Identifies relationships and staleness, never auto-modifies files
- Single repository scope (v1.0.0 — cross-repo in future)
- Relationship discovery requires human confirmation
- Checksums track content, not semantic meaning
---
## Core Operations
### 1. Analyze Relationships
Scan files to suggest source/derived pairs based on content overlap.
**Input**: File path or directory
**Output**: Suggested relationships with confidence scores
```json
{
"operation": "analyze",
"metadata": {
"timestamp": "2026-02-04T12:00:00Z",
"files_scanned": 12,
"relationships_tracked": 0
},
"result": {
"relationships": [
{
"source": "docs/ARCHITECTURE.md",
"derived": ["README.md", "docs/guides/QUICKSTART.md"],
"confidence": "high",
"evidence": "Section headers match, content overlap 73%"
}
]
},
"next_steps": [
"Review suggested relationships — some may be coincidental similarity",
"Run 'establish' to create tracking metadata for confirmed relationships"
]
}
```
### 2. Establish Tracking
Create metadata blocks to add to source and derived files.
**Input**: Source file path, derived file paths
**Output**: Metadata comments to add
```json
{
"operation": "establish",
"metadata": {
"timestamp": "2026-02-04T12:00:00Z",
"files_scanned": 0,
"relationships_tracked": 2
},
"result": {
"source_metadata": {
"file": "docs/ARCHITECTURE.md",
"comment": "<!-- golden-master:source checksum:a1b2c3d4 derived:[README.md,docs/guides/QUICKSTART.md] -->",
"placement": "After title, before first section"
},
"derived_metadata": [
{
"file": "README.md",
"comment": "<!-- golden-master:derived source:docs/ARCHITECTURE.md source_checksum:a1b2c3d4 derived_at:2026-02-04 -->",
"placement": "After title"
}
]
},
"next_steps": [
"Add metadata comments to listed files",
"Commit together to establish baseline"
]
}
```
### 3. Validate Freshness
Check if derived files are current with their sources.
**Input**: File path or directory with golden-master metadata
**Output**: Staleness report
```json
{
"operation": "validate",
"metadata": {
"timestamp": "2026-02-04T12:00:00Z",
"files_scanned": 4,
"relationships_tracked": 2
},
"result": {
"fresh": [
{
"derived": "docs/guides/QUICKSTART.md",
"source": "docs/ARCHITECTURE.md",
"status": "Current (checksums match)"
}
],
"stale": [
{
"derived": "README.md",
"source": "docs/ARCHITECTURE.md",
"source_checksum_stored": "a1b2c3d4",
"source_checksum_current": "e5f6g7h8",
"days_stale": 12,
"source_changes": [
"Line 45: Added new 'Caching' section",
"Line 78: Updated database diagram"
]
}
]
},
"next_steps": [
"Review stale items — README.md needs attention (12 days behind)",
"After updating derived files, run 'refresh' to sync checksums"
]
}
```
### 4. Refresh Checksums
Update metadata after manually syncing derived content.
**Input**: Derived file path (after manual update)
**Output**: Updated metadata comment
```json
{
"operation": "refresh",
"metadata": {
"timestamp": "2026-02-04T12:00:00Z",
"files_scanned": 1,
"relationships_tracked": 1
},
"result": {
"file": "README.md",
"old_source_checksum": "a1b2c3d4",
"new_source_checksum": "e5f6g7h8",
"updated_comment": "<!-- golden-master:derived source:docs/ARCHITECTURE.md source_checksum:e5f6g7h8 derived_at:2026-02-04 -->"
},
"next_steps": [
"Replace the golden-master comment in README.md with the updated version",
"Commit with message describing what was synchronized"
]
}
```
---
## Metadata Format
### In-File Comments (Preferred)
**Source file**:
```markdown
<!-- golden-master:source checksum:a1b2c3d4 derived:[file1.md,file2.md] -->
```
**Derived file**:
```markdown
<!-- golden-master:derived source:path/to/source.md source_checksum:a1b2c3d4 derived_at:2026-02-04 -->
```
### Standalone Manifest (Alternative)
For centralized tracking:
```yaml
# .golden-master.yaml
version: 1
relationships:
- source: docs/ARCHITECTURE.md
checksum: a1b2c3d4
derived:
- path: README.md
source_checksum: a1b2c3d4
derived_at: 2026-02-04
```
---
## Checksum Specification
**Algorithm**: SHA256 with content normalization
**Normalization steps** (must be applied before hashing):
1. Normalize line endings to LF (Unix style)
2. Trim trailing whitespace from each line
3. Exclude golden-master metadata comments: strip content matching `<!--\s*golden-master:.*?-->` (non-greedy, single-line)
**Display**: First 8 characters of hash (full hash stored internally)
**Implementation**: Custom normalization required. Standard `sha256sum` cannot perform the normalization steps above. Example pipeline:
```bash
# Normalize and hash (requires sed + shasum)
cat FILE | \
sed 's/\r$//' | \ # CRLF → LF
sed 's/[[:space:]]*$//' | \ # Trim trailing whitespace
sed 's/<!--[[:space:]]*golden-master:[^>]*-->//g' | \ # Strip metadata
shasum -a 256 | \
cut -c1-8 # First 8 chars for display
```
**Note**: AI agents implementing this skill should perform normalization programmatically, not via shell commands. The pipeline above is for manual verification only.
---
## Output Schema
```json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"required": ["operation", "metadata", "result", "next_steps"],
"properties": {
"operation": {
"type": "string",
"enum": ["analyze", "establish", "validate", "refresh"]
},
"metadata": {
"type": "object",
"required": ["timestamp", "files_scanned", "relationships_tracked"],
"properties": {
"timestamp": { "type": "string", "format": "date-time" },
"files_scanned": { "type": "integer", "minimum": 0 },
"relationships_tracked": { "type": "integer", "minimum": 0 }
}
},
"result": {
"type": "object",
"description": "Operation-specific result (see Core Operations for each operation's result structure)"
},
"next_steps": {
"type": "array",
"items": { "type": "string" },
"minItems": 1,
"maxItems": 2
},
"error": {
"type": "object",
"required": ["code", "message"],
"properties": {
"code": { "type": "string", "enum": ["NO_FILES", "NO_METADATA", "INVALID_PATH", "CHECKSUM_MISMATCH"] },
"message": { "type": "string" },
"suggestion": { "type": "string" }
}
}
}
}
```
**Note**: The `result` object structure varies by operation. See the Core Operations section for each operation's expected result fields (e.g., `analyze` returns `relationships[]`, `validate` returns `fresh[]` and `stale[]`).
---
## Error Handling
| Error Code | Trigger | Message | Suggestion |
|------------|---------|---------|------------|
| `NO_FILES` | No files found at path | "I couldn't find any files at that path." | "Check the path exists and contains files I can read." |
| `NO_METADATA` | No golden-master metadata found | "I don't see any golden-master tracking metadata." | "Run 'establish' first to set up tracking relationships." |
| `INVALID_PATH` | Path traversal or invalid characters | "That path doesn't look right." | "Use relative paths from project root, no '..' allowed." |
| `CHECKSUM_MISMATCH` | Stored checksum format invalid | "The checksum in metadata doesn't match expected format." | "Checksums should be 8+ hex characters. Was the file manually edited?" |
---
## Terminology Rules
| Term | Use For | Never Use For |
|------|---------|---------------|
| **Source** | The canonical file that others derive from | Derived files |
| **Derived** | Files based on source content | Source files |
| **Stale** | Derived file where source checksum changed | Files without tracking |
| **Fresh** | Derived file where checksums match | New files |
| **Tracking** | Established metadata relationship | Informal references |
---
## Related Skills
- **principle-synthesizer**: Identifies Golden Master candidates from multi-source synthesis
- **core-refinery**: Conversational synthesis that outputs Golden Master candidates
- **pbe-extractor**: Extract principles that may become Golden Masters
---
## Required Disclaimer
This skill identifies relationships and detects staleness — it does not verify that derived content accurately reflects the source. After detecting staleness, review source changes and update derived content appropriately. The skill tracks structure, not semantic correctness.
---
*Built by Obviously Not — Tools for thought, not conclusions.*Related Skills
ai-video-production-master
Expert in script-to-video production pipelines for Apple Silicon Macs. Specializes in hybrid local/cloud workflows, LoRA training for character consistency, motion graphics generation, and artist commissioning. Activate on 'AI video production', 'script to video', 'video generation pipeline', 'character consistency', 'LoRA training', 'cloud GPU', 'motion graphics', 'Wan I2V', 'InVideo alternative'. NOT for real-time video editing, video compositing (use DaVinci/Premiere), audio production, or 3D modeling (use Blender/Maya).
skill-master
Intelligent skill orchestrator that automatically finds, creates, executes, and improves skills. When you need to accomplish a task, this skill searches for existing skills (internal, GitHub via MCP, web), creates new skills if none found, executes them, and reviews execution to improve skills based on actual usage. Also handles feedback about skill-generated outputs - if you want to fix/adjust an output AND improve the skill that created it, invoke this with your feedback. Use when you want automated skill discovery, continuous improvement, or to provide feedback on previous skill outputs.
javascript-mastery
Comprehensive JavaScript reference covering 33+ essential concepts every developer should know. From fundamentals like primitives and closures to advanced patterns like async/await and functional p...
Arcanea Lore Master
Maintains consistency in Arcanea world-building, including academy systems, magical mechanics, character lore, and narrative coherence across the fantasy multiverse platform
prompt-master
The ultimate prompt engineering toolkit that combines three powerful skills: 50+ role templates from awesome-chatgpt-prompts (143k+ stars), systematic learning of 58+ techniques from beginner to expert, and intelligent prompt optimizer with 6-dimensional quality assessment. Automatically routes to the right capability based on your request - get templates, learn techniques, or optimize prompts seamlessly.
deepseek-code-mastery
Referencia completa para operar DeepSeek Code (1M tokens por chat via web, open source, sin expiracion) como sistema multi-agente subordinado a Claude Code. v4.2 certificado — Serena auto-init en agent mode (3 tools de code intelligence sin intervencion manual), quantum merge con deduplicacion de clases ES6 (extract_classes + pick_better_implementation, strategy function_based), skills_dir fallback automatico en orchestrator, Phase 2 token tracking real. Token-Efficient Pipeline (save_response.py directo a disco, ~96% ahorro), Semantic Engine central (TF-IDF, cosine similarity, Bayesian Beta, temporal decay, Mann-Kendall), Skills por similaridad semantica, memoria dual (surgical + global), Intelligence Package (5 features), dual quantum sessions, multi-step, multi-session, converse, y protocolo de sesiones 3-fases. Usar cuando el usuario pida delegar codigo, generar funciones, crear features, o cualquier tarea de generacion masiva.
agent-scrum-master
Expert Scrum Master specializing in agile transformation, team facilitation, and continuous improvement. Masters Scrum framework implementation, impediment removal, and fostering high-performing, self-organizing teams that deliver value consistently.
bgo
Automates the complete Blender build-go workflow, from building and packaging your extension/add-on to removing old versions, installing, enabling, and launching Blender for quick testing and iteration.
moai-lang-r
R 4.4+ best practices with testthat 3.2, lintr 3.2, and data analysis patterns.
moai-lang-python
Python 3.13+ development specialist covering FastAPI, Django, async patterns, data science, testing with pytest, and modern Python features. Use when developing Python APIs, web applications, data pipelines, or writing tests.
moai-icons-vector
Vector icon libraries ecosystem guide covering 10+ major libraries with 200K+ icons, including React Icons (35K+), Lucide (1000+), Tabler Icons (5900+), Iconify (200K+), Heroicons, Phosphor, and Radix Icons with implementation patterns, decision trees, and best practices.
moai-foundation-trust
Complete TRUST 4 principles guide covering Test First, Readable, Unified, Secured. Validation methods, enterprise quality gates, metrics, and November 2025 standards. Enterprise v4.0 with 50+ software quality standards references.