[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F1QSWV3SFV959ET9E6YAH8":3,"skill-same:01M7F1QSWV3SFV959ET9E6YAH8":53},{"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":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7F1QSWV3SFV959ET9E6YAH8","shellcheck-configuration",null,"Configure and run ShellCheck - a project .shellcheckrc, inline directives, severity and output formats, pre-commit and CI wiring that actually fails on findings. Use when setting up shell linting for a repo, fixing or suppressing ShellCheck warnings, or checking scripts for portability.","shotcowboystyle\u002Fag-skills","shotcowboystyle","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F62471?v=4","01M7EZTCFCZJ6K3MYW8BPM4X6R","Curtis Blanton","01M7EZTCG1S5M04J90A931X9BX",0,"MIT","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fshell-scripting\u002Fskills\u002Fshellcheck-configuration\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: shellcheck-configuration\ndescription: Configure and run ShellCheck - a project .shellcheckrc, inline directives, severity and output formats, pre-commit and CI wiring that actually fails on findings. Use when setting up shell linting for a repo, fixing or suppressing ShellCheck warnings, or checking scripts for portability.\nlast_verified: 2026-10-27\n---\n\n# ShellCheck Configuration\n\n## When to Use This Skill\n\n- Adding ShellCheck to a repository, pre-commit hook or CI job\n- Deciding whether to fix or suppress a warning\n- Checking that a `#!\u002Fbin\u002Fsh` script avoids Bash-only syntax\n\n## Project `.shellcheckrc`\n\nShellCheck looks for `.shellcheckrc` (or `shellcheckrc`) in the script's directory and each\nparent directory, then falls back to `~\u002F.shellcheckrc`. Put one at the repository root:\n\n```ini\n# Follow `source` statements, resolving paths relative to each script.\nexternal-sources=true\nsource-path=SCRIPTDIR\n\n# Optional checks worth having (list them all with: shellcheck --list-optional).\nenable=check-unassigned-uppercase\nenable=deprecate-which\nenable=avoid-nullary-conditions\n\n# SC1091: sourced file is generated at deploy time and not in the repo.\ndisable=SC1091\n```\n\n- Write each comment on its own line, and give every `disable=` a reason.\n- **Do not set `shell=` in a repo that mixes `sh` and `bash` scripts.** It overrides every\n  shebang, so `#!\u002Fbin\u002Fsh` scripts stop getting POSIX warnings. Let shebangs decide, and add\n  `# shellcheck shell=bash` to files that have none (sourced libraries).\n- `enable=all` turns on every optional check. Use it for new code, then disable what does\n  not fit, with reasons.\n\n## Running It\n\n```bash\nshellcheck -x script.sh                  # -x: follow sourced files\nshellcheck -S warning scripts\u002F*.sh       # ignore info and style findings\nshellcheck -f gcc script.sh              # file:line:col: level: message [SCxxxx]\nshellcheck -f json1 script.sh            # machine-readable\nshellcheck -f diff script.sh | git apply # apply the fixes ShellCheck can make itself\nexport SHELLCHECK_OPTS='-S warning -x'   # default flags for every run\n```\n\nExit status is 0 when there are no findings at or above the chosen severity, 1 otherwise.\n\n## Inline Directives\n\nA directive applies to the next command. Placed right after the shebang, before any\ncommand, it applies to the whole file.\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\n# shellcheck disable=SC2034 # COLORS is read by scripts that source this file\nCOLORS=(red green)\n\n# shellcheck source=lib\u002Fcommon.sh\n. \"$(dirname -- \"$0\")\u002Flib\u002Fcommon.sh\"\n```\n\n## Findings You Will See Most\n\n| Code | Meaning | Usual fix |\n|---|---|---|\n| SC2086 | unquoted variable is split and globbed | `\"$var\"` |\n| SC2046 | unquoted `$(…)` is split and globbed | quote it, or read into an array with `mapfile` |\n| SC2155 | `local x=$(cmd)` masks `cmd`'s exit status | `local x; x=$(cmd)` |\n| SC2181 | testing `$?` after the fact | `if cmd; then` |\n| SC2015 | `a && b \\|\\| c` runs `c` when `b` fails | `if a; then b; else c; fi` |\n| SC2016 | `$var` inside single quotes does not expand | double quotes, or suppress if literal is intended |\n| SC2034 | variable assigned but never used | remove it, or `export` \u002F suppress if used externally |\n| SC2154 | variable used but never assigned | assign it, or `: \"${VAR:?}\"` for required env vars |\n| SC2115 | `rm -rf \"$dir\u002F\"` can expand to `\u002F` | `\"${dir:?}\u002F\"` |\n| SC2206 | unquoted expansion in an array assignment | `read -ra arr \u003C\u003C\u003C\"$s\"` or `mapfile -t arr` |\n| SC1091 | sourced file not found | pass `-x`, set `source-path`, or add `# shellcheck source=` |\n| SC3010, SC3043, SC3030 | `[[ ]]`, `local` or arrays in a POSIX `sh` script | `[ ]`, function-prefixed names, `set --` |\n\nEvery code has a wiki page: `https:\u002F\u002Fwww.shellcheck.net\u002Fwiki\u002FSC2086`.\n\n## CI and Pre-commit\n\nFail the job when any file has findings. `find -exec shellcheck {} \\;` exits 0 even when\nShellCheck fails; use `xargs` or `-exec … +` instead.\n\n```yaml\n# GitHub Actions step\n- name: ShellCheck\n  run: git ls-files -z '*.sh' '*.bash' | xargs -0 --no-run-if-empty shellcheck -x\n```\n\n```yaml\n# .pre-commit-config.yaml\nrepos:\n  - repo: https:\u002F\u002Fgithub.com\u002Fkoalaman\u002Fshellcheck-precommit\n    rev: v0.11.0\n    hooks:\n      - id: shellcheck\n        args: [-x]\n```\n\nScripts without a `.sh` extension are missed by the globs above. `shfmt -f .` lists every\nfile with a shell shebang.\n\n## More\n\n`references\u002Fdetails.md` covers installation, output formats, parallel runs and GitLab CI.\n","# ShellCheck Configuration\n\n## When to Use This Skill\n\n- Adding ShellCheck to a repository, pre-commit hook or CI job\n- Deciding whether to fix or suppress a warning\n- Checking that a `#!\u002Fbin\u002Fsh` script avoids Bash-only syntax\n\n## Project `.shellcheckrc`\n\nShellCheck looks for `.shellcheckrc` (or `shellcheckrc`) in the script's directory and each\nparent directory, then falls back to `~\u002F.shellcheckrc`. Put one at the repository root:\n\n```ini\n# Follow `source` statements, resolving paths relative to each script.\nexternal-sources=true\nsource-path=SCRIPTDIR\n\n# Optional checks worth having (list them all with: shellcheck --list-optional).\nenable=check-unassigned-uppercase\nenable=deprecate-which\nenable=avoid-nullary-conditions\n\n# SC1091: sourced file is generated at deploy time and not in the repo.\ndisable=SC1091\n```\n\n- Write each comment on its own line, and give every `disable=` a reason.\n- **Do not set `shell=` in a repo that mixes `sh` and `bash` scripts.** It overrides every\n  shebang, so `#!\u002Fbin\u002Fsh` scripts stop getting POSIX warnings. Let shebangs decide, and add\n  `# shellcheck shell=bash` to files that have none (sourced libraries).\n- `enable=all` turns on every optional check. Use it for new code, then disable what does\n  not fit, with reasons.\n\n## Running It\n\n```bash\nshellcheck -x script.sh                  # -x: follow sourced files\nshellcheck -S warning scripts\u002F*.sh       # ignore info and style findings\nshellcheck -f gcc script.sh              # file:line:col: level: message [SCxxxx]\nshellcheck -f json1 script.sh            # machine-readable\nshellcheck -f diff script.sh | git apply # apply the fixes ShellCheck can make itself\nexport SHELLCHECK_OPTS='-S warning -x'   # default flags for every run\n```\n\nExit status is 0 when there are no findings at or above the chosen severity, 1 otherwise.\n\n## Inline Directives\n\nA directive applies to the next command. Placed right after the shebang, before any\ncommand, it applies to the whole file.\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\n# shellcheck disable=SC2034 # COLORS is read by scripts that source this file\nCOLORS=(red green)\n\n# shellcheck source=lib\u002Fcommon.sh\n. \"$(dirname -- \"$0\")\u002Flib\u002Fcommon.sh\"\n```\n\n## Findings You Will See Most\n\n| Code | Meaning | Usual fix |\n|---|---|---|\n| SC2086 | unquoted variable is split and globbed | `\"$var\"` |\n| SC2046 | unquoted `$(…)` is split and globbed | quote it, or read into an array with `mapfile` |\n| SC2155 | `local x=$(cmd)` masks `cmd`'s exit status | `local x; x=$(cmd)` |\n| SC2181 | testing `$?` after the fact | `if cmd; then` |\n| SC2015 | `a && b \\|\\| c` runs `c` when `b` fails | `if a; then b; else c; fi` |\n| SC2016 | `$var` inside single quotes does not expand | double quotes, or suppress if literal is intended |\n| SC2034 | variable assigned but never used | remove it, or `export` \u002F suppress if used externally |\n| SC2154 | variable used but never assigned | assign it, or `: \"${VAR:?}\"` for required env vars |\n| SC2115 | `rm -rf \"$dir\u002F\"` can expand to `\u002F` | `\"${dir:?}\u002F\"` |\n| SC2206 | unquoted expansion in an array assignment | `read -ra arr \u003C\u003C\u003C\"$s\"` or `mapfile -t arr` |\n| SC1091 | sourced file not found | pass `-x`, set `source-path`, or add `# shellcheck source=` |\n| SC3010, SC3043, SC3030 | `[[ ]]`, `local` or arrays in a POSIX `sh` script | `[ ]`, function-prefixed names, `set --` |\n\nEvery code has a wiki page: `https:\u002F\u002Fwww.shellcheck.net\u002Fwiki\u002FSC2086`.\n\n## CI and Pre-commit\n\nFail the job when any file has findings. `find -exec shellcheck {} \\;` exits 0 even when\nShellCheck fails; use `xargs` or `-exec … +` instead.\n\n```yaml\n# GitHub Actions step\n- name: ShellCheck\n  run: git ls-files -z '*.sh' '*.bash' | xargs -0 --no-run-if-empty shellcheck -x\n```\n\n```yaml\n# .pre-commit-config.yaml\nrepos:\n  - repo: https:\u002F\u002Fgithub.com\u002Fkoalaman\u002Fshellcheck-precommit\n    rev: v0.11.0\n    hooks:\n      - id: shellcheck\n        args: [-x]\n```\n\nScripts without a `.sh` extension are missed by the globs above. `shfmt -f .` lists every\nfile with a shell shebang.\n\n## More\n\n`references\u002Fdetails.md` covers installation, output formats, parallel runs and GitLab CI.\n",{"name":5,"description":7,"last_verified":24},1793059200000,"main","f846d9a97082ff30d613b55a085cef425d822473","plugins\u002Fshell-scripting\u002Fskills\u002Fshellcheck-configuration","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle","https:\u002F\u002Fshotcowboystyle.github.io","Building smarter with AI, automation & modern tools. Exploring how far one person can go without a big team using today’s AI.","2026-11-10 04:58:27",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add shotcowboystyle\u002Fag-skills --skill shellcheck-configuration",{"tool":39,"command":40},"bunx","bunx skills add shotcowboystyle\u002Fag-skills --skill shellcheck-configuration",{"tool":42,"command":43},"pnpm","pnpm dlx skills add shotcowboystyle\u002Fag-skills --skill shellcheck-configuration","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fshell-scripting\u002Fskills\u002Fshellcheck-configuration\u002FSKILL.md",true,[47],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fdetails.md","REFERENCE","参考文档",5186,"https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fshell-scripting\u002Fskills\u002Fshellcheck-configuration\u002Freferences\u002Fdetails.md",[54,60,67,74,81,88],{"skillNo":55,"name":56,"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":57,"categories":58,"keywords":59,"publishedAt":19},"01M7F1YRY5S5QRJ1V0BJS130QX","no-description","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fno-description\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7F1Y9BV2FJNQJ3NB32JS5CM","good-skill","Fixture skill that satisfies every rule.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgood-skill\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M7F1XXBQ3NQRXZSS0KAGAR9V","broken-link","Links to a reference file that does not exist.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbroken-link\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7F1XBX4R46NR9W0HXQ7XCDX","Bad_Name","Name violates the kebab-case rule and does not match the directory.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbad-name\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7F1WNAF8WNEQ7S5HKT5VK0D","skill-authoring","Write, review, and validate portable agent skills in SKILL.md format. Use when creating a new skill, editing an existing one, or asked whether a skill follows the Agent Skills spec.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fskills\u002Fskill-authoring\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M7F1W30TC0XFNSF7YBRGETK2","weigh-bags","Record scale readings for each bag — empty (tare), outbound, current, final — and reconcile them against the itemised inventory to find unaccounted weight. Use when the user gives a bag weight, says how heavy something is, weighs their luggage, or asks how close to the limit they are. Appends to bags.yaml and runs scripts\u002Freconcile.py.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Ftravel-packing-assistant\u002Fskills\u002Fweigh-bags\u002FSKILL.md",[],[]]