agentscribe CLAUDE.md

agentscribe CLAUDE.md is an instructions file for coding agents from Lucabiz/agentscribe. It costs 601 tokens per session, scanned A, a copy of agentscribe copilot-instructions.md, MIT.

Instructions for Agentscribe, a command-line tool and Python library that creates several AI coding-instruction files from one AGENTS.md source file. It also checks that the source is valid and detects differences between the source and generated files.

In plain words
What is it for?
Use them when maintaining shared instructions for tools such as Claude, Cursor, and GitHub Copilot, or when developing and checking Agentscribe itself.
Why use it?
They prevent developers from editing generated instruction files directly and document the commands for setup, testing, linting, formatting, and synchronization.

Instructions file

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 instructions/lucabiz/agentscribe/claude-md
Clone the repo
git clone --depth 1 https://github.com/Lucabiz/agentscribe

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 agentscribe CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/lucabiz/agentscribe/claude-md.svg)](https://agentmods.dev/instructions/lucabiz/agentscribe/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/lucabiz/agentscribe/claude-md"><img src="https://agentmods.dev/badge/instructions/lucabiz/agentscribe/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 601 This file is loaded in full into every session.
When invoked 601 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin 100% copy Near-identical to another mod 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.00601 $0.00601
Opus 5 $0.00300 $0.00300
Sonnet 5 $0.00120 $0.00120
Haiku 4.5 $0.00060 $0.00060

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

Security

Grade A, and why

agentscribe 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 5d 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.

Origin

This is a copy

100% identical to agentscribe copilot-instructions.md — 0 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.

CLAUDE.md · 56 lines

How it starts

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

agentscribe

Guidance for AI coding agents working in this repository. This file is the single source of truth. The tool-specific files (CLAUDE.md, .cursor/rules/, .github/copilot-instructions.md) are generated from it by agentscribe sync — never edit them by hand.

Overview

agentscribe is a small CLI + library that generates tool-specific AI instruction files (CLAUDE.md, Cursor rules, Copilot instructions, ...) from a single AGENTS.md, and validates that source. The code lives under src/agentscribe/:

  • config.py — load configuration from agentscribe.toml or [tool.agentscribe].
  • source.py — parse the source and apply agentscribe:only/except/ignore scoping.
  • targets.py — the registry of output files and how each is formatted.
  • sync.py — plan, write, and drift-check target files.
  • lint.py — conservative static checks over the source.
  • detect.py / templates.py — power agentscribe init.
  • cli.py — argparse front end.

Setup & commands

Task Command
Install (editable, with dev deps) pip install -e ".[dev]"
Run tests pytest
Lint ruff check .
Format ruff format .
Run the tool agentscribe <command> (e.g. agentscribe sync)

Code style & conventions

  • Target Python 3.9+. Every module starts with from __future__ import annotations so built-in generics (list[str]) are safe in annotations.
  • Keep runtime dependencies at zero (the only exception is the tomli backport on Python < 3.11). Do not add dependencies without strong justification.
  • Match the surrounding style; keep functions small and pure where possible.
  • Generated output must stay deterministic: LF line endings, stable ordering.

Testing

  • Run the full suite with pytest before considering a change done.
  • Add or update tests in tests/ for any behavior you change.
  • Every CLI command and lint rule should have coverage.

Read the full file on GitHub · 56 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. 5d ago First seen · 56 lines · 601 tokens per session scan A 7a0180084ee6

Subscribe to this mod's changes

agentscribe CLAUDE.md is an instructions file published in the GitHub repository Lucabiz/agentscribe (3 stars, last pushed 26d ago), licensed MIT. It adds 601 tokens to every session, about $0.0030 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to agentscribe copilot-instructions.md, differing in 0 lines, and is treated as a copy.