source-command-hooks-overview

source-command-hooks-overview is a skill for Claude Code from ayushcodes10/echo-mem. It costs 15 tokens per session (445 once invoked), scanned A, original, Apache-2.0.

A command reference for hooks, which are automatic actions that run before or after coding operations. It documents checks, agent coordination, formatting, logging, caching, notifications, and session state handling.

In plain words
What is it for?
Use it to configure actions before edits, shell commands, and tasks, or after edits, commands, and searches, along with session and agent events.
Why use it?
It helps automate repeated checks and record operations without requiring each action to be started manually.

Skill for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: installed under .agents/ (shared by several agents); mentions Codex.

Good fit Use it to configure actions before edits, shell commands, and tasks, or after edits, commands, and searches, along with session and agent events.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ayushcodes10/echo-mem/source-command-hooks-overview
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 ayushcodes10/echo-mem --skill source-command-hooks-overview
Clone the repo
git clone --depth 1 https://github.com/ayushcodes10/echo-mem

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 source-command-hooks-overview

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/ayushcodes10/echo-mem/source-command-hooks-overview"><img src="https://agentmods.dev/badge/skills/ayushcodes10/echo-mem/source-command-hooks-overview.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 15 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 445 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.00015 $0.00445
Opus 5.5 $0.00006 $0.00178
Sonnet 5.5 $0.00003 $0.00089
Haiku 4.5 $0.00002 $0.00044

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

Security

Grade A, and why

source-command-hooks-overview 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 1mo 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.

.agents/skills/source-command-hooks-overview/SKILL.md · 70 lines

What it actually says

source-command-hooks-overview

Use this skill when the user asks to run the migrated source command hooks-overview.

Command Template

Codex Hooks for Codex-flow

Purpose

Automatically coordinate, format, and learn from Codex operations using hooks.

Available Hooks

Pre-Operation Hooks

  • pre-edit: Validate and assign agents before file modifications
  • pre-bash: Check command safety and resource requirements
  • pre-task: Auto-spawn agents for complex tasks

Post-Operation Hooks

  • post-edit: Auto-format code and train neural patterns
  • post-bash: Log execution and update metrics
  • post-search: Cache results and improve search patterns

MCP Integration Hooks

  • mcp-initialized: Persist swarm configuration
  • agent-spawned: Update agent roster
  • task-orchestrated: Monitor task progress
  • neural-trained: Save pattern improvements

Session Hooks

  • notify: Custom notifications with swarm status
  • session-end: Generate summary and save state
  • session-restore: Load previous session state

Configuration

Hooks are configured in .Codex/settings.json:

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "^(Write|Edit|MultiEdit)$",
        "hooks": [{
          "type": "command",
          "command": "npx Codex-flow hook pre-edit --file '${tool.params.file_path}'"
        }]
      }
    ]
  }
}

Benefits

  • 🤖 Automatic agent assignment based on file type
  • 🎨 Consistent code formatting
  • 🧠 Continuous neural pattern improvement
  • 💾 Cross-session memory persistence
  • 📊 Performance metrics tracking

See Also

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. 1mo ago First seen · 70 lines · 15 tokens per session scan A f18e5004b8bf

Subscribe to this mod's changes

source-command-hooks-overview is a skill published in the GitHub repository ayushcodes10/echo-mem (2 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 15 tokens to every session and 445 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-09-12.