gitcore
Sovereign Git hosting, Virtual Stacked PR DAGs, Speculative Parallel Merge Queues, machine-actionable SARIF v2.1.0 code reviews, and cryptographic agent attestation via GitCore (https://gitcore.net). Use this skill whenever the user or orchestrator mentions GitCore, stacked PRs, virtual branch DAGs,
Latest: v1.0.0
Expanded GitCore guidance for agent-driven development workflows.
- Added MCP, helper-script, and REST API connection options.
- Documented a five-step workflow for stacked PRs, agent attestations, SARIF reviews, and speculative merge queues.
- Added guidance for stopping automated review-fix loops when ping-pong is detected.
- Listed API, CLI, and platform reference resources.
GitCore Agent Skill (gitcore)
GitCore (https://gitcore.net) is a bare-metal sovereign Git platform engineered specifically so parallel AI coding agents can ship 10–100x more pull requests without trunk stalls or merge conflict storms.
1. Connect to GitCore (Preferred Order)
- MCP Server (
@gitcorenet/mcp) — Preferred:- Check if
gitcore/gitcore-mcptools are already registered in your MCP toolset. - The server exposes eight tools:
create_repo,push_stacked_pr,enqueue_speculative_merge,get_sarif_review,sign_agent_attestation,submit_sarif_review,get_pull_request_stack, andsearch_public_repos. - If configuring MCP dynamically:
- Remote Streamable HTTP:
https://mcp.gitcore.net/mcp(alsohttps://gitcore.net/mcp) with headerAuthorization: Bearer $GITCORE_TOKEN. - Local Stdio: Node.js 18+,
npx -y @gitcorenet/mcp, envGITCORE_TOKEN(gitcore_pat_...) and optionalGITCORE_URL(https://gitcore.netor air-gapped Sovereign VPC URL).
- Remote Streamable HTTP:
- MCP resources:
gitcore://llms.txt,gitcore://llms-full.txt, andgitcore://openapi.json.
- Check if
- Bundled Helper Script (
scripts/gitcore-agent.mjs) or Direct REST API:- When MCP is unavailable, run
node scripts/gitcore-agent.mjs <command>or callhttps://gitcore.net/api/...directly usingAuthorization: Bearer $GITCORE_TOKEN(full OpenAPI 3.1 spec athttps://gitcore.net/openapi.json).
- When MCP is unavailable, run
2. Standard Playbook for Conflict-Free Agent Swarms
Whenever implementing a multi-file feature or coordinating multiple parallel agents on GitCore, follow this 5-step workflow instead of pushing a single giant branch:
Step 1: Provision or Select Target Repository (create_repo)
- Use
create_repo(POST /api/repos) with{ name, description, defaultBranch: "main", isPrivate }. - For local Git wire operations, clone via Smart HTTP v2:
git clone https://x-access-token:${GITCORE_TOKEN}@gitcore.net/<owner>/<repo>.git
Step 2: Decompose Work into Atomic Stacked PRs (push_stacked_pr)
- Keep each PR focused (~50–200 changed lines) to minimize conflict surface area and qualify for Tier-1 Low-Risk Auto-Approval:
- Root PR (
PR #1): Push schema / core types targetingmain(push_stacked_prwithhead: "stack/01-types",base: "main",files: [...]). - Child PR (
PR #2): Stack business logic directly ontoPR #1(push_stacked_prwithhead: "stack/02-engine",parentPrNumber: 1,files: [...]). - Leaf PR (
PR #3): Stack API/UI wiring ontoPR #2(push_stacked_prwithhead: "stack/03-api",parentPrNumber: 2,files: [...]).
- Root PR (
- Note:
push_stacked_prcommits files directly onto bare Git storage via temporary index trees—no localgit checkoutis needed when running in stateless cloud sandboxes.
Step 3: Attach Cryptographic Provenance (sign_agent_attestation)
- Every agent-authored PR should carry verifiable provenance (
agentId,model,runId,promptHash,confidenceScore, plus optional detached PGP/Ed25519clientSignature). - Pass
attestationinline insidepush_stacked_pror callsign_agent_attestation(POST /api/repos/{owner}/{repo}/pulls/{number}/attestation).
Step 4: Inspect & Apply Machine-Actionable SARIF Reviews (get_sarif_review)
- Call
get_sarif_review(GET /api/repos/{owner}/{repo}/pulls/{number}/reviews/sarif) before enqueueing:- Check
autoApprovalStatus.pingPongTriggered: STOP automated review-fix loops immediately iftrueand surface to a human reviewer. - For each entry in
findings[]withsuggestionand!isApplied, either apply viaPOST {applyEndpoint}or push a clean update viapush_stacked_pr.
- Check
Step 5: Land Safely Through the Speculative Merge Queue (enqueue_speculative_merge)
- Never force-merge directly into protected
main. Callenqueue_speculative_merge(POST /api/repos/{owner}/{repo}/pulls/{number}/queue) starting from the stack root (stack.canMerge === true). - GitCore chains in-memory
git merge-tree --write-treecommits across queued PRs, ejects only conflicting PRs without resetting healthy downstream PRs, and automatically rebases child PRs in your stack ontomainas soon as their parent PR merges.
3. Additional References & CLI
- Read
references/api-reference.mdfor full JSON payload schemas and curl recipes. - Read
https://gitcore.net/llms-full.txtfor the full agent-oriented platform and API reference. - Use
node scripts/gitcore-agent.mjs --helpfor zero-dependency CLI execution. - Remote discovery indexes:
https://gitcore.net/llms.txtandhttps://gitcore.net/llms-full.txt.
