Skip to content
Agent Orchestration
Hook

Hooks

What stellarlinkco-myclaude runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.

From plugin
stellarlinkco-myclaude
2.7k11 skills19 agents13 commands2 hooks

Claude Code

> /plugin marketplace add stellarlinkco/myclaude

What fires, and when

PreToolUse

  • MatchesBashpython3 ${CLAUDE_PLUGIN_ROOT}/pre-bash.py "$CLAUDE_TOOL_INPUT"python3 ${CLAUDE_PLUGIN_ROOT}/inject-spec.py

UserPromptSubmit

Fires before Claude sees each prompt you send. A plugin can use it to inject context, so the same instruction reaches the model every turn instead of only at session start.

  • python3 ${CLAUDE_PLUGIN_ROOT}/log-prompt.py
Read hooks/hooks.json

In the plugin's words

How stellarlinkco-myclaude describes its own hook set.

ClaudeKit global hooks: dangerous command blocker, spec injection, prompt logging, session review

Where it lives

  • hooks/inject-spec.pyRunsGitHub
    Read the script
    #!/usr/bin/env python3
    """
    Global Spec Injection Hook (DEPRECATED).
    
    Spec injection is now handled internally by codeagent-wrapper via the
    per-task `skills:` field in parallel config and the `--skills` CLI flag.
    
    This hook is kept as a no-op for backward compatibility.
    """
    
    import sys
    
    sys.exit(0)
    
  • hooks/log-prompt.pyRunsGitHub
    Read the script
    #!/usr/bin/env python3
    """
    Log Prompt Hook - Record user prompts to session-specific log files.
    Used for review on Stop.
    Uses session-isolated logs to handle concurrency.
    """
    
    import json
    import os
    import sys
    from datetime import datetime
    from pathlib import Path
    
    
    def get_session_id() -> str:
        """Get unique session identifier."""
        return os.environ.get("CLAUDE_CODE_SSE_PORT", "default")
    
    
    def write_log(prompt: str) -> None:
        """Write prompt to session log file."""
        log_dir = Path(".claude/state")
        session_id = get_session_id()
        log_file = log_dir / f"session-{session_id}.log"
    
        log_dir.mkdir(parents=True, exist_ok=True)
    
        timestamp = datetime.now().isoformat()
        entry = f"[{timestamp}] {prompt[:500]}\n"
    
        with open(log_file, "a", encoding="utf-8") as f:
            f.write(entry)
    
    
    def main():
        input_data = ""
        if not sys.stdin.isatty():
            try:
                input_data = sys.stdin.read()
            except Exception:
                pass
    
        prompt = ""
        try:
            data = json.loads(input_data)
            prompt = data.get("prompt", "")
        except json.JSONDecodeError:
            prompt = input_data.strip()
    
        if prompt:
            write_log(prompt)
    
    
    if __name__ == "__main__":
        main()
    
  • hooks/pre-bash.pyRunsGitHub
    Read the script
    #!/usr/bin/env python3
    """
    Pre-Bash Hook - Block dangerous commands before execution.
    """
    
    import sys
    
    DANGEROUS_PATTERNS = [
        'rm -rf /',
        'rm -rf ~',
        'dd if=',
        ':(){:|:&};:',
        'mkfs.',
        '> /dev/sd',
    ]
    
    
    def main():
        command = sys.argv[1] if len(sys.argv) > 1 else ''
    
        for pattern in DANGEROUS_PATTERNS:
            if pattern in command:
                print(f"[CWF] BLOCKED: Dangerous command detected: {pattern}", file=sys.stderr)
                sys.exit(1)
    
        sys.exit(0)
    
    
    if __name__ == "__main__":
        main()
    

Read the script before you install anything that runs on your machine. This is the one part of a plugin that acts without being asked.

@stellarlinkco
Ships withstellarlinkco-myclaude

AI-powered development automation with multi-backend execution (Codex/Claude/Gemini/OpenCode)

2.7k11 skills19 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
2.7k
Star history of stellarlinkco/myclaude on GitHub, a chart by star-history.com

More plugins that ship hooks.

oh-my-claudecode
Plugin

oh-my-claudecode

Splits a complex task across several specialized Claude Code agents working in parallel, then keeps going until the result is checked. You describe what you want in plain language instead of memorizing commands.

48 skills+440k
@yeachan-heo@yeachan-heo
Install Plugin
ouroboros
Plugin

ouroboros

Turns a rough feature idea into a written spec through guided questions, then has the agent build it and checks the result against that spec. Instead of hand-checking whether the work is finished, you get an automatic evaluation gate that runs in your coding agent.

25 skills+36.3k
@q00@q00
Install Plugin
harmonist
Plugin

harmonist

Coordinates AI agents with mechanical protocol enforcement, a workflow gate, memory validation and a session hook. Includes a catalog of specialist agents and has no runtime dependencies.

199 agents+12.3k
@gammalabtechnologies@gammalabtechnologies
Install Plugin
bernstein
Plugin

bernstein

Bernstein is a Claude Code plugin for orchestrating AI agents. It adds skills to list and inspect agents, review and approve tasks, create tasks, track costs and budgets, and show alerts for failed or stalled work.

26 skills+41.3k
@sipyourdrink-ltd@sipyourdrink-ltd
Install Plugin
fablize
Plugin

fablize

A Claude Code plugin that enforces finishing multi-step tasks with evidence and verification at each stage. It works as a procedure for Opus or any Claude model, not as chance.

1 skill+2894
@fivetaku@fivetaku
Install Plugin
hello2cc
Plugin

hello2cc

Adjusts how third-party models behave inside Claude Code so they run closer to a native Opus session, covering subagent lifecycle, session hooks and tool interception. It does not replace your gateway, provider mapping or account setup.

1 agent11 hooks689
@hellowind777@hellowind777
Install Plugin
ww-w-ai-bkit-claude-code
Plugin

ww-w-ai-bkit-claude-co…

Runs a PDCA workflow with phase gating, spec checks, and delegation to sub-agents for planning, QA, and deployment. Fires at session start and on prompts, edits, task creation, and phase transitions.

44 skills+3606
@ww-w-ai@ww-w-ai
Install Plugin
fusion-fable
Plugin

fusion-fable

Fusion-Fable is a Claude Code plugin that answers hard questions by sending them to a panel of models working in parallel, then having a judge model combine their answers. It also includes a planning skill that runs an OMC requirements interview before producing an implementation plan.

2 skills+2471
@duolahypercho@duolahypercho
Install Plugin

Questions about the hooks in stellarlinkco-myclaude.

Which coding agents can use the hooks in stellarlinkco-myclaude?
The hooks in stellarlinkco-myclaude install in Claude Code and Cursor: each runs Claude Code hooks from .claude/settings.json, so copy the hooks there.