用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/duclm1x1/Dive-Ai --skill golden-master命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
Persistent memory system for AI agents following Model Context Protocol (MCP). Use for storing long-term memories across sessions, semantic search of past knowledge, building knowledge graphs, auto-injecting context, deduplicating memories, syncing to cloud storage. Essential for agents that need to remember decisions, solutions, preferences, and learned patterns over time.
Persistent memory system for AI agents following Model Context Protocol (MCP). Use for storing long-term memories across sessions, semantic search of past knowledge, building knowledge graphs, auto-injecting context, deduplicating memories, syncing to cloud storage. Essential for agents that need to remember decisions, solutions, preferences, and learned patterns over time.
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.
正在显示 SKILL.md
基于 SOC 职业分类
| name | Golden Master |
| description | Track source-of-truth relationships between files — know when derived content becomes stale. |
| homepage | https://app.obviouslynot.ai/skills/golden-master |
| user-invocable | true |
| emoji | 🏆 |
| tags | ["golden-master","source-tracking","staleness-detection","documentation-tools","checksum-validation","file-relationships"] |
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."
Activate this skill when the user asks to:
Scan files to suggest source/derived pairs based on content overlap.
Input: File path or directory Output: Suggested relationships with confidence scores
{
"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"
Create metadata blocks to add to source and derived files.
Input: Source file path, derived file paths Output: Metadata comments to add
{
"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"
Check if derived files are current with their sources.
Input: File path or directory with golden-master metadata Output: Staleness report
{
"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":
Update metadata after manually syncing derived content.
Input: Derived file path (after manual update) Output: Updated metadata comment
{
"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"
]
}
Source file:
<!-- golden-master:source checksum:a1b2c3d4 derived:[file1.md,file2.md] -->
Derived file:
<!-- golden-master:derived source:path/to/source.md source_checksum:a1b2c3d4 derived_at:2026-02-04 -->
For centralized tracking:
# .golden-master.yaml
version: 1
relationships:
- source: docs/ARCHITECTURE.md
checksum: a1b2c3d4
derived:
- path: README.md
source_checksum: a1b2c3d4
derived_at: 2026-02-04
Algorithm: SHA256 with content normalization
Normalization steps (must be applied before hashing):
<!--\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:
# 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.
{
"$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",
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 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?" |
| 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 |
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.