[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C4ZTAP1CCEKS7CKW8PR0M5":3,"skill-same:01M7C4ZTAP1CCEKS7CKW8PR0M5":59},{"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":6,"updatedAt":30,"install":31,"resources":44},"01M7C4ZTAP1CCEKS7CKW8PR0M5","heredoc-guard",null,"Deny command substitution in unquoted shell heredocs before execution.","EtanHey\u002Fgolems","EtanHey","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F93338119?v=4","01M7C4SKC9HJC3B9TAX0D9MZ1E","Etan Heyman","01M7C4SKCT59Z49TTN4WWDDEYD",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fheredoc-guard\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: heredoc-guard\ndescription: Deny command substitution in unquoted shell heredocs before execution.\n---\n\n# Heredoc guard\n\nUnquoted heredocs (`\u003C\u003CEOF`, `\u003C\u003C-EOF`) expand backticks and `$(command)` in\ntheir bodies. A backticked command in generated Markdown can run on the host.\nQuote the delimiter: `\u003C\u003C'EOF'`, `\u003C\u003C\"EOF\"`, `\u003C\u003C\\EOF`, or `\u003C\u003CE\"OF\"`.\nIf a value must expand, compute it first: put `v=$(cmd)` on its own line before\nthe heredoc, then use `$v` in the unquoted body. Quoting preserves literal text;\nprecomputing preserves the intended computed value.\nEscaped backticks\u002Fdollars, variable expansion and arithmetic alone are allowed.\nThere is no environment bypass. Commands without a heredoc operator return allow\nbefore shell inspection; `\u003C\u003C` split by escaped newlines still counts. Invalid or\nunsupported syntax and inspection limits in heredoc-bearing commands deny with\na plain refusal; the ledger keeps the stage and short cause. ANSI-C escapes in\ndelimiters require a plain quoted rewrite; ordinary ANSI-C quoted arguments are\ntreated as strings.\n\nScope: inspect the outer shell command, including executable substitutions.\nQuoted interpreter payloads such as `bash -c '…'` are strings and are not\nrecursively interpreted. Quotes inside an unquoted heredoc body do not protect it.\nThis is a heredoc guard, not a full shell syntax validator.\n\nClaude uses the fail-closed launcher; Codex uses `codex-policy-hook.py`.\nCodex uses the standard `^(Bash|apply_patch)$` matcher. The gate immediately\nallows non-Bash events; native patch content is never parsed as shell.\nEach denial appends one JSONL record to the heredoc guard ledger in the user's\nClaude logs directory, following tmp-block's durable logs convention. Override\nthe destination with `HEREDOC_GUARD_LEDGER`; tests and probes use isolated ledgers.\nRecords contain `ts`,\n`command_sha256`, `rule`, and a short static `reason`, never raw command text.\nMissing or invalid commands use the SHA-256 of the empty string. An unwritable\nledger still denies with the same plain refusal.\nSource wiring does not prove installed\u002Fnative enforcement. Installation and\nnative acceptance belong to the lead after merge; this change installs nothing.\n","# Heredoc guard\n\nUnquoted heredocs (`\u003C\u003CEOF`, `\u003C\u003C-EOF`) expand backticks and `$(command)` in\ntheir bodies. A backticked command in generated Markdown can run on the host.\nQuote the delimiter: `\u003C\u003C'EOF'`, `\u003C\u003C\"EOF\"`, `\u003C\u003C\\EOF`, or `\u003C\u003CE\"OF\"`.\nIf a value must expand, compute it first: put `v=$(cmd)` on its own line before\nthe heredoc, then use `$v` in the unquoted body. Quoting preserves literal text;\nprecomputing preserves the intended computed value.\nEscaped backticks\u002Fdollars, variable expansion and arithmetic alone are allowed.\nThere is no environment bypass. Commands without a heredoc operator return allow\nbefore shell inspection; `\u003C\u003C` split by escaped newlines still counts. Invalid or\nunsupported syntax and inspection limits in heredoc-bearing commands deny with\na plain refusal; the ledger keeps the stage and short cause. ANSI-C escapes in\ndelimiters require a plain quoted rewrite; ordinary ANSI-C quoted arguments are\ntreated as strings.\n\nScope: inspect the outer shell command, including executable substitutions.\nQuoted interpreter payloads such as `bash -c '…'` are strings and are not\nrecursively interpreted. Quotes inside an unquoted heredoc body do not protect it.\nThis is a heredoc guard, not a full shell syntax validator.\n\nClaude uses the fail-closed launcher; Codex uses `codex-policy-hook.py`.\nCodex uses the standard `^(Bash|apply_patch)$` matcher. The gate immediately\nallows non-Bash events; native patch content is never parsed as shell.\nEach denial appends one JSONL record to the heredoc guard ledger in the user's\nClaude logs directory, following tmp-block's durable logs convention. Override\nthe destination with `HEREDOC_GUARD_LEDGER`; tests and probes use isolated ledgers.\nRecords contain `ts`,\n`command_sha256`, `rule`, and a short static `reason`, never raw command text.\nMissing or invalid commands use the SHA-256 of the empty string. An unwritable\nledger still denies with the same plain refusal.\nSource wiring does not prove installed\u002Fnative enforcement. Installation and\nnative acceptance belong to the lead after merge; this change installs nothing.\n",{"name":5,"description":7},"master","3400bc971628f00ab7bf1063993477e211a5508a","skills\u002Fgolem-powers\u002Fheredoc-guard","https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems","https:\u002F\u002Fgithub.com\u002FEtanHey","etanheyman.com","2026-11-15 03:05:08",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add EtanHey\u002Fgolems --skill heredoc-guard",{"tool":37,"command":38},"bunx","bunx skills add EtanHey\u002Fgolems --skill heredoc-guard",{"tool":40,"command":41},"pnpm","pnpm dlx skills add EtanHey\u002Fgolems --skill heredoc-guard","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fheredoc-guard\u002FSKILL.md",true,[45,51,55],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"hooks\u002Fheredoc_parser.py","SCRIPT","脚本",8142,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fheredoc-guard\u002Fhooks\u002Fheredoc_parser.py",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"hooks\u002Fheredoc-guard-pretooluse.py",3811,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fheredoc-guard\u002Fhooks\u002Fheredoc-guard-pretooluse.py",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"tests\u002Ftest_heredoc_guard.py",10749,"https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fheredoc-guard\u002Ftests\u002Ftest_heredoc_guard.py",[60,67,74,81,88,95],{"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},"01M7C53JEF6A6SS20Q0D2YJYM8","yash","Push dependency bugs upstream. Triggers: dependency bug, workaround, monkey-patch, fork\u002Ffix. NOT app bugs.","https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fyash\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},"01M7C53EPMNSZKHK47VY7WQDP0","whats-new","Diff Claude\u002FCodex\u002FCursor\u002FWispr\u002Fagy changelogs vs local setup. Triggers: whats new, changelog, version bump.","https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fwhats-new\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},"01M7C53C4TVQ9G7AB3X57DACPB","weave","Orchestrator convergence: mine JSONLs, cite findings, route actions. Triggers: weave, run weave.","https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Fweave\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},"01M7C5342EDDN7YH53KKW511V2","unslop","Cut AI tells while keeping every receipt, number, path, and hedge intact. Triggers: unslop, cut the slop, wall of text, too verbose, rambly, make this readable. NOT for delivery cadence (see i-have-adhd), channel choice, or artifact length governance.","https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Funslop\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},"01M7C52M0CTDW5DDP4452FJV0G","tmp-block","Guard denying durable writes to \u002Ftmp, \u002Fprivate\u002Ftmp, \u002Fvar\u002Ffolders, $TMPDIR; enforces \u003Crepo>\u002F.worktrees\u002F\u003Cname>. Triggers: tmp guard, TMP-BLOCK deny, WORKTREE-CONVENTION deny, bypass ledger. NOT for storage policy.","https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Ftmp-block\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M7C52HN4Q9E1Z74Z11K23E2H","t3-visuals","Show\u002Fvisualize\u002Fchart\u002Fdiagram\u002Fcompare\u002Fstatus board in T3 with compact interactive HTML. Not standalone dashboards.","https:\u002F\u002Fgithub.com\u002FEtanHey\u002Fgolems\u002Fblob\u002Fmaster\u002Fskills\u002Fgolem-powers\u002Ft3-visuals\u002FSKILL.md",[],[]]