agent2linear: Instructions file for Claude Code

CLAUDE.md

agent2linear CLAUDE.md is an instructions file for Claude Code from smorinlabs/agent2linear. It costs 6,030 tokens per session, scanned A, original, MIT.

A command-line tool for Linear, a project-management service used for issues, projects, labels, and workflow states. It is written for people and AI agents working from a terminal.

In plain words
What is it for?
Building and running the tool, creating or managing Linear entities through the GraphQL API, and checking commands, types, and code quality during development.
Why use it?
It provides a terminal-based way to manage Linear work without navigating the web interface, with commands designed to reduce the information agents need to process.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: reads .claude/ paths; mentions Claude Code.

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

Reuse

Borrowing it

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

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/smorinlabs/agent2linear/claude-md"><img src="https://agentmods.dev/badge/instructions/smorinlabs/agent2linear/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 6,030 This file is loaded in full into every session.
When invoked 6,030 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.06030 $0.06030
Opus 5.5 $0.02412 $0.02412
Sonnet 5.5 $0.01206 $0.01206
Haiku 4.5 $0.00603 $0.00603

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

Security

Grade A, and why

agent2linear 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 2mo 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 · 471 lines

How it starts

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

agent2linear - Linear CLI Tool

Project Overview

agent2linear is a TypeScript-based command-line tool for creating and managing Linear projects, issues, labels, workflow states, and other entities via the Linear GraphQL API. Designed for AI agents and automation workflows.

CLI Commands:

  • agent2linear - Full command name
  • a2l - Short alias for convenience

Technology Stack:

  • TypeScript (ES2022, ESNext modules)
  • Commander.js (CLI framework)
  • Ink (React-based terminal UI for interactive modes)
  • Linear SDK (@linear/sdk)
  • Build: tsup (TypeScript bundler)
  • Task runner: turbo

Prerequisites & Setup

Required Environment Variables

export LINEAR_API_KEY=lin_api_xxxxxxxxxxxx

Installation & Build

# For development
npm install
npm run build

# For end users (npm package)
npm install -g agent2linear

Running the CLI

# After build (both commands work identically)
agent2linear --help
a2l --help

# Or via node directly during development
node dist/index.js --help

Development Workflow

Build Commands

npm run build        # Production build (tsup)
npm run dev          # Watch mode for development
npm run lint         # ESLint check
npm run typecheck    # TypeScript type checking
npm run format       # Prettier formatting

Architecture

- Entry point: src/index.ts → compiles to dist/index.js (with shebang)
- CLI definition: src/cli.ts - all command registration
- Commands: src/commands/<entity>/<action>.ts(x) (.tsx for Ink components)
- Libraries: src/lib/ - shared utilities (aliases, config, linear-client, etc.)
- Types: src/lib/types.ts - TypeScript interfaces for all entities

## Code Intelligence Tooling

This repo enables two Claude Code plugins for code intelligence. They are
declared in the committed `.claude/settings.json` (`enabledPlugins`), so they
apply to everyone who clones the repo:

```json
{
  "enabledPlugins": {
    "typescript-lsp@claude-plugins-official": true,
    "ast-grep@ast-grep-marketplace": true
  }
}

Note: enabledPlugins is read at session startup; after editing .claude/settings.json, start a fresh session for changes to take effect. Personal/machine-specific overrides belong in .claude/settings.local.json (gitignored, not shared).

TypeScript LSP (semantic navigation)

Use for questions that require type resolution — "where is X defined / used", type/JSDoc info, refactor-grade reference analysis, and call hierarchy. Resolves this repo's ESM .js-extension imports back to their .ts sources via tsconfig.json.

  • Operations: goToDefinition, findReferences, hover, documentSymbol, workspaceSymbol, goToImplementation, incomingCalls/outgoingCalls.
  • Plugin: typescript-lsp@claude-plugins-official.

ast-grep (structural pattern matching)

Use for structural queries that ignore types — "every exported async function that awaits", "all console.error(...) call sites". Complements the LSP; it matches on AST shape, not semantics.

  • Requires the ast-grep binary on PATH (brew install ast-grep).
  • Match the grammar to the file's role: --lang ts for pure-logic .ts files, --lang tsx for Ink/React .tsx command files (JSX is a different grammar).
  • For relational YAML rules (has/inside), add stopBy: end so the traversal reaches descendants buried in function bodies.
  • Plugin: ast-grep@ast-grep-marketplace — docs: https://github.com/ast-grep/claude-skill

Icon Handling (v0.13.2+)

IMPORTANT: Icons are NOT validated client-side.

  • Icons are passed directly to Linear API for server-side validation
  • The curated icon list (src/lib/icons.ts) is for discovery only, not validation
  • Investigation confirmed Linear's API has no endpoint for the standard icon catalog
  • The emojis GraphQL query only returns custom organization emojis (user-uploaded)

Read the full file on GitHub · 471 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. 2mo ago First seen · 471 lines · 6,030 tokens per session scan A feff7b40893f

Subscribe to this mod's changes

agent2linear CLAUDE.md is an instructions file published in the GitHub repository smorinlabs/agent2linear (9 stars, last pushed 2mo ago), licensed MIT. It adds 6,030 tokens to every session, about $0.0241 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

agent2linear CLAUDE.md compared with instructions from other repositories

agent2linear CLAUDE.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent2linear CLAUDE.mdsmorinlabs/agent2linearInstructions file92mo agoMITA6,030Claude 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