Borrowing it
Nothing to install: this file belongs to shyamsridhar123/agentsmith-cli. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/shyamsridhar123/agentsmith-cli/main/.github/skills/hook-lifecycle-execution/SKILL.mdgit clone --depth 1 https://github.com/shyamsridhar123/agentsmith-cliWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/shyamsridhar123/agentsmith-cli/hook-lifecycle-execution)<a href="https://agentmods.dev/skills/shyamsridhar123/agentsmith-cli/hook-lifecycle-execution"><img src="https://agentmods.dev/badge/skills/shyamsridhar123/agentsmith-cli/hook-lifecycle-execution/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/shyamsridhar123/agentsmith-cli/hook-lifecycle-execution"><img src="https://agentmods.dev/badge/skills/shyamsridhar123/agentsmith-cli/hook-lifecycle-execution.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00021 | $0.00191 |
| Opus 5.5 | $0.00008 | $0.00076 |
| Sonnet 5.5 | $0.00004 | $0.00038 |
| Haiku 4.5 | $0.00002 | $0.00019 |
Grade A, and why
hook-lifecycle-execution scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Runs shell commandslowCapability
Expected in a hook, worth knowing in a rule or an instructions file.
- execSync command execution with timeout What it actually says
Hook Lifecycle Execution
Load and execute YAML-defined lifecycle hooks with optional conditions and controlled timeouts.
When to Use
Use this skill when:
- Working with code in
src/hooks/index.ts/ - User mentions "hooks"
- User mentions "pre-commit"
- User mentions "post-generate"
- User mentions "condition"
- User mentions "timeout"
Patterns
- event-scoped hook discovery under .github/hooks
- execSync command execution with timeout
- file/command condition evaluation
- verbose output and early failure stop
- per-hook success/error aggregation
Examples
const runner = new HookRunner(rootPath, verbose); await runner.execute('post-generate');
Category
reliability - Error handling, recovery, and fault tolerance
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 38 lines · 21 tokens per session scan A ab25e7f32241
hook-lifecycle-execution is a skill published in the GitHub repository shyamsridhar123/agentsmith-cli (17 stars, last pushed 8d ago), licensed MIT. It adds 21 tokens to every session and 191 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
hook-lifecycle-execution compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| hook-lifecycle-executionshyamsridhar123/agentsmith-cli | Skill | 17 | 8d ago | MIT | A | 21 | Claude Code, Codex |
| create-ts-entry-pointjeffsenso/prestashop-skills | Skill | 6 | 3d ago | MIT | A | 60 | Claude Code, Codex |
| date-threshold-arithmeticfabioc-aloha/Alex_Skill_Mall | Skill | 5 | yesterday | MIT | A | 16 | Claude Code, Codex |
| phoenix-typescriptAll-The-Vibes/ATV-Phoenix | Skill | 6 | 17d ago | MIT | A | 115 | Claude Code, Codex |
| quality-gates-typescriptSebastienDegodez/skraft-plugin | Skill | 13 | yesterday | GPL-3.0 | A | 136 | Claude Code |
| mocking-inprocess-typescriptSebastienDegodez/skraft-plugin | Skill | 13 | yesterday | GPL-3.0 | A | 90 | Claude Code |
| mocking-microcks-typescriptSebastienDegodez/skraft-plugin | Skill | 13 | yesterday | GPL-3.0 | A | 80 | Claude Code |