amcli: Instructions file for Claude Code

CLAUDE.md

amcli CLAUDE.md is an instructions file for Claude Code from arslanr-com/amcli. It costs 5,864 tokens per session, scanned A, original, Apache-2.0.

Repository instructions for amcli, a command-line tool that edits ArchiMate architecture model files. They describe its Rust workspace and require unchanged parts of a file to remain byte-for-byte identical after editing.

In plain words
What is it for?
Maintaining the XML parser, architecture-model types, view layouts, and SVG or PNG rendering while preserving exact file content around edits.
Why use it?
They prevent edits from rewriting unrelated XML or producing noisy, hard-to-review changes.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md.

This is arslanr-com/amcli's own configuration. It tells Claude Code how to work on amcli 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 amcli configures →

Reuse

Borrowing it

Nothing to install: this file belongs to arslanr-com/amcli. 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/arslanr-com/amcli/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/arslanr-com/amcli

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/arslanr-com/amcli/claude-md"><img src="https://agentmods.dev/badge/instructions/arslanr-com/amcli/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 5,864 This file is loaded in full into every session.
When invoked 5,864 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.05864 $0.05864
Opus 5.5 $0.02346 $0.02346
Sonnet 5.5 $0.01173 $0.01173
Haiku 4.5 $0.00586 $0.00586

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

Security

Grade A, and why

amcli 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 · 365 lines

How it starts

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

amcli — notes for agents working on this repo

amcli is a CLI over ArchiMate model files. Rust workspace, one static binary, no runtime dependencies.

The rule that overrides everything else

A parse-then-write round trip must be byte-identical. If a change makes tests/corpus fail the identity test, the change is wrong — not the test. The whole product proposition is that editing a model produces a diff a human can review, and that only holds if untouched bytes stay untouched.

Practically: never re-serialize what you did not edit. amcli-xml blits untouched subtrees straight out of the source buffer, and any new code that touches the document must preserve that property.

Layout

Crate Job
crates/amcli-xml Format-preserving XML tree with byte spans. Knows nothing about ArchiMate.
crates/amcli-model The ArchiMate IR: types, folders, concepts, views, containers (plain XML or the ZIP an embedded image makes of it).
crates/amcli-view View geometry, layout, notation — and icons.rs, the type icons.
crates/amcli-render A compiled view to SVG, or to PNG through resvg (pure Rust, so the binary stays static).
crates/amcli-cli The binary; src/web/ is amcli web, the read-only viewer.
xtask Codegen from the vendored Archi assets.

skills/amcli/ is shipped, not documentation

npx skills add arslanr-com/amcli copies that directory out of the default branch verbatim, and crates/amcli-cli/src/skill.rs embeds the same files with include_str! for the binary-first route. Both routes must produce identical bytes — both_install_routes_ship_the_same_bytes walks the directory and fails if a file is there but not in FILES.

Consequences worth knowing before you edit it:

  • Nothing may be generated into it. A file written only by skill install makes the two routes differ; a committed generated file goes stale on the next release. That is why there is no references/commands.md and why amcli skill commands exists instead.
  • The executable bit does not survive. The skills CLI has two install paths, and its blob fast path writes every file 0644. Invoke scripts as sh scripts/install.sh, never ./scripts/install.sh.
  • The skill ships from the branch, the binary from the newest tag, so the skill is normally the newer of the two. Never tell an agent to reconcile that by reinstalling the skill — it would downgrade itself. The reconciliation lives in parse_or_hint in main.rs.
  • Every release updates the skill, and the version line is only half of it. "written for amcli X.Y.Z" in SKILL.md is pinned to the workspace version by a test, so a release commit bumps Cargo.toml, Cargo.lock and that line or cargo test is red. The half no test can check is the prose: a command or flag the release adds is invisible to an agent until SKILL.md describes it, because that file — not --help — is what it reads. So before tagging, diff the release against amcli skill commands and ask of each new subcommand, flag and batch op: is it in SKILL.md, or in references/batch.md if it only matters inside a batch? Shipping a feature nobody is told about is the same as not shipping it.
  • The skill's Setup runs the installer every session. That is only fine because install.sh / install.ps1 short-circuit when the newest release is already installed and keep the installed binary when there is no network. Keep those two properties if you touch the installers.
  • Files beginning with a dot are never copied, so no .gitattributes or .version inside the skill folder.

Read the full file on GitHub · 365 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 · +21 lines · +355 tokens per session abd4c90e9aac
  2. 1mo ago Changed · +17 lines · +294 tokens per session b873ca32e23b
  3. 2mo ago First seen · 327 lines · 5,215 tokens per session scan A e66d42d1e6b0

Subscribe to this mod's changes

amcli CLAUDE.md is an instructions file published in the GitHub repository arslanr-com/amcli (2 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 5,864 tokens to every session, about $0.0235 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-31.

Related

amcli CLAUDE.md compared with instructions from other repositories

amcli CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
amcli CLAUDE.mdarslanr-com/amcliInstructions file21mo agoApache-2.0A5,864Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode