metagit-bootstrap

metagit-bootstrap is a skill for Claude Code, Codex from metagit-ai/metagit-cli. It costs 31 tokens per session (727 once invoked), scanned A, original, MIT.

A setup workflow that creates or improves a local .metagit.yml configuration file, which describes how a project is organized and operated.

In plain words
What is it for?
Use it to discover project details, draft or create .metagit.yml, validate the file, and review a proposed configuration before writing it.
Why use it?
It removes the need to build that configuration by hand and checks that the result follows the expected format. It can work with an MCP host or fall back to command-line-only operation.

Skill for Claude CodeCodex

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

Good fit Use it to discover project details, draft or create .metagit.yml, validate the file, and review a proposed configuration before writing it.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/metagit-ai/metagit-cli/metagit-bootstrap
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-bootstrap
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-bootstrap

README.md
[![agentmods](https://agentmods.dev/badge/skills/metagit-ai/metagit-cli/metagit-bootstrap/github.svg)](https://agentmods.dev/skills/metagit-ai/metagit-cli/metagit-bootstrap)
Your own site
<a href="https://agentmods.dev/skills/metagit-ai/metagit-cli/metagit-bootstrap"><img src="https://agentmods.dev/badge/skills/metagit-ai/metagit-cli/metagit-bootstrap/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-bootstrap

Your own site · 80×15
<a href="https://agentmods.dev/skills/metagit-ai/metagit-cli/metagit-bootstrap"><img src="https://agentmods.dev/badge/skills/metagit-ai/metagit-cli/metagit-bootstrap.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 31 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 727 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.00031 $0.00727
Opus 5.5 $0.00012 $0.00291
Sonnet 5.5 $0.00006 $0.00145
Haiku 4.5 $0.00003 $0.00073

Measured 29d ago against content hash 8d5afcb55d43, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

metagit-bootstrap 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 29d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/bootstrap-config.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-bootstrap/SKILL.md · 68 lines

How it starts

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

Metagit bootstrap

Create a valid .metagit.yml with minimal tokens. Prefer code over sampling.

Token rules

  • Default to deterministic init. Do not start with MCP sampling or config example.
  • Never run metagit detect repo_map (full directory maps blow the context window).
  • Never paste full detect YAML/JSON into the conversation. Write it to a file and read only the fields you need.
  • Prefer detect … -o summary on stdout. Use --output-file for the full payload.

Default path (deterministic)

export METAGIT_AGENT_MODE=true
# missing manifest:
metagit init --kind application --no-prompt
# or:
SKILL_ROOT="$(python3 -c "import metagit, pathlib; print(pathlib.Path(metagit.__file__).parent / 'data/skills/metagit-bootstrap')")"
"$SKILL_ROOT/scripts/bootstrap-config.sh" .
metagit config validate -c .metagit.yml

bootstrap-config.sh writes a minimal application scaffold when .metagit.yml is missing and prints status=written|exists. Do not overwrite a valid manifest without explicit confirmation.

Existing manifest: metagit config validate -c .metagit.yml. Patch with metagit config patch — do not regenerate from detect dumps.

metagit init writes one file. Split an existing umbrella with metagit config split --by all --dir .metagit.d when concurrent edits collide on .metagit.yml. After a split, edit the fragment, not the root.

Optional enrichment (file-backed)

Only after init, and only if catalog fields are still empty:

mkdir -p .metagit/.detect
metagit detect repository -p . -o summary
metagit detect repository -p . -o json --output-file .metagit/.detect/repository.json
# jq '.language, .kind, .frameworks' .metagit/.detect/repository.json

Stdout of --output-file is a compact line (status=written path=… bytes=… format=json). Do not cat the file unless selecting fields.

detect repo / detect project follow the same rule: --output-file .metagit/.detect/… or -o summary. Skip them if summary already has language/kind.

Read the full file on GitHub · 68 lines

Files

What ships with it

1 file 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. 29d ago Changed · +2 lines 8d5afcb55d43
  2. 2mo ago Changed · -56 lines · +4 tokens per session a2137503d8a7
  3. 3mo ago First seen · 122 lines · 27 tokens per session scan A 152d8dcd2bac

Subscribe to this mod's changes

metagit-bootstrap is a skill published in the GitHub repository metagit-ai/metagit-cli (4 stars, last pushed 27d ago), licensed MIT. It adds 31 tokens to every session and 727 once invoked, about $0.0001 per session on Opus 5.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

metagit-bootstrap compared with skills from other repositories

metagit-bootstrap next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
metagit-bootstrapmetagit-ai/metagit-cliSkill427d agoMITA31Claude Code, Codex
ghbubbuild/bubSkill1.7k3d agoApache-2.0A96Claude Code, Codex
releasedylanroscover/EmbodySkill225yesterdayMITA63Claude Code
clawrium-release-announcementsric03uec/clawriumSkill68yesterdayApache-2.0A24Claude Code, Codex
merge-divergent-toxdylanroscover/EmbodySkill225yesterdayMITA74Claude Code
python-formatGoldziher/ai-rulezSkill1826d agoMITA16Claude Code
servicenow-studio-gitlab-appKnuckles-Team/servicenow-apiSkill202d agoMITA92Claude Code, Codex