hooks

hooks is a skill for Claude Code from Epistates/sparX. It costs 35 tokens per session (797 once invoked), scanned A, original, MIT.

A writing skill for generating opening lines, also called hooks, for posts on X, the social platform formerly known as Twitter. It creates several alternatives from a topic, rough idea, existing hook, or URL.

In plain words
What is it for?
Use it to brainstorm opening lines for posts, replace a weak hook, or create alternatives based on linked material.
Why use it?
It helps when the first line does not clearly give readers a reason to continue.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Good fit Use it to brainstorm opening lines for posts, replace a weak hook, or create alternatives based on linked material.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/epistates/sparx/hooks
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 Epistates/sparX --skill hooks
Clone the repo
git clone --depth 1 https://github.com/Epistates/sparX

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 hooks

README.md
[![agentmods](https://agentmods.dev/badge/skills/epistates/sparx/hooks/github.svg)](https://agentmods.dev/skills/epistates/sparx/hooks)
Your own site
<a href="https://agentmods.dev/skills/epistates/sparx/hooks"><img src="https://agentmods.dev/badge/skills/epistates/sparx/hooks/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 hooks

Your own site · 80×15
<a href="https://agentmods.dev/skills/epistates/sparx/hooks"><img src="https://agentmods.dev/badge/skills/epistates/sparx/hooks.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 797 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.00035 $0.00797
Opus 5.5 $0.00014 $0.00319
Sonnet 5.5 $0.00007 $0.00159
Haiku 4.5 $0.00003 $0.00080

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

Security

Grade A, and why

hooks 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 3mo 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.

.claude/skills/hooks/SKILL.md · 78 lines

How it starts

The opening of the file, as written. The whole thing — 78 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Generate Scroll-Stopping Hooks

The first 8-12 words of an X post determine whether anyone reads the rest. Generate multiple high-impact hook options optimized for the Phoenix algorithm's dwell time signal.

Input

The user provides:

  • A topic they're posting about
  • A rough idea of the post content
  • An existing hook they want alternatives for
  • A URL — read the content via WebFetch to understand the subject, then generate hooks based on the actual material (see ../../../reference/url-reading.md)

Process

Step 1 — Understand the Content

What is the core message? Who is the audience? What emotion should the hook trigger?

Step 2 — Read Hook Patterns

Read patterns.md for the full hook pattern library.

Step 3 — Generate 7-10 Hooks

Generate hooks across multiple pattern categories:

  1. Curiosity Gap — Creates an information gap the reader must fill
  2. Specific Number — Leads with a concrete, impressive metric
  3. Contrarian — Challenges conventional wisdom
  4. Pain Point — Names a frustration the audience feels
  5. Before/After — Shows transformation in minimal words
  6. Social Proof — Leads with credibility markers
  7. Question — Poses something the reader can't ignore

For each hook:

  • Keep to 8-12 words (the visible preview before truncation)
  • Test: Would this stop YOUR scroll?
  • Ensure it's honest — don't promise what the post doesn't deliver

Step 4 — Rank and Annotate

Rank all hooks by predicted effectiveness and annotate:

  • Best for dwell — which hook will make people read the full post?
  • Best for replies — which hook triggers an urge to respond?
  • Best for bookmarks — which hook signals "save-worthy" content?
  • Safest — which hook has lowest negative signal risk?
  • Boldest — which hook has highest ceiling but more risk?

Step 5 — Output

Present all hooks in a scored table, ranked by Phoenix Score. The score represents what a full post would score with that hook (assuming a solid body + CTA):

Read the full file on GitHub · 78 lines

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. 3mo ago First seen · 78 lines · 35 tokens per session scan A b95fa410dfb0

Subscribe to this mod's changes

hooks is a skill published in the GitHub repository Epistates/sparX (5 stars, last pushed 8mo ago), licensed MIT. It adds 35 tokens to every session and 797 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

hooks compared with skills from other repositories

hooks next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
hooksEpistates/sparXSkill58mo agoMITA35Claude Code
skill-builderyusufkaraaslan/Skill_SeekersSkill15k6d agoMITA38Claude Code
skill-builderyusufkaraaslan/Skill_SeekersSkill15k6d agoMITA38Claude Code, Codex
stuckmshadmanrahman/claude-for-designersSkill442mo agoMITA161Claude Code
wrap-upmshadmanrahman/claude-for-designersSkill442mo agoMITA104Claude Code
pick-upmshadmanrahman/claude-for-designersSkill442mo agoMITA93Claude Code
grill-memshadmanrahman/claude-for-designersSkill442mo agoMITA119Claude Code