cli: Instructions file for Claude Code

CLAUDE.md

cli CLAUDE.md is an instructions file for Claude Code from taskless/cli. It costs 7,925 tokens per session, scanned A, original, MIT.

Project instructions for working on Taskless CLI, a command-line tool. They define coding standards, required checks, local commands, secret-handling rules, and how to avoid using an outdated built version.

In plain words
What is it for?
Use them when modifying the CLI, running local commands, rebuilding before testing, following style rules, or referring to agent command recipes.
Why use it?
They prevent agents from reading secrets, skipping quality checks, or testing stale compiled code instead of the current source.

Instructions file for Claude Code

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

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

Reuse

Borrowing it

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

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/taskless/cli/claude-md"><img src="https://agentmods.dev/badge/instructions/taskless/cli/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7,925 This file is loaded in full into every session.
When invoked 7,925 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.07925 $0.07925
Opus 5.5 $0.03170 $0.03170
Sonnet 5.5 $0.01585 $0.01585
Haiku 4.5 $0.00792 $0.00792

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

Security

Grade A, and why

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 11d 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 · 338 lines

How it starts

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

Code Standards

When creating or modifying files, you MUST follow these conventions:

  • Code Style Guide @.conventions/STYLEGUIDE-CODE.md
  • UI Conventions @.conventions/STYLEGUIDE-UI.md
  • When a user asks about what you can do, you should suggest actions from this CLAUDE.md file.
  • NEVER read a .dev.vars or .env or .secrets file

Code Quality Checks

IMPORTANT After making code changes, you MUST run the checks specified in @.conventions/STYLEGUIDE-CODE.md

Local Development

When running Taskless CLI commands in this repo, use pnpm cli instead of pnpm dlx @taskless/cli@latest. This runs the locally built CLI at ./packages/cli/dist/index.js.

pnpm cli runs the last build, not the working tree. dist/ is a build artifact and nothing rebuilds it for you, so a stale dist/ serves stale behavior, including stale agent <topic> recipes, which are embedded into the bundle at build time rather than fetched over the network. Run pnpm build first whenever the answer depends on current source.

This is not hypothetical. An agent followed pnpm cli agent create-sg-rule from a dist/ built 26 commits earlier and got topic v2 while HEAD served v3. The revision it missed was the one documenting that language: takes ast-grep's own spelling, so four new rules were authored with an off-list lowercase typescript. That one happened to reach the right parser. A name ast-grep does not recognize at all aborts config parsing and takes every other rule's report down with it, silently.

The installed Taskless skill pins a published nightly, recorded as install.cliVersion in .taskless/taskless.json, and every command in .taskless/skills/taskless/SKILL.md carries that pin. The pin and pnpm cli disagree exactly when dist/ is behind HEAD, and neither is automatically right: the pin is a real build of some commit, pnpm cli is this tree only after you rebuild it. Rebuild, then prefer pnpm cli: it is the only one that can reflect uncommitted work. Note that the nightly package is blocked by a deny rule here, so pnpm build is the practical way to get current recipes, not a fallback.

Read the full file on GitHub · 338 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. 11d ago First seen · 338 lines · 7,925 tokens per session scan A e03c9b3d5ac0

Subscribe to this mod's changes

cli CLAUDE.md is an instructions file published in the GitHub repository taskless/cli (6 stars, last pushed today), licensed MIT. It adds 7,925 tokens to every session, about $0.0317 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-10-02.

Related

Other instructions, from other repositories