[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6D3Q4DM67WJXW3RT45ZQW7M":3,"skill-same:01M6D3Q4DM67WJXW3RT45ZQW7M":62},{"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":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":27,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":43,"ownerHtmlUrl":44,"ownerBlogUrl":45,"ownerDescription":46,"updatedAt":47,"install":48,"resources":61},"01M6D3Q4DM67WJXW3RT45ZQW7M","supercli-mastery",null,"Master the supercli capability router. Covers the full agent workflow — discover plugins, inspect commands, preview with plan, execute safely, use skills, interpret output and exit codes.","javimosch\u002Fsupercli","javimosch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F12900508?v=4","01M6D3F2AS6PV75ET9PZ1QGP8J","Javier Leandro Arancibia","01M6D3F2EBNWNJ358Q90P5YQR1",57,"MIT","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fsupercli\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Fsupercli-mastery\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33],"supercli mastery","workflow","capability router","plugins","plan","execute","use","router","master","exit","agent workflow","preview","discover","commands","full","2026-11-10 10:12:30",false,"---\nname: supercli-mastery\ndescription: Master the supercli capability router. Covers the full agent workflow — discover plugins, inspect commands, preview with plan, execute safely, use skills, interpret output and exit codes.\n---\n\n# supercli-mastery — Agent's Guide to SuperCLI\n\n## What SuperCLI Is\n\nSuperCLI is a **capability router**. It wraps external CLIs (plugins) behind a uniform `namespace.resource.action` command model. Every command follows the same pattern:\n\n```\nsc \u003Cnamespace> \u003Cresource> \u003Caction> --\u003Carg> \u003Cvalue> --json\n```\n\nThe workflow is: `discover → learn → inspect → plan → execute`\n\n## Core Capabilities\n\n| Capability | Description |\n|---|---|\n| `commands` | Query available commands |\n| `plugins` | Plugin management and discovery |\n| `skills` | Agent-facing skill documents |\n| `inspect` | View command schema |\n| `plan` | Preview execution steps before running |\n| `ask` | LLM suggests which commands to run (no execution) |\n| `mcp` | Model Context Protocol adapter |\n\n## Output Conventions\n\nAll commands return JSON when `--json` is used (or by default in non-TTY):\n\n```\nsc \u003Cns> \u003Cres> \u003Cact> --json\n→ { \"version\": \"1.0\", \"command\": \"ns.res.act\", \"data\": {...} }\n```\n\n- **stdout**: Primary data (JSON envelope)\n- **stderr**: Progress events, warnings, structured errors\n- **Exit code 0**: Success\n\n## Semantic Exit Codes\n\n| Code | Meaning | Agent action |\n|---|---|---|\n| 0 | Success | Proceed |\n| 82 | Validation error | Fix input arguments |\n| 85 | Invalid argument | Fix the args, don't retry |\n| 91 | Safety violation | Non-TTY interactive command blocked |\n| 92 | Resource not found | Use different ID\u002Fname |\n| 105 | Integration \u002F API error | Retry with backoff (transient) |\n| 110 | Internal error | Report bug, don't retry |\n\n> Range convention (Square-style): 80-89 input errors, 90-99 resource errors,\n> 100-109 integration errors, 110-119 internal errors. Currently implemented\n> codes listed above; unused slots reserved for future granularity.\n\n## Agent Workflow\n\n### 1. Discover — Find what's available\n\n```\nsc --json\n# → lists first_steps with {command, purpose} pairs\n\nsc commands --query backup --limit 50 --json\n# → { commands: [{ namespace, resource, action, description }] }\n\nsc plugins explore --name \u003Ctool> --json\n# → { plugins: [{ name, description, tags, installed }] }\n```\n\n### 2. Learn — Understand a plugin\n\n```\nsc plugins learn \u003Cname> --json\n# → plugin metadata, commands, install guidance\n\nsc skills get \u003Cname> --json\n# → agent-facing SKILL.md content for that tool\n```\n\n### 3. Inspect — See a command's schema before using it\n\n```\nsc inspect \u003Cnamespace> \u003Cresource> \u003Caction> --json\n# → { namespace, resource, action, args: [{name, type, required, positional}], adapterConfig }\n```\n\nInspect tells you:\n- Which `--flags` are required vs optional\n- Which args are positional (marked `\"positional\": true`)\n- The adapter type (process, http, mcp, shell)\n- Timeout and safety settings\n\n### 4. Plan — Preview before executing mutations\n\n```\nsc plan \u003Cnamespace> \u003Cresource> \u003Caction> --\u003Cargs> --json\n# → { plan_id, command, steps, risk_level, side_effects, persisted }\n```\n\n`plan` does NOT execute — it returns a plan document showing:\n- The 4 execution steps (resolve → validate → adapter → transform)\n- `risk_level`: \"safe\" for reads, \"medium\" for mutations\n- `side_effects`: true for write operations\n\nUse plan before any command that modifies state.\n\n### 5. Execute — Run commands\n\n```\n# Direct execution (no server)\nsc \u003Cnamespace> \u003Cresource> \u003Caction> --\u003Carg> \u003Cvalue> --json\n\n# Or via persisted plan (with SUPERCLI_SERVER)\nsc plan \u003Cns> \u003Cres> \u003Cact> --\u003Cargs> --json\nsc execute \u003Cplan_id> --json\n```\n\n### Ask — LLM suggests a plan\n\n```\nsc ask \"send an email to user@example.com\"\n# → { mode: \"ask_suggest\", suggested_steps: [{ command, args, dry_run }] }\n```\n\n`ask` uses an LLM to map natural language to supercli commands. It NEVER executes — returns suggestions with `dry_run` strings you can choose to run.\n\n## Working with Output\n\nAlways use `--json` for machine-readable output:\n\n```bash\n# Pipe to jq for extraction\nsc commands --query backup --json | jq '.commands[].namespace'\n\n# Chain commands\nsc easyredmine issue search \"correction\" --current-month | \\\n  jq -r '.results[].id' | \\\n  xargs -I {} sc easyredmine issue show {} --json\n```\n\nError responses are always on stderr:\n\n```\nsc nonexistent command --json\n# stderr: {\"error\":{\"code\":92,\"type\":\"resource_not_found\",\"message\":\"...\",\"recoverable\":false,\"suggestions\":[\"Run: supercli commands\"]}}\n```\n\n## Token Optimization\n\nFor large outputs (50+ files, long command results), use context-mode:\n\n```\nsc mcp call --mcp-server context-mode --tool ctx_batch_execute --input-json '...' --json\n```\n\nSee `sc skills get context-mode:quickstart --json` for context-mode usage.\n\n## Skills System\n\nSkills are agent-facing documents that teach you how to use tools:\n\n```\nsc skills sync --json                    # index all skills\nsc skills list --catalog --limit 10      # browse\nsc skills search --query \u003Ctopic>         # find by topic\nsc skills get \u003Cid>                       # read a skill\n```\n\nSkills come from:\n- **plugin_fs**: Bundled with supercli plugins (`plugins\u002F\u003Cname>\u002Fskills\u002Fquickstart\u002FSKILL.md`)\n- **local_fs**: From provider-scanned directories (e.g. `~\u002F.config\u002Fopencode\u002Fskills\u002F`)\n- **supercli**: Built-in skills shipped with the supercli package itself\n\n## Navigation Pattern\n\nWhen you don't know a command's namespace:\n\n```\n# 1. Browse capabilities\nsc --json\n\n# 2. Search commands\nsc commands --query \u003Ckeyword> --json\n\n# 3. Inspect the most promising match\nsc inspect \u003Cns> \u003Cres> \u003Cact> --json\n\n# 4. Plan if it's a write operation\nsc plan \u003Cns> \u003Cres> \u003Cact> --args\n\n# 5. Execute\nsc \u003Cns> \u003Cres> \u003Cact> --args --json\n```\n\n## Key Principles\n\n1. **`--json` everywhere** — all commands support it\n2. **Plan before write** — use `plan` for any command that might have side effects\n3. **Inspect before run** — check `args` and `positional` markers in inspect output\n4. **Errors are structured** — always on stderr with `code`, `type`, `recoverable`, `suggestions`\n5. **Skills teach you** — if you don't know a tool, `sc skills search --query \u003Ctool>`\n6. **Exit codes drive decisions** — 85=fix args, 92=try different resource, 105=retry\n","# supercli-mastery — Agent's Guide to SuperCLI\n\n## What SuperCLI Is\n\nSuperCLI is a **capability router**. It wraps external CLIs (plugins) behind a uniform `namespace.resource.action` command model. Every command follows the same pattern:\n\n```\nsc \u003Cnamespace> \u003Cresource> \u003Caction> --\u003Carg> \u003Cvalue> --json\n```\n\nThe workflow is: `discover → learn → inspect → plan → execute`\n\n## Core Capabilities\n\n| Capability | Description |\n|---|---|\n| `commands` | Query available commands |\n| `plugins` | Plugin management and discovery |\n| `skills` | Agent-facing skill documents |\n| `inspect` | View command schema |\n| `plan` | Preview execution steps before running |\n| `ask` | LLM suggests which commands to run (no execution) |\n| `mcp` | Model Context Protocol adapter |\n\n## Output Conventions\n\nAll commands return JSON when `--json` is used (or by default in non-TTY):\n\n```\nsc \u003Cns> \u003Cres> \u003Cact> --json\n→ { \"version\": \"1.0\", \"command\": \"ns.res.act\", \"data\": {...} }\n```\n\n- **stdout**: Primary data (JSON envelope)\n- **stderr**: Progress events, warnings, structured errors\n- **Exit code 0**: Success\n\n## Semantic Exit Codes\n\n| Code | Meaning | Agent action |\n|---|---|---|\n| 0 | Success | Proceed |\n| 82 | Validation error | Fix input arguments |\n| 85 | Invalid argument | Fix the args, don't retry |\n| 91 | Safety violation | Non-TTY interactive command blocked |\n| 92 | Resource not found | Use different ID\u002Fname |\n| 105 | Integration \u002F API error | Retry with backoff (transient) |\n| 110 | Internal error | Report bug, don't retry |\n\n> Range convention (Square-style): 80-89 input errors, 90-99 resource errors,\n> 100-109 integration errors, 110-119 internal errors. Currently implemented\n> codes listed above; unused slots reserved for future granularity.\n\n## Agent Workflow\n\n### 1. Discover — Find what's available\n\n```\nsc --json\n# → lists first_steps with {command, purpose} pairs\n\nsc commands --query backup --limit 50 --json\n# → { commands: [{ namespace, resource, action, description }] }\n\nsc plugins explore --name \u003Ctool> --json\n# → { plugins: [{ name, description, tags, installed }] }\n```\n\n### 2. Learn — Understand a plugin\n\n```\nsc plugins learn \u003Cname> --json\n# → plugin metadata, commands, install guidance\n\nsc skills get \u003Cname> --json\n# → agent-facing SKILL.md content for that tool\n```\n\n### 3. Inspect — See a command's schema before using it\n\n```\nsc inspect \u003Cnamespace> \u003Cresource> \u003Caction> --json\n# → { namespace, resource, action, args: [{name, type, required, positional}], adapterConfig }\n```\n\nInspect tells you:\n- Which `--flags` are required vs optional\n- Which args are positional (marked `\"positional\": true`)\n- The adapter type (process, http, mcp, shell)\n- Timeout and safety settings\n\n### 4. Plan — Preview before executing mutations\n\n```\nsc plan \u003Cnamespace> \u003Cresource> \u003Caction> --\u003Cargs> --json\n# → { plan_id, command, steps, risk_level, side_effects, persisted }\n```\n\n`plan` does NOT execute — it returns a plan document showing:\n- The 4 execution steps (resolve → validate → adapter → transform)\n- `risk_level`: \"safe\" for reads, \"medium\" for mutations\n- `side_effects`: true for write operations\n\nUse plan before any command that modifies state.\n\n### 5. Execute — Run commands\n\n```\n# Direct execution (no server)\nsc \u003Cnamespace> \u003Cresource> \u003Caction> --\u003Carg> \u003Cvalue> --json\n\n# Or via persisted plan (with SUPERCLI_SERVER)\nsc plan \u003Cns> \u003Cres> \u003Cact> --\u003Cargs> --json\nsc execute \u003Cplan_id> --json\n```\n\n### Ask — LLM suggests a plan\n\n```\nsc ask \"send an email to user@example.com\"\n# → { mode: \"ask_suggest\", suggested_steps: [{ command, args, dry_run }] }\n```\n\n`ask` uses an LLM to map natural language to supercli commands. It NEVER executes — returns suggestions with `dry_run` strings you can choose to run.\n\n## Working with Output\n\nAlways use `--json` for machine-readable output:\n\n```bash\n# Pipe to jq for extraction\nsc commands --query backup --json | jq '.commands[].namespace'\n\n# Chain commands\nsc easyredmine issue search \"correction\" --current-month | \\\n  jq -r '.results[].id' | \\\n  xargs -I {} sc easyredmine issue show {} --json\n```\n\nError responses are always on stderr:\n\n```\nsc nonexistent command --json\n# stderr: {\"error\":{\"code\":92,\"type\":\"resource_not_found\",\"message\":\"...\",\"recoverable\":false,\"suggestions\":[\"Run: supercli commands\"]}}\n```\n\n## Token Optimization\n\nFor large outputs (50+ files, long command results), use context-mode:\n\n```\nsc mcp call --mcp-server context-mode --tool ctx_batch_execute --input-json '...' --json\n```\n\nSee `sc skills get context-mode:quickstart --json` for context-mode usage.\n\n## Skills System\n\nSkills are agent-facing documents that teach you how to use tools:\n\n```\nsc skills sync --json                    # index all skills\nsc skills list --catalog --limit 10      # browse\nsc skills search --query \u003Ctopic>         # find by topic\nsc skills get \u003Cid>                       # read a skill\n```\n\nSkills come from:\n- **plugin_fs**: Bundled with supercli plugins (`plugins\u002F\u003Cname>\u002Fskills\u002Fquickstart\u002FSKILL.md`)\n- **local_fs**: From provider-scanned directories (e.g. `~\u002F.config\u002Fopencode\u002Fskills\u002F`)\n- **supercli**: Built-in skills shipped with the supercli package itself\n\n## Navigation Pattern\n\nWhen you don't know a command's namespace:\n\n```\n# 1. Browse capabilities\nsc --json\n\n# 2. Search commands\nsc commands --query \u003Ckeyword> --json\n\n# 3. Inspect the most promising match\nsc inspect \u003Cns> \u003Cres> \u003Cact> --json\n\n# 4. Plan if it's a write operation\nsc plan \u003Cns> \u003Cres> \u003Cact> --args\n\n# 5. Execute\nsc \u003Cns> \u003Cres> \u003Cact> --args --json\n```\n\n## Key Principles\n\n1. **`--json` everywhere** — all commands support it\n2. **Plan before write** — use `plan` for any command that might have side effects\n3. **Inspect before run** — check `args` and `positional` markers in inspect output\n4. **Errors are structured** — always on stderr with `code`, `type`, `recoverable`, `suggestions`\n5. **Skills teach you** — if you don't know a tool, `sc skills search --query \u003Ctool>`\n6. **Exit codes drive decisions** — 85=fix args, 92=try different resource, 105=retry\n",{"name":5,"description":7},"d362369a98edfcc6356f3bb152db470c34f08a46",".agents\u002Fskills\u002Fsupercli-mastery",5,"https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fsupercli","https:\u002F\u002Fjavimosch.github.io\u002Fsupercli\u002F","https:\u002F\u002Fgithub.com\u002Fjavimosch","intrane.fr","Building robust, open-source infrastructure for the commons. AI-leveraged, self-hosted, built to last.","2026-11-02 18:24:17",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add javimosch\u002Fsupercli --skill supercli-mastery",{"tool":54,"command":55},"bunx","bunx skills add javimosch\u002Fsupercli --skill supercli-mastery",{"tool":57,"command":58},"pnpm","pnpm dlx skills add javimosch\u002Fsupercli --skill supercli-mastery","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fsupercli\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Fsupercli-mastery\u002FSKILL.md",true,[],[63,71,85,97,110,118],{"skillNo":64,"name":65,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":34},"01M6G7YFZVHRYAY51J0YG9SDNJ","sc-machin-mcp","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fsupercli\u002Fblob\u002Fmaster\u002Fsupercli-machin-cli\u002Fskills\u002Fsc-machin-mcp\u002FSKILL.md",[],[69,70],"sc machin mcp","MCP",{"skillNo":72,"name":73,"nameZh":6,"description":74,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":34},"01M6G7YB179MQMSHZBJDC8TZA8","supercli.quickstart","SuperCLI capability router — discover and execute CLI commands through namespace.resource.action interface","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fsupercli\u002Fblob\u002Fmaster\u002Fskills\u002Fsupercli\u002FSKILL.md",[],[78,79,80,21,81,82,24,26,31,32,83,84],"supercli quickstart","quickstart","cli","plugin","discovery","interface","supercli,cli,plugin,capability,discovery,agent",{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":34},"01M6G7Y734QS3793YMS5PR146J","zzdoc","Use this skill to compile scdoc manpages with a fast Zig-based compiler.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fsupercli\u002Fblob\u002Fmaster\u002Fplugins\u002Fzzdoc\u002Fskills\u002Fquickstart\u002FSKILL.md",[],[87,92,25,93,94,95,96],"with","zig","fast","compiler","compile",{"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":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":34},"01M6G7Y2WX56K2QJQ9RV2ZKEV7","zx","Use this skill when the user wants to a tool for writing better scripts using node.js.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fsupercli\u002Fblob\u002Fmaster\u002Fplugins\u002Fzx\u002Fskills\u002Fquickstart\u002FSKILL.md",[],[99,104,25,105,106,107,108,109],"scripts","user","node","tool","js","writing",{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":34},"01M6G7Y0M792DGW31HN4TEQT10","zvm","Use this skill when the user wants to manage multiple Zig compiler versions.","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fsupercli\u002Fblob\u002Fmaster\u002Fplugins\u002Fzvm\u002Fskills\u002Fquickstart\u002FSKILL.md",[],[112,93,117,25,105,95],"manage",{"skillNo":119,"name":79,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":34},"01M6G7XX51W5HJW09DYXBK92TJ","https:\u002F\u002Fgithub.com\u002Fjavimosch\u002Fsupercli\u002Fblob\u002Fmaster\u002Fplugins\u002Fzstdmt\u002Fskills\u002Fquickstart\u002FSKILL.md",[],[79]]