robsonrung/rar-skills

grok-runner

Execute prompts using Grok CLI in headless print mode as the xAI seat (Grok 4.6).

소스 보기

사용 방법

  1. 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
  2. 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
  3. 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/robsonrung/rar-skills --skill grok-runner

시작 전 확인

  • 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
  • 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 Skill 문서

원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.

Grok Runner

Execute the caller's scoped prompt through the local CLI. Shared roles, envelope keys, and result handling live in shared/references/runner-common.md. Preserve seat fidelity: name the provider that actually answered, and report unavailable or unverified seats honestly.

Invocation

Set SKILL_DIR to this loaded skill directory in the same shell call:

bash
SKILL_DIR="<absolute path of this skill directory>";
python3 "$SKILL_DIR/scripts/run_grok.py" "<scoped prompt>" --json

An approved workflow supplies the exact model, effort, role, tool mode, and receipt policy. Pass those approved options and --disable-fallback; this basic example does not authorize a different route.

Runtime boundaries

  • Use the local authenticated grok CLI in print mode. Analysis roles default to enforced read-only plan mode.
  • --restrict-tools forces plan mode; --allow-write opts out within the caller's authority. Prompt and file context may be sent to the configured provider.
  • Sessions persist under ~/.grok; the native CLI has no persistence opt-out.
  • The native modelUsage receipt identifies the serving model. Effort values unsupported by a direct call are clamped and reported; approved routes must satisfy their exact plan.
  • No fallback is allowed. A missing CLI is an unavailable seat, never another model's answer.
  • Structured output is checked locally after the native schema constraint. A zero exit code does not make malformed output successful.

Load by need

Result

Read agent_message and the wrapper envelope. Check success, serving-model receipt, effective runner/provider, and any fallback or malformed-output status. A completed process alone does not prove the requested task or model was used. Report touched files when the caller authorized edits.

Integration

agents/openai.yaml exposes this skill as a native Codex-app subagent seat; do not remove it.

관련 작업

같은 저장소의 Skills

더 많은 Skills

모든 Skills