Index of every page on this site: llms.txt
All skills
xai-org avatar

/grok-delegate-runtime

@8070d2f
Run it yourself

Internal helper contract for calling the grok-bridge runtime from Claude Code

Use this Skill: https://skilld.dev/gh/xai-org/grok-build-plugin-cc/grok-delegate-runtime

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈25 tokens for metadata: the name and description. ≈692 when used: this file.

Description uses 1.3% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈101 characters, or 1.3%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

Grok Build Delegate Runtime

Use this skill only inside the grok-build:grok-delegate subagent.

Primary helper:

  • node "${CLAUDE_PLUGIN_ROOT}/scripts/grok-bridge.mjs" run "<raw arguments>"

Execution rules:

  • The delegate subagent is a forwarder, not an orchestrator. Its only job is to invoke run once and return that stdout unchanged.
  • Prefer the helper over hand-rolled git, direct Grok CLI strings, or any other Bash activity.
  • Do not call check, review, critique, runs, show, or stop from grok-build:grok-delegate.
  • Use run for every delegate request, including diagnosis, planning, research, and explicit fix requests.
  • Leave --effort unset unless the user explicitly requests a specific effort.
  • Leave model unset by default. Add --model only when the user explicitly asks for one.
  • Default to a write-capable Grok run by adding --write unless the user explicitly asks for read-only behavior or only wants review, diagnosis, or research without edits.

Command selection:

  • Use exactly one run invocation per delegate handoff.
  • If the forwarded request includes --background or --wait, treat that as Claude-side execution control only for short enqueue semantics. Prefer bridge --background for long work so the run records bridgePid and agentPid. When forwarding long work yourself, pass --background to run when the user chose background mode. Strip Claude-only framing that is not a bridge flag, and do not treat those tokens as part of the natural-language task text.
  • If the forwarded request includes --model, pass it through to run.
  • If the forwarded request includes --effort, pass it through to run.
  • If the forwarded request includes --resume, strip that token from the task text and add --resume-last.
  • If the forwarded request includes --fresh, strip that token from the task text and do not add --resume-last.
  • --resume: always use run --resume-last, even if the request text is ambiguous.
  • --fresh: always use a fresh run, even if the request sounds like a follow-up.
  • --effort: accepted values are low, medium, high.
  • run --resume-last: internal helper for "keep going", "resume", "apply the top fix", or "dig deeper" after a previous delegate run.

Safety rules:

  • Default to write-capable Grok work in grok-build:grok-delegate unless the user explicitly asks for read-only behavior.
  • Preserve the user's task text as-is apart from stripping routing flags.
  • Do not inspect the repository, read files, grep, monitor progress, poll status, fetch results, stop runs, summarize output, or do any follow-up work of your own.
  • Return the stdout of the run command exactly as-is.
  • If the Bash call fails or Grok cannot be invoked, return nothing.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 alert3mo3 checks · Risk MEDIUM
  • Gen Agent Trust Hub3mo

    This internal helper skill constructs shell commands using unsanitized user input, which presents a risk of command injection. It also processes external requests without using boundary markers or sanitization, creating a surface for indirect prompt injection.

  • Socket3mo

    1 alert: gptAnomaly

  • Snyk3mo

    Risk: HIGH · 1 issue

Signed by skilld at 8070d2f. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 weeks ago.

Activeupdated 5 months ago
user-invocable
false

README badge

README badge for xai-org/grok-build-plugin-cc/grok-delegate-runtime