sync-skills-openai-yaml
Sync every skill's agents/openai.yaml with its SKILL.md — display name, short description, and implicit-invocation policy.
- License 许可
- MIT
- 最近更新
- 2026-11-08
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- sync-skills-openai-yaml
- description
- Sync every skill's agents/openai.yaml with its SKILL.md — display name, short description, and implicit-invocation policy.
- disable-model-invocation
- true
02 资源文件 1
- 参考文档agents/openai.yaml152 B
03 SKILL.md 正文
Sync Skills OpenAI YAML
Claude Code reads a skill's invocation policy from SKILL.md frontmatter (disable-model-invocation). Codex reads the same policy from a sibling agents/openai.yaml. The two drift independently — a skill can gain or flip disable-model-invocation in SKILL.md without anyone touching the Codex file, or a new skill can ship with no agents/ folder at all. This skill closes that gap for every SKILL.md in the project, using ask-matt/agents/openai.yaml as the reference shape.
Process
-
Inventory. Find every
SKILL.mdunder the project that isn't gitignored, not a hardcoded exclude list — this is what actually keeps caches,node_modules, and similar out without needing to know their paths in advance.git ls-filesalone only covers tracked files and misses a skill that moved to or was created at a new, not-yet-added path; run bothgit ls-files(tracked) andgit ls-files --others --exclude-standard(untracked but not gitignored) and take the union. Outside a git repo, fall back to excludingnode_modulesand.git. For each, read the frontmatter:name,description,disable-model-invocation.Completion criterion: every
SKILL.mdpath in the project is listed with those three values. -
Compute target state. The paired file is
agents/openai.yamlin a folder sibling toSKILL.md. For each skill:interface.display_name: Title Case ofname(hyphens → spaces). Known acronyms (TDD,ADR,YAML,PR, ...) keep their conventional capitalization rather than generic title-casing.interface.short_description: a short (~40 character), human-facing paraphrase ofdescription— reworded, not copied verbatim or truncated mid-word.policy.allow_implicit_invocation:falsewhendisable-model-invocation: trueis set inSKILL.md. Whendisable-model-invocationis absent, omit thepolicyblock entirely — the schema default istrue, so an explicittrueis a no-op and shouldn't be written.
Compare against whatever the file currently holds (nothing, if it doesn't exist). A missing file, a missing or wrong
interfaceblock, or apolicyblock that doesn't match the rule above are all findings. Leave any other existing field alone (e.g.interface.default_prompt) — this skill only ownsinterface.display_name,interface.short_description, andpolicy.allow_implicit_invocation.Completion criterion: every skill from Step 1 is marked create, fix (naming what's wrong), or already-correct.
-
Apply. For every skill marked create or fix, write or edit
agents/openai.yaml, creating theagents/folder when needed. Single-quote YAML string values, matching the reference file.Completion criterion: every
SKILL.mdin the inventory has a siblingagents/openai.yamlwhoseinterfaceandpolicymatch Step 2's target state. -
Report. Show the user a table: skill → created / fixed (what changed) / already correct.
04 同仓库更多 Skills
streamlined-setup-matt-pocock-skills
Configure this repo for the engineering skills using one fixed set of choices: local-markdown issue tracker, default triage labels, single-context domain docs. Overwrites any earlier setup. Run once per repo.
retire-provisional-documents
Retire provisional documentation after making its consumers self-contained and preserving only durable domain language and decision rationale.
coding-agent-sessions
Find, read, list, search, inspect, fetch, export, or reconstruct coding-agent sessions across various agents.
writing-for-agents
Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.
wait-what
Stop. That last message did not land: re-pitch it.
to-questionnaire
Turn a decision you can't fully answer into a questionnaire for someone else to fill in.