metagit-mcp-resources
Skill4 starsChanged 13 days agoMITView on GitHub
Token-efficient MCP resource ladder for metagit workspaces — catalog, map, layered prompts, project/repo drill-down. Use when the IDE host exposes metagit resources/read instead of shell CLI.
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-bootstrapSkill
- metagit-campaignSkill
- metagit-cliSkill
- metagit-cliSkill
- metagit-config-refreshSkill
- metagit-context-packSkill
- metagit-control-centerSkill
- metagit-gatingSkill
- metagit-gitnexusSkill
- metagit-graph-maintainSkill
- 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
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Use this skill when an agent connects via MCP (metagit mcp serve) and should minimize context bloat.
- Very specific: line 16
Never read metagit://workspace/config?view=full on large umbrellas unless the operator passed confirm=1.
≈ “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 MCP layered resources
Use this skill when an agent connects via MCP (metagit mcp serve) and should
minimize context bloat. Prefer resources/read and prompts/get over dumping
the full manifest or calling metagit_context_pack tier 2 repeatedly.
<!-- modality:context_reduction -->Never read metagit://workspace/config?view=full on large umbrellas unless the operator
passed confirm=1. Maps, catalog lists, and campaign status are paged.
Session start (MCP)
resources/read→metagit://catalogmetagit://gate/status— confirmstate_backend.backend(localvshttp) when using shared coordination statemetagit://workspace/map?limit=80metagit://prompt/workspace/session-start?instructions=0orprompts/getnameworkspace/session-startmetagit://session/meta- Once per session window: tool
metagit_session_beginwhen a full bootstrap envelope is required (mutates boundary)
Idle return: metagit://session/digest/summary (read-only; does not bump boundary).
Resource ladder
| Layer | URI | When |
| L0 | metagit://catalog | First read every connect |
| L0 | metagit://workspace/map?limit=80 | Paged boundaries, clone existence |
| L0 | metagit://session/meta | Active project context |
| L1 | metagit://prompt/{scope}/{kind}?instructions=0 | Task procedure |
| L1 | metagit://project/{project}/summary | After project scope is known |
| L1 | metagit://repo/{project}/{repo}/card | Single-repo health |
| L1 | metagit://objectives | Shared objective state |
| L1 | metagit://approvals/pending | Before mutating ops |
| L1 | metagit://handoffs/open | Multi-agent coordination |
| L2 | metagit://session/digest/summary | Return-after-idle |
| L2 | metagit://workspace/health | Preflight before sync |
| L2 | metagit://workspace/repos/status?summary=1 | Aggregate index health |
| L2 | metagit://events/recent?since= | Poll objective/approval/handoff changes |
| L3 | metagit://workspace/config?view=summary | Manifest counts only |
| L3 | metagit://workspace/config?view=full&confirm=1 | Operator-approved dump only |
MCP prompts capability
| Method | Use |
prompts/list | Discover scope/kind names |
prompts/get | Same bodies as prompt resources; check _meta.resource_uri |
Tools vs resources
| Need | Resource | Tool |
| Backend mode | gate/status (state_backend) | — |
| Map | workspace/map?limit=80 | metagit_context_pack tier 0 (max_map_repos) |
| Campaign page | — | metagit_campaign_status |
| ADO WIT | — | metagit_campaign_board_sync (dry_run first) |
| Repo card | repo/{p}/{r}/card | metagit_repo_card |
| Objectives | objectives | metagit_objective_* |
| Approvals | approvals/pending | metagit_approval_* |
| Handoffs | handoffs/open | metagit_handoff_* |
| Events poll | events/recent?since= | metagit_events |
| Digest (read-only) | session/digest | metagit_session_digest |
| Full bootstrap + boundary | — | metagit_session_begin |
| Search / sync / mutations | — | respective tools |
Dispatch plans: metagit_agent_dispatch_plan returns handoff.mcp_resources[] with scoped read order.
Anti-patterns
- Auto-subscribing to
metagit://workspace/configwithout?view=summary - Calling
metagit_context_packtier 2 on every turn or unscoped on 500+ repos - Loading all repo cards when only one repo is in scope
metagit_workspace_listwithinclude_workspace: truemetagit_campaign_statuswithout alimitpage on a large overlay
Spec
Full URI taxonomy: docs/reference/mcp-layered-resources-spec.md
Related skills
metagit-sharing-state—METAGIT_STATE_URL, MCP host env, multi-agent setupmetagit-context-pack— CLI + tool tier workflowmetagit-workspace-scope— gate and boundariesmetagit-control-center— ongoing multi-repo coordination
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.

