text-hook-skill

text-hook-skill is a skill for Claude Code from lorem-dev/skillkeeper-test-repo. It costs 19 tokens per session (446 once invoked), scanned A, original, MIT.

A test skill for installing and removing a single raw-text hook in OpenCode, an AI coding agent, using marked sections in a configuration file.

In plain words
What is it for?
Use it to test append-mode hook installation, replacement on reinstall, delimiter escaping, and removal after surrounding text changes.
Why use it?
It checks that installation is repeatable, that existing text is preserved, and that uninstalling removes only the intended section.

Skill for Claude Code

Written for Claude Code: hooks in frontmatter. Also seen: mentions OpenCode.

Good fit Use it to test append-mode hook installation, replacement on reinstall, delimiter escaping, and removal after surrounding text changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lorem-dev/skillkeeper-test-repo/text-hook-skill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add lorem-dev/skillkeeper-test-repo --skill text-hook-skill
Clone the repo
git clone --depth 1 https://github.com/lorem-dev/skillkeeper-test-repo

Made for: Claude Code.

Wrote 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.

agentmods badge for text-hook-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/lorem-dev/skillkeeper-test-repo/text-hook-skill/github.svg)](https://agentmods.dev/skills/lorem-dev/skillkeeper-test-repo/text-hook-skill)
Your own site
<a href="https://agentmods.dev/skills/lorem-dev/skillkeeper-test-repo/text-hook-skill"><img src="https://agentmods.dev/badge/skills/lorem-dev/skillkeeper-test-repo/text-hook-skill/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.

agentmods 80×15 button for text-hook-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/lorem-dev/skillkeeper-test-repo/text-hook-skill"><img src="https://agentmods.dev/badge/skills/lorem-dev/skillkeeper-test-repo/text-hook-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 446 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00019 $0.00446
Opus 5.5 $0.00008 $0.00178
Sonnet 5.5 $0.00004 $0.00089
Haiku 4.5 $0.00002 $0.00045

Measured 2mo ago against content hash 848adeae8ff3, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

text-hook-skill scanned grade A with 0 findings 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

text-hook-skill/SKILL.md · 47 lines

What it actually says

text-hook-skill

Install this skill for opencode, the one built-in agent whose hook strategy is delimited-text:

skillkeeper skill install text-hook-skill --agent opencode --allow-hooks

What this fixture covers

  • The single-hook layout, hooks/HOOK.md with its payload as a sibling rather than hooks/<hookName>/HOOK.md. Both layouts resolve; json-hooks-skill covers the named one.
  • The delimited-text strategy end to end: SkillKeeper wraps the payload in a region with the comment token #, carrying a stable delimiterId.
  • Region removal by delimiterId on uninstall, which must work even if the surrounding file changed in the meantime.
  • Append-mode insertion. Install twice into the same file (a second agent, or a reinstall) and check the region is replaced, not duplicated.
  • Encapsulation. region.txt deliberately contains text that looks like a SkillKeeper delimiter; install must neutralize it so it cannot be mistaken for a region boundary, and reverse that on read.
  • No GUIDE.md and no RULES.md, so this skill writes to the config file without touching the guidance file at all.

A caveat worth knowing

opencode's delimited-text target is opencode.json, and the comment token is #. JSON has no comment syntax, so a region inserted there makes the file invalid JSON. That is a property of SkillKeeper's own agent mapping, not of this fixture.

The practical consequence: opencode's MCP writer parses opencode.json as JSON, so do not install this hook and an opencode MCP preset into the same project at the same time - test them separately, or expect the second operation to fail on a parse error.

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

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.

  1. 2mo ago First seen · 47 lines · 19 tokens per session scan A 848adeae8ff3

Subscribe to this mod's changes

text-hook-skill is a skill published in the GitHub repository lorem-dev/skillkeeper-test-repo (2 stars, last pushed 2mo ago), licensed MIT. It adds 19 tokens to every session and 446 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

text-hook-skill compared with skills from other repositories

text-hook-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
text-hook-skilllorem-dev/skillkeeper-test-repoSkill22mo agoMITA19Claude Code
pcbwayaklofas/kicad-happySkill1.6ktodayMITA119Claude Code
asc-subscription-localizationrorkai/app-store-connect-cli-skillsSkill1.1ktodayMITA60Claude Code
happiness-skillkangarooking/cangjie-skillSkill12k1mo agoMITA136Claude Code, Codex
remotion-best-practicesguanyang/open-agent-hubSkill986todayMITA116Claude Code
influence-psychologywondelai/skillsSkill2.6k5d agoMITA156Claude Code
jobs-to-be-donewondelai/skillsSkill2.6k5d agoMITA137Claude Code