cli: Instructions file for Claude Code

CLAUDE.md

cli CLAUDE.md is an instructions file for Claude Code from archcore-ai/cli. It costs 3,334 tokens per session, scanned A, original, Apache-2.0.

A set of repository instructions for the Archcore CLI, its server, integrations and document templates. It explains where to look for project guidance and how to handle Archcore documents.

In plain words
What is it for?
It is for work involving technical documentation, CLI features, MCP tools, hooks, agents and files in the .archcore directory.
Why use it?
It helps coding agents follow the repository's required search order, writing rules and document-management process.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

This is archcore-ai/cli's own configuration. It tells Claude Code how to work on cli itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything cli configures →

Reuse

Borrowing it

Nothing to install: this file belongs to archcore-ai/cli. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/archcore-ai/cli/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/archcore-ai/cli

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

README.md
[![agentmods](https://agentmods.dev/badge/instructions/archcore-ai/cli/claude-md/github.svg)](https://agentmods.dev/instructions/archcore-ai/cli/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/archcore-ai/cli/claude-md"><img src="https://agentmods.dev/badge/instructions/archcore-ai/cli/claude-md/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 cli CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/archcore-ai/cli/claude-md"><img src="https://agentmods.dev/badge/instructions/archcore-ai/cli/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 3,334 This file is loaded in full into every session.
When invoked 3,334 The same file — it is already loaded in full.
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.03334 $0.03334
Opus 5.5 $0.01334 $0.01334
Sonnet 5.5 $0.00667 $0.00667
Haiku 4.5 $0.00333 $0.00333

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

Security

Grade A, and why

cli 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 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.

CLAUDE.md · 283 lines

How it starts

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

CLAUDE.md

Read and follow AGENTS.md before creating or editing technical documentation, Archcore documents, CLI help, MCP tool descriptions, prompts, agent instructions, or user-facing Markdown.

The writing policy in AGENTS.md applies two profiles: an ASD-STE100-inspired profile constrains the sentence, and an ISO 24495-1-inspired profile constrains the structure. The document type decides which half binds. The per-type assignment — profile, line format, and metric — lives in the shared Archcore rule concepts/document-prose-canon.

Do not claim formal ASD-STE100 or ISO 24495-1 compliance.

Search Priority

When researching patterns, decisions, or conventions in this project, always search .archcore/ documents first (list_documents → get_document) before grepping the codebase or using external sources.

.archcore/architecture/ holds the structure of the system: system-overview.doc is the map, package-dependency-direction.rule binds the import graph, process-and-concurrency-model.spec binds shared state, and advisory-subsystem.doc describes the hook advisories. Read the map before a change that crosses a package boundary.

.archcore/cli-ui/building-the-cli.doc.md holds the procedures. Consult it before adding a command, document type, MCP tool, hook, or agent.

Go Code Quality — Mandatory

.archcore/code-quality/ holds the binding coding agreements for this repository. They are not advisory.

Before you write or edit any .go file in cmd/, internal/, templates/, or main.go, load the code-quality documents. Load them once per session and keep them in context for the rest of the session.

  1. Call list_documents with tags: ["code-quality"].
  2. Call get_document for each returned path.
  3. Apply every clause to the code you write.

The documents and what each one governs:

Document Binds
go-code-quality.rule Error handling, exit codes, package layout, imports, allocation, general Go conventions.
strict-go-naming-conventions.rule Every identifier name. Absolute for new code.
comments-are-the-exception.rule Whether a comment is written at all. The default is none.
fail-open-or-fail-closed-reads.rule Every read of settings.json, a host config, the filesystem, or git.
choosing-an-atomic-write.rule Every write that must not be observable half-finished.
bounded-and-deterministic-output.rule Every collection or stream that leaves the process.
cite-the-governing-document-from-code.rule Comments on code that exists because of a recorded decision.
shared-guards-return-classified-sentinels.rule A predicate more than one surface consults.
rendering-happens-at-the-boundary.rule What a domain package returns, and who formats it.
platform-splits-are-files.rule Behavior that differs by GOOS or GOARCH.
the-shape-of-an-mcp-tool-file.rule Every file under internal/mcp/tools/ that adds a tool.
unit-testing-patterns.guide Every _test.go file.
isolating-the-machine-from-the-test-suite.guide TestMain in a package whose code reaches $HOME, XDG state, a host CLI, or git.
registry-agreement-and-test-seams.guide A new registry, a matcher over one, or a test seam into production code.
in-process-mcp-integration-tests.adr Tests that cross MCP tool boundaries.
e2e-testing-for-cli.idea End-to-end coverage layers. Historical record; read the ADR above for current state.

Read the full file on GitHub · 283 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. 1mo ago Changed · +54 lines · +764 tokens per session 322587168e15
  2. 1mo ago Changed · +67 lines · +1,042 tokens per session e03131120cdb
  3. 1mo ago First seen · 162 lines · 1,528 tokens per session scan A 80a2f81513c7

Subscribe to this mod's changes

cli CLAUDE.md is an instructions file published in the GitHub repository archcore-ai/cli (66 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 3,334 tokens to every session, about $0.0133 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-08-30.

Related

Other instructions, from other repositories