[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6H6BNDQMMPN3NSHHZ46P3SJ":3,"skill-same:01M6H6BNDQMMPN3NSHHZ46P3SJ":68},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":6,"ownerHtmlUrl":51,"ownerBlogUrl":52,"ownerDescription":6,"updatedAt":53,"install":54,"resources":67},"01M6H6BNDQMMPN3NSHHZ46P3SJ","domain-cli",null,"Use when building CLI tools. Keywords: CLI, command line, terminal, clap, structopt, argument parsing, subcommand, interactive, TUI, ratatui, crossterm, indicatif, progress bar, colored output, shell completion, config file, environment variable, 命令行, 终端应用, 参数解析","0xharryriddle\u002Fcodex-field-kit","0xharryriddle","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F100945007?v=4","01M6H686JV0QKZYP2RWG6B2B8T","harryriddle","01M6H686PVZ8JGKWEG7B3GM5PD",3,"MIT","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Farchive\u002Fupstream\u002Fchasebuild-agent-skills\u002Frust\u002Fskills\u002Fdomain-cli\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"domain cli","cli","domain","use","structopt","argument","output","progress","false","clap","cargo","toml","environment","interactive","command","ratatui","shell","parsing","file","terminal","2026-11-10 10:12:30",false,"---\nname: domain-cli\ndescription: \"Use when building CLI tools. Keywords: CLI, command line, terminal, clap, structopt, argument parsing, subcommand, interactive, TUI, ratatui, crossterm, indicatif, progress bar, colored output, shell completion, config file, environment variable, 命令行, 终端应用, 参数解析\"\nglobs: [\"**\u002FCargo.toml\"]\nuser-invocable: false\n---\n\n# CLI Domain\n\n> **Layer 3: Domain Constraints**\n\n## Domain Constraints → Design Implications\n\n| Domain Rule | Design Constraint | Rust Implication |\n|-------------|-------------------|------------------|\n| User ergonomics | Clear help, errors | clap derive macros |\n| Config precedence | CLI > env > file | Layered config loading |\n| Exit codes | Non-zero on error | Proper Result handling |\n| Stdout\u002Fstderr | Data vs errors | eprintln! for errors |\n| Interruptible | Handle Ctrl+C | Signal handling |\n\n---\n\n## Critical Constraints\n\n### User Communication\n\n```\nRULE: Errors to stderr, data to stdout\nWHY: Pipeable output, scriptability\nRUST: eprintln! for errors, println! for data\n```\n\n### Configuration Priority\n\n```\nRULE: CLI args > env vars > config file > defaults\nWHY: User expectation, override capability\nRUST: Layered config with clap + figment\u002Fconfig\n```\n\n### Exit Codes\n\n```\nRULE: Return non-zero on any error\nWHY: Script integration, automation\nRUST: main() -> Result\u003C(), Error> or explicit exit()\n```\n\n---\n\n## Trace Down ↓\n\nFrom constraints to design (Layer 2):\n\n```\n\"Need argument parsing\"\n    ↓ m05-type-driven: Derive structs for args\n    ↓ clap: #[derive(Parser)]\n\n\"Need config layering\"\n    ↓ m09-domain: Config as domain object\n    ↓ figment\u002Fconfig: Layer sources\n\n\"Need progress display\"\n    ↓ m12-lifecycle: Progress bar as RAII\n    ↓ indicatif: ProgressBar\n```\n\n---\n\n## Key Crates\n\n| Purpose | Crate |\n|---------|-------|\n| Argument parsing | clap |\n| Interactive prompts | dialoguer |\n| Progress bars | indicatif |\n| Colored output | colored |\n| Terminal UI | ratatui |\n| Terminal control | crossterm |\n| Console utilities | console |\n\n## Design Patterns\n\n| Pattern | Purpose | Implementation |\n|---------|---------|----------------|\n| Args struct | Type-safe args | `#[derive(Parser)]` |\n| Subcommands | Command hierarchy | `#[derive(Subcommand)]` |\n| Config layers | Override precedence | CLI > env > file |\n| Progress | User feedback | `ProgressBar::new(len)` |\n\n## Code Pattern: CLI Structure\n\n```rust\nuse clap::{Parser, Subcommand};\n\n#[derive(Parser)]\n#[command(name = \"myapp\", about = \"My CLI tool\")]\nstruct Cli {\n    \u002F\u002F\u002F Enable verbose output\n    #[arg(short, long)]\n    verbose: bool,\n\n    #[command(subcommand)]\n    command: Commands,\n}\n\n#[derive(Subcommand)]\nenum Commands {\n    \u002F\u002F\u002F Initialize a new project\n    Init { name: String },\n    \u002F\u002F\u002F Run the application\n    Run {\n        #[arg(short, long)]\n        port: Option\u003Cu16>,\n    },\n}\n\nfn main() -> anyhow::Result\u003C()> {\n    let cli = Cli::parse();\n    match cli.command {\n        Commands::Init { name } => init_project(&name)?,\n        Commands::Run { port } => run_server(port.unwrap_or(8080))?,\n    }\n    Ok(())\n}\n```\n\n---\n\n## Common Mistakes\n\n| Mistake | Domain Violation | Fix |\n|---------|-----------------|-----|\n| Errors to stdout | Breaks piping | eprintln! |\n| No help text | Poor UX | #[arg(help = \"...\")] |\n| Panic on error | Bad exit code | Result + proper handling |\n| No progress for long ops | User uncertainty | indicatif |\n\n---\n\n## Trace to Layer 1\n\n| Constraint | Layer 2 Pattern | Layer 1 Implementation |\n|------------|-----------------|------------------------|\n| Type-safe args | Derive macros | clap Parser |\n| Error handling | Result propagation | anyhow + exit codes |\n| User feedback | Progress RAII | indicatif ProgressBar |\n| Config precedence | Builder pattern | Layered sources |\n\n---\n\n## Related Skills\n\n| When | See |\n|------|-----|\n| Error handling | m06-error-handling |\n| Type-driven args | m05-type-driven |\n| Progress lifecycle | m12-lifecycle |\n| Async CLI | m07-concurrency |\n","# CLI Domain\n\n> **Layer 3: Domain Constraints**\n\n## Domain Constraints → Design Implications\n\n| Domain Rule | Design Constraint | Rust Implication |\n|-------------|-------------------|------------------|\n| User ergonomics | Clear help, errors | clap derive macros |\n| Config precedence | CLI > env > file | Layered config loading |\n| Exit codes | Non-zero on error | Proper Result handling |\n| Stdout\u002Fstderr | Data vs errors | eprintln! for errors |\n| Interruptible | Handle Ctrl+C | Signal handling |\n\n---\n\n## Critical Constraints\n\n### User Communication\n\n```\nRULE: Errors to stderr, data to stdout\nWHY: Pipeable output, scriptability\nRUST: eprintln! for errors, println! for data\n```\n\n### Configuration Priority\n\n```\nRULE: CLI args > env vars > config file > defaults\nWHY: User expectation, override capability\nRUST: Layered config with clap + figment\u002Fconfig\n```\n\n### Exit Codes\n\n```\nRULE: Return non-zero on any error\nWHY: Script integration, automation\nRUST: main() -> Result\u003C(), Error> or explicit exit()\n```\n\n---\n\n## Trace Down ↓\n\nFrom constraints to design (Layer 2):\n\n```\n\"Need argument parsing\"\n    ↓ m05-type-driven: Derive structs for args\n    ↓ clap: #[derive(Parser)]\n\n\"Need config layering\"\n    ↓ m09-domain: Config as domain object\n    ↓ figment\u002Fconfig: Layer sources\n\n\"Need progress display\"\n    ↓ m12-lifecycle: Progress bar as RAII\n    ↓ indicatif: ProgressBar\n```\n\n---\n\n## Key Crates\n\n| Purpose | Crate |\n|---------|-------|\n| Argument parsing | clap |\n| Interactive prompts | dialoguer |\n| Progress bars | indicatif |\n| Colored output | colored |\n| Terminal UI | ratatui |\n| Terminal control | crossterm |\n| Console utilities | console |\n\n## Design Patterns\n\n| Pattern | Purpose | Implementation |\n|---------|---------|----------------|\n| Args struct | Type-safe args | `#[derive(Parser)]` |\n| Subcommands | Command hierarchy | `#[derive(Subcommand)]` |\n| Config layers | Override precedence | CLI > env > file |\n| Progress | User feedback | `ProgressBar::new(len)` |\n\n## Code Pattern: CLI Structure\n\n```rust\nuse clap::{Parser, Subcommand};\n\n#[derive(Parser)]\n#[command(name = \"myapp\", about = \"My CLI tool\")]\nstruct Cli {\n    \u002F\u002F\u002F Enable verbose output\n    #[arg(short, long)]\n    verbose: bool,\n\n    #[command(subcommand)]\n    command: Commands,\n}\n\n#[derive(Subcommand)]\nenum Commands {\n    \u002F\u002F\u002F Initialize a new project\n    Init { name: String },\n    \u002F\u002F\u002F Run the application\n    Run {\n        #[arg(short, long)]\n        port: Option\u003Cu16>,\n    },\n}\n\nfn main() -> anyhow::Result\u003C()> {\n    let cli = Cli::parse();\n    match cli.command {\n        Commands::Init { name } => init_project(&name)?,\n        Commands::Run { port } => run_server(port.unwrap_or(8080))?,\n    }\n    Ok(())\n}\n```\n\n---\n\n## Common Mistakes\n\n| Mistake | Domain Violation | Fix |\n|---------|-----------------|-----|\n| Errors to stdout | Breaks piping | eprintln! |\n| No help text | Poor UX | #[arg(help = \"...\")] |\n| Panic on error | Bad exit code | Result + proper handling |\n| No progress for long ops | User uncertainty | indicatif |\n\n---\n\n## Trace to Layer 1\n\n| Constraint | Layer 2 Pattern | Layer 1 Implementation |\n|------------|-----------------|------------------------|\n| Type-safe args | Derive macros | clap Parser |\n| Error handling | Result propagation | anyhow + exit codes |\n| User feedback | Progress RAII | indicatif ProgressBar |\n| Config precedence | Builder pattern | Layered sources |\n\n---\n\n## Related Skills\n\n| When | See |\n|------|-----|\n| Error handling | m06-error-handling |\n| Type-driven args | m05-type-driven |\n| Progress lifecycle | m12-lifecycle |\n| Async CLI | m07-concurrency |\n",{"name":5,"globs":44,"description":7,"user-invocable":40},[45],"**\u002FCargo.toml","main","6c13f6f4ac5a3bc1e6b78cd2bb1704f122c4a73e","archive\u002Fupstream\u002Fchasebuild-agent-skills\u002Frust\u002Fskills\u002Fdomain-cli",0,"https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit","https:\u002F\u002Fgithub.com\u002F0xharryriddle","https:\u002F\u002Fharryriddle.vercel.app","2026-04-11 11:49:51",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add 0xharryriddle\u002Fcodex-field-kit --skill domain-cli",{"tool":60,"command":61},"bunx","bunx skills add 0xharryriddle\u002Fcodex-field-kit --skill domain-cli",{"tool":63,"command":64},"pnpm","pnpm dlx skills add 0xharryriddle\u002Fcodex-field-kit --skill domain-cli","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Farchive\u002Fupstream\u002Fchasebuild-agent-skills\u002Frust\u002Fskills\u002Fdomain-cli\u002FSKILL.md",true,[],[69,101,120,130,155,182],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":80,"publishedAt":39},"01M6H7ZKE6MR33HC84QZ1TA6MV","vercel-react-best-practices","React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React\u002FNext.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills\u002Fvercel-react-best-practices\u002FSKILL.md",[75],{"categoryNo":76,"categoryName":77,"taxonomyType":78,"taxonomyTypeDesc":79},"01JBSEEDCAT000000000000009","前端开发","SCENARIO","使用场景",[81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100],"react best practices","react","vercel react best practices","best practices","vercel","tasks","data fetching","triggers","pages","next","performance optimization","refactoring","Next.js","Optimization","code","guidelines","react components","components","performance","writing",{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":39},"01M6H7ZGC2WK8SEKYHWDNTMDA9","swarm-planner","[EXPLICIT INVOCATION ONLY] Creates dependency-aware implementation plans optimized for parallel multi-agent execution.","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills\u002Fswarm-planner\u002FSKILL.md",[],[108,109,110,111,112,113,114,115,116,117,118,119],"swarm","swarm planner","planner","parallel","multi-agent","only","execution","plans","dependency","for","multi","implementation",{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":39},"01M6H7ZD93853RZCYQWH1D38TM","super-swarm-spark","Only to be triggered by explicit super-swarm-spark commands.","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills\u002Fsuper-swarm-spark\u002FSKILL.md",[],[127,108,128,113,129],"super swarm spark","spark","commands",{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":134,"categories":135,"keywords":136,"publishedAt":39},"01M6H7Z987QBY49JCCPT953EAZ","role-creator","Create and install Codex custom agent roles in ~\u002F.codex\u002Fconfig.toml, generate role config files, enforce supported keys, and guide users through required role inputs (model, reasoning effort, developer_instructions).","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills\u002Frole-creator\u002FSKILL.md",[],[137,138,139,140,141,142,30,143,144,145,146,147,148,149,150,151,152,153,154],"role","creator","role creator","keys","users","roles","enforce","install","guide","instructions","model","developer","reasoning","generate","create","config","codex","files",{"skillNo":156,"name":157,"nameZh":6,"description":158,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":159,"categories":160,"keywords":164,"publishedAt":39},"01M6H7Z5TRPMDQ7YSZQXPN1G60","read-github","Read and search GitHub repository documentation via gitmcp.io MCP service.\n\n**WHEN TO USE:**\n- User provides a GitHub URL\n- User mentions a specific repo in owner\u002Frepo format\n- User asks \"what does this repo do?\", \"read the docs for X repo\", or similar\n- User wants to search code or docs within a repo","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills\u002Fread-github\u002FSKILL.md",[161],{"categoryNo":162,"categoryName":163,"taxonomyType":78,"taxonomyTypeDesc":79},"01JBSEEDCAT000000000000023","Skill与智能体开发",[165,166,167,95,168,169,170,171,117,172,173,174,175,176,177,22,178,179,180,181],"github","read github","read","documentation","docs","MCP","search","when to use","URL","via","io","service","do","user","repo","format","repository",{"skillNo":183,"name":110,"nameZh":6,"description":184,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":185,"categories":186,"keywords":187,"publishedAt":39},"01M6H7Z215CTKYJ4Y1X6EQWN6M","Create comprehensive, phased implementation plans with sprints and atomic tasks. Use when user says: \"make a plan\", \"create a plan\", \"plan this out\", \"plan the implementation\", \"help me plan\", \"design a plan\", \"draft a plan\", \"write a plan\", \"outline the steps\", \"break this down into tasks\", \"what's the plan for\", or any similar planning request. Also triggers on explicit \"\u002Fplanner\" or \"\u002Fplan\" commands.","https:\u002F\u002Fgithub.com\u002F0xharryriddle\u002Fcodex-field-kit\u002Fblob\u002Fmain\u002Fskills\u002Fplanner\u002FSKILL.md",[],[110,188,117,189,190,191,88,115,129,192,193,22,194,195,196,197,198,151,86,199],"outline","atomic","with","sprints","draft","me","write","phased implementation","plan","help","planning","design"]