hiivmind-pulse-gh
A Claude Code plugin that enriches every GitHub operation with cached workspace
context — Projects v2, milestones, branch protection, and more — and layers on a
headless automation engine for unattended fleet maintenance and resumable,
cross-repo workflows.
The Problem
GitHub's APIs are powerful but painful:
- GraphQL node IDs — every operation needs opaque IDs like
PVT_kwDOBx...
- Repeated lookups — "What's the ID for the Status field? The option ID for 'In Progress'?"
- Context amnesia — each Claude session starts fresh, forgetting your org structure
- No unattended path — scheduled or headless maintenance needs zero-prompt skills and
a machine-readable result contract, not interactive prose
The Solution
A discover-once, use-forever cache plus a deterministic Python engine:
┌─────────────────────────────────────────────────────────────────┐
│ 1. DISCOVER │
│ Init inspects your GitHub org structure │
│ → projects, fields, options, repositories, milestones │
│ │
│ 2. CACHE │
│ Store discovered IDs in {workspace_root}/.hiivmind/github/ │
│ → committed to a shared workspace repo, synced across team │
│ │
│ 3. USE │
│ Gateway routes intent → skill; every op is enriched with │
│ cached IDs. Headless skills + workflows automate the rest. │
└─────────────────────────────────────────────────────────────────┘
Rule of thumb: if a workspace root resolves above your cwd (a
.hiivmind/github/config.yaml with a top-level workspace: section, at any parent
depth), route all GitHub operations through this plugin — even simple ones —
so they pick up context enrichment (auto-link to project, set Status, resolve
milestone names, etc.).
Installation
1. Install prerequisites
# Verify installation
gh auth status && jq --version && yq --version && uv --version
# Ensure gh has required scopes
gh auth refresh -s read:project -s project -s repo -s read:org
2. Install the plugin
Run these in Claude Code (not a terminal):
# Add the marketplace
/plugin marketplace add hiivmind/hiivmind-pulse-gh
# Install the plugin (plugin name `gh`, marketplace `hiivmind-pulse-gh`)
/plugin install gh@hiivmind-pulse-gh
Gateway Command
The primary entry point for all GitHub operations:
/gh [describe what you want]
Examples
# Execute operations
/gh create issue for login timeout bug
/gh set milestone v2.0 on issue #42
/gh add PR to project
/gh protect main branch with required reviews
/gh trigger workflow ci.yml
# Discover / explore
/gh discover
/gh what can I do with projects
/gh help
How it works
- Intent detection — parses natural language → domain + operation + target
- Context check — verifies a workspace is initialized; offers init if not
- Freshness check — offers a refresh if the cached config is stale
- Confirmation — asks before mutations
- Execution — routes to the right skill with corpus-backed API syntax
Skills
The plugin ships 11 skills — seven interactive, four headless (zero-prompt,
for schedulers and orchestrators).
Interactive
| Skill | Purpose |
|---|
gh-init | First-time setup: validate environment, discover org structure, place the workspace root, write config.yaml |
gh-refresh | Sync cached config with GitHub |
gh-operations | Execute GitHub operations across all domains |
gh-discover | Explore available operations across every domain |
gh-healthcheck | On-demand repository governance audit |
gh-heartbeat | Present/execute heartbeat-triggered workflows on session start |
gh-workflows | Manage and run workflow definitions |
Headless (zero prompts, explicit inputs only, every exit writes a result file)
| Skill | Purpose |
|---|
gh-status-headless | Status pre-check → status-result.yaml (is a refresh warranted?) |
gh-refresh-headless | Config sync replaying recorded decisions → refresh-result.yaml |
gh-healthcheck-headless | Fleet governance audit → healthcheck-result.yaml |
gh-workflow-run-headless | Run a workflow unattended under its headless policy → workflow-run-result.yaml |