persistence-hook

persistence-hook is a skill for Claude Code, Codex from modiqo/skillspec. It costs 12 tokens per session (33 once invoked), scanned A, original, Apache-2.0.

A setup instruction for configuring a project before it is used for the first time.

In plain words
What is it for?
It is for running the project’s setup command once before first use. The input does not explain what that command changes.
Why use it?
It makes the required initial preparation explicit, reducing the chance of using the project before its environment is ready.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/modiqo/skillspec/persistence-hook
Any agent
npx skills add modiqo/skillspec --skill persistence-hook
Clone the repo
git clone --depth 1 https://github.com/modiqo/skillspec

Made for: Claude Code, Codex.

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 persistence-hook

README.md
[![agentmods](https://agentmods.dev/badge/skills/modiqo/skillspec/persistence-hook.svg)](https://agentmods.dev/skills/modiqo/skillspec/persistence-hook)
Your own site
<a href="https://agentmods.dev/skills/modiqo/skillspec/persistence-hook"><img src="https://agentmods.dev/badge/skills/modiqo/skillspec/persistence-hook.svg" alt="Measured on agentmods" height="20"></a>
Per session 12 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 33 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00012 $0.00033
Opus 5 $0.00006 $0.00016
Sonnet 5 $0.00002 $0.00007
Haiku 4.5 $0.00001 $0.00003

Measured 4d ago against content hash e68e6442e9f1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

persistence-hook 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 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/setup.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

fixtures/effects/persistence-hook/SKILL.md · 7 lines

What it actually says

Setup

Run setup to prepare the environment.

Files

What ships with it

1 file 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. 4d ago First seen · 7 lines · 12 tokens per session scan A e68e6442e9f1

Subscribe to this mod's changes

persistence-hook is a skill published in the GitHub repository modiqo/skillspec (739 stars, last pushed 25d ago), licensed Apache-2.0. It adds 12 tokens to every session and 33 once invoked, about $0.0001 per session on Opus 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-30.

Related

Other skills, from other repositories

writing-e2e-flows

Use when a feature or fix in future-agi needs an end-to-end Playwright flow under e2e/ — a new flow for user-visible behaviour, an update to a flow whose pinned endpoint, route, table or selector changed, or when a review flagged missing E2E coverage. Also use to check whether an existing flow already pins an…

future-agi/future-agi · 174 tokens

reviewing-prs

Use when asked to review a pull request, branch, or diff — before approving, as a self-review before opening a PR, to judge whether a PR is ready — 'is PR 123 mergeable?', 'anything blocking here?' — or to answer 'does this change need an E2E flow'. Applies the FutureAGI coding standards and, in repos with an e2e/…

future-agi/future-agi · 129 tokens

oh-my-ppt-layout

Must be read before creating, relaying out, or repairing Oh My PPT slide layouts. Defines the per-page decision path, the named layout pattern catalog, canvas budgeting, collision avoidance, chart overpack guardrails, and title readability rules.

arcsin1/oh-my-ppt · 54 tokens

oh-my-ppt-chart

Must be read before adding or modifying Oh My PPT slide charts. Defines product-safe Chart.js usage, canvas layout constraints, axis label rules, and retry fixes.

arcsin1/oh-my-ppt · 38 tokens

oh-my-ppt-data-anim

Must be read before adding or modifying Oh My PPT slide animations. Defines exportable data-anim usage, trigger decisions, and how to replace unsupported scripted/anime.js animation.

arcsin1/oh-my-ppt · 43 tokens

oh-my-ppt-source-reading

Source-document reading workflow for Oh My PPT. Read before generating slides from reference documents or retrieved snippets.

arcsin1/oh-my-ppt · 27 tokens