aashahin/ai-skills/kimi-grok-delegate
Claude Code and agent skill by aashahin/ai-skills
- community
Checking that the SKILL.md file is still in the repository.
Delegate implementation, debugging, review, research, testing, documentation, host-managed pipelines, and parallel tasks from Kimi to the Grok Build CLI. Use when the user asks Kimi to delegate to Grok, run a Grok worker or swarm, orchestrate bounded Grok jobs, or schedule bounded Grok jobs with isolated writes and verified completion.
Install
npx vskill@latest install aashahin/ai-skills/kimi-grok-delegateSKILL.md
The same SKILL.md was published earlier as aashahin/ai-skills/kimi-grok-delegate.
Delegate from Kimi to Grok
Use Grok Build as an externally managed worker and Kimi as the leader. Preserve the requested action: an implementation request requires implementation, tests, and a concrete handoff rather than advice.
Always use scripts/grok-run.sh. Do not launch raw or interactive grok.
Prepare
- Convert the task into a standalone prompt containing the exact repository and
worktree path, branch, relevant files, edit scope, constraints, verification commands, and required output.
- Store the prompt in a mode-
600temporary file and pass it with
--prompt-file. Never expose task content in process arguments.
- Choose the performance profile:
- Use
--performance safefor small or privacy-sensitive reviews. It disables
Grok memory/subagents and defaults to 20 turns and a 30-minute deadline.
- Use
--performance heavyfor implementation, complex debugging, research,
or architecture. It preserves native Grok capabilities and defaults to 40 turns and a 60-minute deadline.
- Keep the default 15-second heartbeat and 64 MiB output limit unless the task
justifies a tighter bound. Never disable the deadline casually.
Launch once
For read-only work:
For implementation in an exact linked worktree selected by Kimi, run from that worktree:
The selected worktree must be clean unless the user explicitly delegates continuation of its current changes; only then add --allow-dirty.
When Kimi has not selected a linked worktree, run from a clean primary checkout:
The wrapper creates a standard unique linked Git worktree. Never pass Grok's own --worktree, --cwd, sandbox, permission, session, prompt, or output flags.
Launch exactly one Grok CLI invocation per delegated task. Keep the process attached to Kimi's task manager and poll that exact task until the wrapper exits. Never retry while the wrapper or any descendant remains alive. If Kimi's outer sandbox blocks Grok's kernel sandbox, use Kimi's approved unsandboxed execution path while retaining the wrapper's explicit Grok sandbox.
Keep Kimi context compact
The wrapper stores Grok's full JSON in a private mode-600 artifact and prints only compact metadata:
Read only the required fields, for example:
Use --print-result only when the result is known to be small. Remove the source prompt after launch completes and remove sensitive result artifacts after Kimi has consumed them.
Parallel workers
Use Kimi subagents to shield the leader context from worker output. Give each subagent one standalone prompt file and one wrapper invocation.
For independent write tasks, invoke --worktree once per item. The wrapper gives each item a unique worktree and allows those isolated workers to run in parallel. Never send two workers to the same checkout; the wrapper rejects duplicate writers for an existing worktree.
After all workers exit, Kimi must inspect every reported worktree independently. Integrate only verified changes and never merge overlapping edits blindly.
Host-managed pipelines and schedules
Make each pipeline or scheduled item call the wrapper with an explicit prompt file, performance profile, deadline, and edit mode. Let Kimi's task manager own the attached process and poll it; do not use unmanaged shell background jobs. For multi-step pipelines, validate each completed output before starting the next step.
Do not launch native Grok Build workflows from this wrapper. Saved .grok/workflows/*.rhai runs are background jobs owned by a persistent Grok session. A one-shot headless process can return before the workflow finishes; when that process exits, the active run is restored as Interrupted. Run native workflows in the Grok TUI with /<name> or /workflow <name> and monitor them with /workflows until Grok exposes a documented headless workflow lifecycle that Kimi can supervise and validate.
Accept, integrate, and clean up
Accept a run only when all conditions hold:
- Exit status is zero.
KIMI_GROK_RUN_METADATAis present.STOP_REASON=EndTurn.- The returned session matches the launched session.
- The JSON output artifact is valid.
- No descendant process remains.
A timeout, output-limit failure, missing metadata, mismatched session, interruption, or nonzero exit is a failed run. Partial JSON is diagnostic only.
After the wrapper fully exits:
- Verify Grok's claims, file paths, changes, and test results.
- Inspect the isolated worktree diff before integrating it.
- Run independent validation in the destination checkout.
- Remove a successfully integrated worktree to release disk space. Delete its
branch only when safely merged or otherwise preserved.
- Retain and report a dirty recovery worktree after failure.
Do not automatically rerun failed write tasks. Diagnose the private artifact and process state first; a retry is a new delegated task only after the prior process tree has fully exited. Never extract Grok credentials, browser tokens, cookies, or session secrets.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingkimi-grok-delegate/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aashahin/ai-skills/kimi-grok-delegate)