[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79P2M9DX6BJ7W3DV5AY9ZFK":3,"skill-same:01M79P2M9DX6BJ7W3DV5AY9ZFK":45},{"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":6,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M79P2M9DX6BJ7W3DV5AY9ZFK","hookify-rules",null,"Create and configure hookify rules — markdown files with YAML frontmatter that match bash, file, prompt, or stop events by regex or conditions and show warn\u002Fblock messages to the agent. Use when creating a hookify rule, writing hook rule syntax, configuring hookify, or adding pattern guardrails such as blocking dangerous commands, .env edits, or debug code.","JunMystery\u002FAgent-Guidance","JunMystery","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F161468934?v=4","01M79MTMV8F0BY8NK1A92RA8A0","Jun","01M79MTMWCFBKPHN5B25E6V20B",0,"MIT","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fhookify-rules\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: hookify-rules\ndescription: Create and configure hookify rules — markdown files with YAML frontmatter that match bash, file, prompt, or stop events by regex or conditions and show warn\u002Fblock messages to the agent. Use when creating a hookify rule, writing hook rule syntax, configuring hookify, or adding pattern guardrails such as blocking dangerous commands, .env edits, or debug code.\n---\n\n# Writing Hookify Rules\n\n## Overview\n\nECC evaluates project-local Hookify rules with its built-in Node runtime. No\nseparate Hookify plugin or Python installation is required when ECC hooks are\nenabled.\n\nHookify rules are markdown files with YAML frontmatter that define patterns to watch for and messages to show when those patterns match. Rules are stored in `.claude\u002Fhookify.{rule-name}.local.md` files.\n\n## Rule File Format\n\n### Basic Structure\n\n```markdown\n---\nname: rule-identifier\nenabled: true\nevent: bash|file|stop|prompt|all\npattern: regex-pattern-here\n---\n\nMessage to show Claude when this rule triggers.\nCan include markdown formatting, warnings, suggestions, etc.\n```\n\n### Frontmatter Fields\n\n| Field | Required | Values | Description |\n|-------|----------|--------|-------------|\n| name | Yes | kebab-case string | Unique identifier (verb-first: warn-*, block-*, require-*) |\n| enabled | Yes | true\u002Ffalse | Toggle without deleting |\n| event | Yes | bash\u002Ffile\u002Fstop\u002Fprompt\u002Fall | Which hook event triggers this |\n| action | No | warn\u002Fblock | warn (default) shows message; block prevents operation |\n| pattern | Yes* | regex string | Pattern to match (*or use conditions for complex rules) |\n\n### Advanced Format (Multiple Conditions)\n\n```markdown\n---\nname: warn-env-api-keys\nenabled: true\nevent: file\nconditions:\n  - field: file_path\n    operator: regex_match\n    pattern: \\.env$\n  - field: new_text\n    operator: contains\n    pattern: API_KEY\n---\n\nYou're adding an API key to a .env file. Ensure this file is in .gitignore!\n```\n\n**Condition fields by event:**\n- bash: `command`\n- file: `file_path`, `new_text`, `old_text`, `content`\n- prompt: `user_prompt`\n\n**Operators:** `regex_match`, `contains`, `equals`, `not_contains`, `starts_with`, `ends_with`\n\nAll conditions must match for rule to trigger.\n\n## Event Type Guide\n\n### bash Events\nMatch Bash command patterns:\n- Dangerous commands: `rm\\s+-rf`, `dd\\s+if=`, `mkfs`\n- Privilege escalation: `sudo\\s+`, `su\\s+`\n- Permission issues: `chmod\\s+777`\n\n### file Events\nMatch Edit\u002FWrite\u002FMultiEdit operations:\n- Debug code: `console\\.log\\(`, `debugger`\n- Security risks: `eval\\(`, `innerHTML\\s*=`\n- Sensitive files: `\\.env$`, `credentials`, `\\.pem$`\n\n### stop Events\nCompletion checks and reminders. Pattern `.*` matches always.\n\n### prompt Events\nMatch user prompt content for workflow enforcement.\n\n## Pattern Writing Tips\n\n### Regex Basics\n- Escape special chars: `.` to `\\.`, `(` to `\\(`\n- `\\s` whitespace, `\\d` digit, `\\w` word char\n- `+` one or more, `*` zero or more, `?` optional\n- `|` OR operator\n\n### Common Pitfalls\n- **Too broad**: `log` matches \"login\", \"dialog\" — use `console\\.log\\(`\n- **Too specific**: `rm -rf \u002Ftmp` — use `rm\\s+-rf`\n- **YAML escaping**: Use unquoted patterns; quoted strings need `\\\\s`\n\n### Testing\n```bash\npython3 -c \"import re; print(re.search(r'your_pattern', 'test text'))\"\n```\n\nAvoid nested quantifiers such as `(a+)+`. The runtime rejects patterns with\ncommon catastrophic-backtracking shapes because rules run synchronously in the\nhook path, and every regex evaluation has a 25 ms hard timeout. Invalid,\nsymlinked, or oversized local rules fail open and emit a\ndiagnostic without disabling other Hookify rules.\n\nGit-tracked local rules are disabled by default. Set\n`ECC_HOOKIFY_ALLOW_TRACKED=1` only after reviewing those files; ordinary\ngitignored rules created locally remain active without that override.\n\n## Runtime Behavior\n\n- `warn` injects the message as event-specific additional context and does not block.\n- `block` denies matching Bash, PowerShell, Write, Edit, or MultiEdit calls before execution.\n- On prompt, post-tool, and stop events, `block` uses Claude Code's structured block decision.\n- Stop rules skip recursive `stop_hook_active` events to prevent infinite continuation loops.\n\n## File Organization\n\n- **Location**: `.claude\u002F` directory in project root\n- **Naming**: `.claude\u002Fhookify.{descriptive-name}.local.md`\n- **Gitignore**: Add `.claude\u002F*.local.md` to `.gitignore`\n\n## Commands\n\n- `\u002Fhookify [description]` - Create new rules (auto-analyzes conversation if no args)\n- `\u002Fhookify-list` - View all rules in table format\n- `\u002Fhookify-configure` - Toggle rules on\u002Foff interactively\n- `\u002Fhookify-help` - Full documentation\n\n## Quick Reference\n\nMinimum viable rule:\n```markdown\n---\nname: my-rule\nenabled: true\nevent: bash\npattern: dangerous_command\n---\nWarning message here\n```\n","# Writing Hookify Rules\n\n## Overview\n\nECC evaluates project-local Hookify rules with its built-in Node runtime. No\nseparate Hookify plugin or Python installation is required when ECC hooks are\nenabled.\n\nHookify rules are markdown files with YAML frontmatter that define patterns to watch for and messages to show when those patterns match. Rules are stored in `.claude\u002Fhookify.{rule-name}.local.md` files.\n\n## Rule File Format\n\n### Basic Structure\n\n```markdown\n---\nname: rule-identifier\nenabled: true\nevent: bash|file|stop|prompt|all\npattern: regex-pattern-here\n---\n\nMessage to show Claude when this rule triggers.\nCan include markdown formatting, warnings, suggestions, etc.\n```\n\n### Frontmatter Fields\n\n| Field | Required | Values | Description |\n|-------|----------|--------|-------------|\n| name | Yes | kebab-case string | Unique identifier (verb-first: warn-*, block-*, require-*) |\n| enabled | Yes | true\u002Ffalse | Toggle without deleting |\n| event | Yes | bash\u002Ffile\u002Fstop\u002Fprompt\u002Fall | Which hook event triggers this |\n| action | No | warn\u002Fblock | warn (default) shows message; block prevents operation |\n| pattern | Yes* | regex string | Pattern to match (*or use conditions for complex rules) |\n\n### Advanced Format (Multiple Conditions)\n\n```markdown\n---\nname: warn-env-api-keys\nenabled: true\nevent: file\nconditions:\n  - field: file_path\n    operator: regex_match\n    pattern: \\.env$\n  - field: new_text\n    operator: contains\n    pattern: API_KEY\n---\n\nYou're adding an API key to a .env file. Ensure this file is in .gitignore!\n```\n\n**Condition fields by event:**\n- bash: `command`\n- file: `file_path`, `new_text`, `old_text`, `content`\n- prompt: `user_prompt`\n\n**Operators:** `regex_match`, `contains`, `equals`, `not_contains`, `starts_with`, `ends_with`\n\nAll conditions must match for rule to trigger.\n\n## Event Type Guide\n\n### bash Events\nMatch Bash command patterns:\n- Dangerous commands: `rm\\s+-rf`, `dd\\s+if=`, `mkfs`\n- Privilege escalation: `sudo\\s+`, `su\\s+`\n- Permission issues: `chmod\\s+777`\n\n### file Events\nMatch Edit\u002FWrite\u002FMultiEdit operations:\n- Debug code: `console\\.log\\(`, `debugger`\n- Security risks: `eval\\(`, `innerHTML\\s*=`\n- Sensitive files: `\\.env$`, `credentials`, `\\.pem$`\n\n### stop Events\nCompletion checks and reminders. Pattern `.*` matches always.\n\n### prompt Events\nMatch user prompt content for workflow enforcement.\n\n## Pattern Writing Tips\n\n### Regex Basics\n- Escape special chars: `.` to `\\.`, `(` to `\\(`\n- `\\s` whitespace, `\\d` digit, `\\w` word char\n- `+` one or more, `*` zero or more, `?` optional\n- `|` OR operator\n\n### Common Pitfalls\n- **Too broad**: `log` matches \"login\", \"dialog\" — use `console\\.log\\(`\n- **Too specific**: `rm -rf \u002Ftmp` — use `rm\\s+-rf`\n- **YAML escaping**: Use unquoted patterns; quoted strings need `\\\\s`\n\n### Testing\n```bash\npython3 -c \"import re; print(re.search(r'your_pattern', 'test text'))\"\n```\n\nAvoid nested quantifiers such as `(a+)+`. The runtime rejects patterns with\ncommon catastrophic-backtracking shapes because rules run synchronously in the\nhook path, and every regex evaluation has a 25 ms hard timeout. Invalid,\nsymlinked, or oversized local rules fail open and emit a\ndiagnostic without disabling other Hookify rules.\n\nGit-tracked local rules are disabled by default. Set\n`ECC_HOOKIFY_ALLOW_TRACKED=1` only after reviewing those files; ordinary\ngitignored rules created locally remain active without that override.\n\n## Runtime Behavior\n\n- `warn` injects the message as event-specific additional context and does not block.\n- `block` denies matching Bash, PowerShell, Write, Edit, or MultiEdit calls before execution.\n- On prompt, post-tool, and stop events, `block` uses Claude Code's structured block decision.\n- Stop rules skip recursive `stop_hook_active` events to prevent infinite continuation loops.\n\n## File Organization\n\n- **Location**: `.claude\u002F` directory in project root\n- **Naming**: `.claude\u002Fhookify.{descriptive-name}.local.md`\n- **Gitignore**: Add `.claude\u002F*.local.md` to `.gitignore`\n\n## Commands\n\n- `\u002Fhookify [description]` - Create new rules (auto-analyzes conversation if no args)\n- `\u002Fhookify-list` - View all rules in table format\n- `\u002Fhookify-configure` - Toggle rules on\u002Foff interactively\n- `\u002Fhookify-help` - Full documentation\n\n## Quick Reference\n\nMinimum viable rule:\n```markdown\n---\nname: my-rule\nenabled: true\nevent: bash\npattern: dangerous_command\n---\nWarning message here\n```\n",{"name":5,"description":7},"main","5d0a87185c0e172c3901e2a6e5916b6d544b8b94","skills\u002Fhookify-rules","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance","https:\u002F\u002Fgithub.com\u002FJunMystery","AI is the typist, I am the architect. Building efficient, secure, and user-centric products through disciplined AI prompt engineering.","2026-11-13 17:41:25",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add JunMystery\u002FAgent-Guidance --skill hookify-rules",{"tool":37,"command":38},"bunx","bunx skills add JunMystery\u002FAgent-Guidance --skill hookify-rules",{"tool":40,"command":41},"pnpm","pnpm dlx skills add JunMystery\u002FAgent-Guidance --skill hookify-rules","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fhookify-rules\u002FSKILL.md",true,[],[46,52,58,64,70,76],{"skillNo":47,"name":48,"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":49,"categories":50,"keywords":51,"publishedAt":19},"01M79QR1E309VJ6CTQKB32AWWA","zero-trust-architecture-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fzero-trust-architecture-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"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":55,"categories":56,"keywords":57,"publishedAt":19},"01M79QQV7GHYR02DYGN41S23WN","xss-filter-evasion-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxss-filter-evasion-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"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":61,"categories":62,"keywords":63,"publishedAt":19},"01M79QQNSN7YB8XB61FFSCS3WH","xs-leaks-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxs-leaks-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"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":67,"categories":68,"keywords":69,"publishedAt":19},"01M79QQHZZJKFDY9132G5A65C2","xpath-injection-prevention-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxpath-injection-prevention-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"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":73,"categories":74,"keywords":75,"publishedAt":19},"01M79QQB9ZSD3DJG8658EHQXR1","xml-security-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxml-security-cheat-sheet\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"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":79,"categories":80,"keywords":81,"publishedAt":19},"01M79QQ60WKV7PFMXWT9CW8PM6","xml-external-entity-prevention-cheat-sheet","https:\u002F\u002Fgithub.com\u002FJunMystery\u002FAgent-Guidance\u002Fblob\u002Fmain\u002Fskills\u002Fxml-external-entity-prevention-cheat-sheet\u002FSKILL.md",[],[]]