[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F0E68DVRBJVD6VBP6AT80P":3,"skill-same:01M7F0E68DVRBJVD6VBP6AT80P":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":6,"ownerHtmlUrl":46,"ownerBlogUrl":6,"ownerDescription":47,"updatedAt":48,"install":49,"resources":62},"01M7F0E68DVRBJVD6VBP6AT80P","grok-build",null,"Delegate well-specified implementation tasks to xAI's Grok Build CLI running headlessly while the orchestrating agent plans, writes task specs, reviews every diff, and owns the result.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fgrok-build\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: grok-build\ndescription: \"Delegate well-specified implementation tasks to xAI's Grok Build CLI running headlessly while the orchestrating agent plans, writes task specs, reviews every diff, and owns the result.\"\ncategory: agent-orchestration\nrisk: critical\nsource: https:\u002F\u002Fgithub.com\u002Fsanjay3290\u002Fai-skills\u002Ftree\u002Fmain\u002Fskills\u002Fgrok-build\nsource_repo: sanjay3290\u002Fai-skills\nsource_type: community\ndate_added: \"2026-07-09\"\nauthor: sanjay3290\ntags: [grok, delegation, code-generation, xai]\ntools: [claude, cursor, gemini]\nlicense: \"Apache-2.0\"\nlicense_source: \"https:\u002F\u002Fgithub.com\u002Fsanjay3290\u002Fai-skills\u002Fblob\u002Fmain\u002FLICENSE\"\n---\n\n# Grok Build Orchestration\n\n## When to Use\n\n- Use when delegating a well-specified implementation task to xAI's Grok Build CLI running headlessly\n- Use when executing a Markdown implementation plan task-by-task with a diff review after each task\n- Use when the user says \"use grok\", \"grok build\", \"have grok implement\", or \"send to grok\"\n\nThe coding assistant is the orchestrator: it plans, writes self-contained task specs,\ndispatches them to Grok Build headlessly, reviews every diff, and owns the final result.\nGrok is the fast, cheap executor. Full CLI details and verified behaviors: `references\u002Fcli.md`.\n\n## Safety Gate\n\nBefore every dispatch, show the user the exact task specification that will be sent to xAI,\nthe target worktree, and the permission mode. Obtain explicit approval to disclose that text\nand to let Grok edit the scoped worktree. Never include secrets, proprietary source, customer\ndata, or credentials in a task specification. Do not run `grok update`, `--always-approve`,\nor a destructive recovery command without separate, explicit approval.\n\n## When to delegate vs keep with the orchestrator\n\n| Delegate to Grok | Keep with the orchestrator |\n|---|---|\n| Plan tasks with clear acceptance criteria | Ambiguous requirements, architecture decisions |\n| Boilerplate, scaffolding, CRUD | Deep cross-file debugging |\n| Mechanical refactors | Security-sensitive code |\n| Test writing from clear specs | Anything touching production infrastructure |\n| UI components from mockups\u002Fspecs | Tasks where writing the spec ≈ doing the work |\n\nWhen in doubt, keep it with the orchestrator.\n\n## Session preflight (once, before the first dispatch)\n\n1. `grok update --check --json` — if `updateAvailable` is true, tell the user. Run\n   `grok update` only after explicit approval, then confirm with `grok --version`.\n2. `grok models` — if it errors or reports logged out, STOP and ask the user to run\n   `grok login`.\n\n## Per-task loop (sequential — the default)\n\n1. **Spec.** Write a self-contained task file (template below) to a temp directory\n   OUTSIDE the target repo — the harness scratchpad if one is available, else the OS\n   temp dir. Never write it inside the target repo. Grok has zero conversation context:\n   no one-liner prompts, ever.\n   - POSIX: `mkdir -p \"${TMPDIR:-\u002Ftmp}\u002Fgrok-specs\"`, then write `task.md` there.\n   - Windows (PowerShell): `New-Item -ItemType Directory -Force \"$env:TEMP\\grok-specs\"`,\n     then write `task.md` there.\n2. **Clean state.** No uncommitted *source* changes — commit or stash first, so the\n   post-run diff is exactly Grok's work. Ignore build artifacts (`__pycache__`, `dist\u002F`,\n   etc.); if they show in `git status`, they're usually just un-gitignored, not your\n   concern. Never dispatch on a dirty source tree.\n3. **Dispatch.**\n\n   POSIX:\n\n   ```bash\n   grok --prompt-file \u003Ctask-file> \\\n     --output-format json \\\n     --always-approve \\\n     --max-turns 30 \\\n     --cwd \u003Crepo>\n   ```\n\n   Windows (PowerShell) — backtick line-continuation:\n\n   ```powershell\n   grok --prompt-file \u003Ctask-file> `\n     --output-format json `\n     --always-approve `\n     --max-turns 30 `\n     --cwd \u003Crepo>\n   ```\n\n   Parse the JSON output and save `sessionId`. (`--always-approve` is required for\n   headless runs — `--permission-mode acceptEdits` silently cancels edits with no\n   interactive approver. Use it only after the user explicitly approves Grok editing this\n   exact scoped worktree. See `references\u002Fcli.md`.) For a high-stakes task, add `--check`\n   so Grok self-verifies before you review; skip it otherwise (it ~doubles latency).\n4. **Review gate — non-negotiable.**\n   - Read the diff yourself (`git diff -- \u003Cfiles from the spec>` to skip artifact noise):\n     does it do the task, only the task, and match repo conventions?\n   - Run the acceptance commands from the spec.\n   - **Pass** → commit with a clear message following the repo's convention → next task.\n   - **Fail** → ask the user before a fix-up or any reset. Never run `git checkout -- .` or\n     `git clean -fd` automatically; preserve the diff for review and use a non-destructive\n     recovery plan unless the user explicitly authorizes otherwise.\n\n## Task spec template\n\n```markdown\n# Task: \u003Cone-line title>\n\n## Context\n- Repo: \u003Cpath> — \u003Cone line on what the project is>\n- Conventions: \u003Ctest runner, formatter, a good example file to imitate>\n\n## Files\n- Modify: \u003Cpath>\n- Create: \u003Cpath>\n\n## Task\n\u003Cprecise description of the change>\n\n## Constraints\n- Do not modify any files other than those listed above.\n- \u003Cother constraints>\n\n## Acceptance criteria\n- `\u003Cexact command>` \u003Cexpected result>\n```\n\n## Executing a Markdown implementation plan\n\n- One plan task per dispatch, in order.\n- Check off the plan's task checkboxes (`- [ ]` → `- [x]`) as each task lands and passes\n  the review gate.\n- If the plan explicitly marks tasks as independent, see Parallel dispatch below;\n  otherwise stay sequential.\n\n## Parallel dispatch (opt-in exception, not the default)\n\nOnly when a plan explicitly marks tasks independent: dispatch each with\n`--worktree=\u003Ctask-slug>`, run concurrently, then review and merge one worktree at a\ntime through the same review gate. Merge conflicts usually eat the savings — prefer\nsequential.\n\n## Failure handling\n\n| Failure | Action |\n|---|---|\n| `stopReason: \"Cancelled\"`, empty text, no diff | Missing `--always-approve` — retry with it |\n| CLI error \u002F timeout | Retry once; then do the task yourself and note the fallback |\n| Auth expired | Stop; ask the user to run `grok login` |\n| 2 fix-up rounds exhausted | Preserve the diff, ask the user for a recovery decision, then finish the task manually if authorized |\n| Dirty tree at dispatch | Refuse; commit\u002Fstash first |\n\n## Limitations\n\n- Grok receives the approved task specification; it is a third-party service and should not\n  receive secrets, proprietary material, personal data, or customer data.\n- `--always-approve` allows edits without an interactive approval prompt. It must be limited to\n  a clean, explicitly approved worktree and never substitutes for the orchestrator's review.\n- Model output can be incorrect, insecure, incomplete, or out of scope. Review the diff and\n  run the acceptance checks before accepting any change.\n- This skill does not authorize installations, updates, commits, pushes, deployments, or\n  destructive cleanup.\n\n## Models\n\nDefault `grok-4.5`. Add `-m grok-composer-2.5-fast` only for trivial mechanical tasks.\n","# Grok Build Orchestration\n\n## When to Use\n\n- Use when delegating a well-specified implementation task to xAI's Grok Build CLI running headlessly\n- Use when executing a Markdown implementation plan task-by-task with a diff review after each task\n- Use when the user says \"use grok\", \"grok build\", \"have grok implement\", or \"send to grok\"\n\nThe coding assistant is the orchestrator: it plans, writes self-contained task specs,\ndispatches them to Grok Build headlessly, reviews every diff, and owns the final result.\nGrok is the fast, cheap executor. Full CLI details and verified behaviors: `references\u002Fcli.md`.\n\n## Safety Gate\n\nBefore every dispatch, show the user the exact task specification that will be sent to xAI,\nthe target worktree, and the permission mode. Obtain explicit approval to disclose that text\nand to let Grok edit the scoped worktree. Never include secrets, proprietary source, customer\ndata, or credentials in a task specification. Do not run `grok update`, `--always-approve`,\nor a destructive recovery command without separate, explicit approval.\n\n## When to delegate vs keep with the orchestrator\n\n| Delegate to Grok | Keep with the orchestrator |\n|---|---|\n| Plan tasks with clear acceptance criteria | Ambiguous requirements, architecture decisions |\n| Boilerplate, scaffolding, CRUD | Deep cross-file debugging |\n| Mechanical refactors | Security-sensitive code |\n| Test writing from clear specs | Anything touching production infrastructure |\n| UI components from mockups\u002Fspecs | Tasks where writing the spec ≈ doing the work |\n\nWhen in doubt, keep it with the orchestrator.\n\n## Session preflight (once, before the first dispatch)\n\n1. `grok update --check --json` — if `updateAvailable` is true, tell the user. Run\n   `grok update` only after explicit approval, then confirm with `grok --version`.\n2. `grok models` — if it errors or reports logged out, STOP and ask the user to run\n   `grok login`.\n\n## Per-task loop (sequential — the default)\n\n1. **Spec.** Write a self-contained task file (template below) to a temp directory\n   OUTSIDE the target repo — the harness scratchpad if one is available, else the OS\n   temp dir. Never write it inside the target repo. Grok has zero conversation context:\n   no one-liner prompts, ever.\n   - POSIX: `mkdir -p \"${TMPDIR:-\u002Ftmp}\u002Fgrok-specs\"`, then write `task.md` there.\n   - Windows (PowerShell): `New-Item -ItemType Directory -Force \"$env:TEMP\\grok-specs\"`,\n     then write `task.md` there.\n2. **Clean state.** No uncommitted *source* changes — commit or stash first, so the\n   post-run diff is exactly Grok's work. Ignore build artifacts (`__pycache__`, `dist\u002F`,\n   etc.); if they show in `git status`, they're usually just un-gitignored, not your\n   concern. Never dispatch on a dirty source tree.\n3. **Dispatch.**\n\n   POSIX:\n\n   ```bash\n   grok --prompt-file \u003Ctask-file> \\\n     --output-format json \\\n     --always-approve \\\n     --max-turns 30 \\\n     --cwd \u003Crepo>\n   ```\n\n   Windows (PowerShell) — backtick line-continuation:\n\n   ```powershell\n   grok --prompt-file \u003Ctask-file> `\n     --output-format json `\n     --always-approve `\n     --max-turns 30 `\n     --cwd \u003Crepo>\n   ```\n\n   Parse the JSON output and save `sessionId`. (`--always-approve` is required for\n   headless runs — `--permission-mode acceptEdits` silently cancels edits with no\n   interactive approver. Use it only after the user explicitly approves Grok editing this\n   exact scoped worktree. See `references\u002Fcli.md`.) For a high-stakes task, add `--check`\n   so Grok self-verifies before you review; skip it otherwise (it ~doubles latency).\n4. **Review gate — non-negotiable.**\n   - Read the diff yourself (`git diff -- \u003Cfiles from the spec>` to skip artifact noise):\n     does it do the task, only the task, and match repo conventions?\n   - Run the acceptance commands from the spec.\n   - **Pass** → commit with a clear message following the repo's convention → next task.\n   - **Fail** → ask the user before a fix-up or any reset. Never run `git checkout -- .` or\n     `git clean -fd` automatically; preserve the diff for review and use a non-destructive\n     recovery plan unless the user explicitly authorizes otherwise.\n\n## Task spec template\n\n```markdown\n# Task: \u003Cone-line title>\n\n## Context\n- Repo: \u003Cpath> — \u003Cone line on what the project is>\n- Conventions: \u003Ctest runner, formatter, a good example file to imitate>\n\n## Files\n- Modify: \u003Cpath>\n- Create: \u003Cpath>\n\n## Task\n\u003Cprecise description of the change>\n\n## Constraints\n- Do not modify any files other than those listed above.\n- \u003Cother constraints>\n\n## Acceptance criteria\n- `\u003Cexact command>` \u003Cexpected result>\n```\n\n## Executing a Markdown implementation plan\n\n- One plan task per dispatch, in order.\n- Check off the plan's task checkboxes (`- [ ]` → `- [x]`) as each task lands and passes\n  the review gate.\n- If the plan explicitly marks tasks as independent, see Parallel dispatch below;\n  otherwise stay sequential.\n\n## Parallel dispatch (opt-in exception, not the default)\n\nOnly when a plan explicitly marks tasks independent: dispatch each with\n`--worktree=\u003Ctask-slug>`, run concurrently, then review and merge one worktree at a\ntime through the same review gate. Merge conflicts usually eat the savings — prefer\nsequential.\n\n## Failure handling\n\n| Failure | Action |\n|---|---|\n| `stopReason: \"Cancelled\"`, empty text, no diff | Missing `--always-approve` — retry with it |\n| CLI error \u002F timeout | Retry once; then do the task yourself and note the fallback |\n| Auth expired | Stop; ask the user to run `grok login` |\n| 2 fix-up rounds exhausted | Preserve the diff, ask the user for a recovery decision, then finish the task manually if authorized |\n| Dirty tree at dispatch | Refuse; commit\u002Fstash first |\n\n## Limitations\n\n- Grok receives the approved task specification; it is a third-party service and should not\n  receive secrets, proprietary material, personal data, or customer data.\n- `--always-approve` allows edits without an interactive approval prompt. It must be limited to\n  a clean, explicitly approved worktree and never substitutes for the orchestrator's review.\n- Model output can be incorrect, insecure, incomplete, or out of scope. Review the diff and\n  run the acceptance checks before accepting any change.\n- This skill does not authorize installations, updates, commits, pushes, deployments, or\n  destructive cleanup.\n\n## Models\n\nDefault `grok-4.5`. Add `-m grok-composer-2.5-fast` only for trivial mechanical tasks.\n",{"name":5,"risk":24,"tags":25,"tools":30,"author":34,"source":35,"license":15,"category":36,"date_added":37,"description":7,"source_repo":38,"source_type":39,"license_source":40},"critical",[26,27,28,29],"grok","delegation","code-generation","xai",[31,32,33],"claude","cursor","gemini","sanjay3290","https:\u002F\u002Fgithub.com\u002Fsanjay3290\u002Fai-skills\u002Ftree\u002Fmain\u002Fskills\u002Fgrok-build","agent-orchestration","2026-07-09","sanjay3290\u002Fai-skills","community","https:\u002F\u002Fgithub.com\u002Fsanjay3290\u002Fai-skills\u002Fblob\u002Fmain\u002FLICENSE","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","05-技能与代理开发\u002Fgrok-build",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill grok-build",{"tool":55,"command":56},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill grok-build",{"tool":58,"command":59},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill grok-build","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fgrok-build\u002FSKILL.md",true,[63],{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":68},"references\u002Fcli.md","REFERENCE","参考文档",4229,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Fgrok-build\u002Freferences\u002Fcli.md",[70,78,83,90,97,104],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":74,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":79,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":74,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":74,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":74,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":74,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":74,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]