ghx — community community, ide skills, Claude Code, Cursor, Windsurf

v1.0.0
GitHub

About this Skill

Perfect for GitHub Automation Agents needing standardized and reliable GitHub operations Holon runs AI coding agents headlessly to turn issues into PR-ready patches and summaries — locally or in CI, without babysitting the agent.

holon-run holon-run
[0]
[0]
Updated: 3/5/2026

Agent Capability Analysis

The ghx skill by holon-run is an open-source community AI agent skill for Claude Code and other IDE workflows, helping agents execute tasks with better context, repeatability, and domain-specific guidance.

Ideal Agent Persona

Perfect for GitHub Automation Agents needing standardized and reliable GitHub operations

Core Value

Empowers agents to collect context with stable artifact manifests and publish PR-ready patches and summaries using standardized GitHub operations, preventing shell escaping and multi-line payload issues, and supports CI/CD workflows with environment variables like GITHUB_OUTPUT_DIR

Capabilities Granted for ghx

Automating PR creation with standardized summaries
Collecting context for issue resolution with stable artifact manifests
Publishing code reviews and comments with reliable GitHub operations

! Prerequisites & Limits

  • Requires GITHUB_OUTPUT_DIR environment variable
  • Limited to GitHub operations
Labs Demo

Browser Sandbox Environment

⚡️ Ready to unleash?

Experience this Agent in a zero-setup browser environment powered by WebContainers. No installation required.

Boot Container Sandbox

ghx

Install ghx, an AI agent skill for AI agent workflows and automation. Works with Claude Code, Cursor, and Windsurf with one-command setup.

SKILL.md
Readonly

GHX Skill

ghx is an enhanced reliability layer on top of gh, used by higher-level skills. It standardizes common GitHub operations and prevents common agent mistakes (especially shell escaping and multi-line payload issues).

It provides two capabilities:

  • Context collection with a stable artifact manifest
  • Publishing for PR/review/comment workflows

Environment Variables

  • GITHUB_OUTPUT_DIR: artifact directory (caller-provided; defaults to a temp dir when unset)
  • GITHUB_CONTEXT_DIR: context directory (default ${GITHUB_OUTPUT_DIR}/github-context)
  • GITHUB_TOKEN / GH_TOKEN: token used by gh
  • DRY_RUN: preview mode for publish commands (true|false)

Commands

Use scripts/ghx.sh as the entrypoint.

Context collection

bash
1scripts/ghx.sh context collect holon-run/holon#123 2scripts/ghx.sh context collect 123 holon-run/holon

Publish commands

bash
1scripts/ghx.sh review publish --pr=holon-run/holon#123 --body-file=review.md --comments-file=review.json 2scripts/ghx.sh pr create --repo=holon-run/holon --title="Title" --body-file=summary.md --head=feature/x --base=main 3scripts/ghx.sh pr update --pr=holon-run/holon#123 --title="New title" --body-file=summary.md 4scripts/ghx.sh pr comment --pr=holon-run/holon#123 --body-file=summary.md 5# stdin body is also supported 6scripts/ghx.sh pr comment --pr=holon-run/holon#123 --body-file=- <<'EOF' 7Multiline body from stdin. 8EOF

Batch mode

bash
1scripts/ghx.sh batch run --batch=${GITHUB_OUTPUT_DIR}/publish-batch.json

Use batch mode when one run needs multiple publish actions. Use direct commands for single-action publish.

Contract Boundary

  • Public contract for other skills:
    • Call ghx.sh commands.
    • Read ${GITHUB_CONTEXT_DIR}/manifest.json for context artifacts.
    • Read ${GITHUB_OUTPUT_DIR}/publish-results.json for publish execution results.
    • Use publish-batch.json schema when running ghx.sh batch run (defined below and in references/github-publishing.md).
  • Integration guidance for third-party skills:
    • Prefer direct commands for single actions.
    • Use batch mode only when one run needs multiple publish actions.
    • Do not depend on undocumented fields or script internals outside this documented schema.

Context Output Contract

context collect writes:

  • ${GITHUB_CONTEXT_DIR}/manifest.json
  • Context files under ${GITHUB_CONTEXT_DIR}/github/ (for example pr.json, pr.diff, comments.json)

manifest.json is the source of truth for collected context:

