metagit-bootstrap
Skill4 starsChanged 12 days agoMITView on GitHub
Create or refine a local .metagit.yml. Default is deterministic `metagit init`; do not dump detect payloads into context.
In this repository62 other files it gives its agents.
- agentsAGENTS.md
- docs/agents.mdAGENTS.md
- agentsAGENTS.md
- agentsCopilot instructions
- .cursor/rules/github-cli.mdcCursor rule
- .cursor/rules/project-level.mdcCursor rule
- llms.txtllms.txt
- gitnexus-cliSkill
- gitnexus-debuggingSkill
- gitnexus-exploringSkill
- gitnexus-guideSkill
- gitnexus-impact-analysisSkill
- gitnexus-refactoringSkill
- humanizerSkill
- metagit-agent-accessSkill
- metagit-agent-coordinationSkill
- metagit-aosSkill
- metagit-bootstrapSkill
- metagit-campaignSkill
- metagit-cliSkill
- metagit-config-refreshSkill
- metagit-context-packSkill
- metagit-control-centerSkill
- metagit-gatingSkill
- metagit-gitnexusSkill
- metagit-graph-maintainSkill
- metagit-mcp-resourcesSkill
- metagit-multi-repoSkill
- metagit-projectsSkill
- metagit-release-auditSkill
- metagit-repo-impactSkill
- metagit-rewrite-campaignSkill
- metagit-sharing-stateSkill
- metagit-stampSkill
- metagit-upstream-scanSkill
- metagit-upstream-triageSkill
- metagit-workspace-scopeSkill
- metagit-workspace-syncSkill
- metagit-agent-accessSkill
- metagit-agent-coordinationSkill
- metagit-aosSkill
- metagit-campaignSkill
- metagit-cliSkill
- metagit-cliSkill
- metagit-config-refreshSkill
- metagit-context-packSkill
- metagit-control-centerSkill
- metagit-gatingSkill
- metagit-gitnexusSkill
- metagit-graph-maintainSkill
- metagit-mcp-resourcesSkill
- metagit-multi-repoSkill
- metagit-projectsSkill
- metagit-release-auditSkill
- metagit-repo-impactSkill
- metagit-rewrite-campaignSkill
- metagit-sharing-stateSkill
- metagit-stampSkill
- metagit-upstream-scanSkill
- metagit-upstream-triageSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 4 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Create a valid .metagit.yml with minimal tokens.
- Very specific: line 12
Default to deterministic init.
- Very specific: line 13
Never run metagit detect repo_map (full directory maps blow the context window).
- Distinctive: line 14
Never paste full detect YAML/JSON into the conversation.
- Very specific: line 15
Prefer detect … -o summary on stdout.
- Distinctive: line 37
Only after init, and only if catalog fields are still empty:
- Very specific: line 64
Never overwrite .metagit.yml silently.
- Distinctive: line 65
Never emit secrets. Prefer placeholders for tokens.
- Distinctive: line 66
Do not invent repositories or unverifiable dependencies.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
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 summaryon stdout. Use--output-filefor 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.ymlbootstrap-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.jsonStdout 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.
Incremental patch
metagit config show -c .metagit.yml --json
metagit config patch -c .metagit.yml --op set --path <path> --value <json> --save
metagit prompt repo -p P -n R -k repo-enrich --text-onlyMCP sampling (optional, not default)
Use metagit_bootstrap_config only when the host supports sampling/createMessage and the operator asked for a richer draft than init. Discovery context is already a short artifact list — do not attach repo maps. Validate YAML; write .metagit.yml only with confirm_write=true. Plan-only: return the prompt, do not invent repos.
Safety
- Never overwrite
.metagit.ymlsilently. - Never emit secrets. Prefer placeholders for tokens.
- Do not invent repositories or unverifiable dependencies.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

