[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CX1C2RVEF8ETEXV4XHSAG1":3,"skill-same:01M7CX1C2RVEF8ETEXV4XHSAG1":46},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M7CX1C2RVEF8ETEXV4XHSAG1","add-command",null,"Scaffold a new Cobra subcommand in a starterpack-go-cli project (flags, help text, unit + integration tests, registration). Use when asked to add a CLI command, subcommand, or \"a new `\u003Ctool> \u003Cverb>`\" entry point.","mtfuller\u002Fagentworks","mtfuller","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F8827772?v=4","01M7CX14Y5SM1380QNFB135MSH","Thomas Fuller","01M7CX14YTMWAKKZ743XPPP1RJ",0,"MIT","https:\u002F\u002Fgithub.com\u002Fmtfuller\u002Fagentworks\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fadd-command\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: add-command\ndescription: >\n  Scaffold a new Cobra subcommand in a starterpack-go-cli project (flags, help text,\n  unit + integration tests, registration). Use when asked to add a CLI command,\n  subcommand, or \"a new `\u003Ctool> \u003Cverb>`\" entry point.\n---\n\n# Add a Cobra command\n\n## Outcome\n\n`.\u002F\u003Cbinary> \u003Cname> --help` shows the new command; it's wired into `rootCmd` and\ncovered by an integration test.\n\n## Contract\n\n- One file per command: `cmd\u002F\u003Cname>.go`, package `cmd`.\n- `var \u003Cname>Cmd = &cobra.Command{...}` with `Use`, `Short`, and `Long` all set —\n  `Short` is a one-line summary (shown in `--help` listings), `Long` can be multi-line.\n- Prefer `RunE func(cmd *cobra.Command, args []string) error` over `Run` — return\n  wrapped errors (`fmt.Errorf(\"...: %w\", err)`) instead of calling `os.Exit`; Cobra's\n  top-level `Execute()` in `cmd\u002Froot.go` already formats the error via `color.Error`\n  and exits 1.\n- Validate positional args with a Cobra `Args` validator (`cobra.ExactArgs(1)`,\n  `cobra.MaximumNArgs(1)`, `cobra.RangeArgs(min, max)`, ...) rather than hand-rolled\n  `len(args)` checks.\n- Command-specific flags: `\u003Cname>Cmd.Flags().\u003CType>VarP(&var, \"flag\", \"f\", default,\n  \"help text\")` inside `init()`. Flags shared across every command belong on\n  `rootCmd.PersistentFlags()` in `cmd\u002Froot.go`, not duplicated per command.\n- User-facing output via `internal\u002Fcolor` (`color.Success`\u002F`Error`\u002F`Warning`\u002F`Info`),\n  not raw `fmt.Println`. Debug\u002Ftrace detail via `internal\u002Flogger`\n  (`logger.Debug`\u002F`Info`\u002F`Warn`\u002F`Error`), which already respects the global\n  `--verbose`\u002F`--log-level` flags.\n- Business logic that doesn't need Cobra\u002Fflags\u002Fterminal output goes in `pkg\u002F` (or\n  `internal\u002F` if it's CLI-specific plumbing, not a reusable library) and gets called\n  from `RunE` — keep the command file itself thin.\n- Register with `rootCmd.AddCommand(\u003Cname>Cmd)` inside the same file's `init()`.\n\n## Steps\n\n1. Create `cmd\u002F\u003Cname>.go` following the pattern above. `cmd\u002Fgreet.go` is the simplest\n   worked example (one required arg, one flag, calls into `pkg\u002Fexample`); `cmd\u002Fcalc.go`\n   shows an enum-style flag (`--operation`) with validation; `cmd\u002Fprocess.go` shows the\n   spinner pattern for a long-running operation.\n2. If the command needs new business logic, add it to `pkg\u002F\u003Cname>\u002F` (reusable outside\n   this CLI) or `internal\u002F\u003Cname>\u002F` (CLI-specific) — see the `add-package` skill — rather\n   than inlining it in `cmd\u002F\u003Cname>.go`.\n3. Add a unit test only if the command file itself has non-trivial logic beyond\n   wiring (flag parsing helpers, output formatting). Most command-level testing\n   belongs in the integration suite instead.\n4. Add integration test cases to `tests\u002Fintegration_test.go`: run the built\u002F`go run`\n   CLI via `os\u002Fexec`, capture stdout\u002Fstderr, assert exit code and expected output\n   substrings — for both the success path and at least one failure path (missing\n   arg, invalid flag value). Follow the existing table-driven style in that file.\n5. `gofmt -l cmd\u002F\u003Cname>.go` and `task test` (or `go test .\u002F...`) before calling it done.\n6. Update `README.md`'s command list and \"Available Commands\" examples if this is a\n   user-visible command (skip for internal\u002Fhidden commands).\n","# Add a Cobra command\n\n## Outcome\n\n`.\u002F\u003Cbinary> \u003Cname> --help` shows the new command; it's wired into `rootCmd` and\ncovered by an integration test.\n\n## Contract\n\n- One file per command: `cmd\u002F\u003Cname>.go`, package `cmd`.\n- `var \u003Cname>Cmd = &cobra.Command{...}` with `Use`, `Short`, and `Long` all set —\n  `Short` is a one-line summary (shown in `--help` listings), `Long` can be multi-line.\n- Prefer `RunE func(cmd *cobra.Command, args []string) error` over `Run` — return\n  wrapped errors (`fmt.Errorf(\"...: %w\", err)`) instead of calling `os.Exit`; Cobra's\n  top-level `Execute()` in `cmd\u002Froot.go` already formats the error via `color.Error`\n  and exits 1.\n- Validate positional args with a Cobra `Args` validator (`cobra.ExactArgs(1)`,\n  `cobra.MaximumNArgs(1)`, `cobra.RangeArgs(min, max)`, ...) rather than hand-rolled\n  `len(args)` checks.\n- Command-specific flags: `\u003Cname>Cmd.Flags().\u003CType>VarP(&var, \"flag\", \"f\", default,\n  \"help text\")` inside `init()`. Flags shared across every command belong on\n  `rootCmd.PersistentFlags()` in `cmd\u002Froot.go`, not duplicated per command.\n- User-facing output via `internal\u002Fcolor` (`color.Success`\u002F`Error`\u002F`Warning`\u002F`Info`),\n  not raw `fmt.Println`. Debug\u002Ftrace detail via `internal\u002Flogger`\n  (`logger.Debug`\u002F`Info`\u002F`Warn`\u002F`Error`), which already respects the global\n  `--verbose`\u002F`--log-level` flags.\n- Business logic that doesn't need Cobra\u002Fflags\u002Fterminal output goes in `pkg\u002F` (or\n  `internal\u002F` if it's CLI-specific plumbing, not a reusable library) and gets called\n  from `RunE` — keep the command file itself thin.\n- Register with `rootCmd.AddCommand(\u003Cname>Cmd)` inside the same file's `init()`.\n\n## Steps\n\n1. Create `cmd\u002F\u003Cname>.go` following the pattern above. `cmd\u002Fgreet.go` is the simplest\n   worked example (one required arg, one flag, calls into `pkg\u002Fexample`); `cmd\u002Fcalc.go`\n   shows an enum-style flag (`--operation`) with validation; `cmd\u002Fprocess.go` shows the\n   spinner pattern for a long-running operation.\n2. If the command needs new business logic, add it to `pkg\u002F\u003Cname>\u002F` (reusable outside\n   this CLI) or `internal\u002F\u003Cname>\u002F` (CLI-specific) — see the `add-package` skill — rather\n   than inlining it in `cmd\u002F\u003Cname>.go`.\n3. Add a unit test only if the command file itself has non-trivial logic beyond\n   wiring (flag parsing helpers, output formatting). Most command-level testing\n   belongs in the integration suite instead.\n4. Add integration test cases to `tests\u002Fintegration_test.go`: run the built\u002F`go run`\n   CLI via `os\u002Fexec`, capture stdout\u002Fstderr, assert exit code and expected output\n   substrings — for both the success path and at least one failure path (missing\n   arg, invalid flag value). Follow the existing table-driven style in that file.\n5. `gofmt -l cmd\u002F\u003Cname>.go` and `task test` (or `go test .\u002F...`) before calling it done.\n6. Update `README.md`'s command list and \"Available Commands\" examples if this is a\n   user-visible command (skip for internal\u002Fhidden commands).\n",{"name":5,"description":7},"main","03ffb239e6bb33e8070459c735e3dcdf9c4ed7a3",".claude\u002Fskills\u002Fadd-command","https:\u002F\u002Fgithub.com\u002Fmtfuller\u002Fagentworks","https:\u002F\u002Fgithub.com\u002Fmtfuller","https:\u002F\u002Fthomasfuller.codes","Software Developer • Interested in FinTech, Cloud, and Cryptography • Mandolin Novice • Follower of Christ","2026-10-07 02:40:35",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add mtfuller\u002Fagentworks --skill add-command",{"tool":38,"command":39},"bunx","bunx skills add mtfuller\u002Fagentworks --skill add-command",{"tool":41,"command":42},"pnpm","pnpm dlx skills add mtfuller\u002Fagentworks --skill add-command","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmtfuller\u002Fagentworks\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fadd-command\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7CX3086H3TA8RE2GBAJABVS","agentworks-evals","How to write and run behavior-eval cases for a skill or agent in this AgentWorks project: the evals\u002F*.yaml format, text, tool-call, and activation assertions, trigger cases, rubrics and a judge, runner protocols (text and json), repeated runs, and agentworks eval. Use when asked to test, evaluate, or regression-check how a skill or agent responds, or whether its description makes a model choose it.","https:\u002F\u002Fgithub.com\u002Fmtfuller\u002Fagentworks\u002Fblob\u002Fmain\u002Finternal\u002Fproject\u002Fembedded\u002Fskills\u002Fagentworks-evals\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M7CX2VJVECW2YVR25G6ZNK71","agentworks-cli","How to scaffold, validate, build, test, run, export, import, and publish this project's agents, skills, MCP servers, and hooks with the agentworks CLI. Use whenever asked to add, change, check, ship, or import an artifact in this project.","https:\u002F\u002Fgithub.com\u002Fmtfuller\u002Fagentworks\u002Fblob\u002Fmain\u002Finternal\u002Fproject\u002Fembedded\u002Fskills\u002Fagentworks-cli\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M7CX2Q2N4MXXYDGZGPJXDS2F","agentworks-author-skill","How to write or edit a skill in this AgentWorks project: skill.md frontmatter, the description that decides when it triggers, entrypoint\u002Fscripts\u002Ftests layout, and build\u002Ftest commands. Use when creating or changing anything under skills\u002F.","https:\u002F\u002Fgithub.com\u002Fmtfuller\u002Fagentworks\u002Fblob\u002Fmain\u002Finternal\u002Fproject\u002Fembedded\u002Fskills\u002Fagentworks-author-skill\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7CX2JEP9SFCS2XFYD3596NN","agentworks-author-mcp","How to write or edit an MCP server in this AgentWorks project: mcp.md frontmatter, local (stdio) versus remote (http\u002Fsse) servers, command, args, env and auth, source and tests layout, and the build, test, doctor, and run loop. Use when creating or changing anything under mcp\u002F.","https:\u002F\u002Fgithub.com\u002Fmtfuller\u002Fagentworks\u002Fblob\u002Fmain\u002Finternal\u002Fproject\u002Fembedded\u002Fskills\u002Fagentworks-author-mcp\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7CX2EVMY1M34F4RXAR03639","agentworks-author-hook","How to write or edit a lifecycle hook in this AgentWorks project: hook.md frontmatter, choosing vendor-specific event names, matchers and timeouts, the command it runs, and safety review. Use when creating or changing anything under hooks\u002F.","https:\u002F\u002Fgithub.com\u002Fmtfuller\u002Fagentworks\u002Fblob\u002Fmain\u002Finternal\u002Fproject\u002Fembedded\u002Fskills\u002Fagentworks-author-hook\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7CX2C1E06Y85KAYX6X7HD1Z","agentworks-author-agent","How to write or edit an agent (subagent) in this AgentWorks project: agent.md frontmatter, portable tools and model settings, writing the instructions, and resources. Use when creating or changing anything under agents\u002F.","https:\u002F\u002Fgithub.com\u002Fmtfuller\u002Fagentworks\u002Fblob\u002Fmain\u002Finternal\u002Fproject\u002Fembedded\u002Fskills\u002Fagentworks-author-agent\u002FSKILL.md",[],[]]