[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BK8A0WH5BAQN2TYG9MRQTM":3,"skill-same:01M7BK8A0WH5BAQN2TYG9MRQTM":57},{"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":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7BK8A0WH5BAQN2TYG9MRQTM","git-guardrails",null,"Set up Antigravity lifecycle hooks in .agents\u002Fhooks.json to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before run_command executes.","fderuiter\u002Fagy-skills","fderuiter","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F127706008?v=4","01M6C40AWP9EPQBS3EG0RF5DRD","Frederick de Ruiter","01M7BK63K60DTR50H82SAHMYHK",1,"MIT","https:\u002F\u002Fgithub.com\u002Ffderuiter\u002Fagy-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmisc\u002Fgit-guardrails\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: git-guardrails\ndescription: Set up Antigravity lifecycle hooks in .agents\u002Fhooks.json to block dangerous git commands (push, reset --hard, clean, branch -D, etc.) before run_command executes.\n---\n\n# Setup Git Guardrails\n\nSets up a PreToolUse hook in .agents\u002Fhooks.json that intercepts and blocks dangerous git commands before Antigravity executes them.\n\n## What Gets Blocked\n\n- git push (all variants including --force)\n- git reset --hard\n- git clean -f \u002F git clean -fd\n- git branch -D\n- git checkout . \u002F git restore .\n\nWhen blocked, the hook outputs {\\ decision\\: \\deny\\} with an explanation, preventing execution.\n\n## Steps\n\n### 1. Copy the hook script\n\nCopy [scripts\u002Fblock-dangerous-git.js](.\u002Fscripts\u002Fblock-dangerous-git.js) into your workspace:\n\n- Target: .agents\u002Fhooks\u002Fblock-dangerous-git.js\n\n### 2. Configure .agents\u002Fhooks.json\n\nAdd or merge into .agents\u002Fhooks.json:\n\n`json\n{\n  \\git-safety\\: {\n    \\PreToolUse\\: [\n      {\n        \\matcher\\: \\run_command\\,\n        \\hooks\\: [\n          {\n            \\type\\: \\command\\,\n            \\command\\: \\node .agents\u002Fhooks\u002Fblock-dangerous-git.js\\\n          }\n        ]\n      }\n    ]\n  }\n}\n`\n\n### 3. Verify\n\nTest the hook payload:\n\n`\bash\nnode .agents\u002Fhooks\u002Fblock-dangerous-git.js \u003C\u003C 'EOF'\n{\\toolCall\\:{\\name\\:\\run_command\\,\\args\\:{\\CommandLine\\:\\git push origin main\\}}}\nEOF\n`\n\nShould output:\n`json\n{\\decision\\:\\deny\\,\\reason\\:\\BLOCKED: Command \\\\\\git push origin main\\\\\\ matched safety guardrail. Destructive git command prevented.\\}\n`","# Setup Git Guardrails\n\nSets up a PreToolUse hook in .agents\u002Fhooks.json that intercepts and blocks dangerous git commands before Antigravity executes them.\n\n## What Gets Blocked\n\n- git push (all variants including --force)\n- git reset --hard\n- git clean -f \u002F git clean -fd\n- git branch -D\n- git checkout . \u002F git restore .\n\nWhen blocked, the hook outputs {\\ decision\\: \\deny\\} with an explanation, preventing execution.\n\n## Steps\n\n### 1. Copy the hook script\n\nCopy [scripts\u002Fblock-dangerous-git.js](.\u002Fscripts\u002Fblock-dangerous-git.js) into your workspace:\n\n- Target: .agents\u002Fhooks\u002Fblock-dangerous-git.js\n\n### 2. Configure .agents\u002Fhooks.json\n\nAdd or merge into .agents\u002Fhooks.json:\n\n`json\n{\n  \\git-safety\\: {\n    \\PreToolUse\\: [\n      {\n        \\matcher\\: \\run_command\\,\n        \\hooks\\: [\n          {\n            \\type\\: \\command\\,\n            \\command\\: \\node .agents\u002Fhooks\u002Fblock-dangerous-git.js\\\n          }\n        ]\n      }\n    ]\n  }\n}\n`\n\n### 3. Verify\n\nTest the hook payload:\n\n`\bash\nnode .agents\u002Fhooks\u002Fblock-dangerous-git.js \u003C\u003C 'EOF'\n{\\toolCall\\:{\\name\\:\\run_command\\,\\args\\:{\\CommandLine\\:\\git push origin main\\}}}\nEOF\n`\n\nShould output:\n`json\n{\\decision\\:\\deny\\,\\reason\\:\\BLOCKED: Command \\\\\\git push origin main\\\\\\ matched safety guardrail. Destructive git command prevented.\\}\n`",{"name":5,"description":7},"main","97b7a56459bd17362bf4f075d60d92c1ae6cce33","skills\u002Fmisc\u002Fgit-guardrails",0,"https:\u002F\u002Fgithub.com\u002Ffderuiter\u002Fagy-skills","https:\u002F\u002Ffderuiter.github.io\u002Fagy-skills\u002F","https:\u002F\u002Fgithub.com\u002Ffderuiter","Clinical Data Specialist at @Bright-Research \r\n\r\nInterests in Photogrammetry, Data Analytics + Pipelines, Mathematics, and AI\u002FML.\r\n\r\nPython, Rust, TS.","2026-08-29 02:26:25",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add fderuiter\u002Fagy-skills --skill git-guardrails",{"tool":39,"command":40},"bunx","bunx skills add fderuiter\u002Fagy-skills --skill git-guardrails",{"tool":42,"command":43},"pnpm","pnpm dlx skills add fderuiter\u002Fagy-skills --skill git-guardrails","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ffderuiter\u002Fagy-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmisc\u002Fgit-guardrails\u002FSKILL.md",true,[47,53],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"scripts\u002Fblock-dangerous-git.js","SCRIPT","脚本",990,"https:\u002F\u002Fgithub.com\u002Ffderuiter\u002Fagy-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmisc\u002Fgit-guardrails\u002Fscripts\u002Fblock-dangerous-git.js",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"scripts\u002Fblock-dangerous-git.sh",507,"https:\u002F\u002Fgithub.com\u002Ffderuiter\u002Fagy-skills\u002Fblob\u002Fmain\u002Fskills\u002Fmisc\u002Fgit-guardrails\u002Fscripts\u002Fblock-dangerous-git.sh",[58,65,72,79,86,93],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M7BK91P025C72NSC9NZTS4JF","writing-shape","Shape raw material into an article paragraph by paragraph, arguing format choices along the way.","https:\u002F\u002Fgithub.com\u002Ffderuiter\u002Fagy-skills\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fwriting-shape\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"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},"01M7BK908F7QPQST3FKHAAVE87","writing-fragments","Mine raw writing fragments with no structure yet, capturing ideas into a single quarry file.","https:\u002F\u002Fgithub.com\u002Ffderuiter\u002Fagy-skills\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fwriting-fragments\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7BK8YJEBD31HR3GTYATQ6ZA","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002Ffderuiter\u002Fagy-skills\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7BK8WWERTYDTVVE95VMKZ2J","writing-beats","Assemble raw material into a narrative journey of beats, grounding concepts before leaning on them.","https:\u002F\u002Fgithub.com\u002Ffderuiter\u002Fagy-skills\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fwriting-beats\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7BK8VT41ZSQVB6TFM2KZRBZ","wait-what","Stop. That last message did not land: re-pitch it.","https:\u002F\u002Fgithub.com\u002Ffderuiter\u002Fagy-skills\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fwait-what\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M7BK8T2V1J99DXH22Q304T4S","to-questionnaire","Turn a decision you can't fully answer into a questionnaire for someone else to fill in.","https:\u002F\u002Fgithub.com\u002Ffderuiter\u002Fagy-skills\u002Fblob\u002Fmain\u002Fskills\u002Fproductivity\u002Fto-questionnaire\u002FSKILL.md",[],[]]