Install
$ agentstack add skill-metagit-ai-metagit-cli-metagit-control-center ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ● Filesystem access Used
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
Metagit Control Center Skill
Use this skill when an agent should actively coordinate repository context and task execution across a workspace.
Purpose
Provide a repeatable control-center workflow where Metagit MCP guides awareness, synchronization, and operational continuity over multiple related repositories.
Bundled scripts (optional)
Helper scripts live under scripts/ when the full skill tree is installed. Hermes skill_manage copies SKILL.md only — scripts are not present unless you also run metagit skills install --skill metagit-control-center.
Resolve scripts from the PyPI package (works whenever metagit-cli is installed):
SKILL_ROOT="$(python3 -c "import metagit, pathlib; print(pathlib.Path(metagit.__file__).parent / 'data/skills/metagit-control-center')")"
"$SKILL_ROOT/scripts/control-cycle.sh" [root_path] ["query"] [preset]
Or from a full skill install:
"$HOME/.config/hermes/skills/metagit-control-center/scripts/control-cycle.sh" .
Wrapper behavior:
- runs gating status first
- optionally runs upstream discovery for blocker queries
- emits compact, machine-readable lines
Inline CLI fallback (no scripts)
Use when skill scripts are unavailable (Hermes SKILL-only install, no shell helpers):
export METAGIT_AGENT_MODE=true
metagit mcp serve --status-once --root .
metagit context pack --tier 1 --json -c .metagit.yml
metagit prompt workspace -k health-preflight --text-only -c .metagit.yml
# blocker may be upstream — search managed repos:
metagit search "error signature" -c .metagit.yml --json
metagit prompt workspace -k sync-safe --text-only -c .metagit.yml
Core Workflows
1) Session Initialization
- Run context pack + session prompt first (see
metagit-context-packskill):
metagit context pack --tier 2 --json -c .metagit.yml
metagit prompt workspace -k session-start --text-only -c .metagit.yml
- Validate active workspace gate (
metagit mcp serve --status-onceor gate script). - Read
metagit://workspace/configandmetagit://workspace/repos/status(MCP) or tier-1 pack JSON (CLI). - Call
metagit_project_context_switchwhen the objective is tied to a workspace project. - Run
metagit_workspace_health_checkor readmetagit://workspace/healthfor maintenance signals. - Identify stale repos and unresolved blockers from prior activity.
2) Active Task Support
- For each coding objective, map impacted repos.
- Use workspace search and upstream hints before broad exploration.
- Sync only repos that are required by the active objective.
3) Guarded Synchronization
- Default to
fetchfor visibility. - Use
pullorcloneonly with explicit permission and rationale. - Track sync outcomes in operations log resource.
4) Operational Memory
- Before switching projects:
metagit_session_update(notes + recent repos), optionalmetagit_workspace_state_snapshot. - After returning:
metagit_workspace_state_restorewhen a snapshot was taken (metadata only; git tree is unchanged).
Maintain bounded local records of:
- sync actions
- issue signatures searched
- candidate upstream repos identified
- unresolved dependencies and follow-ups
5) Subagent dispatch loop
When delegating single-repo or specialist work:
- Route —
metagit agent list --jsonor MCPmetagit_agent_catalog; picktemplate_idfromdelegates_to. - Plan —
metagit agent dispatch-plan --project P --repo R --vendor V --jsonor MCPmetagit_agent_dispatch_plan. - Profile — when JSON includes
profile_apply_command, run it (ormetagit agent apply …) before launch. - Ensure — run
install.commandonce wheninstall.neededis true. - Hand off — run
handoff.context_packandhandoff.prompt; passhandoff.effective_instructionsto the subagent. - ACL isolation (optional) — when
handoff.acl_commandsis present, follow skillmetagit-agent-coordination(allocate → lease → worktree → claim) so agents never share checkouts.
ACL branch leases ≠ handoff claim TTL. Doc: docs/reference/agent-coordination.md.
- Reconcile —
metagit_session_updateafter the subagent returns; respectout_of_scopeboundaries.
metagit agent dispatch-plan repo-implementer \
--project my-api --repo backend --vendor cursor --json
Decision Guidelines
- Use metagit search first when blocker appears external to current repo.
- Prefer deterministic evidence over speculative jumps.
- Keep operations minimal and auditable.
Output Contract
For each control-center cycle, provide:
- current objective
- repositories examined
- actions taken (or intentionally deferred)
- next recommended step
Safety Rules
- Never mutate repositories without explicit authorization.
- Never broaden scope beyond configured workspace boundaries.
- Always preserve a clear audit trail of control actions.
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: metagit-ai
- Source: metagit-ai/metagit-cli
- License: MIT
- Homepage: https://metagit-ai.github.io/metagit-cli/
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.