[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77ZFMT2SF4R7R0W4QMWV5J3":3,"skill-same:01M77ZFMT2SF4R7R0W4QMWV5J3":49},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M77ZFMT2SF4R7R0W4QMWV5J3","promptargs",null,"Fill in reusable prompt templates with variable substitution using the promptargs CLI. Use when the user wants to run, list, preview or create prompt templates with {{blanks}}, iterate a prompt over many files or values, or pipe an expanded prompt to an AI CLI.","hivecommons\u002Fpromptargs","hivecommons","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F323690068?v=4","01M77ZFFFEGSNC7DGATVZ0JVW7","Hive Commons","01M77ZFFGEETH79YYRNB98MVJB",3,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fhivecommons\u002Fpromptargs\u002Fblob\u002Fmain\u002Fskills\u002Fpromptargs\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: promptargs\ndescription: Fill in reusable prompt templates with variable substitution using the promptargs CLI. Use when the user wants to run, list, preview or create prompt templates with {{blanks}}, iterate a prompt over many files or values, or pipe an expanded prompt to an AI CLI.\nlicense: Apache-2.0\ncompatibility: Requires Node.js 22+ and the promptargs CLI (npm install -g @hivecommons\u002Fpromptargs, or npx @hivecommons\u002Fpromptargs).\n---\n\n# promptargs — template arguments for AI prompts\n\nA template is a prompt with blanks: `Review {{file}} for {{focus=correctness}} issues.` promptargs fills the blanks from flags, auto-detected context, defaults, or an interactive prompt.\n\n## Install\n\n```bash\nnpm install -g @hivecommons\u002Fpromptargs\n# or run without installing\nnpx @hivecommons\u002Fpromptargs help\n```\n\n## Run a template\n\nAlways pass `--no-interactive` when running as an agent so it never waits for input:\n\n```bash\npromptargs review --file=src\u002Fmain.ts --focus=security --no-interactive\n```\n\nInline template (no file needed):\n\n```bash\npromptargs \"Explain {{concept}} to a {{audience=beginner}}\" --concept=recursion --no-interactive\n```\n\n## Discover and create templates\n\n```bash\npromptargs list          # available templates and their variables\npromptargs show review   # preview with blanks highlighted\npromptargs init          # create .prompts\u002F with starter templates\npromptargs env           # preview auto-detected variable values\n```\n\nTemplates are `.md` files in `.prompts\u002F` (project, overrides) or `~\u002F.prompts\u002F` (personal).\n\n## Template syntax\n\n- `{{name}}` — required blank\n- `{{name=default}}` — blank with a default\n- `{{! comment }}` — Mustache comment, safe to use\n\nNames may use letters, digits, `_` and `-` (`{{file-name}}`). Dotted names such as `{{repo.owner}}` are rejected with a `UsageError` — use `{{repo_owner}}` instead; the switch names `no-interactive`, `cross`, `json`, `status` and `help` are also rejected, as they are reserved for CLI switches. Likewise, the template file names `help`, `env`, `ui`, `init`, `list` and `show` are reserved for the subcommands of the same name; such a template is listed as unreachable by `promptargs list` (and `show` warns), because the subcommand always wins. A default may appear on any occurrence of a repeated blank (`{{name}} … {{name=hello}}`); if two occurrences give different defaults, the first one wins.\n\nAvoid Mustache sections (`{{#x}}`) and partials (`{{>x}}`): promptargs does not fill them.\n\n## Fill priority\n\n1. `--flag=value` (always wins)\n2. Auto-detected values: git context (`branch`, `repo`, `org`, `user`, `date`, `diff`, `pr`) and non-secret environment variables\n3. Template default\n4. Interactive prompt (skipped with `--no-interactive`)\n\nCredential-looking environment variables (tokens, secrets, passwords, keys) are never auto-filled.\n\n## Iterate over many values\n\nComma-separated values, globs, or `@file` run the template once per value, with results separated by `---`:\n\n```bash\npromptargs review --file=api.go,auth.go,db.go --no-interactive\npromptargs review --file=\"src\u002F*.go\" --no-interactive\npromptargs review --file=@list.txt --no-interactive\n```\n\nTo pass a single value that contains a comma, escape it as `\\,` (`--expected=\"returns 200\\, not 500\"`); this also applies to interactive answers and `@file` lines. To end a value with a backslash before a separator comma, double it: `\\\\,` (`--dir='C:\\out\\\\,D:\\out'` gives `C:\\out\\` and `D:\\out`).\n\nMultiple arrays are zipped 1:1 by default; add `--cross` for every combination.\n\n## Output formats\n\n- default: plain expanded text (progress goes to stderr)\n- `--json`: JSON output\n- `--status`: one status line showing which variables were filled or defaulted (never prompts; implies `--no-interactive`)\n\n## Pipe to an AI tool\n\n```bash\npromptargs review --file=src\u002Fmain.ts --no-interactive | claude -p \"do this review\"\n```\n\nOr read the expanded prompt and act on it directly in the current session.\n\n## Pitfalls\n\n- A blank with no value and no default is a usage error under `--no-interactive` (or piped stdin): the run exits 1 with `Missing value for {{name}}`. Pass `--name=value`, give it a default, or check with `promptargs show \u003Ctemplate>` or `--status`.\n- Auto-detected values and defaults are never prompted for; pass `--name=value` to override.\n","# promptargs — template arguments for AI prompts\n\nA template is a prompt with blanks: `Review {{file}} for {{focus=correctness}} issues.` promptargs fills the blanks from flags, auto-detected context, defaults, or an interactive prompt.\n\n## Install\n\n```bash\nnpm install -g @hivecommons\u002Fpromptargs\n# or run without installing\nnpx @hivecommons\u002Fpromptargs help\n```\n\n## Run a template\n\nAlways pass `--no-interactive` when running as an agent so it never waits for input:\n\n```bash\npromptargs review --file=src\u002Fmain.ts --focus=security --no-interactive\n```\n\nInline template (no file needed):\n\n```bash\npromptargs \"Explain {{concept}} to a {{audience=beginner}}\" --concept=recursion --no-interactive\n```\n\n## Discover and create templates\n\n```bash\npromptargs list          # available templates and their variables\npromptargs show review   # preview with blanks highlighted\npromptargs init          # create .prompts\u002F with starter templates\npromptargs env           # preview auto-detected variable values\n```\n\nTemplates are `.md` files in `.prompts\u002F` (project, overrides) or `~\u002F.prompts\u002F` (personal).\n\n## Template syntax\n\n- `{{name}}` — required blank\n- `{{name=default}}` — blank with a default\n- `{{! comment }}` — Mustache comment, safe to use\n\nNames may use letters, digits, `_` and `-` (`{{file-name}}`). Dotted names such as `{{repo.owner}}` are rejected with a `UsageError` — use `{{repo_owner}}` instead; the switch names `no-interactive`, `cross`, `json`, `status` and `help` are also rejected, as they are reserved for CLI switches. Likewise, the template file names `help`, `env`, `ui`, `init`, `list` and `show` are reserved for the subcommands of the same name; such a template is listed as unreachable by `promptargs list` (and `show` warns), because the subcommand always wins. A default may appear on any occurrence of a repeated blank (`{{name}} … {{name=hello}}`); if two occurrences give different defaults, the first one wins.\n\nAvoid Mustache sections (`{{#x}}`) and partials (`{{>x}}`): promptargs does not fill them.\n\n## Fill priority\n\n1. `--flag=value` (always wins)\n2. Auto-detected values: git context (`branch`, `repo`, `org`, `user`, `date`, `diff`, `pr`) and non-secret environment variables\n3. Template default\n4. Interactive prompt (skipped with `--no-interactive`)\n\nCredential-looking environment variables (tokens, secrets, passwords, keys) are never auto-filled.\n\n## Iterate over many values\n\nComma-separated values, globs, or `@file` run the template once per value, with results separated by `---`:\n\n```bash\npromptargs review --file=api.go,auth.go,db.go --no-interactive\npromptargs review --file=\"src\u002F*.go\" --no-interactive\npromptargs review --file=@list.txt --no-interactive\n```\n\nTo pass a single value that contains a comma, escape it as `\\,` (`--expected=\"returns 200\\, not 500\"`); this also applies to interactive answers and `@file` lines. To end a value with a backslash before a separator comma, double it: `\\\\,` (`--dir='C:\\out\\\\,D:\\out'` gives `C:\\out\\` and `D:\\out`).\n\nMultiple arrays are zipped 1:1 by default; add `--cross` for every combination.\n\n## Output formats\n\n- default: plain expanded text (progress goes to stderr)\n- `--json`: JSON output\n- `--status`: one status line showing which variables were filled or defaulted (never prompts; implies `--no-interactive`)\n\n## Pipe to an AI tool\n\n```bash\npromptargs review --file=src\u002Fmain.ts --no-interactive | claude -p \"do this review\"\n```\n\nOr read the expanded prompt and act on it directly in the current session.\n\n## Pitfalls\n\n- A blank with no value and no default is a usage error under `--no-interactive` (or piped stdin): the run exits 1 with `Missing value for {{name}}`. Pass `--name=value`, give it a default, or check with `promptargs show \u003Ctemplate>` or `--status`.\n- Auto-detected values and defaults are never prompted for; pass `--name=value` to override.\n",{"name":5,"license":15,"description":7,"compatibility":24},"Requires Node.js 22+ and the promptargs CLI (npm install -g @hivecommons\u002Fpromptargs, or npx @hivecommons\u002Fpromptargs).","main","b51326c3e20cb9ea832dbef71442b5750bbbcd44","skills\u002Fpromptargs",5,"https:\u002F\u002Fgithub.com\u002Fhivecommons\u002Fpromptargs","https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@hivecommons\u002Fpromptargs","https:\u002F\u002Fgithub.com\u002Fhivecommons","https:\u002F\u002Fhivecommons.dev","Umbrella community for Hive — AI-agent fleet orchestration with governed, audited agent swarms.","2026-11-13 00:44:58",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add hivecommons\u002Fpromptargs --skill promptargs",{"tool":41,"command":42},"bunx","bunx skills add hivecommons\u002Fpromptargs --skill promptargs",{"tool":44,"command":45},"pnpm","pnpm dlx skills add hivecommons\u002Fpromptargs --skill promptargs","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhivecommons\u002Fpromptargs\u002Fblob\u002Fmain\u002Fskills\u002Fpromptargs\u002FSKILL.md",true,[],[]]