Agent Entrypoint Design
Overview
Create a small, stable entrypoint that tells agents where truth lives, what rules apply, and which checks gate changes.
The entrypoint should be navigation plus hard rules, not a long project encyclopedia. For shared harness terms, see ../../references/harness-patterns.md; when entrypoint files are absent, use references/build-when-missing.md. For mirror casing and drift rules, see references/mirror-policy.md.
When To Use
- The user wants to create or refactor
AGENTS.md, CLAUDE.md, GEMINI.md, .cursorrules, or GitHub instructions.
- Multiple agent instruction files duplicate content, drift, or contradict each other.
- A new project needs to define what an agent reads first, what it can change, and what it must run afterward.
Inputs Needed
- Repository root and main app/module boundaries.
- Existing agent instruction files and docs entrypoints.
- Whether mirrors, symlinks, generation scripts, or CI drift checks are expected.
Execution Order
- First: Read existing entrypoint files and identify which file should be the source of truth.
- Then: Design the root entrypoint, subtree entrypoints, mirror strategy, and validation commands.
- Finally: Output the entrypoint structure and sync/drift-prevention checks.
Step-by-Step Process
- Search for
AGENTS.md, CLAUDE.md, GEMINI.md, .cursor, and .github/instructions.
- Identify repeated rules, oversized rules, stale paths, or chat-only facts.
- If no usable entrypoint exists, create the minimum source-of-truth entrypoint from
references/build-when-missing.md.
- Choose one primary entrypoint; other agent-specific files should mirror, symlink, or explicitly reference it.
- Keep the root entrypoint to scope, source-of-truth docs, do/avoid rules, commands, tests, and relevant skills.
- If a subtree has special rules, put a closer
AGENTS.md in that subtree instead of overloading the root.
- Define drift prevention through a generation script, check script, CI job, or explicit manual checklist.
Checks
- Entrypoint: an agent can learn what to read first, where it may edit, and the minimum validation command within 60 seconds.
- Consistency: mirrored files cannot silently drift, or they carry a generation note or symlink constraint.
- Source of truth: rules point to versioned docs/scripts, not conversation memory.
- Scope: root rules are not too detailed, and subtree rules are not missing.
- Executability: every key rule maps to a command, file, or clear decision standard.
Output Format
# Agent Entrypoint Design
## Detected Mapping
- entrypoint:
- mirrors:
- validation:
## Source Of Truth
- Primary entrypoint:
- Mirrors:
- Subtree overrides:
## Root Entrypoint Sections
-
## Sync / Drift Prevention
-
## Minimum Commands
-
## Follow-up Files
-
Common Mistakes
- Copying large rule blocks into every agent file, which creates drift.
- Turning the entrypoint into a project encyclopedia that still leaves agents unsure what to do first.
- Putting concrete product requirements into general agent rules.
- Failing to document instruction precedence.
Example Prompts
- "Design AGENTS.md and mirror rules for this repository."
- "This repo has multiple agent instruction files. Make them source-of-truth safe."
- "Shrink the agent entrypoint into high-signal navigation."
Source: yfge/agent-harness-skills — distributed by TomeVault.
1---2name: agent-entrypoint-design3description: Use when designing or refactoring AGENTS.md, CLAUDE.md, GEMINI.md, Cursor rules, GitHub instructions, source-of-truth navigation, or agent onboarding entrypoints.4---56# Agent Entrypoint Design78## Overview910Create a small, stable entrypoint that tells agents where truth lives, what rules apply, and which checks gate changes.1112The entrypoint should be navigation plus hard rules, not a long project encyclopedia. For shared harness terms, see `../../references/harness-patterns.md`; when entrypoint files are absent, use `references/build-when-missing.md`. For mirror casing and drift rules, see `references/mirror-policy.md`.1314## When To Use1516- The user wants to create or refactor `AGENTS.md`, `CLAUDE.md`, `GEMINI.md`, `.cursorrules`, or GitHub instructions.17- Multiple agent instruction files duplicate content, drift, or contradict each other.18- A new project needs to define what an agent reads first, what it can change, and what it must run afterward.1920## Inputs Needed2122- Repository root and main app/module boundaries.23- Existing agent instruction files and docs entrypoints.24- Whether mirrors, symlinks, generation scripts, or CI drift checks are expected.2526## Execution Order2728- First: Read existing entrypoint files and identify which file should be the source of truth.29- Then: Design the root entrypoint, subtree entrypoints, mirror strategy, and validation commands.30- Finally: Output the entrypoint structure and sync/drift-prevention checks.3132## Step-by-Step Process33341. Search for `AGENTS.md`, `CLAUDE.md`, `GEMINI.md`, `.cursor`, and `.github/instructions`.352. Identify repeated rules, oversized rules, stale paths, or chat-only facts.363. If no usable entrypoint exists, create the minimum source-of-truth entrypoint from `references/build-when-missing.md`.374. Choose one primary entrypoint; other agent-specific files should mirror, symlink, or explicitly reference it.385. Keep the root entrypoint to scope, source-of-truth docs, do/avoid rules, commands, tests, and relevant skills.396. If a subtree has special rules, put a closer `AGENTS.md` in that subtree instead of overloading the root.407. Define drift prevention through a generation script, check script, CI job, or explicit manual checklist.4142## Checks4344- Entrypoint: an agent can learn what to read first, where it may edit, and the minimum validation command within 60 seconds.45- Consistency: mirrored files cannot silently drift, or they carry a generation note or symlink constraint.46- Source of truth: rules point to versioned docs/scripts, not conversation memory.47- Scope: root rules are not too detailed, and subtree rules are not missing.48- Executability: every key rule maps to a command, file, or clear decision standard.4950## Output Format5152```markdown53# Agent Entrypoint Design5455## Detected Mapping56- entrypoint:57- mirrors:58- validation:5960## Source Of Truth61- Primary entrypoint:62- Mirrors:63- Subtree overrides:6465## Root Entrypoint Sections66-6768## Sync / Drift Prevention69-7071## Minimum Commands72-7374## Follow-up Files75-76```7778## Common Mistakes7980- Copying large rule blocks into every agent file, which creates drift.81- Turning the entrypoint into a project encyclopedia that still leaves agents unsure what to do first.82- Putting concrete product requirements into general agent rules.83- Failing to document instruction precedence.8485## Example Prompts8687- "Design AGENTS.md and mirror rules for this repository."88- "This repo has multiple agent instruction files. Make them source-of-truth safe."89- "Shrink the agent entrypoint into high-signal navigation."9091---92> Source: [yfge/agent-harness-skills](https://github.com/yfge/agent-harness-skills) — distributed by [TomeVault](https://tomevault.io).93<!-- tomevault:4.0:skill_md:2026-06-15 -->