align-cli CLAUDE.md

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

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/aligndottech/align-cli/claude-md
Clone the repo
git clone --depth 1 https://github.com/aligndottech/align-cli
Per session 1,482 This file is loaded in full into every session.
When invoked 1,482 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
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 $0.01482 $0.01482
Opus 5 $0.00741 $0.00741
Sonnet 5 $0.00296 $0.00296
Haiku 4.5 $0.00148 $0.00148

Measured yesterday against content hash 3de320f5d9a8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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-<#> (e.g. tnk/ALI-103). 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.16 (CI's required test job runs the floor, 22.16; 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, and DatabaseSync.isTransaction lands in 22.16. There is no native dependency left, which is what lets one runner cross-compile all 8 binary targets (ALI-740).
  • 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, ALI-740's 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/index.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/index.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. yesterday 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 (1 stars, last pushed 2d ago), licensed MIT. It adds 1,482 tokens to every session, about $0.0074 per session on Opus 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

Other instructions, from other repositories

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,182 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,345 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

next.js AGENTS.md

Instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens