CLAUDE.md@captain-hookA

CLAUDE.md@captain-hook from jayantdevkar/claude-code-karma is a CLAUDE.md file: the standing instructions Claude Code reads in that repo.

Install it, pinned
mdr add jayantdevkar/claude-code-karma/captain-hook/CLAUDE.md@git:20260412.38321f5

Pins git:20260412.38321f5 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
CLAUDE.md file
Repository
jayantdevkar/claude-code-karma
Path
captain-hook/CLAUDE.md
Versions recorded
2
Latest version
git:20260412.38321f5, committed Apr 12, 2026
First version recorded
Feb 25, 2026
Size
2,972 bytes
Repository stars
338
License
Apache-2.0

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

## Project Overview

Captain Hook is a type-safe Pydantic model library for Claude Code hook events. It provides models for all 24 hook types that fire during Claude Code sessions, with forward compatibility via `extra="allow"` configuration.

## Commands

```bash
# Run all tests
pytest tests/test_models.py -v

# Run specific test class
pytest tests/test_models.py::TestPreToolUseHook -v

# Run with coverage
pytest tests/test_models.py --cov=src/captain_hook

# Verify imports work
python3 -c "from captain_hook import parse_hook_event, PreToolUseHook"
```

## Architecture

The codebase follows a modular package structure under `src/captain_hook/`:

- **`base.py`** - Foundation: `BaseHook` class with 5 common fields (`session_id`, `transcript_path`, `cwd`, `permission_mode`, `hook_event_name`) and all Literal type definitions
- **`__init__.py`** - Entry point: exports all models, contains `parse_hook_event()` dispatcher and `HOOK_TYPE_MAP` registry
- **Hook modules** - Grouped by category:
  - `tool_hooks.py` - PreToolUseHook, PostToolUseHook, PostToolUseFailureHook
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add jayantdevkar/claude-code-karma/captain-hook/CLAUDE.md@sha256:5afc3e690c5e123e

The line at the top of this page pins the label git:20260412.38321f5, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_px2aqtj2c2kl3ogh.svg)](https://markdownregistry.com/a/art_px2aqtj2c2kl3ogh)

5 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, between Feb 25, 2026 and Apr 12, 2026, about one every 46 days.

versioncommittedcommitsizeaudit
git:20260412.38321f5 latest2026-04-12 38321f5 2,972 BA view · diff
git:20260225.1875f9e2026-02-25 1875f9e 2,275 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (2972 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

jayantdevkar/claude-code-karma · 338 stars · license Apache-2.0 · pushed 2026-11-05 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_px2aqtj2c2kl3ogh
GET https://markdownregistry.com/api/v1/resolve?ref=jayantdevkar/claude-code-karma/captain-hook/CLAUDE.md
GET https://markdownregistry.com/api/v1/blob/5afc3e690c5e123e60edfb12da04ae8dc8c3a8a12fd0d23c4590c5277a7e243c

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: what a CLAUDE.md file is · keeping AGENTS.md and CLAUDE.md in sync · which agent file does what.

More from jayantdevkar/claude-code-karma

CLAUDE.md CLAUDE.md file
jayantdevkar/claude-code-karma · CLAUDE.md
git:20261022.b3d9f89 · audit A · 338 stars
CLAUDE.md@api CLAUDE.md file
jayantdevkar/claude-code-karma · api/CLAUDE.md
git:20261022.b3d9f89 · audit A · 338 stars
DESIGN.md@docs/feature/mcp-tools-page DESIGN.md file
jayantdevkar/claude-code-karma · docs/feature/mcp-tools-page/DESIGN.md
git:20260228.a60a310 · audit A · 338 stars
CLAUDE.md@frontend CLAUDE.md file
jayantdevkar/claude-code-karma · frontend/CLAUDE.md
git:20261022.b3d9f89 · audit B · 338 stars
link-ticket-to-session SKILL.md skill
jayantdevkar/claude-code-karma · skills/link-ticket-to-session/SKILL.md · Link the current Claude Code session to a ticket (Linear, Jira, GitHub Issues, or GitHub Pull Requests) and cache its…
git:20260729.7aece6a · audit A · 338 stars

Every file in jayantdevkar/claude-code-karma

Browse by kind, by grade A, or by owner.