archlang: Command for Claude Code

.claude/commands/verify-loop.md

verify-loop is a command for Claude Code from ChanMeng666/archlang. It costs 11 tokens per session (1,230 once invoked), scanned A, original, MIT.

A command that runs the project's complete local verification process. It checks types, code style, tests, and whether generated files still match their source files.

In plain words
What is it for?
Verifying changes in a TypeScript project, especially changes to its grammar, command-line interface, schemas, documentation, or generated artifacts.
Why use it?
It catches broken code and outdated generated files before a change is proposed. When generated output is wrong, it points developers back to the source that should be edited.

Command for Claude Code

Written for Claude Code: installed under .claude/.

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

Reuse

Borrowing it

Nothing to install: this file belongs to ChanMeng666/archlang. 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/ChanMeng666/archlang/main/.claude/commands/verify-loop.md
Clone the repo
git clone --depth 1 https://github.com/ChanMeng666/archlang

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 verify-loop

README.md
[![agentmods](https://agentmods.dev/badge/commands/chanmeng666/archlang/verify-loop/github.svg)](https://agentmods.dev/commands/chanmeng666/archlang/verify-loop)
Your own site
<a href="https://agentmods.dev/commands/chanmeng666/archlang/verify-loop"><img src="https://agentmods.dev/badge/commands/chanmeng666/archlang/verify-loop/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 verify-loop

Your own site · 80×15
<a href="https://agentmods.dev/commands/chanmeng666/archlang/verify-loop"><img src="https://agentmods.dev/badge/commands/chanmeng666/archlang/verify-loop.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,230 The whole file, excluding the scripts and references it only reads on demand.
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.00011 $0.01230
Opus 5.5 $0.00004 $0.00492
Sonnet 5.5 $0.00002 $0.00246
Haiku 4.5 $0.00001 $0.00123

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

Security

Grade A, and why

verify-loop 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 10d 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/commands/verify-loop.md · 83 lines

How it starts

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

Verify loop

The single command to prove a change is sound before proposing it. Run the two aggregate scripts and report a pass/fail table.

Steps

  1. npm run check — typecheck (noUncheckedIndexedAccess on) + biome check + the full vitest suite. All three must be green.

  2. npm run check:drift — runs every generator and fails if any generated artifact differs from its committed form.

    • If a drift step fails, run the matching npm run gen:* (or npm run gen:all) to regenerate the artifact from its source, then re-run npm run check:drift.
    • NEVER hand-edit a generated file to make drift pass. The nine generated artifacts (editors/archlang.tmLanguage.json, playground/src/arch-language.js, docs/error-codes.md, docs/cli-reference.md, spec.llm.md, llms-full.txt, grammars/archlang.gbnf, schemas/plan.schema.json, schemas/intent.schema.json) are outputs — edit the source (src/grammar/tokens.ts, src/error-catalog.ts, src/manifest.ts, skills/archlang/SKILL.md, examples/, PLAN_JSON_SCHEMA, INTENT_JSON_SCHEMA) and regenerate.
    • If you touched the CLI, expect docs/cli-reference.md to move — it is generated from src/manifest.ts. Read that diff; it is the one artifact a CLI change always rewrites.
  3. npm run typecheck:all — REQUIRED whenever the change touched anything outside src/ + test/; skippable (and worth skipping, it is slow) when it did not. Step 1's typecheck only covers src; this adds the root dev config (test, eval, dataset, scripts, bench) plus the playground, docs-site (vue-tsc), MCP shim and VS Code extension. CI runs it in the builds job.

    • A TS2345 … | undefined on a workspace file that tsc -p <workspace> calls clean means a ROOT test imported that module into the strict root program. Fix it in the shared module — never by relaxing the root option (docs/agents/gotchas.md → (Typecheck)).

Read the full file on GitHub · 83 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. 10d ago Changed e7e2760c2886
  2. 27d ago Changed 2b8a59f09465
  3. 1mo ago Changed 26f34446c470
  4. 1mo ago First seen · 83 lines · 11 tokens per session scan A 6a58fd61321d

Subscribe to this mod's changes

verify-loop is a command published in the GitHub repository ChanMeng666/archlang (24 stars, last pushed today), licensed MIT. It adds 11 tokens to every session and 1,230 once invoked, about $0.0000 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.