Borrowing it
Nothing to install: this file belongs to LamantinAI/mayak. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/LamantinAI/mayak/main/CLAUDE.mdgit clone --depth 1 https://github.com/LamantinAI/mayakWrote 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.
[](https://agentmods.dev/instructions/lamantinai/mayak/claude-md)<a href="https://agentmods.dev/instructions/lamantinai/mayak/claude-md"><img src="https://agentmods.dev/badge/instructions/lamantinai/mayak/claude-md.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.04458 | $0.04458 |
| Opus 5 | $0.02229 | $0.02229 |
| Sonnet 5 | $0.00892 | $0.00892 |
| Haiku 4.5 | $0.00446 | $0.00446 |
Grade A, and why
mayak CLAUDE.md 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 yesterday.
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.
This is a copy
100% identical to mayak AGENTS.md — 6 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.
How it starts
The opening of the file, as written. The whole thing — 128 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
The shared Mayak agent rules, rendered for Claude Code.
Generated from docs/agent_rules.md via scripts/sync_agent_docs.py. Do not edit this file manually.
Quick Start
- Copy the
reference_taskvertical. It is the one worked example and it exists to be copied — eleven files plus three wiring edits;.agents/skills/add-verticalcarries the order and the removal list for when your own vertical replaces it. A project that has replaced it edits this line and nothing else: the wrapper's Quick Start is generated from these bullets. - If
.envis missing:make init-project. Nothing else creates it, and the app does not start without it. Idempotent — it never overwrites an existing.env. make quality-gatesbefore committing. When the diff touched persistence, endpoints or wiring,make test-e2etoo — the gates run none of your queries.- Reach for
uv run python scripts/query_ai_context.py bootstrapwhen you need the wiring map, andworkset diffwhen you already have local edits — not as a ritual.
Running the service needs one more decision: the shipped .env points at PostgreSQL with
placeholder credentials, so make run-local fails until either a database is up
(docker compose -f docker-compose.yml -f docker-compose.postgres.yml up -d db) or the
project declares it needs none (POSTGRES_ENABLED=false in .env).
Common Commands
# Validation
make ai-autofix # Auto-format + fix lint + CBM
make quality-gates # The validation suite — run it before committing
make security-scan # bandit security scan over project/
make ci-local # Everything CI runs, locally: gates, both Postgres modes, audit, e2e
# Testing
make test # Unit + integration (skip functional)
make test-all # All tests including functional
make test-e2e # Functional tests only (Docker)
# Refresh generated artifacts
make refresh-ai-context # Regenerate AI context maps
make refresh-agent-docs # Regenerate CLAUDE.md and AGENTS.md
make refresh-project-map # Regenerate docs/project_map.md
make refresh-generated-docs # All of the above, in dependency order
# Reading a running service
make format-trace # Render a local NDJSON file: ARGS="<logfile>"
make logs # Render the container's semantic log as a trace tree
make logs-raw # Dump the container's raw NDJSON under logs/
# Run
make smoke # Docker-based health check
make migrate # Apply pending Alembic migrations
make run-local # Migrate, then start the app locally (needs a reachable PostgreSQL unless POSTGRES_ENABLED=false)
# Scaffolding
make autogenerate-migration # Alembic migration: MSG="description"
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.
- yesterday Changed · +218 tokens per session 369021d16663
- 2d ago Changed · +106 tokens per session 280597c95bc7
- 7d ago First seen · 128 lines · 4,134 tokens per session scan A 9eeecdf1e4b8
mayak CLAUDE.md is an instructions file published in the GitHub repository LamantinAI/mayak (5 stars, last pushed today), licensed MIT. It adds 4,458 tokens to every session, about $0.0223 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to mayak AGENTS.md, differing in 6 lines, and is treated as a copy.
Other instructions, from other repositories
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
spec-kit AGENTS.md
AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.