[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6G1NRJP4VMJ5RWKCF5EWW4X":3,"skill-same:01M6G1NRJP4VMJ5RWKCF5EWW4X":64},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":28,"linkOnly":29,"markdownContent":30,"markdownBody":31,"frontMatter":32,"refName":33,"commitSha":34,"skillDirectory":35,"forksCount":36,"repositoryHtmlUrl":37,"repositoryHomepageUrl":6,"ownerHtmlUrl":38,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":39,"install":40,"resources":53},"01M6G1NRJP4VMJ5RWKCF5EWW4X","git-hooks",null,"Auto-generate and manage Git hooks for pre-commit, pre-push, commit-msg, and more.","kbarbel640-del\u002Fskills","kbarbel640-del","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F255315490?v=4","01M6CJPPQGCCESXMG3K7BBGQ5J","01M6CJPPX2PB2BCZERFVM2C2B3",1,"MIT","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsa9saq\u002Fgit-hooks\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27],"git","hooks","git hooks","commit","generate","push","pre-commit","auto","manage","more","2026-11-10 10:12:30",false,"---\ndescription: Auto-generate and manage Git hooks for pre-commit, pre-push, commit-msg, and more.\n---\n\n# Git Hooks\n\nSet up and manage Git hooks for any repository.\n\n**Use when** adding automated checks to git workflows — linting, testing, commit message validation.\n\n## Requirements\n\n- Git repository (`.git\u002F` directory must exist)\n- No API keys needed\n\n## Instructions\n\n1. **Verify repo root**: `test -d .git && echo \"OK\" || echo \"Not a git repo\"`. Never create hooks outside a git repo.\n\n2. **Back up existing hooks** before overwriting:\n   ```bash\n   [ -f .git\u002Fhooks\u002Fpre-commit ] && cp .git\u002Fhooks\u002Fpre-commit .git\u002Fhooks\u002Fpre-commit.bak\n   ```\n\n3. **Create the hook** and make it executable:\n   ```bash\n   cat > .git\u002Fhooks\u002F\u003Chook-name> \u003C\u003C 'EOF'\n   #!\u002Fbin\u002Fsh\n   # hook content here\n   EOF\n   chmod +x .git\u002Fhooks\u002F\u003Chook-name>\n   ```\n\n## Common Hooks\n\n### Pre-commit: Lint Staged Files\n```bash\n#!\u002Fbin\u002Fsh\nSTAGED=$(git diff --cached --name-only --diff-filter=ACM)\n# JavaScript\u002FTypeScript\necho \"$STAGED\" | grep -E '\\.(js|ts|jsx|tsx)$' | xargs -r npx eslint --quiet 2>\u002Fdev\u002Fnull\n[ $? -ne 0 ] && echo \"❌ ESLint failed\" && exit 1\n# Python\necho \"$STAGED\" | grep -E '\\.py$' | xargs -r python3 -m py_compile 2>&1\n[ $? -ne 0 ] && echo \"❌ Python syntax check failed\" && exit 1\nexit 0\n```\n\n### Pre-push: Run Tests\n```bash\n#!\u002Fbin\u002Fsh\n[ -f package.json ] && npm test\n[ -f pytest.ini ] || [ -d tests\u002F ] && python3 -m pytest -q\nexit $?\n```\n\n### Commit-msg: Enforce Conventional Commits\n```bash\n#!\u002Fbin\u002Fsh\nMSG=$(cat \"$1\")\nif ! echo \"$MSG\" | grep -qE '^(feat|fix|docs|style|refactor|test|chore|ci|perf|build)(\\(.+\\))?: .+'; then\n  echo \"❌ Commit message must follow Conventional Commits format\"\n  echo \"   Example: feat(auth): add login page\"\n  exit 1\nfi\n```\n\n### Pre-commit: Prevent Secret Leaks\n```bash\n#!\u002Fbin\u002Fsh\nSTAGED=$(git diff --cached --diff-filter=ACM -p)\nif echo \"$STAGED\" | grep -qEi '(api[_-]?key|secret|password|token)\\s*[=:]\\s*[\"\\x27][^\\s]+'; then\n  echo \"❌ Potential secret detected in staged changes!\"\n  echo \"   Review your changes and use environment variables instead.\"\n  exit 1\nfi\n```\n\n## Management Commands\n\n```bash\n# List active hooks (non-sample)\nls .git\u002Fhooks\u002F | grep -v '\\.sample$'\n\n# Disable a hook temporarily\nchmod -x .git\u002Fhooks\u002Fpre-commit\n\n# Re-enable\nchmod +x .git\u002Fhooks\u002Fpre-commit\n\n# Remove a hook\nrm .git\u002Fhooks\u002Fpre-commit\n```\n\n## Edge Cases & Troubleshooting\n\n- **Hook not running**: Check `chmod +x` and shebang line (`#!\u002Fbin\u002Fsh` or `#!\u002Fbin\u002Fbash`).\n- **Bypass when needed**: `git commit --no-verify` skips pre-commit and commit-msg hooks.\n- **Team sharing**: Hooks in `.git\u002Fhooks\u002F` aren't committed. Use a `hooks\u002F` directory in repo root + `git config core.hooksPath hooks\u002F` for team-wide hooks.\n- **Windows compatibility**: Use `#!\u002Fbin\u002Fsh` (not bash) for cross-platform support. Avoid bash-specific syntax.\n- **Slow hooks**: Keep pre-commit hooks under 5 seconds. Only lint staged files, not the whole project.\n\n## Security Considerations\n\n- Add a secret-detection hook (see above) to prevent accidental credential commits.\n- Never store API keys or passwords in hook scripts themselves.\n","# Git Hooks\n\nSet up and manage Git hooks for any repository.\n\n**Use when** adding automated checks to git workflows — linting, testing, commit message validation.\n\n## Requirements\n\n- Git repository (`.git\u002F` directory must exist)\n- No API keys needed\n\n## Instructions\n\n1. **Verify repo root**: `test -d .git && echo \"OK\" || echo \"Not a git repo\"`. Never create hooks outside a git repo.\n\n2. **Back up existing hooks** before overwriting:\n   ```bash\n   [ -f .git\u002Fhooks\u002Fpre-commit ] && cp .git\u002Fhooks\u002Fpre-commit .git\u002Fhooks\u002Fpre-commit.bak\n   ```\n\n3. **Create the hook** and make it executable:\n   ```bash\n   cat > .git\u002Fhooks\u002F\u003Chook-name> \u003C\u003C 'EOF'\n   #!\u002Fbin\u002Fsh\n   # hook content here\n   EOF\n   chmod +x .git\u002Fhooks\u002F\u003Chook-name>\n   ```\n\n## Common Hooks\n\n### Pre-commit: Lint Staged Files\n```bash\n#!\u002Fbin\u002Fsh\nSTAGED=$(git diff --cached --name-only --diff-filter=ACM)\n# JavaScript\u002FTypeScript\necho \"$STAGED\" | grep -E '\\.(js|ts|jsx|tsx)$' | xargs -r npx eslint --quiet 2>\u002Fdev\u002Fnull\n[ $? -ne 0 ] && echo \"❌ ESLint failed\" && exit 1\n# Python\necho \"$STAGED\" | grep -E '\\.py$' | xargs -r python3 -m py_compile 2>&1\n[ $? -ne 0 ] && echo \"❌ Python syntax check failed\" && exit 1\nexit 0\n```\n\n### Pre-push: Run Tests\n```bash\n#!\u002Fbin\u002Fsh\n[ -f package.json ] && npm test\n[ -f pytest.ini ] || [ -d tests\u002F ] && python3 -m pytest -q\nexit $?\n```\n\n### Commit-msg: Enforce Conventional Commits\n```bash\n#!\u002Fbin\u002Fsh\nMSG=$(cat \"$1\")\nif ! echo \"$MSG\" | grep -qE '^(feat|fix|docs|style|refactor|test|chore|ci|perf|build)(\\(.+\\))?: .+'; then\n  echo \"❌ Commit message must follow Conventional Commits format\"\n  echo \"   Example: feat(auth): add login page\"\n  exit 1\nfi\n```\n\n### Pre-commit: Prevent Secret Leaks\n```bash\n#!\u002Fbin\u002Fsh\nSTAGED=$(git diff --cached --diff-filter=ACM -p)\nif echo \"$STAGED\" | grep -qEi '(api[_-]?key|secret|password|token)\\s*[=:]\\s*[\"\\x27][^\\s]+'; then\n  echo \"❌ Potential secret detected in staged changes!\"\n  echo \"   Review your changes and use environment variables instead.\"\n  exit 1\nfi\n```\n\n## Management Commands\n\n```bash\n# List active hooks (non-sample)\nls .git\u002Fhooks\u002F | grep -v '\\.sample$'\n\n# Disable a hook temporarily\nchmod -x .git\u002Fhooks\u002Fpre-commit\n\n# Re-enable\nchmod +x .git\u002Fhooks\u002Fpre-commit\n\n# Remove a hook\nrm .git\u002Fhooks\u002Fpre-commit\n```\n\n## Edge Cases & Troubleshooting\n\n- **Hook not running**: Check `chmod +x` and shebang line (`#!\u002Fbin\u002Fsh` or `#!\u002Fbin\u002Fbash`).\n- **Bypass when needed**: `git commit --no-verify` skips pre-commit and commit-msg hooks.\n- **Team sharing**: Hooks in `.git\u002Fhooks\u002F` aren't committed. Use a `hooks\u002F` directory in repo root + `git config core.hooksPath hooks\u002F` for team-wide hooks.\n- **Windows compatibility**: Use `#!\u002Fbin\u002Fsh` (not bash) for cross-platform support. Avoid bash-specific syntax.\n- **Slow hooks**: Keep pre-commit hooks under 5 seconds. Only lint staged files, not the whole project.\n\n## Security Considerations\n\n- Add a secret-detection hook (see above) to prevent accidental credential commits.\n- Never store API keys or passwords in hook scripts themselves.\n",{"description":7},"main","e7e336ac628c3e3bd771aff1aaa469c93778f94a","skills\u002Fsa9saq\u002Fgit-hooks",0,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del","2026-08-23 22:39:37",{"source":8,"skillName":5,"commands":41,"prompt":51,"zipAvailable":52},[42,45,48],{"tool":43,"command":44},"npx","npx skills add kbarbel640-del\u002Fskills --skill git-hooks",{"tool":46,"command":47},"bunx","bunx skills add kbarbel640-del\u002Fskills --skill git-hooks",{"tool":49,"command":50},"pnpm","pnpm dlx skills add kbarbel640-del\u002Fskills --skill git-hooks","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsa9saq\u002Fgit-hooks\u002FSKILL.md",true,[54,60],{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"_meta.json","REFERENCE","参考文档",270,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsa9saq\u002Fgit-hooks\u002F_meta.json",{"path":61,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":62,"sourceHtmlUrl":63},"README.md",425,"https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fsa9saq\u002Fgit-hooks\u002FREADME.md",[65,91,115,133,138,157],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":28},"01M6G8J55967D6281ACMKAKTEQ","crowd-prompting","A marketplace where AI agents improve prompts, system instructions, tool descriptions, and other text-based content with domain expertise from real-world operations — and earn tokens for valuable contributions.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzzadrian\u002Fcrowd-prompting\u002FSKILL.md",[],[72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90],"crowd prompting","prompting","api","with","tokens","domain","world","prompts","operations","instructions","text","tool","system","improve","productivity","marketplace","https","content","ai agents",{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":28},"01M6G8J0PKPAYVET6BWE8W4C26","dilemm-ai","Compete in DilemmAI, the prisoner's dilemma AI arena at dilemm.ai. Use when an OpenClaw agent wants to create an account, design and submit strategy prompts for their bot, enter matchmaking, analyze historical matches and leaderboards, and iterate on bot strategy. Requires headless browser automation (no API available yet).","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzyori\u002Fdilemm-ai\u002FSKILL.md",[],[98,74,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,79,114],"dilemm ai","arena","analyze","browser","openclaw agent","create","automation","browser automation","bot","openclaw","design","strategy","headless","compete","submit","matchmaking","use",{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":28},"01M6G8HWAF3K9SW7NP3Z83CPJ6","arxiv-paper-reviews","Interact with arXiv Crawler API to fetch papers, read reviews, and submit comments. Use when working with arXiv papers, fetching paper lists by date\u002Fcategory\u002Finterest, viewing paper details with comments, or submitting paper reviews via API at http:\u002F\u002F150.158.152.82:8000.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Fweak-accept\u002FSKILL.md",[],[122,123,124,125,126,127,128,75,129,112,114,130,74,131,132],"arxiv paper reviews","reviews","arxiv","paper","crawler","papers","comments","fetch","read","http","via",{"skillNo":134,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":135,"categories":136,"keywords":137,"publishedAt":28},"01M6G8HQJ7N7WMY6YV7D7SSJ16","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzxrys\u002Farxiv-paper-reviews\u002FSKILL.md",[],[125,124,123,122,132,127,128,75,126,112,114,129,130,74,131],{"skillNo":139,"name":140,"nameZh":6,"description":141,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":28},"01M6G8HM95Y64JNVFC2HN4E2BG","git-summary","Get a quick summary of the current Git repository including status, recent commits, branches, and contributors.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fzweack\u002Fgit-summary\u002FSKILL.md",[],[18,145,146,147,148,149,150,151,152,153,154,155,156],"summary","git summary","commits","repository","win32","status","linux","contributors","true","quick","get","branches",{"skillNo":158,"name":159,"nameZh":6,"description":160,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":161,"categories":162,"keywords":163,"publishedAt":28},"01M6G8HGEGF05CNEJCGVYFSC4R","agent-constitution","Interact with AgentConstitution governance contracts on Base Sepolia. Check compliance, read rules, log actions, query governance state.","https:\u002F\u002Fgithub.com\u002Fkbarbel640-del\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fztsalexey\u002Fagent-constitution\u002FSKILL.md",[],[164,165,166,167,75,168,169,33,170,130,171,172,173,174,175,88,176,177,178],"agent constitution","constitution","contracts","tree","query","base","log","check","Rules","projects","compliance","actions","state","governance","github"]