[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EH098WQPSBP2S4YSY82PYN":3,"skill-same:01M7EH098WQPSBP2S4YSY82PYN":49},{"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":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M7EH098WQPSBP2S4YSY82PYN","delivery-gate",null,"Stop hook that blocks Claude from finishing until quality checks pass. Detects rationalization patterns (surface text heuristics), stale learning logs (filesystem mtime), and low disk space. Complements self-audit by mechanically enforcing learning capture habits. Use when Claude should be mechanically blocked from declaring work finished before quality checks and learning capture actually pass.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fdelivery-gate\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: delivery-gate\ndescription: Stop hook that blocks Claude from finishing until quality checks pass. Detects rationalization patterns (surface text heuristics), stale learning logs (filesystem mtime), and low disk space. Complements self-audit by mechanically enforcing learning capture habits. Use when Claude should be mechanically blocked from declaring work finished before quality checks and learning capture actually pass.\nmetadata:\n  version: 1.1.1\n  origin: ECC\n---\n\n# Delivery Gate — Mechanical Quality Gate for Claude Code\n\nA **Stop hook** that checks three things before Claude can finish a session, using only **deterministic checks** — file modification timestamps, disk usage, and regex patterns on the transcript text. No AI inference.\n\nThis is distinct from reasoning gates (like `self-audit`): delivery-gate checks machine-verifiable facts; self-audit checks output quality across four reasoning dimensions. Together they form defense in depth:\n- **delivery-gate**: \"Was the learning library touched today? Is disk space safe?\"\n- **self-audit**: \"Is the file content correct, complete, and honest?\"\n\nThis is the same pattern as CI pipeline gates — automated, deterministic checks that verify machine-readable facts rather than trusting self-reported status.\n\n## What It Checks\n\n| Check | Mechanism | On Hit |\n|-------|-----------|--------|\n| Rationalization patterns | Regex on transcript tail | **Warning only** (never blocks) |\n| Stale learning libraries | mtime on 5 configurable paths | Warning if some stale; **Block** if >=3 stale OR growth-log stale + complex task |\n| Disk space \u003C 50GB | `shutil.disk_usage` | Warning |\n| Disk space \u003C 15GB | `shutil.disk_usage` | **Block** (exit 2) |\n\nRationalization detection warns about patterns like \"skip tests for now\" and \"pre-existing bug\" — surface signals that thinking may have been cut short. It never blocks on its own, because regex heuristics can false-positive. The blocking conditions are: disk critical, `>=3 learning libs stale`, OR `growth-log` specifically stale (all require complex task >=3 edits).\n\n## Why\n\nClaude Code's built-in checks cover code quality (build → type → lint → test). But there's a different failure mode: the agent produces working code while the **session hygiene was neglected** — learning not captured, rationalized shortcuts, disk running out silently.\n\nOver many sessions of \"ship and forget,\" the human hasn't grown. This hook enforces the habit: complex task → must touch learning libraries.\n\n## Install\n\n```bash\ncp quality-gate.py ~\u002F.claude\u002Fscripts\u002F\n```\n\nAdd to `~\u002F.claude\u002Fsettings.json`:\n```json\n{\n  \"hooks\": {\n    \"Stop\": [{\n      \"hooks\": [{\n        \"type\": \"command\",\n        \"command\": \"python3 ~\u002F.claude\u002Fscripts\u002Fquality-gate.py\",\n        \"timeout\": 5000\n      }]\n    }]\n  }\n}\n```\n\n## Learning Libraries\n\nCreate these files in your project's memory directory. The hook checks if at least one was updated today:\n\n```\nmemory\u002F\n├── growth-log\u002F          # Daily learning entries (directory)\n├── decisions\u002Flog.md     # Decision log\n├── output-index.md      # Index of session outputs\n├── ratings-tracker.md   # Skill ratings over time\n└── tooling_capabilities.md  # Known tools inventory\n```\n\nCustomize the `LIBS` dict to match your own file structure.\n\n## Configuration\n\nEdit `quality-gate.py`:\n\n| Variable | Default | Purpose |\n|----------|---------|---------|\n| `RATIONALIZE` | 4 patterns | Regex patterns for rationalization detection |\n| `LIBS` | 5 libraries | Files\u002Fdirs to check for today's updates |\n| `COMPLEX_THRESHOLD` | 3 | Edit\u002FWrite calls to classify as complex |\n| `DISK_WARN_GB` | 50 | Warn below this |\n| `DISK_CRIT_GB` | 15 | Block below this |\n\n## Examples\n\n**Simple session — allowed:**\n```\nedit_count=1 (\u003C 3, not complex) → exit 0\n```\n\n**Complex task, learning captured — allowed:**\n```\nedit_count=5 (complex) → checks LIBS → growth-log updated today → exit 0\n```\n\n**Complex task, no learning — BLOCKED:**\n```\nedit_count=4 (complex) → checks LIBS → all 5 stale → exit 2\nstderr: \"Blocked: complex task completed but no learning captured today.\"\n```\n\n**Low disk space — BLOCKED:**\n```\ndisk_free=12GB \u003C 15GB critical → exit 2\nstderr: \"Blocked: disk space at 12GB (threshold: 15GB).\"\n```\n\n## Limitations\n\nThe hook enforces the **habit** of touching learning libraries, not the **quality** of what was recorded. If `output-index.md` is updated but `growth-log` is skipped, the hook passes (1 of 5 libraries touched). This is by design: mechanical gates check machine-verifiable facts. For content quality verification, pair with `self-audit`.\n\n## Compatibility\n\n- Python 3.8+ (uses `from __future__ import annotations`)\n- Cross-platform: Windows, macOS, Linux\n- Zero dependencies beyond stdlib\n\n## Quality\n\nThis code went through 4 rounds of automated code review (CodeRabbit + Greptile) with 9 real bugs found and fixed.\n\n## See Also\n\n- `self-audit` — Reasoning quality gate (completeness\u002Fconsistency\u002Fgroundedness\u002Fhonesty)\n- `verification-loop` — Code quality checks (build\u002Ftype\u002Flint\u002Ftest)\n- `gateguard` — PreToolUse safety gate\n","# Delivery Gate — Mechanical Quality Gate for Claude Code\n\nA **Stop hook** that checks three things before Claude can finish a session, using only **deterministic checks** — file modification timestamps, disk usage, and regex patterns on the transcript text. No AI inference.\n\nThis is distinct from reasoning gates (like `self-audit`): delivery-gate checks machine-verifiable facts; self-audit checks output quality across four reasoning dimensions. Together they form defense in depth:\n- **delivery-gate**: \"Was the learning library touched today? Is disk space safe?\"\n- **self-audit**: \"Is the file content correct, complete, and honest?\"\n\nThis is the same pattern as CI pipeline gates — automated, deterministic checks that verify machine-readable facts rather than trusting self-reported status.\n\n## What It Checks\n\n| Check | Mechanism | On Hit |\n|-------|-----------|--------|\n| Rationalization patterns | Regex on transcript tail | **Warning only** (never blocks) |\n| Stale learning libraries | mtime on 5 configurable paths | Warning if some stale; **Block** if >=3 stale OR growth-log stale + complex task |\n| Disk space \u003C 50GB | `shutil.disk_usage` | Warning |\n| Disk space \u003C 15GB | `shutil.disk_usage` | **Block** (exit 2) |\n\nRationalization detection warns about patterns like \"skip tests for now\" and \"pre-existing bug\" — surface signals that thinking may have been cut short. It never blocks on its own, because regex heuristics can false-positive. The blocking conditions are: disk critical, `>=3 learning libs stale`, OR `growth-log` specifically stale (all require complex task >=3 edits).\n\n## Why\n\nClaude Code's built-in checks cover code quality (build → type → lint → test). But there's a different failure mode: the agent produces working code while the **session hygiene was neglected** — learning not captured, rationalized shortcuts, disk running out silently.\n\nOver many sessions of \"ship and forget,\" the human hasn't grown. This hook enforces the habit: complex task → must touch learning libraries.\n\n## Install\n\n```bash\ncp quality-gate.py ~\u002F.claude\u002Fscripts\u002F\n```\n\nAdd to `~\u002F.claude\u002Fsettings.json`:\n```json\n{\n  \"hooks\": {\n    \"Stop\": [{\n      \"hooks\": [{\n        \"type\": \"command\",\n        \"command\": \"python3 ~\u002F.claude\u002Fscripts\u002Fquality-gate.py\",\n        \"timeout\": 5000\n      }]\n    }]\n  }\n}\n```\n\n## Learning Libraries\n\nCreate these files in your project's memory directory. The hook checks if at least one was updated today:\n\n```\nmemory\u002F\n├── growth-log\u002F          # Daily learning entries (directory)\n├── decisions\u002Flog.md     # Decision log\n├── output-index.md      # Index of session outputs\n├── ratings-tracker.md   # Skill ratings over time\n└── tooling_capabilities.md  # Known tools inventory\n```\n\nCustomize the `LIBS` dict to match your own file structure.\n\n## Configuration\n\nEdit `quality-gate.py`:\n\n| Variable | Default | Purpose |\n|----------|---------|---------|\n| `RATIONALIZE` | 4 patterns | Regex patterns for rationalization detection |\n| `LIBS` | 5 libraries | Files\u002Fdirs to check for today's updates |\n| `COMPLEX_THRESHOLD` | 3 | Edit\u002FWrite calls to classify as complex |\n| `DISK_WARN_GB` | 50 | Warn below this |\n| `DISK_CRIT_GB` | 15 | Block below this |\n\n## Examples\n\n**Simple session — allowed:**\n```\nedit_count=1 (\u003C 3, not complex) → exit 0\n```\n\n**Complex task, learning captured — allowed:**\n```\nedit_count=5 (complex) → checks LIBS → growth-log updated today → exit 0\n```\n\n**Complex task, no learning — BLOCKED:**\n```\nedit_count=4 (complex) → checks LIBS → all 5 stale → exit 2\nstderr: \"Blocked: complex task completed but no learning captured today.\"\n```\n\n**Low disk space — BLOCKED:**\n```\ndisk_free=12GB \u003C 15GB critical → exit 2\nstderr: \"Blocked: disk space at 12GB (threshold: 15GB).\"\n```\n\n## Limitations\n\nThe hook enforces the **habit** of touching learning libraries, not the **quality** of what was recorded. If `output-index.md` is updated but `growth-log` is skipped, the hook passes (1 of 5 libraries touched). This is by design: mechanical gates check machine-verifiable facts. For content quality verification, pair with `self-audit`.\n\n## Compatibility\n\n- Python 3.8+ (uses `from __future__ import annotations`)\n- Cross-platform: Windows, macOS, Linux\n- Zero dependencies beyond stdlib\n\n## Quality\n\nThis code went through 4 rounds of automated code review (CodeRabbit + Greptile) with 9 real bugs found and fixed.\n\n## See Also\n\n- `self-audit` — Reasoning quality gate (completeness\u002Fconsistency\u002Fgroundedness\u002Fhonesty)\n- `verification-loop` — Code quality checks (build\u002Ftype\u002Flint\u002Ftest)\n- `gateguard` — PreToolUse safety gate\n",{"name":5,"metadata":24,"description":7},{"origin":25,"version":26},"ECC","1.1.1","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","04-安全渗透\u002Fdelivery-gate",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill delivery-gate",{"tool":41,"command":42},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill delivery-gate",{"tool":44,"command":45},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill delivery-gate","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fdelivery-gate\u002FSKILL.md",true,[],[50,58,63,70,77,84],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":57},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":59,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":57},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"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":57},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":57},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":57},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":57},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]