You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
add ADR 0005 for Claude/Codex agent skill surface sharing policy
define .agents/skills/ as the Codex repo-shared canonical surface and keep .claude/skills/ as the Claude project surface
prohibit separate Codex-only skill bodies under .codex/skills/ and define symlink/thin-wrapper exception rules
Why
Issue #779 asks for a decision record that future work on #776 and #780 can cite. Without an ADR, the repo risks duplicating skill bodies across Claude/Codex surfaces, increasing drift, review surface, and context/token cost.
Impact
future implementation issues can cite one canonical policy for skill surface boundaries
.codex/skills/ is kept out of the repo-shared canonical surface role
`.codex/skills/` remains non-canonical.
Tracked independent skill bodies under `.codex/skills/**/SKILL.md` are prohibited.
A future `.codex/skills/**/SKILL.md` bridge is allowed only when all of the following are true:
1. it is explicitly marked as derived/non-canonical;
2. it contains no workflow procedure body beyond target resolution and runtime-specific caveats;
3. its canonical target is `.agents/skills/<skill-name>/SKILL.md`;
4. a validator proves the wrapper is thin.
Blocker 3: status: accepted が早い
このPRはdraftで、変更はADR追加のみです。PRコメントも確認できた範囲ではPreview botだけで、asset-level live check未検証というコメントが付いています。
したがって、ADRの「shared body は name と description を持つ」は正しい方向ですが、これは 両runtimeの公式共通要件 ではなく、Codex互換性を満たすためのこのrepoのportable subset policy です。ここを明記しないと、Claude側仕様の誤引用になります。
修正文:
For this repository's cross-runtime shared skill body, `name` and `description` are mandatory as a repo policy. This is stricter than Claude Code's minimum requirement and is chosen to satisfy Codex repository skill compatibility.
Claude `allowed-tools` must never be inherited through a shared body. It grants pre-approval for listed tools rather than restricting the model to those tools. Therefore, tool permissions must stay in Claude-specific wrappers or companion metadata and require explicit review.
Distribution boundary:
- Repo-scoped workflow: direct skill folder under `.agents/skills/`.
- Reusable installable artifact outside this repo: package as a plugin.
-`.codex/skills/` must not be used as a pseudo-distribution surface.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.agents/skills/as the Codex repo-shared canonical surface and keep.claude/skills/as the Claude project surface.codex/skills/and define symlink/thin-wrapper exception rulesWhy
Issue #779 asks for a decision record that future work on #776 and #780 can cite. Without an ADR, the repo risks duplicating skill bodies across Claude/Codex surfaces, increasing drift, review surface, and context/token cost.
Impact
.codex/skills/is kept out of the repo-shared canonical surface roleChecks
test -f docs/adr/agent-skill-surface-sharing.mdrg -n "\\.agents/skills/\\*/SKILL\\.md|\\.claude/skills/\\*/SKILL\\.md|\\.codex/skills/.*repo-shared.*(not|禁止|使わない)" docs/adr/agent-skill-surface-sharing.mdrg -n "directory symlink|file symlink|thin wrapper|Windows|WSL|GitHub Actions|worktree" docs/adr/agent-skill-surface-sharing.mdrg -n "portable subset|Claude-only|Codex-only|allowed-tools|dynamic context|agents/openai.yaml|platform-specific" docs/adr/agent-skill-surface-sharing.mdrg -n "#381.*(separate concern|precedent ではない|precedentではない)|session-recording-policy.*(別 concern|separate concern)" docs/adr/agent-skill-surface-sharing.mdrg -n "#776|#780|validator|runtime contract|runtime_dependency_status: codex_skill_required" docs/adr/agent-skill-surface-sharing.md