json
1{ 2 "schema_version": "2.0", 3 "provider": "ghx", 4 "kind": "pr|issue", 5 "ref": "owner/repo#123", 6 "success": true, 7 "artifacts": [ 8 { 9 "id": "pr_metadata", 10 "path": "github/pr.json", 11 "required_for": ["review"], 12 "status": "present|missing|error", 13 "format": "json|text", 14 "description": "What this artifact contains" 15 } 16 ], 17 "notes": [] 18}

Consumers must use artifacts[] instead of assuming fixed context filenames.

Publish Output Contract

Publish commands write ${GITHUB_OUTPUT_DIR}/publish-results.json with per-action status and summary totals.

Batch Input Contract (Public)

ghx.sh batch run consumes ${GITHUB_OUTPUT_DIR}/publish-batch.json (or any path passed by --batch).

json
1{ 2 "version": "1.0", 3 "pr_ref": "owner/repo#123", 4 "actions": [ 5 { 6 "type": "post_comment", 7 "description": "optional", 8 "params": { 9 "body": "summary.md" 10 } 11 } 12 ] 13}

Schema summary:

  • Top-level required fields: pr_ref, actions
  • Top-level optional field: version (default 1.0)
  • Action required field: type
  • Action optional fields: description, params
  • params is action-specific payload; legacy inline action fields are also accepted.

Supported type values:

  • create_pr
  • update_pr
  • post_comment
  • reply_review
  • post_review

Notes

  • Prefer ghx for multi-step or error-prone GitHub operations.
  • context collect also prints a human-readable artifact summary; this is informational only.
  • For long or multi-line text, never inline shell arguments; always write to a file and pass --body-file/--comments-file.
  • Command selection:
    • single action: use direct commands (review publish, pr create|update|comment)
    • multiple actions in one run: use batch run

Safety Rules (Text Payloads)

To reduce failure rate from quoting/newline/markdown escaping:

  1. Never pass large markdown/JSON payloads inline on command line.
  2. Always pass payloads via file arguments:
    • ghx: --body-file, --comments-file (--body-file=- is allowed to read from stdin)
    • raw gh: --body-file
  3. Apply this rule to PR reviews, PR comments/description, issue comments, and issue creation.

Good:

bash
1cat > /tmp/issue-body.md <<'EOF' 2## Summary 3Detailed markdown with quotes, backticks, and newlines. 4EOF 5gh issue create --repo owner/repo --title "Bug report" --body-file /tmp/issue-body.md

Bad:

bash
1gh issue create --repo owner/repo --title "Bug report" --body "## Summary 2Detailed markdown with quotes, backticks, and newlines."

FAQ & Installation Steps

These questions and steps mirror the structured data on this page for better search understanding.

? Frequently Asked Questions

What is ghx?

Perfect for GitHub Automation Agents needing standardized and reliable GitHub operations Holon runs AI coding agents headlessly to turn issues into PR-ready patches and summaries — locally or in CI, without babysitting the agent.

How do I install ghx?

Run the command: npx killer-skills add holon-run/holon. It works with Cursor, Windsurf, VS Code, Claude Code, and 19+ other IDEs.

What are the use cases for ghx?

Key use cases include: Automating PR creation with standardized summaries, Collecting context for issue resolution with stable artifact manifests, Publishing code reviews and comments with reliable GitHub operations.

Which IDEs are compatible with ghx?

This skill is compatible with Cursor, Windsurf, VS Code, Trae, Claude Code, OpenClaw, Aider, Codex, OpenCode, Goose, Cline, Roo Code, Kiro, Augment Code, Continue, GitHub Copilot, Sourcegraph Cody, and Amazon Q Developer. Use the Killer-Skills CLI for universal one-command installation.

Are there any limitations for ghx?

Requires GITHUB_OUTPUT_DIR environment variable. Limited to GitHub operations.

How To Install

  1. 1. Open your terminal

    Open the terminal or command line in your project directory.

  2. 2. Run the install command

    Run: npx killer-skills add holon-run/holon. The CLI will automatically detect your IDE or AI agent and configure the skill.

  3. 3. Start using the skill

    The skill is now active. Your AI agent can use ghx immediately in the current project.

Related Skills

Looking for an alternative to ghx or another community skill for your workflow? Explore these related open-source skills.

View All

widget-generator

Logo of f
f

f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.

149.6k
0
AI

flags

Logo of vercel
vercel

flags is a Next.js feature management skill that enables developers to efficiently add or modify framework feature flags, streamlining React application development.

138.4k
0
Browser

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
AI