align-cli: Instructions file for Claude Code

CLAUDE.md

align-cli CLAUDE.md is an instructions file for Claude Code from aligndottech/align-cli. It costs 1,481 tokens per session, scanned A, original, MIT.

A set of Claude Code instructions for developing the Align command-line tool, a terminal program for interacting with Align services. It defines project workflow, repository rules, testing, tickets, branches, and pull requests.

In plain words
What is it for?
It is for researching, planning, implementing, testing, and submitting non-trivial changes to the Align CLI through a Linear ticket and pull request.
Why use it?
It gives the agent the project context and required process, including TDD, where tests are written to describe behavior before implementation.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/aligndottech/align-cli/claude-md"><img src="https://agentmods.dev/badge/instructions/aligndottech/align-cli/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,481 This file is loaded in full into every session.
When invoked 1,481 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.01481 $0.01481
Opus 5.5 $0.00592 $0.00592
Sonnet 5.5 $0.00296 $0.00296
Haiku 4.5 $0.00148 $0.00148

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

Security

Grade A, and why

align-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 4d 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 · 91 lines

How it starts

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

Claude Code Setup for Align CLI

@aligndottech/cli - the open-source TypeScript CLI for Align (login, setup, connector imports, ask, MCP config). Companion to the closed align-stack gateway.

Workflow (Research → Plan → Implement → Validate, mandatory TDD)

For any non-trivial change, follow the same harness as align-stack: understand the area, write a reviewable plan, then RED → GREEN → REFACTOR. See .claude/rules/tdd.md in align-stack for the TDD cycle (test behaviors via the public API, mock only at module boundaries, never skip RED).

Linear-Driven Workflow (always)

Every substantial change is tracked in Linear and traceable branch → ticket → PR (trivial typo fixes exempt):

  1. Ticket first in the Align team (project Align MVP), label align-cli.
  2. Branch off latest main, named tnk/ALI-<#>. One branch / one PR per ticket.
  3. Reference the ticket id (ALI-##) in the PR title or body.
  4. Linear MCP is configured in align-stack's .mcp.json; reconnect if its tools aren't available.

Repo specifics (READ THIS)

  • Package manager: npm (NOT pnpm). The lockfile is package-lock.json. Use npm install / npm ci - do not introduce pnpm-lock.yaml.
  • Node ≥ 22.19 (CI's required test job runs the floor, 22.19; test-node24 runs the other end). The floor is node:sqlite, which src/lib/local-db.ts uses for the local graph (unflagged from 22.13, DatabaseSync.isTransaction from 22.16), and the agent engine (@earendil-works/pi-*) needs 22.19. There is no native dependency left, which is what lets one runner cross-compile all 8 binary targets.
  • Publishing happens when the RELEASE PR merges, not when you push a tag. There is no publish.yml (this line used to name one): the publish job lives in .github/workflows/release-please.yml, is gated on needs.release-please.outputs.releases_created == 'true', and runs typecheck, test and build before npm publish --provenance --access public. So the whole release is: land your work on main, then merge the chore(main): release cli X.Y.Z PR that release-please opens.
  • This package is 0.x, and bump-minor-pre-major is set so a BREAKING CHANGE: footer bumps the MINOR (0.22 -> 0.23) instead of proposing 1.0.0. Without it, the Node-floor bump silently retitled the open release PR to release cli 1.0.0 - a promise about API stability made by a commit footer, on a package whose own README says "Beta, pre-1.0". bump-patch-for-minor-pre-major is deliberately NOT set: features should still bump the minor. Going to 1.0.0 is a decision someone makes, not a side effect. Do not publish manually, and do not hand-push a tag - the tag release-please creates is component-prefixed (cli-v0.19.0), so a v* trigger would not match it even if one existed. Merging is not shipping: verify with npm view @aligndottech/cli version, which lags the merge by a few minutes.
  • bin.align → ./dist/bin.js; files: ["dist", "README.md"]. Build with npm run build (tsc).
  • Running a local build: align on PATH is the globally installed package, not your working tree. To test changes, run node dist/bin.js … (after npm run build) or reinstall: npm run build && npm pack && npm i -g ./aligndottech-cli-*.tgz --force.

Read the full file on GitHub · 91 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. 4d ago Changed · +18 tokens per session 90551968a7b9
  2. 17d ago Changed · -19 tokens per session cea0d92044ea
  3. 24d ago Changed 1e7d6835435b
  4. 2mo ago First seen · 91 lines · 1,482 tokens per session scan A 3de320f5d9a8

Subscribe to this mod's changes

align-cli CLAUDE.md is an instructions file published in the GitHub repository aligndottech/align-cli (7 stars, last pushed today), licensed MIT. It adds 1,481 tokens to every session, about $0.0059 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

align-cli CLAUDE.md compared with instructions from other repositories

align-cli CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
align-cli CLAUDE.mdaligndottech/align-cliInstructions file7todayMITA1,481Claude Code
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,685GitHub Copilot
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file279ktodayMITA4,325Codex, OpenCode
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,086GitHub Copilot