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.
npx agentmods add skills/ramakrishnan24689/codeapps-toolkit/gen-hooknpx skills add Ramakrishnan24689/codeapps-toolkit --skill gen-hookgit clone --depth 1 https://github.com/Ramakrishnan24689/codeapps-toolkitWhat 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 | $0.00035 | $0.01974 |
| Opus 5 | $0.00017 | $0.00987 |
| Sonnet 5 | $0.00007 | $0.00395 |
| Haiku 4.5 | $0.00003 | $0.00197 |
Grade A, and why
gen-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 2d 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.
How it starts
The opening of the file, as written. The whole thing — 284 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Generate React Query Hooks
Generate React Query hooks for data fetching and mutations with proper cache management and TypeScript types.
What This Skill Does
- Creates query hooks for data fetching (use, useById)
- Creates mutation hooks for data modification (useCreate, useUpdate, useDelete)
- Implements proper query key hierarchy (factory pattern)
- Sets up cache invalidation after mutations
- Provides TypeScript types and error handling
- Includes optimistic updates pattern (advanced)
Usage
/gen-hook todos
/gen-hook accounts
/gen-hook userprofile
Template
This skill uses a comprehensive React Query template:
- templates/react-query-hooks.template.ts - Complete hooks with query key factory, cache management, and optimistic updates
How to use template: Read the template to understand the complete pattern, then generate adapted code based on the actual service layer you're integrating with.
Workflow
Step 1: Verify Service Layer Exists
Before generating hooks, ensure the service layer exists:
ls src/features/$ARGUMENTS[0]/services/*Service.ts
Read the service file to understand:
- Available methods (getTodos, createTodo, etc.)
- DTO types (CreateTodoDto, UpdateTodoDto)
- Domain model type (Todo)
Step 2: Read the React Query Template
Read templates/react-query-hooks.template.ts
Study the template structure:
- Query key factory pattern
- Query hooks with proper configuration
- Mutation hooks with cache invalidation
- Optimistic updates pattern
- TypeScript types
Step 3: Generate Hooks File Following Template Pattern
Create src/features/<feature>/hooks/use<Feature>.ts following the template structure.
React Query Hook Pattern (From Template)
Critical Pattern #1: Query Key Factory (From Template)
The template shows the query key factory pattern for hierarchical cache management:
// Query key factory - adapt to your feature name
const <feature>Keys = {
all: ['<feature>'] as const,
lists: () => [...<feature>Keys.all, 'list'] as const,
list: (filters?: Filters) => [...<feature>Keys.lists(), filters] as const,
details: () => [...<feature>Keys.all, 'detail'] as const,
detail: (id: string) => [...<feature>Keys.details(), id] as const,
};
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.
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.
- 2d ago First seen · 284 lines · 35 tokens per session scan A 51a2d94cc003
gen-hook is a skill published in the GitHub repository Ramakrishnan24689/codeapps-toolkit (5 stars, last pushed 6mo ago), licensed MIT. It adds 35 tokens to every session and 1,974 once invoked, about $0.0002 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-31.
Other skills, from other repositories
weekly-digests
Generate a serial week-by-week narrative digest of a project's full claude-mem timeline. Splits the timeline into per-ISO-week files, then runs one consecutive subagent per week — each receiving the prior week's carry-forward block — to produce one chapter per ISO week of data. Use when asked for "weekly digests"…
agentmail
Use when an agent needs AgentMail CLI email inboxes.
skill-template
Template for creating new Agent Skills for context engineering. Use this template when adding new skills to the collection.
Agent Development
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development…
skill-creator
Scaffold a new yoyo skill when a human or community issue asks for one ("add a skill for X", "create a skill that does Y"). Generates correct frontmatter, validates, writes to disk.
subagent-delegation
Canonical protocol for delegating GSD work to native Antigravity subagents — when to delegate, how to invoke, workspace isolation modes, and the inline fallback for older IDE versions.