[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6C6J5F5GVKSPQRFXR3BEQ7W":3,"skill-same:01M6C6J5F5GVKSPQRFXR3BEQ7W":94},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":57,"linkOnly":58,"markdownContent":59,"markdownBody":60,"frontMatter":61,"refName":66,"commitSha":67,"skillDirectory":68,"forksCount":69,"repositoryHtmlUrl":70,"repositoryHomepageUrl":17,"ownerHtmlUrl":71,"ownerBlogUrl":17,"ownerDescription":72,"updatedAt":73,"install":74,"resources":87},"01M6C6J5F5GVKSPQRFXR3BEQ7W","shell-expert","Shell 脚本编写与自动化","Shell scripting: bash, zsh, POSIX, CLI tools, cross-platform automation. Use when writing shell scripts, pipes, command-line automation, or portable shell code.","Shell 脚本编程：bash、zsh、POSIX、CLI 工具、跨平台自动化。适用于编写 shell 脚本、管道、命令行自动化或可移植的 shell 代码。","laurigates\u002Fclaude-plugins","laurigates","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F13014001?v=4","01M6C59YHWS9C7KMXKSRX1YXNP","Lauri Gates","01M6C59YP2APG9YAM4DWYQYGFJ",60,"MIT",null,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Ftools-plugin\u002Fskills\u002Fshell-expert\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56],"shell expert","shell","expert","shell scripting","posix","when","false","2025","command-line","platform","sep","code","Tools","Bash","automation","use","writing","grep","edit","write","zsh","read","command","scripting","shell scripts","cli","2026-11-10 10:12:30",false,"---\ncreated: 2025-12-16\nmodified: 2026-11-12\nreviewed: 2026-04-25\nname: shell-expert\ndescription: \"Shell scripting: bash, zsh, POSIX, CLI tools, cross-platform automation. Use when writing shell scripts, pipes, command-line automation, or portable shell code.\"\nuser-invocable: false\nallowed-tools: Bash, Grep, Glob, Read, Write, Edit, TodoWrite\n---\n\n# Shell Expert\n\nExpert knowledge for shell scripting, command-line tools, and automation with focus on robust, portable, and efficient solutions.\n\n## When to Use This Skill\n\n| Use this skill when... | Use justfile-expert instead when... |\n|---|---|\n| Authoring portable bash, zsh, or POSIX shell scripts | Wrapping commands as named recipes for a project task runner |\n| Composing pipelines and one-off automation logic | Standardising entry points across a team or repo |\n| Hardening scripts with `set -euo pipefail`, traps, and quoting | Defining cross-platform commands without writing shell glue |\n\n| Use this skill when... | Use jq-json-processing instead when... |\n|---|---|\n| Glue logic that wires together CLI tools | The work is purely transforming JSON input |\n| Writing reusable functions, argument parsing, or signal handling | A single jq expression can replace a chain of shell commands |\n\n**Command-Line Tool Mastery**\n- Expert knowledge of modern CLI tools (jq, yq, fd, rg, etc.)\n- JSON\u002FYAML processing and transformation\n- File searching and text manipulation\n- System automation and orchestration\n\n**Shell Scripting Excellence**\n- POSIX-compliant shell scripting for maximum portability\n- Bash-specific features and best practices\n- Error handling and defensive programming\n- Cross-platform compatibility (Linux, macOS, BSD)\n\n**Automation & Integration**\n- CI\u002FCD pipeline scripting\n- System administration automation\n- Tool integration and workflow automation\n- Performance optimization for shell operations\n\n## Key Capabilities\n\n**JSON\u002FYAML Processing**\n- **jq**: Complex JSON queries, transformations, and filtering\n- **yq**: YAML manipulation, in-place editing, format conversion\n- **jd**: JSON diffing and patching for configuration management\n- **Data pipeline construction**: Chaining tools for complex transformations\n\n**File Operations & Search**\n- **fd**: Fast, user-friendly file finding with intuitive syntax\n- **rg (ripgrep)**: Lightning-fast recursive grep with gitignore support\n- **lsd**: Modern ls replacement with visual enhancements\n- **find\u002Fgrep alternatives**: When and how to use modern replacements\n\n**Shell Script Development**\n- **Error Handling**: Proper trap usage, exit codes, error propagation\n- **Input Validation**: Argument parsing, option handling, user input sanitization\n- **Debugging**: Set options (-x, -e, -u, -o pipefail), debug output strategies\n- **Performance**: Process substitution, parallel execution, efficient loops\n\n**Cross-Platform Scripting**\n- **Platform Detection**: OS-specific behavior handling\n- **Path Management**: Portable path construction and manipulation\n- **Tool Availability**: Checking for and handling missing dependencies\n- **Compatibility Layers**: Writing scripts that work everywhere\n\n**Automation Patterns**\n- **Idempotent Operations**: Scripts that can run multiple times safely\n- **Atomic Operations**: Ensuring all-or-nothing execution\n- **Progress Reporting**: User-friendly output and status updates\n- **Logging & Monitoring**: Structured logging for automated systems\n\n## Essential Commands\n\n**jq - JSON Processing**\n```bash\njq . data.json                                    # Pretty-print\njq -r '.key.subkey' data.json                     # Extract value\njq '.items[] | select(.status == \"active\")'       # Filter\n```\n\n**yq - YAML Processing**\n```bash\nyq '.services.web.image' docker-compose.yml       # Read value\nyq -i '.version = \"2.1.0\"' config.yml            # Update in-place\nyq -o json config.yml                             # Convert to JSON\n```\n\n**fd - Fast File Finding**\n```bash\nfd 'pattern'                 # Find by pattern\nfd -e md                     # Find by extension\nfd -e sh -x shellcheck {}    # Find and execute\n```\n\n**rg - Recursive Grep**\n```bash\nrg 'DATABASE_URL'            # Basic search\nrg 'TODO' -t python          # Search specific file types\nrg -C 3 'error'              # Search with context\n```\n\n## Best Practices\n\n**Script Development Workflow**\n1. **Requirements Analysis**: Understand automation need and target platforms\n2. **Tool Selection**: Choose appropriate tools for the task\n3. **Prototype Development**: Create initial script with core functionality\n4. **Error Handling**: Add robust error handling and edge case management\n5. **Cross-Platform Testing**: Verify script works on all target systems\n6. **Performance Optimization**: Profile and optimize for efficiency\n7. **Documentation**: Add clear usage instructions and inline comments\n\n**Critical Guidelines**\n- Always use shellcheck for linting\n- Set strict mode: `set -euo pipefail`\n- Under `pipefail`, never pipe into a reader that exits early (`grep -q`, `head`): the producer gets SIGPIPE and a pipeline that succeeded reports failure, intermittently. Capture first, `out=$(cmd)`, then `grep -q … \u003C\u003C\u003C\"$out\"`, or use `cmd | grep … >\u002Fdev\u002Fnull` (see REFERENCE.md)\n- Quote all variables: `\"${var}\"`\n- Use functions for reusable code\n- Implement proper cleanup with trap\n- Provide helpful error messages\n- Include --help and --version options\n- Use meaningful variable names\n- Comment complex logic\n- Test with different shells when targeting POSIX\n\n## Common Patterns\n\n**Robust Script Template**\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\nset -euo pipefail\nIFS=$'\\n\\t'\n\ntrap 'echo \"Error on line $LINENO\"' ERR\ntrap cleanup EXIT\n\ncleanup() {\n    rm -f \"$TEMP_FILE\" 2>\u002Fdev\u002Fnull || true\n}\n\nmain() {\n    parse_args \"$@\"\n    validate_environment\n    execute_task\n}\n\nmain \"$@\"\n```\n\n**Cross-Platform Detection**\n```bash\ndetect_os() {\n    case \"$OSTYPE\" in\n        linux*)   OS=\"linux\" ;;\n        darwin*)  OS=\"macos\" ;;\n        msys*)    OS=\"windows\" ;;\n        *)        OS=\"unknown\" ;;\n    esac\n}\n```\n\nFor detailed command-line tools reference, advanced automation examples, and troubleshooting guidance, see REFERENCE.md.\n","# Shell Expert\n\nExpert knowledge for shell scripting, command-line tools, and automation with focus on robust, portable, and efficient solutions.\n\n## When to Use This Skill\n\n| Use this skill when... | Use justfile-expert instead when... |\n|---|---|\n| Authoring portable bash, zsh, or POSIX shell scripts | Wrapping commands as named recipes for a project task runner |\n| Composing pipelines and one-off automation logic | Standardising entry points across a team or repo |\n| Hardening scripts with `set -euo pipefail`, traps, and quoting | Defining cross-platform commands without writing shell glue |\n\n| Use this skill when... | Use jq-json-processing instead when... |\n|---|---|\n| Glue logic that wires together CLI tools | The work is purely transforming JSON input |\n| Writing reusable functions, argument parsing, or signal handling | A single jq expression can replace a chain of shell commands |\n\n**Command-Line Tool Mastery**\n- Expert knowledge of modern CLI tools (jq, yq, fd, rg, etc.)\n- JSON\u002FYAML processing and transformation\n- File searching and text manipulation\n- System automation and orchestration\n\n**Shell Scripting Excellence**\n- POSIX-compliant shell scripting for maximum portability\n- Bash-specific features and best practices\n- Error handling and defensive programming\n- Cross-platform compatibility (Linux, macOS, BSD)\n\n**Automation & Integration**\n- CI\u002FCD pipeline scripting\n- System administration automation\n- Tool integration and workflow automation\n- Performance optimization for shell operations\n\n## Key Capabilities\n\n**JSON\u002FYAML Processing**\n- **jq**: Complex JSON queries, transformations, and filtering\n- **yq**: YAML manipulation, in-place editing, format conversion\n- **jd**: JSON diffing and patching for configuration management\n- **Data pipeline construction**: Chaining tools for complex transformations\n\n**File Operations & Search**\n- **fd**: Fast, user-friendly file finding with intuitive syntax\n- **rg (ripgrep)**: Lightning-fast recursive grep with gitignore support\n- **lsd**: Modern ls replacement with visual enhancements\n- **find\u002Fgrep alternatives**: When and how to use modern replacements\n\n**Shell Script Development**\n- **Error Handling**: Proper trap usage, exit codes, error propagation\n- **Input Validation**: Argument parsing, option handling, user input sanitization\n- **Debugging**: Set options (-x, -e, -u, -o pipefail), debug output strategies\n- **Performance**: Process substitution, parallel execution, efficient loops\n\n**Cross-Platform Scripting**\n- **Platform Detection**: OS-specific behavior handling\n- **Path Management**: Portable path construction and manipulation\n- **Tool Availability**: Checking for and handling missing dependencies\n- **Compatibility Layers**: Writing scripts that work everywhere\n\n**Automation Patterns**\n- **Idempotent Operations**: Scripts that can run multiple times safely\n- **Atomic Operations**: Ensuring all-or-nothing execution\n- **Progress Reporting**: User-friendly output and status updates\n- **Logging & Monitoring**: Structured logging for automated systems\n\n## Essential Commands\n\n**jq - JSON Processing**\n```bash\njq . data.json                                    # Pretty-print\njq -r '.key.subkey' data.json                     # Extract value\njq '.items[] | select(.status == \"active\")'       # Filter\n```\n\n**yq - YAML Processing**\n```bash\nyq '.services.web.image' docker-compose.yml       # Read value\nyq -i '.version = \"2.1.0\"' config.yml            # Update in-place\nyq -o json config.yml                             # Convert to JSON\n```\n\n**fd - Fast File Finding**\n```bash\nfd 'pattern'                 # Find by pattern\nfd -e md                     # Find by extension\nfd -e sh -x shellcheck {}    # Find and execute\n```\n\n**rg - Recursive Grep**\n```bash\nrg 'DATABASE_URL'            # Basic search\nrg 'TODO' -t python          # Search specific file types\nrg -C 3 'error'              # Search with context\n```\n\n## Best Practices\n\n**Script Development Workflow**\n1. **Requirements Analysis**: Understand automation need and target platforms\n2. **Tool Selection**: Choose appropriate tools for the task\n3. **Prototype Development**: Create initial script with core functionality\n4. **Error Handling**: Add robust error handling and edge case management\n5. **Cross-Platform Testing**: Verify script works on all target systems\n6. **Performance Optimization**: Profile and optimize for efficiency\n7. **Documentation**: Add clear usage instructions and inline comments\n\n**Critical Guidelines**\n- Always use shellcheck for linting\n- Set strict mode: `set -euo pipefail`\n- Under `pipefail`, never pipe into a reader that exits early (`grep -q`, `head`): the producer gets SIGPIPE and a pipeline that succeeded reports failure, intermittently. Capture first, `out=$(cmd)`, then `grep -q … \u003C\u003C\u003C\"$out\"`, or use `cmd | grep … >\u002Fdev\u002Fnull` (see REFERENCE.md)\n- Quote all variables: `\"${var}\"`\n- Use functions for reusable code\n- Implement proper cleanup with trap\n- Provide helpful error messages\n- Include --help and --version options\n- Use meaningful variable names\n- Comment complex logic\n- Test with different shells when targeting POSIX\n\n## Common Patterns\n\n**Robust Script Template**\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\nset -euo pipefail\nIFS=$'\\n\\t'\n\ntrap 'echo \"Error on line $LINENO\"' ERR\ntrap cleanup EXIT\n\ncleanup() {\n    rm -f \"$TEMP_FILE\" 2>\u002Fdev\u002Fnull || true\n}\n\nmain() {\n    parse_args \"$@\"\n    validate_environment\n    execute_task\n}\n\nmain \"$@\"\n```\n\n**Cross-Platform Detection**\n```bash\ndetect_os() {\n    case \"$OSTYPE\" in\n        linux*)   OS=\"linux\" ;;\n        darwin*)  OS=\"macos\" ;;\n        msys*)    OS=\"windows\" ;;\n        *)        OS=\"unknown\" ;;\n    esac\n}\n```\n\nFor detailed command-line tools reference, advanced automation examples, and troubleshooting guidance, see REFERENCE.md.\n",{"name":5,"created":62,"modified":63,"reviewed":64,"description":7,"allowed-tools":65,"user-invocable":58},1765843200000,1794441600000,1777075200000,"Bash, Grep, Glob, Read, Write, Edit, TodoWrite","main","b47840019d190aa9afa1fd8d6d42ddd584a45641","tools-plugin\u002Fskills\u002Fshell-expert",6,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins","https:\u002F\u002Fgithub.com\u002Flaurigates","Linux enthusiast, cloud engineer, neovim addict, electronics hobbyist.","2026-11-15 03:36:11",{"source":9,"skillName":5,"commands":75,"prompt":85,"zipAvailable":86},[76,79,82],{"tool":77,"command":78},"npx","npx skills add laurigates\u002Fclaude-plugins --skill shell-expert",{"tool":80,"command":81},"bunx","bunx skills add laurigates\u002Fclaude-plugins --skill shell-expert",{"tool":83,"command":84},"pnpm","pnpm dlx skills add laurigates\u002Fclaude-plugins --skill shell-expert","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Ftools-plugin\u002Fskills\u002Fshell-expert\u002FSKILL.md",true,[88],{"path":89,"resourceType":90,"resourceTypeDesc":91,"sizeBytes":92,"sourceHtmlUrl":93},"REFERENCE.md","REFERENCE","参考文档",12648,"https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Ftools-plugin\u002Fskills\u002Fshell-expert\u002FREFERENCE.md",[95,103,126,144,160,183],{"skillNo":96,"name":97,"nameZh":17,"description":98,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":102},"01M7DS1CAJ1ESDX08PENF01J0S","session-workflow-capture","Workflow-tool scripts and workflow friction from this session, filed as issues here or in the plugins repo. Use when a session ran Workflow scripts.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fsession-plugin\u002Fskills\u002Fsession-workflow-capture\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":104,"name":105,"nameZh":17,"description":106,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":57},"01M70PFHMH9ADY0CRE6047Y4B2","kitty-show-image","Show the user an image with a note on what to judge, via a file send or a labelled kitty tab. Use when the user must see an image, or icat fails with no \u002Fdev\u002Ftty.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fkitty-plugin\u002Fskills\u002Fkitty-show-image\u002FSKILL.md",[],[110,111,112,113,114,115,116,117,118,119,46,36,44,120,121,122,123,124,125,52],"show","kitty show image","image","kitty","show image","ls","get","send","open","dev","file","text","with","xdg","via","2026",{"skillNo":127,"name":128,"nameZh":17,"description":129,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":57},"01M70PFEN18HKQ4RCQ1VPGMPTB","kitty-session-persistence","Snapshot and restore kitty terminal sessions on macOS. Use when surviving WindowServer hangs without losing tabs, configuring snapshots, or restoring after a force-reboot.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fkitty-plugin\u002Fskills\u002Fkitty-session-persistence\u002FSKILL.md",[],[113,133,134,135,37,136,36,44,137,138,139,125,52,50,49,140,141,142,143,46],"kitty session persistence","session","persistence","snapshots","uname","reboot","terminal","snapshot","macos","sessions","restore",{"skillNo":145,"name":146,"nameZh":17,"description":147,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":148,"categories":149,"keywords":150,"publishedAt":57},"01M70PFC77XGXCVQ1543VGZHYR","kitty-remote-control","Safe kitty remote control from an agent — read panes with kitty @ ls\u002Fget-text, notify, and never mutate the live terminal unasked. Use when running inside kitty.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fkitty-plugin\u002Fskills\u002Fkitty-remote-control\u002FSKILL.md",[],[151,152,113,153,154,115,155,156,116,157,158,46,36,159,44,121,122,139,125,52],"kitty remote control","remote","control","remote control","running","never","panes","notify","query",{"skillNo":161,"name":162,"nameZh":17,"description":163,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":57},"01M70P6WVMCT5JG4SACTM69AF9","docs-reference-check","Dangling doc-reference gate: flag markdown naming repo paths or relative links that no longer exist. Use when docs cite moved\u002Fdeleted files, or wiring a doc-drift lint.","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fdocumentation-plugin\u002Fskills\u002Fdocs-reference-check\u002FSKILL.md",[],[167,168,169,170,171,172,173,174,175,176,46,36,44,177,120,178,179,180,181,182],"docs reference check","check","reference check","reference","docs","links","python3","repo","files","auto","drift","lint","wiring","chezmoi","references","cp",{"skillNo":184,"name":185,"nameZh":186,"description":187,"descriptionZh":188,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":189,"categories":190,"keywords":197,"publishedAt":57},"01M6C6NDE7DAQGNWSF22J5CJ0Z","youtube-upload","YouTube 视频上传与编辑","Upload a video to YouTube via the Data API v3 and edit its title, description, tags or thumbnail afterwards. Use when publishing or retitling a YouTube video.","通过 Data API v3 将视频上传到 YouTube，并在之后编辑其标题、描述、标签或缩略图。适用于发布 YouTube 视频或修改其标题。","https:\u002F\u002Fgithub.com\u002Flaurigates\u002Fclaude-plugins\u002Fblob\u002Fmain\u002Fyoutube-plugin\u002Fskills\u002Fyoutube-upload\u002FSKILL.md",[191,194],{"categoryNo":192,"categoryName":193,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQV98WRP4APE9VKKKKJ6FV","社交媒体与内容平台管理",{"categoryNo":195,"categoryName":196,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C55A3R2M9C8CAKG3W16HTA","内容创作者",[198,199,200,201,173,202,52,203,49,204,205,206,46,44,120,207,208,36,209,210,211,124,125],"youtube upload","upload","youtube","Video","run","uv run","publishing","data","uv","api","v3","tags","id","title"]