[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CS3AJRZ5BYB1VHHD0VE2W0":3,"skill-same:01M7CS3AJRZ5BYB1VHHD0VE2W0":55},{"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":14,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":32,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M7CS3AJRZ5BYB1VHHD0VE2W0","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.","Henrique1601\u002FSkiilsToIAs","Henrique1601","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F92006691?v=4","01M7CRXVT0GVXVK80JT1GR687S","Henrique Bezerra Dos Santos","01M7CRXVTN5Y8TMWJ1MDSKCQ1T",0,"MIT","https:\u002F\u002Fgithub.com\u002FHenrique1601\u002FSkiilsToIAs\u002Fblob\u002Fmain\u002Fai-agents\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.\nversion: 1.1.1\nmetadata:\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,"version":24,"metadata":25,"description":7},"1.1.1",{"origin":26},"ECC","main","a73152352c0612252131e5cf84e91312a6cf17dc","ai-agents\u002Fdelivery-gate","https:\u002F\u002Fgithub.com\u002FHenrique1601\u002FSkiilsToIAs","https:\u002F\u002Fgithub.com\u002FHenrique1601","https:\u002F\u002Fbezerraportifolio.netlify.app\u002F","Full Stack Developer | React, Next.js, TypeScript, Node.js & IA | Construindo produtos digitais e soluções SaaS","2026-11-15 02:56:04",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add Henrique1601\u002FSkiilsToIAs --skill delivery-gate",{"tool":41,"command":42},"bunx","bunx skills add Henrique1601\u002FSkiilsToIAs --skill delivery-gate",{"tool":44,"command":45},"pnpm","pnpm dlx skills add Henrique1601\u002FSkiilsToIAs --skill delivery-gate","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FHenrique1601\u002FSkiilsToIAs\u002Fblob\u002Fmain\u002Fai-agents\u002Fdelivery-gate\u002FSKILL.md",true,[49],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"hooks\u002Fquality-gate.py","SCRIPT","脚本",7826,"https:\u002F\u002Fgithub.com\u002FHenrique1601\u002FSkiilsToIAs\u002Fblob\u002Fmain\u002Fai-agents\u002Fdelivery-gate\u002Fhooks\u002Fquality-gate.py",[56,63,70,78,85,92],{"skillNo":57,"name":58,"nameZh":6,"description":59,"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":19},"01M7E2ANBW9V6AVX5JXNCEAWF8","rag-architect-agent","Agente Arquiteto de RAG, Embeddings & Busca Vetorial. Especialista em design e implementação de pipelines de Retrieval-Augmented Generation de alta fidelidade: chunking semântico, modelagem pgvector no PostgreSQL (Neon\u002FSupabase), busca híbrida (cosseno + BM25), reranking, validação via TypeSafe AI e filosofia Ponytail (anti-overengineering).","https:\u002F\u002Fgithub.com\u002FHenrique1601\u002FSkiilsToIAs\u002Fblob\u002Fmain\u002Fcustom-agents\u002Frag-architect-agent\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":19},"01M7E29KKF8R02ZRGYE2MJM67G","rag-architecture-patterns","Padrões arquiteturais e implementação de pipelines RAG (Retrieval-Augmented Generation) de alta fidelidade para qualquer projeto ou sistema. Cobre chunking semântico, embeddings, busca híbrida (pgvector + BM25), reranking, validação via TypeSafe AI e filosofia Ponytail (anti-overengineering).","https:\u002F\u002Fgithub.com\u002FHenrique1601\u002FSkiilsToIAs\u002Fblob\u002Fmain\u002Fai-agents\u002Frag-architecture-patterns\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":74,"licenseFileUrl":6,"sourceHtmlUrl":75,"categories":76,"keywords":77,"publishedAt":19},"01M7CWRA8E3BJ7CPY8N8EG28J1","skill-repair","Use this to fix and re-install agent skills that have failed installation.\nThis skill provides the necessary context and permissions to surgically update\nthe `manifest.json` after a fix has been applied.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FHenrique1601\u002FSkiilsToIAs\u002Fblob\u002Fmain\u002Futilities\u002Fskill-repair\u002FSKILL.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M7CWR66FZP8FA47WVZ4Z2EXC","security-scan","Scan your Claude Code configuration (.claude\u002F directory) for security vulnerabilities, misconfigurations, and injection risks using AgentShield. Checks CLAUDE.md, settings.json, MCP servers, hooks, and agent definitions.","https:\u002F\u002Fgithub.com\u002FHenrique1601\u002FSkiilsToIAs\u002Fblob\u002Fmain\u002Futilities\u002Fsecurity-scan\u002FSKILL.md",[],[],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":19},"01M7CWR0QPY58QPTR1P759TFNG","security-review","Use this skill when adding authentication, handling user input, working with secrets, creating API endpoints, or implementing payment\u002Fsensitive features. Provides comprehensive security checklist and patterns.","https:\u002F\u002Fgithub.com\u002FHenrique1601\u002FSkiilsToIAs\u002Fblob\u002Fmain\u002Futilities\u002Fsecurity-review\u002FSKILL.md",[],[],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M7CWQXCE40XWT4FZ3VWZFGDP","security-bounty-hunter","Hunt for exploitable, bounty-worthy security issues in repositories. Focuses on remotely reachable vulnerabilities that qualify for real reports instead of noisy local-only findings.","https:\u002F\u002Fgithub.com\u002FHenrique1601\u002FSkiilsToIAs\u002Fblob\u002Fmain\u002Futilities\u002Fsecurity-bounty-hunter\u002FSKILL.md",[],[]]