cli-conventions

cli-conventions is a skill for Claude Code from jessepinkman9900/claude-second-brain. It costs 113 tokens per session (1,223 once invoked), scanned A, original, MIT.

A set of rules for adding or changing commands in the csb command-line tool. It separates the command that chooses vaults from the script that performs work inside each vault.

In plain words
What is it for?
Use it when adding a csb subcommand, a vault package script, or a vault-related command. It covers target selection, package-manager resolution, and running the script.
Why use it?
It prevents command behavior from being duplicated in the CLI and vaults. It also gives commands a consistent way to choose one or more vaults and run their package scripts.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions CLAUDE.md.

Good fit Use it when adding a csb subcommand, a vault package script, or a vault-related command. It covers target selection, package-manager resolution, and running the script.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/jessepinkman9900/claude-second-brain/cli-conventions
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.

Any agent
npx skills add jessepinkman9900/claude-second-brain --skill cli-conventions
Clone the repo
git clone --depth 1 https://github.com/jessepinkman9900/claude-second-brain

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-conventions

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/jessepinkman9900/claude-second-brain/cli-conventions"><img src="https://agentmods.dev/badge/skills/jessepinkman9900/claude-second-brain/cli-conventions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 113 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,223 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.00113 $0.01223
Opus 5.5 $0.00045 $0.00489
Sonnet 5.5 $0.00023 $0.00245
Haiku 4.5 $0.00011 $0.00122

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

Security

Grade A, and why

cli-conventions 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 today.

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/skills/cli-conventions/SKILL.md · 39 lines

How it starts

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

CLI conventions

csb has two kinds of commands. Decide which one you're adding first.

Kind 1: vault commands wrap vault pnpm scripts

A command that does something inside a brain's vault (lint the wiki, reindex qmd, register collections, …) is a thin wrapper over a pnpm script in the vault:

  1. The behavior lives in the vault. Write the logic as a script under template/scripts/<area>/ and register it in template/package.json scripts (e.g. "lint:wiki": "node scripts/lint/wiki-lint.js"). It must work on its own from the vault root with pnpm <script>, so users, agents and skills can run it without csb.
  2. csb only picks vaults and runs the script. In bin/create.js:
    • Parse targets with pickTargets(args, { verb, flags }). That gives every vault command the same interface: [<name>…] [--brain <name>] [--path <dir>] [--all]. With no target, a TTY gets a multi-select of the registered brains with the default preselected; with no TTY it uses the default brain.
    • Resolve pnpm with vaultPnpm() (system pnpm 10+, else mise exec -- pnpm, the same rule scaffolding uses).
    • Run the script with runVaultScript(pnpmCmd, dir, "<script>", passthroughArgs). It passes --silent so pnpm's banner and ELIFECYCLE lines don't pollute output, which keeps --json parseable. Use { silent: false } only for pnpm install.
    • Pass the command's own flags straight through (e.g. --json). Don't reimplement script logic in csb.
    • With several targets, print a ── <name> header per vault, keep going after a failure, and exit non-zero if any target failed. If a script has --json, print an array of { target, path, exitCode, report } for several targets.
  3. Older vaults. Check vaultHasScript(dir, "<script>"). If a vault predates the script, either fall back to the copy bundled under TEMPLATE (as csb lint does, run with node, for zero-dependency scripts) or report that the vault needs the script. Never silently skip it.
  4. Zero new dependencies. Prefer plain Node scripts (node scripts/...js) for anything that doesn't need the vault's node_modules. Only scripts that need qmd use tsx and dependencies; for those, csb runs pnpm install first when node_modules is missing.

Read the full file on GitHub · 39 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. today First seen · 39 lines · 113 tokens per session scan A cf10d3107799

Subscribe to this mod's changes

cli-conventions is a skill published in the GitHub repository jessepinkman9900/claude-second-brain (189 stars, last pushed today), licensed MIT. It adds 113 tokens to every session and 1,223 once invoked, about $0.0005 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-12-01.

Related

cli-conventions compared with skills from other repositories

cli-conventions next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cli-conventionsjessepinkman9900/claude-second-brainSkill189todayMITA113Claude Code
karpathy-llm-wikiAstro-Han/karpathy-llm-wikiSkill2.8k4mo agoMITA67Claude Code, Codex
powerbi_integrationMidOSresearch/midosSkill8yesterdayMITA0Claude Code, Codex
sql_masteryMidOSresearch/midosSkill8yesterdayMITA0Claude Code, Codex
waku-computer-useegoist/wakuSkill1.6k2mo agoGPL-3.0A34Claude Code, Codex
Hive Mesh gRPC (The Nerve)MidOSresearch/midosSkill8yesterdayMITA32Claude Code, Codex
Hive Parallelism Stack (High Performance)MidOSresearch/midosSkill8yesterdayMITA29Claude Code, Codex