metagit-agent-access

metagit-agent-access is a skill for Claude Code, Codex from metagit-ai/metagit-cli. It costs 60 tokens per session (1,254 once invoked), scanned A, original, MIT.

A repository-documentation workflow that prepares a code project for AI coding agents by adding or improving files such as llms.txt and AGENTS.md.

In plain words
What is it for?
Use it to audit and update a repository’s agent instructions, metadata, and onboarding documents, including after major command-line or MCP changes.
Why use it?
It reduces the time an agent spends searching and understanding a project. It also keeps agent guidance separate from the normal human documentation where possible.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; installed under .agents/ (shared by several agents); mentions AGENTS.md.

Good fit Use it to audit and update a repository’s agent instructions, metadata, and onboarding documents, including after major command-line or MCP changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/metagit-ai/metagit-cli/metagit-agent-access
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add metagit-ai/metagit-cli --skill metagit-agent-access
Clone the repo
git clone --depth 1 https://github.com/metagit-ai/metagit-cli

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for metagit-agent-access

README.md
[![agentmods](https://agentmods.dev/badge/skills/metagit-ai/metagit-cli/metagit-agent-access/github.svg)](https://agentmods.dev/skills/metagit-ai/metagit-cli/metagit-agent-access)
Your own site
<a href="https://agentmods.dev/skills/metagit-ai/metagit-cli/metagit-agent-access"><img src="https://agentmods.dev/badge/skills/metagit-ai/metagit-cli/metagit-agent-access/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for metagit-agent-access

Your own site · 80×15
<a href="https://agentmods.dev/skills/metagit-ai/metagit-cli/metagit-agent-access"><img src="https://agentmods.dev/badge/skills/metagit-ai/metagit-cli/metagit-agent-access.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 60 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,254 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00060 $0.01254
Opus 5 $0.00030 $0.00627
Sonnet 5 $0.00012 $0.00251
Haiku 4.5 $0.00006 $0.00125

Measured 9d ago against content hash 006f25f48f89, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

metagit-agent-access scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (scripts/optimize_agent_access.py, scripts/optimize-agent-access.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/metagit-agent-access/SKILL.md · 133 lines

How it starts

The opening of the file, as written. The whole thing — 133 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Metagit agent access optimizer

On-demand workflow to make a target repository easy for AI agents to grasp with minimal tokens, using conventions that stay out of the human reading path where possible.

When to use

  • User asks to optimize agent access, agent onboarding, or llms.txt
  • User wants hidden agent metadata in an existing project
  • After adding major CLI/MCP features to a product repo (refresh agent surfaces)

Do not run proactively on every task.

Execution modes

Mode When
Script first Default — fast audit + scaffold
Subagent Large/unknown repo or user wants full editorial pass

1) Script (run first)

Hermes skill_manage installs SKILL.md only — local ./scripts/ paths will not exist. Prefer the PyPI package path (always available when metagit-cli is installed) or metagit skills install --skill metagit-agent-access for a full skill tree.

From the target repository root (not necessarily metagit-cli):

SKILL_ROOT="$(python3 -c "import metagit, pathlib; print(pathlib.Path(metagit.__file__).parent / 'data/skills/metagit-agent-access')")"
"$SKILL_ROOT/scripts/optimize-agent-access.sh" . --apply --json

After metagit skills install --skill metagit-agent-access:

"${HERMES_HOME:-$HOME/.hermes}/skills/metagit-agent-access/scripts/optimize-agent-access.sh" . --apply --json

Inline fallback (no scripts)

Run the optimizer Python entrypoint from the installed package:

SKILL_ROOT="$(python3 -c "import metagit, pathlib; print(pathlib.Path(metagit.__file__).parent / 'data/skills/metagit-agent-access')")"
python3 "$SKILL_ROOT/scripts/optimize_agent_access.py" . --json
python3 "$SKILL_ROOT/scripts/optimize_agent_access.py" . --apply --json

If uv is available in the target repo, the shell wrapper is equivalent:

uv run python "$SKILL_ROOT/scripts/optimize_agent_access.py" . --json

Manual audit when scripts cannot run: check for llms.txt, AGENTS.md, docs/agents.md, and <!-- agent-access:start --> in README; scaffold from $SKILL_ROOT/templates/ only after dry-run review.

Read the full file on GitHub · 133 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 133 lines · 60 tokens per session scan A 006f25f48f89

Subscribe to this mod's changes

metagit-agent-access is a skill published in the GitHub repository metagit-ai/metagit-cli (3 stars, last pushed today), licensed MIT. It adds 60 tokens to every session and 1,254 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories