agent-files

Maintains shared AGENTS.md instructions, skills, and hooks for Claude Code and Codex.

54|6|Updated Jan 7, 2026
One-click install
npx skills add https://github.com/schmitthub/clawker --skill agent-files-schmitthub
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: agent-files
Source: https://github.com/schmitthub/clawker/tree/main/.agents/skills/agent-files
Command: npx skills add https://github.com/schmitthub/clawker --skill agent-files-schmitthub

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Keeping project instructions, skills, subagents, and hooks consistent across both Claude Code and Codex is error-prone when each tool has its own native configuration format. This Skill defines a single shared layout under .agents/ so rules are written once and consumed by both harnesses without duplication or drift. ## Core Features & Use Cases - Shared instruction layout: Defines ownership rules for root and package AGENTS.md files, sibling CLAUDE.md symlinks, Serena memories, and shared skills discovered by both tools. - Compatibility rules: Documents how Codex reads AGENTS.md and inline TOML hooks while Claude Code reads CLAUDE.md links and .claude/settings.json, including subagent definitions via agents/claude.md and agents/codex.toml. - Verification guidance: Explains the agent-compat commit hook and PR lint workflow that validate symlink targets, config_file paths, and link resolution without running agents. - Use Case: When adding a new repository skill, you create it once under .agents/skills/, optionally add harness sidecars in its agents/ directory, and both Claude Code and Codex pick it up with no duplicated content. ## Quick Start Ask the agent to add a new shared skill or update the root AGENTS.md following the agent-files layout rules so both Claude Code and Codex load it correctly.

Frequently Asked Questions about agent-files

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I share project instructions between Claude Code and Codex?▼

Write instructions once in a root or package AGENTS.md file. Codex reads AGENTS.md directly, while Claude Code reads a sibling CLAUDE.md symbolic link whose target is exactly AGENTS.md, so both tools share one source.

How do I add a skill that both Claude Code and Codex discover?▼

Create the skill once under .agents/skills with a SKILL.md file. Codex discovers the shared directory natively, and Claude Code uses it through the .claude/skills link, so no duplicate copies are needed.

Can Codex use a symbolic link for agent config files?▼

No. Codex rejects symbolic links for config_file entries in .codex/config.toml; the path must be relative and resolve to a regular file inside the repository. Claude subagent links under .claude/agents may be symlinks.

Why should I not add a .codex/hooks.json file?▼

Codex reads both inline TOML hooks in config.toml and a hooks.json file, which would register each command guard twice. Keep hook registrations only in the inline TOML within .codex/config.toml.

How is the shared agent file layout validated?▼

The agent-compat commit hook and PR lint workflow run scripts/check-agent-compatibility.py, which verifies CLAUDE.md symlink targets, relative link resolution, and Codex config_file paths. Agents do not run it manually.