[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CP1HCCN0HEZ7WQT69JA2JX":3,"skill-same:01M6CP1HCCN0HEZ7WQT69JA2JX":73},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":33,"linkOnly":34,"markdownContent":35,"markdownBody":36,"frontMatter":37,"refName":52,"commitSha":53,"skillDirectory":54,"forksCount":13,"repositoryHtmlUrl":55,"repositoryHomepageUrl":6,"ownerHtmlUrl":56,"ownerBlogUrl":57,"ownerDescription":6,"updatedAt":58,"install":59,"resources":72},"01M6CP1HCCN0HEZ7WQT69JA2JX","claude",null,"Use Claude Code CLI as a bounded coding agent for repo exploration, implementation, review, and session resume.","ncmlabs\u002Fforge","ncmlabs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F126867372?v=4","01M6CP1F8M06XXPC3FR9KDQTX5","01M6CP1FCVBY4DQZ1N5A2GCM9K",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fncmlabs\u002Fforge\u002Fblob\u002Fdevelopment\u002Fskills\u002Fclaude-code\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32],"review","cli","coding agent","implement","code","Bash","explore","text","coding","repo","session","use","resume","implementation","exploration","2026-11-10 10:12:30",false,"---\nname: claude\ndescription: Use Claude Code CLI as a bounded coding agent for repo exploration, implementation, review, and session resume.\ntimeout: 1800\nallowed-tools:\n  - Bash(claude:*)\ncapabilities:\n  - name: explore\n    inputs: [Text, Text]\n    output: Text\n  - name: implement\n    inputs: [Text, Text, Text]\n    output: Text\n  - name: review\n    inputs: [Text, Text]\n    output: Text\n  - name: resume_session\n    inputs: [Text, Text]\n    output: Text\n---\n\n# Claude Code Skill\n\nUse this skill when FORGE needs to delegate coding work to Claude Code CLI.\n\nDefault operating pattern:\n\n1. Explore in read-only mode.\n2. Implement with bounded edit permissions.\n3. Verify with deterministic checks.\n4. Resume the same session when follow-up is needed.\n\nDo not use multiple Claude coding sessions in parallel unless the worktrees or file scopes are disjoint.\n\n## FORGE Language Preamble\n\nWhen the delegated task involves FORGE language code, `.forge` files, language docs, examples, or runtime semantics, prepend this grounding block to the Claude prompt:\n\n```text\nYou are working in the FORGE repository. Before answering or editing, read the repo truth for this checkout:\n- docs\u002Ftraining-development-workflow.md\n- docs\u002Fforge-reference.md\n- grammar\u002Fforge.pest\n- src\u002Fast.rs\n- src\u002Fparser.rs\n- relevant checker, resolver, runtime, CLI, example, and test files\n\nTreat source and tests as authoritative when docs disagree. Follow the GitHub issue acceptance criteria and FORGE principles.\n\nCurrent FORGE surfaces to account for include:\n- uncertainty handling: do not directly `give` oracle\u002Fruntime results; bind then use `when result.sure`, `when result.unsure`, and `else`\n- `exec`, `command`, background `command.status\u002Foutput\u002Fcancel`\n- `file.read` (server-only) plus schema-driven `toml.parse(text, \"TypeName\")` \u002F `json.parse(text, \"TypeName\")` built-ins; `TypeName` is a string literal naming a `type` in the same program and refines the return type to `Named(TypeName)`\n- text built-ins: `text.to_number(s)`, `text.replace(s, find, replacement)` (runtime template substitution since `{var}` interpolation is parse-time only), `text.short_id()` (8-char hex from v4 UUID, used for collision-resistant suffixes like dev-cycle workdirs)\n- template-string escapes: `\\n`, `\\r`, `\\t`, `\\\"`, `\\\\`, `\\{`, `\\}` — the brace escapes carry literal `{` \u002F `}` past the parser, required when passing placeholder text (e.g. `\"\\{issue_id\\}\"`) to runtime helpers like `text.replace`\n- `session`, `on progress`\u002F`on complete` hooks, `isolate worktree`, and `gives AgentResult`\n- `AgentResult` fields and `metadata.verification`\n- `knowledge store`, `recall`, `learn`\n- `spawn`, `find`, `retire`, `exportable agent`\n- project skills via `forge.project.toml` and `skill.\u003Cnamespace>.\u003Ccapability>(...)`\n- `schedule` blocks with `mode: spawn` (prompt-driven stateless turn) and `mode: wake` (memory rehydration + event emit); both modes are runtime-dispatched via `WakeService`\u002F`CronDriver`\n- server-only `search`, boundary directives, and `{expr}` template interpolation; `{!expr}` raw interpolation is removed in v0.3 (#485) and rejected with E163\n\nValidation notes:\n- Positive single-file examples should pass `cargo run -- check \u003Cfile>`.\n- Manifest\u002Fproject skill examples must be validated through their `forge.project.toml`.\n- Multi-file examples may need manifest or merged-source validation; do not assume each dependent file checks in isolation.\n- Known checker limitation: multi-state lifecycle guards such as `lifecycle == a or lifecycle == b` are currently opaque warnings and may make `forge check` exit nonzero.\n- Every diagnostic carries a stable code (`Exxx` errors, `Wxxx` warnings): `forge explain \u003Ccode>` prints the reason with a `Wrong:`\u002F`Right:` example, `forge explain --list` enumerates all codes. Piped\u002Fredirected output is plain text; `NO_COLOR` also disables colour.\n```\n\n## Capabilities\n\n### `explore(prompt, repo_path)`\n\nUse for read-only planning and repo analysis.\n\nPreferred command:\n\n```bash\nprintf '%s\\n' \"$PROMPT\" | claude --print --bare --output-format json \\\n  --permission-mode plan \\\n  --allowedTools Read,Glob,Grep\n```\n\nUse stream output when progress events are needed:\n\n```bash\nprintf '%s\\n' \"$PROMPT\" | claude --print --verbose --bare --output-format stream-json \\\n  --permission-mode plan \\\n  --allowedTools Read,Glob,Grep\n```\n\nExpected behavior:\n\n- no file edits\n- no shell commands should succeed in plan mode\n- output should identify target files, likely fix, and verification commands\n\n### `implement(prompt, repo_path, verify_cmd)`\n\nUse for bounded code changes.\n\nPreferred command:\n\n```bash\nprintf '%s\\n' \"$PROMPT\" | claude --print --bare --output-format json \\\n  --permission-mode acceptEdits \\\n  --allowedTools Read,Edit,Glob,Grep,Bash\n```\n\nRequired prompt constraints:\n\n- state the allowed scope\n- name the verification command\n- require minimal edits\n- require a final summary of changed files and checks run\n\nExpected behavior:\n\n- Claude may edit files\n- Claude may run bounded verification commands\n- final output should summarize the change and verification\n\n### `review(prompt, repo_path)`\n\nUse for read-heavy verification after implementation.\n\nPreferred command:\n\n```bash\nprintf '%s\\n' \"$PROMPT\" | claude --print --bare --output-format json \\\n  --permission-mode plan \\\n  --allowedTools Read,Glob,Grep\n```\n\nReview prompts should ask for:\n\n- concrete findings first\n- file references\n- missing verification\n- residual risks\n\n### `resume_session(session_id, prompt)`\n\nUse to continue an interrupted or previously successful session.\n\nPreferred command:\n\n```bash\nprintf '%s\\n' \"$PROMPT\" | claude --print --bare --output-format json \\\n  --resume \"$SESSION_ID\"\n```\n\nUse resume when:\n\n- the same task continues\n- the same repo state is still relevant\n- preserving session context is cheaper than rebuilding it\n\n## Session Adapter Mapping\n\n| FORGE session field | Claude CLI |\n|---|---|\n| `prompt` | stdin payload or positional prompt |\n| `agent = \"claude\"` | `claude` |\n| `tools` | `--allowedTools` |\n| `workdir` | process working directory |\n| `timeout` | managed by FORGE wrapper |\n| `budget` | `--max-budget-usd` |\n| `resume` | `--resume \u003Csession-id>` |\n| `output_mode = final_json` | `--output-format json` |\n| `output_mode = stream` | `--output-format stream-json --verbose` |\n| analysis mode | `--permission-mode plan` |\n| bounded edit mode | `--permission-mode acceptEdits` |\n\n## AgentResult Mapping\n\nWhen `--output-format json` is used, map:\n\n| Claude JSON field | AgentResult field |\n|---|---|\n| `result` | `output` |\n| `structured_output` | `structured_output` |\n| `session_id` | `session_id` |\n| `num_turns` | `num_turns` |\n| `duration_ms` | `duration_ms` |\n| `duration_api_ms` | `duration_api_ms` |\n| `total_cost_usd` | `cost_usd` |\n| `usage.input_tokens` | `tokens_in` |\n| `usage.output_tokens` | `tokens_out` |\n| `stop_reason` | `stop_reason` |\n| `permission_denials` | `permission_denials` |\n\nWhen `stream-json` is used, capture:\n\n- `system.init`\n- `tool_progress`\n- `system.status`\n- `system.task_started`\n- `system.task_notification`\n- `system.session_state_changed`\n- final `result`\n\n## Safety Rules\n\n- Prefer read-only explore before implementation.\n- Always set an explicit permission mode.\n- Always run in the target repo working directory.\n- Use budget caps for nontrivial implementation runs.\n- Prefer one implementer session plus one reviewer session over parallel editing sessions.\n","# Claude Code Skill\n\nUse this skill when FORGE needs to delegate coding work to Claude Code CLI.\n\nDefault operating pattern:\n\n1. Explore in read-only mode.\n2. Implement with bounded edit permissions.\n3. Verify with deterministic checks.\n4. Resume the same session when follow-up is needed.\n\nDo not use multiple Claude coding sessions in parallel unless the worktrees or file scopes are disjoint.\n\n## FORGE Language Preamble\n\nWhen the delegated task involves FORGE language code, `.forge` files, language docs, examples, or runtime semantics, prepend this grounding block to the Claude prompt:\n\n```text\nYou are working in the FORGE repository. Before answering or editing, read the repo truth for this checkout:\n- docs\u002Ftraining-development-workflow.md\n- docs\u002Fforge-reference.md\n- grammar\u002Fforge.pest\n- src\u002Fast.rs\n- src\u002Fparser.rs\n- relevant checker, resolver, runtime, CLI, example, and test files\n\nTreat source and tests as authoritative when docs disagree. Follow the GitHub issue acceptance criteria and FORGE principles.\n\nCurrent FORGE surfaces to account for include:\n- uncertainty handling: do not directly `give` oracle\u002Fruntime results; bind then use `when result.sure`, `when result.unsure`, and `else`\n- `exec`, `command`, background `command.status\u002Foutput\u002Fcancel`\n- `file.read` (server-only) plus schema-driven `toml.parse(text, \"TypeName\")` \u002F `json.parse(text, \"TypeName\")` built-ins; `TypeName` is a string literal naming a `type` in the same program and refines the return type to `Named(TypeName)`\n- text built-ins: `text.to_number(s)`, `text.replace(s, find, replacement)` (runtime template substitution since `{var}` interpolation is parse-time only), `text.short_id()` (8-char hex from v4 UUID, used for collision-resistant suffixes like dev-cycle workdirs)\n- template-string escapes: `\\n`, `\\r`, `\\t`, `\\\"`, `\\\\`, `\\{`, `\\}` — the brace escapes carry literal `{` \u002F `}` past the parser, required when passing placeholder text (e.g. `\"\\{issue_id\\}\"`) to runtime helpers like `text.replace`\n- `session`, `on progress`\u002F`on complete` hooks, `isolate worktree`, and `gives AgentResult`\n- `AgentResult` fields and `metadata.verification`\n- `knowledge store`, `recall`, `learn`\n- `spawn`, `find`, `retire`, `exportable agent`\n- project skills via `forge.project.toml` and `skill.\u003Cnamespace>.\u003Ccapability>(...)`\n- `schedule` blocks with `mode: spawn` (prompt-driven stateless turn) and `mode: wake` (memory rehydration + event emit); both modes are runtime-dispatched via `WakeService`\u002F`CronDriver`\n- server-only `search`, boundary directives, and `{expr}` template interpolation; `{!expr}` raw interpolation is removed in v0.3 (#485) and rejected with E163\n\nValidation notes:\n- Positive single-file examples should pass `cargo run -- check \u003Cfile>`.\n- Manifest\u002Fproject skill examples must be validated through their `forge.project.toml`.\n- Multi-file examples may need manifest or merged-source validation; do not assume each dependent file checks in isolation.\n- Known checker limitation: multi-state lifecycle guards such as `lifecycle == a or lifecycle == b` are currently opaque warnings and may make `forge check` exit nonzero.\n- Every diagnostic carries a stable code (`Exxx` errors, `Wxxx` warnings): `forge explain \u003Ccode>` prints the reason with a `Wrong:`\u002F`Right:` example, `forge explain --list` enumerates all codes. Piped\u002Fredirected output is plain text; `NO_COLOR` also disables colour.\n```\n\n## Capabilities\n\n### `explore(prompt, repo_path)`\n\nUse for read-only planning and repo analysis.\n\nPreferred command:\n\n```bash\nprintf '%s\\n' \"$PROMPT\" | claude --print --bare --output-format json \\\n  --permission-mode plan \\\n  --allowedTools Read,Glob,Grep\n```\n\nUse stream output when progress events are needed:\n\n```bash\nprintf '%s\\n' \"$PROMPT\" | claude --print --verbose --bare --output-format stream-json \\\n  --permission-mode plan \\\n  --allowedTools Read,Glob,Grep\n```\n\nExpected behavior:\n\n- no file edits\n- no shell commands should succeed in plan mode\n- output should identify target files, likely fix, and verification commands\n\n### `implement(prompt, repo_path, verify_cmd)`\n\nUse for bounded code changes.\n\nPreferred command:\n\n```bash\nprintf '%s\\n' \"$PROMPT\" | claude --print --bare --output-format json \\\n  --permission-mode acceptEdits \\\n  --allowedTools Read,Edit,Glob,Grep,Bash\n```\n\nRequired prompt constraints:\n\n- state the allowed scope\n- name the verification command\n- require minimal edits\n- require a final summary of changed files and checks run\n\nExpected behavior:\n\n- Claude may edit files\n- Claude may run bounded verification commands\n- final output should summarize the change and verification\n\n### `review(prompt, repo_path)`\n\nUse for read-heavy verification after implementation.\n\nPreferred command:\n\n```bash\nprintf '%s\\n' \"$PROMPT\" | claude --print --bare --output-format json \\\n  --permission-mode plan \\\n  --allowedTools Read,Glob,Grep\n```\n\nReview prompts should ask for:\n\n- concrete findings first\n- file references\n- missing verification\n- residual risks\n\n### `resume_session(session_id, prompt)`\n\nUse to continue an interrupted or previously successful session.\n\nPreferred command:\n\n```bash\nprintf '%s\\n' \"$PROMPT\" | claude --print --bare --output-format json \\\n  --resume \"$SESSION_ID\"\n```\n\nUse resume when:\n\n- the same task continues\n- the same repo state is still relevant\n- preserving session context is cheaper than rebuilding it\n\n## Session Adapter Mapping\n\n| FORGE session field | Claude CLI |\n|---|---|\n| `prompt` | stdin payload or positional prompt |\n| `agent = \"claude\"` | `claude` |\n| `tools` | `--allowedTools` |\n| `workdir` | process working directory |\n| `timeout` | managed by FORGE wrapper |\n| `budget` | `--max-budget-usd` |\n| `resume` | `--resume \u003Csession-id>` |\n| `output_mode = final_json` | `--output-format json` |\n| `output_mode = stream` | `--output-format stream-json --verbose` |\n| analysis mode | `--permission-mode plan` |\n| bounded edit mode | `--permission-mode acceptEdits` |\n\n## AgentResult Mapping\n\nWhen `--output-format json` is used, map:\n\n| Claude JSON field | AgentResult field |\n|---|---|\n| `result` | `output` |\n| `structured_output` | `structured_output` |\n| `session_id` | `session_id` |\n| `num_turns` | `num_turns` |\n| `duration_ms` | `duration_ms` |\n| `duration_api_ms` | `duration_api_ms` |\n| `total_cost_usd` | `cost_usd` |\n| `usage.input_tokens` | `tokens_in` |\n| `usage.output_tokens` | `tokens_out` |\n| `stop_reason` | `stop_reason` |\n| `permission_denials` | `permission_denials` |\n\nWhen `stream-json` is used, capture:\n\n- `system.init`\n- `tool_progress`\n- `system.status`\n- `system.task_started`\n- `system.task_notification`\n- `system.session_state_changed`\n- final `result`\n\n## Safety Rules\n\n- Prefer read-only explore before implementation.\n- Always set an explicit permission mode.\n- Always run in the target repo working directory.\n- Use budget caps for nontrivial implementation runs.\n- Prefer one implementer session plus one reviewer session over parallel editing sessions.\n",{"name":5,"timeout":38,"description":7,"capabilities":39,"allowed-tools":50},1800,[40,43,45,47],{"name":24,"inputs":41,"output":42},[42,42],"Text",{"name":21,"inputs":44,"output":42},[42,42,42],{"name":18,"inputs":46,"output":42},[42,42],{"name":48,"inputs":49,"output":42},"resume_session",[42,42],[51],"Bash(claude:*)","development","357dd4b767160fd37a6f66eed6488d9fae43be60","skills\u002Fclaude-code","https:\u002F\u002Fgithub.com\u002Fncmlabs\u002Fforge","https:\u002F\u002Fgithub.com\u002Fncmlabs","ncmlabs.com","2026-10-16 01:25:57",{"source":8,"skillName":5,"commands":60,"prompt":70,"zipAvailable":71},[61,64,67],{"tool":62,"command":63},"npx","npx skills add ncmlabs\u002Fforge --skill claude",{"tool":65,"command":66},"bunx","bunx skills add ncmlabs\u002Fforge --skill claude",{"tool":68,"command":69},"pnpm","pnpm dlx skills add ncmlabs\u002Fforge --skill claude","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fncmlabs\u002Fforge\u002Fblob\u002Fdevelopment\u002Fskills\u002Fclaude-code\u002FSKILL.md",true,[],[74,83,96,114,138,151],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":33},"01M6CP25SKSYXW6F6VW5QHCHR1","greeter","Greet a person by name.","https:\u002F\u002Fgithub.com\u002Fncmlabs\u002Fforge\u002Fblob\u002Fdevelopment\u002Ftests\u002Ffixtures\u002Fskill-project\u002Fskills\u002Fgreeter\u002FSKILL.md",[],[76,81,25,82],"hello","greet",{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":33},"01M6CP23Y84FG8XFP7Q6SM0JM3","git_analysis","Deep agentic analysis of git repository health and trends","https:\u002F\u002Fgithub.com\u002Fncmlabs\u002Fforge\u002Fblob\u002Fdevelopment\u002Ftests\u002Ffixtures\u002Fsentinel\u002Fskills\u002Fgit-analysis\u002FSKILL.md",[],[90,91,92,93,94,95,23],"git analysis","analysis","git","agentic","repository","health",{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":33},"01M6CP2116VHMB054AAZ88CXPY","write-forge","Writing, checking or running FORGE `.forge` programs — the authoring loop, the CLI's JSON envelope and exit codes, and the syntax and checker mistakes that break agents. Use when a task asks for a FORGE program or `.forge` file, names FORGE tasks\u002Fflows\u002Fagents\u002Fpools\u002Fwardens, or when the project has a forge.project.toml.","https:\u002F\u002Fgithub.com\u002Fncmlabs\u002Fforge\u002Fblob\u002Fdevelopment\u002Fskills\u002Fwrite-forge\u002FSKILL.md",[],[103,104,105,106,107,108,109,110,19,111,29,112,113],"write forge","write","forge","syntax","json","loop","file","tasks","writing","exit","task",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":33},"01M6CP1WS0J5FF0D45Q76FGJJ7","slack","Slack operations via the Web API — messages, channels, threads, reactions, and approvals.","https:\u002F\u002Fgithub.com\u002Fncmlabs\u002Fforge\u002Fblob\u002Fdevelopment\u002Fskills\u002Fslack\u002FSKILL.md",[],[116,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,23,137,25],"message","info","ok","operations","read","command","timestamp","curl","history","bot","web","delete","update","https","messages","api","pin",{"skillNo":139,"name":140,"nameZh":6,"description":141,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":33},"01M6CP1T778FD17PC9Z3GQMFX2","ollama","Use Ollama local inference for text generation, classification, and analysis via local GPU models.","https:\u002F\u002Fgithub.com\u002Fncmlabs\u002Fforge\u002Fblob\u002Fdevelopment\u002Fskills\u002Follama\u002FSKILL.md",[],[140,145,146,147,148,91,149,23,25,29,150],"analyze","inference","generate","gpu","classification","models",{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":33},"01M6CP1PZ9TSC71W7CD89NJVT7","github","GitHub operations via the gh CLI — issues, PRs, branches, and CI checks.","https:\u002F\u002Fgithub.com\u002Fncmlabs\u002Fforge\u002Fblob\u002Fdevelopment\u002Fskills\u002Fgithub\u002FSKILL.md",[],[153,158,159,160,132,161,162,19,163,25,164,165,27,166,167,168,169,23,136,170],"csv","issues","state","create","pr","squash","gh","branch","check","view","diff","branches","ci"]