跳到正文
Skillpedia
技术文档41k · #7002

drydock

它能做什么

这项技能为项目创建入门指南文件,例如主指南和术语表,使所有在该仓库中工作的人拥有相同的背景知识。适合知识只存在于人们脑中而不在文件中的团队。

适用场景

  • ✓当你开始一个人类和 AI 智能体都会参与工作的代码仓库的时候。
  • ✓当项目的规则和术语只存在于聊天记录或人们的脑中的时候。
  • ✓当你想检查现有项目的共享指南文件是否出现偏差的时候。

技能链接

https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/drydock/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/Yeachan-Heo/oh-my-claudecode/blob/main/skills/drydock/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请为这个代码仓库设置共享的指南文件,让新加入的人和 AI 助手都从相同的规则和术语开始。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会先生成两个入门文件,并记录哪些已创建、哪些被推迟、哪些被有意跳过。其他指南文件会在首次需要时再添加。检查模式可以审核文件是否出现偏差。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Drydock

Lay the keel of the shipyard: one repo, one shared harness, every contributor inherits it. This skill seeds exactly two faces (CLAUDE.md and GLOSSARY.md), with a read-once migration for recognizable legacy glossary CONTEXT.md files, and defines the first-use moment when every other surface appears. It wires the flows that fill them (launch writes GLOSSARY.md vocabulary and decision records; launch C5 sediment and reviews sediment standards) and reports what was seeded, what is deferred and why, and what was skipped on purpose.

The four pillars and where they physically live:

Pillar Surfaces
Context (shared background) GLOSSARY.md (glossary) + docs/business/ + docs/adr/ + OMC wiki
Rules (boundaries) CLAUDE.md (thin entry: conventions, principles, index) + docs/standards/
Tools (composable capability) .omc/skills/ + .mcp.json + scripts/
Standards (the classification society) design-system/ (tokens, components, patterns) + docs/standards/

Metaphor map: the shipyard is the shared facility; the classification society (docs/standards/ + design-system/) sets the rules a ship must pass to be seaworthy; drydock lays the keel; launch ships it.

When to Use

  • starting a repo that humans and agents will both build on
  • a repo where knowledge lives in people's heads and chat history instead of files
  • onboarding: a new teammate or agent should inherit context by reading, not by asking

When Not to Use

  • throwaway prototypes with no collaborators
  • a repo already running this harness (use --check instead)

Workflow

1. Detect (never clobber)

Inventory what exists before writing anything:

  • CLAUDE.md present? AGENTS.md present? (rule: if either exists, extend it in place; create the missing one as a one-line pointer to the other; never create both fresh)
  • GLOSSARY.md (or a recognizable legacy glossary CONTEXT.md), docs/adr/, docs/standards/, docs/business/, design-system/, .omc/skills/, .mcp.json, scripts/, .gitattributes — which exist (adopted — their integrity is audited), which are absent (not adopted — each gets its first-use trigger below, never a speculative creation)?
  • OMC installed? — only worth checking when running inside an OMC session; outside one, skip this check silently (the harness works with or without OMC)

Report the map first, then act.

2. Resolve document language, then ask only what detection cannot answer

The document language for the generated harness files is a file-backed decision, not conversation state. Use this contract exactly:

<!-- shipyard-document-language-contract:start -->
{
  "schemaVersion": 1,
  "authority": { "path": "GLOSSARY.md", "frontmatterKey": "documentLanguage" },
  "canonicalSources": ["CLAUDE.md", "README.md"],
  "askOn": ["missing", "mixed", "conflict", "low-confidence", "invalid-explicit", "script-ambiguous"],
  "tagPattern": "^[a-z]{2,3}(?:-[A-Z][a-z]{3})?(?:-(?:[A-Z]{2}|[0-9]{3}))?$",
  "scriptVariants": ["zh-Hans", "zh-Hant"],
  "seedCompanionPrefixes": { "en": "en", "zh-Hans": "zh-Hans", "zh-Hant": "zh-Hant" },
  "stableTokens": [
    "GLOSSARY.md", "documentLanguage", "/oh-my-claudecode:launch", "--serial",
    "plan", "execute", "review", "verify", "blockedBy", "blocked_by",
    "pending", "in_progress", "completed", "failed", "ready-for-agent",
    "id", "name", "description", "triggers", "mcpServers", "```",
    "<Project>", "<term>", "<feature-slug>"
  ]
}
<!-- shipyard-document-language-contract:end -->

Legacy glossary migration (full runs only; --check never renames or rewrites anything and just audits the legacy file in place): a CONTEXT.md is a legacy glossary only when its YAML frontmatter carries a documentLanguage key or its first visible non-blank line (after the frontmatter, ignoring a BOM and HTML comments) is a drydock glossary seed heading (Glossary, 术语表, 詞彙表 — seeds that predate the language tag); any other CONTEXT.md is an unrelated agent-context document and is left alone. If the yard has a legacy glossary CONTEXT.md but no GLOSSARY.md, rename it to GLOSSARY.md (git mv when tracked) before resolving the language or scaffolding anything, preserving its content and frontmatter byte-for-byte. Never create a fresh GLOSSARY.md beside a legacy glossary CONTEXT.md; one yard has exactly one glossary authority. An unrelated CONTEXT.md does not block creating GLOSSARY.md and is never reporte

常见问题

它会一次创建所有指南文件吗?

不会。它先创建两个入门文件,其他文件会在首次需要时出现。

我可以检查现有的设置吗?

可以。检查选项会审核这些文件,并报告它们与标准偏离的地方。

它支持旧的术语表文件吗?

支持。可识别的旧版术语表文件会被接受,并迁移到新格式。

详情

作者的原始描述

Lay the keel of the shipyard harness in any repo — the 4-pillar shared environment (Context, Rules, Tools, Standards), seeded as two faces on day one (CLAUDE.md + GLOSSARY.md) with every other surface appearing on first use, so that every human and agent inherits the same design language and anyone can ship. Run once per repo; re-run with --check to audit drift.

repo: Yeachan-Heo/oh-my-claudecode

热度

GitHub 星标
41k
排名
#7002
许可证
MIT
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能