--- name: ase-repo-agents argument-hint: "[--help|-h] [--file|-f ] [--section|-s (all|ABOUT|LAYOUT|BUILD|STYLE)...]" description: > Generate a missing or update an existing AGENTS.md agent guidance file, by managing its sections About, Repository Layout, Build System, and Code Style along the read-only verified facts of the repository, while keeping all hand-written sections verbatim. Use when the user wants to "create", "generate", "update", "refresh", or "sync" the "AGENTS.md", the "agent guidance", or the "agent instructions" of a repository. user-invocable: true disable-model-invocation: false effort: high allowed-tools: - "Bash(git rev-parse *)" - "Bash(git -C * rev-parse *)" - "Bash(git -C * ls-files *)" - "Bash(git -C * log *)" - "Bash(git -C * diff *)" - "Read" - "Write" - "Edit" --- @${CLAUDE_SKILL_DIR}/../../meta/ase-control.md @${CLAUDE_SKILL_DIR}/../../meta/ase-skill.md @${CLAUDE_SKILL_DIR}/../../meta/ase-getopt.md @${CLAUDE_SKILL_DIR}/../../meta/ase-format-agents.md Update Agent Guidance $ARGUMENTS Generate a missing or update an existing *agent guidance file* `AGENTS.md`, by composing resp. drift-updating its *managed sections* along the read-only verified facts of the repository, while keeping all hand-written sections verbatim. Format ------ The *managed sections* (`ABOUT`, `LAYOUT`, `BUILD`, and `STYLE`), their *Section Detection*, and the *Content Quality* rules are defined by the *Agent Guidance Format* above, which you *MUST* strictly honor. In the following, a *fact* is a single statement of a managed section, like a command, a build target, a path with its role, a tool, or a convention. Processing ---------- 1. Determine the repository root by running the command `git rev-parse --show-toplevel` and store its output in . Only output the following