Hooks Automation

Hooks Automation is a skill for Claude Code, Codex from ruvnet/RuView. It costs 46 tokens per session (7,560 once invoked), scanned C, original, MIT.

An automation skill that runs actions before and after Claude Code operations. It can validate work, format code, manage sessions, connect Git tasks, and preserve information between sessions.

In plain words
What is it for?
Use it to prepare tasks, assign agents, format and analyze results, restore previous session context, coordinate memory, and verify commits.
Why use it?
It reduces repetitive setup and cleanup around coding tasks while helping keep session state, shared agent knowledge, and quality checks organized.

Skill for Claude CodeCodex

About the project

RuView is a WiFi sensing platform that uses disturbances in radio signals, captured by low-cost ESP32 sensors, to detect presence, movement, breathing, and heart rate without cameras or wearables. It is intended for spatial monitoring and smart-home integrations. The catalogue add-ons support workflows for operating and integrating RuView.

ruvnet/RuView · 92,510 stars · on GitHub · cognitum.one

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/ruvnet/ruview/hooks-automation
Any agent
npx skills add ruvnet/RuView --skill hooks-automation
Clone the repo
git clone --depth 1 https://github.com/ruvnet/RuView

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 Hooks Automation

README.md
[![agentmods](https://agentmods.dev/badge/skills/ruvnet/ruview/hooks-automation.svg)](https://agentmods.dev/skills/ruvnet/ruview/hooks-automation)
Your own site
<a href="https://agentmods.dev/skills/ruvnet/ruview/hooks-automation"><img src="https://agentmods.dev/badge/skills/ruvnet/ruview/hooks-automation.svg" alt="Measured on agentmods" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 7,560 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.1 $0.00046 $0.07560
Opus 5 $0.00023 $0.03780
Sonnet 5 $0.00009 $0.01512
Haiku 4.5 $0.00005 $0.00756

Measured 2d ago against content hash 748868e06e46, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade C, and why

Hooks Automation scanned grade C 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 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.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

npx claude-flow hook pre-bash -c "rm -rf /tmp/cache"
Origin

Copies of this mod

8 near-identical copies found in the catalogue:

.claude/skills/hooks-automation/SKILL.md · 1,202 lines

How it starts

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

Hooks Automation

Intelligent automation system that coordinates, validates, and learns from Claude Code operations through hooks integrated with MCP tools and neural pattern training.

What This Skill Does

This skill provides a comprehensive hook system that automatically manages development operations, coordinates swarm agents, maintains session state, and continuously learns from coding patterns. It enables automated agent assignment, code formatting, performance tracking, and cross-session memory persistence.

Key Capabilities:

  • Pre-Operation Hooks: Validate, prepare, and auto-assign agents before operations
  • Post-Operation Hooks: Format, analyze, and train patterns after operations
  • Session Management: Persist state, restore context, generate summaries
  • Memory Coordination: Synchronize knowledge across swarm agents
  • Git Integration: Automated commit hooks with quality verification
  • Neural Training: Continuous learning from successful patterns
  • MCP Integration: Seamless coordination with swarm tools

Prerequisites

Required:

  • Claude Flow CLI installed (npm install -g claude-flow@alpha)
  • Claude Code with hooks enabled
  • .claude/settings.json with hook configurations

Optional:

  • MCP servers configured (claude-flow, ruv-swarm, flow-nexus)
  • Git repository for version control
  • Testing framework for quality verification

Quick Start

Initialize Hooks System

# Initialize with default hooks configuration
npx claude-flow init --hooks

This creates:

  • .claude/settings.json with pre-configured hooks
  • Hook command documentation in .claude/commands/hooks/
  • Default hook handlers for common operations

Basic Hook Usage

# Pre-task hook (auto-spawns agents)
npx claude-flow hook pre-task --description "Implement authentication"

# Post-edit hook (auto-formats and stores in memory)
npx claude-flow hook post-edit --file "src/auth.js" --memory-key "auth/login"

# Session end hook (saves state and metrics)
npx claude-flow hook session-end --session-id "dev-session" --export-metrics

Read the full file on GitHub · 1,202 lines

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. 2d ago First seen · 1,202 lines · 46 tokens per session scan C 748868e06e46

Subscribe to this mod's changes

Hooks Automation is a skill published in the GitHub repository ruvnet/RuView (92,510 stars, last pushed today), licensed MIT. It adds 46 tokens to every session and 7,560 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it C with 1 finding (recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

meraki-wireless-ops

Cisco Meraki wireless (read-only) — SSID configuration, RF profiles, Air Marshal, channel utilization, signal quality, client connectivity events via Cisco's official Meraki MCP. Use when inspecting Meraki SSIDs, auditing RF configuration, or investigating WiFi connectivity.

automateyournetwork/netclaw · 60 tokens

agent-kill-switch

Give the human an off switch and a cost meter for the coding agents on this machine, using ClawMetry. Use when the user asks to stop or kill a runaway agent, see what an agent is doing or spending, cap agent spend, gate risky tool calls behind approval, or "set up a kill switch" for Claude Code, Codex, Cursor, Gemini…

vivekchand/clawmetry · 95 tokens

session-review

When ending a work session and wanting to capture what was accomplished, what was learned, and what to do next. Use when the user says "session review," "what did we do," "wrap up," "summarize session," "weekly review," "retrospective," "what happened today," "debrief," or at natural session endings. Reviews the…

ggg123124/vrchat-assistant · 93 tokens

vrchat-group-queries

VRChat groups: announcements, join/leave/peek.

ggg123124/vrchat-assistant · 18 tokens

joko-moltbook

Use when queue-driven Moltbook posting agent with deduplication, idempotent operations, exponential backoff retries, and real-time monitoring. Use when working with joko moltbook.

oyi77/1ai-skills · 43 tokens

autonomy-engine

Use when core autonomy protocol for AI agent operations. Defines how agents operate 24/7 without human prompts — monitoring all systems, generating revenue, managing team, escalating decisions, and growing. Use this skill to understand an autonomous operating system. Use when working with autonomy engine.

oyi77/1ai-skills · 59 tokens