[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72SXSM5KF1B160Z5X3XTZ3X":3,"skill-same:01M72SXSM5KF1B160Z5X3XTZ3X":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":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M72SXSM5KF1B160Z5X3XTZ3X","swal-grep-alias-rg",null,"Use when a bash\u002Fzsh verification pipeline silently fails to filter output in SWAL desktop.","iberi22\u002Fskills","iberi22","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F10615454?v=4","01M72SQ2NXAA3GW0FSH053A5ES","Brahyan Belalcazar","01M72SQ2PYCH0SSA1K61NGEHDV",0,"MIT","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fswal-grep-alias-rg\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: swal-grep-alias-rg\ndescription: Use when a bash\u002Fzsh verification pipeline silently fails to filter output in SWAL desktop.\nversion: 1.0.0\n---\n\n# `grep` is an alias for `rg` on this machine\n\n## The trap\n\n`zsh` on this desktop has `alias grep=rg`. Ripgrep does **not** implement\nGNU's `-E` \u002F `--extended-regexp`; it reads `-E` as `--encoding`, so:\n\n```bash\ngrep -E '^  FAIL' out.txt\n# rg: error parsing flag -E: grep config error: unknown encoding: FAIL\n```\n\nThis fails **silently in the worst way**: inside a pipeline the error goes to\nstderr and the command produces nothing, so a check that was filtering output\nappears to pass with zero matches. It cost a whole verification round before it\nwas spotted — a negative control reported \"0 FAILs\" because its own filter was\nbroken, not because the code was clean.\n\n## Rules\n\n- **In scripts**: shebang `#!\u002Fusr\u002Fbin\u002Fenv bash` and the alias does not apply —\n  the script body runs in bash, not zsh. Plain `grep '^  FAIL'` is safe there.\n- **In ad-hoc `terminal` commands**: never `grep -E` \u002F `grep --extended-regexp`.\n  Prefer `rg` directly (`rg '^  FAIL'`), which is what the alias resolves to.\n- **Verify the filter before trusting it**: `echo 'a FAIL b' | grep 'FAIL'`\n  must print a line. A filter that returns nothing on a known match is broken,\n  not proof of a clean result.\n- **Prefer `rg -c`** for counts; it is unambiguous about what it matched.\n\n## Related\n\n- Same class of bug: piping to `head`\u002F`tail` hides a script's real exit code\n  (`$?` is the pipe's last command). Capture to a file, then read the file.\n","# `grep` is an alias for `rg` on this machine\n\n## The trap\n\n`zsh` on this desktop has `alias grep=rg`. Ripgrep does **not** implement\nGNU's `-E` \u002F `--extended-regexp`; it reads `-E` as `--encoding`, so:\n\n```bash\ngrep -E '^  FAIL' out.txt\n# rg: error parsing flag -E: grep config error: unknown encoding: FAIL\n```\n\nThis fails **silently in the worst way**: inside a pipeline the error goes to\nstderr and the command produces nothing, so a check that was filtering output\nappears to pass with zero matches. It cost a whole verification round before it\nwas spotted — a negative control reported \"0 FAILs\" because its own filter was\nbroken, not because the code was clean.\n\n## Rules\n\n- **In scripts**: shebang `#!\u002Fusr\u002Fbin\u002Fenv bash` and the alias does not apply —\n  the script body runs in bash, not zsh. Plain `grep '^  FAIL'` is safe there.\n- **In ad-hoc `terminal` commands**: never `grep -E` \u002F `grep --extended-regexp`.\n  Prefer `rg` directly (`rg '^  FAIL'`), which is what the alias resolves to.\n- **Verify the filter before trusting it**: `echo 'a FAIL b' | grep 'FAIL'`\n  must print a line. A filter that returns nothing on a known match is broken,\n  not proof of a clean result.\n- **Prefer `rg -c`** for counts; it is unambiguous about what it matched.\n\n## Related\n\n- Same class of bug: piping to `head`\u002F`tail` hides a script's real exit code\n  (`$?` is the pipe's last command). Capture to a file, then read the file.\n",{"name":5,"version":24,"description":7},"1.0.0","main","688810f2886d212632acf81e532b24e483dd8b98","skills\u002Fdevops\u002Fswal-grep-alias-rg","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills","https:\u002F\u002Fgithub.com\u002Fiberi22","Senior WEB Full-Stack","2026-10-12 02:46:21",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add iberi22\u002Fskills --skill swal-grep-alias-rg",{"tool":38,"command":39},"bunx","bunx skills add iberi22\u002Fskills --skill swal-grep-alias-rg",{"tool":41,"command":42},"pnpm","pnpm dlx skills add iberi22\u002Fskills --skill swal-grep-alias-rg","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fswal-grep-alias-rg\u002FSKILL.md",true,[],[47,53,60,66,72,78],{"skillNo":48,"name":49,"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":50,"categories":51,"keywords":52,"publishedAt":19},"01M72TWQEQD46ZC9TRBAABF78P","web-design-guidelines","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fweb\u002Fweb-design-guidelines\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"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},"01M72TWMQFTYD08DGXVAXRPPEB","blocked-page-recovery","Use when a fetch fails: 403\u002F429, paywall, WAF, bot wall. Recovers the page via archives and provenance-checked fallbacks.","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fweb\u002Fblocked-page-recovery\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"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":63,"categories":64,"keywords":65,"publishedAt":19},"01M72TVQMS3HCTX18C8T97WTQQ","studio-coach","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftools\u002Fstudio-coach\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"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":69,"categories":70,"keywords":71,"publishedAt":19},"01M72TVNA2PR9RZW0ZAXYP1G6J","src-generator","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftools\u002Fsrc-generator\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"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":75,"categories":76,"keywords":77,"publishedAt":19},"01M72TVEJHHB6SAT3R3TY9MJKS","sqlite-pro","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftools\u002Fsqlite-pro\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M72TVC2EVBHQHCX96VTTYKB8","rigor-evaluator","Use when you need a quick heuristic rigor score (10 criteria, 0-2 each) for the features in a .gitcore\u002Ffeatures.json file, to decide which features are ready to ship.","https:\u002F\u002Fgithub.com\u002Fiberi22\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Ftools\u002Frigor-evaluator\u002FSKILL.md",[],[]]