CLAUDE.md@by-scenario/cli-toolA

CLAUDE.md@by-scenario/cli-tool from overseastelegramaliterateperson865/awesome-claude-md is a CLAUDE.md file: the standing instructions Claude Code reads in that repo.

Install it, pinned
mdr add overseastelegramaliterateperson865/awesome-claude-md/by-scenario/cli-tool/CLAUDE.md@git:20260320.fcf2609

Pins git:20260320.fcf2609 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 14 of 14 checks passed
Kind
CLAUDE.md file
Repository
overseastelegramaliterateperson865/awesome-claude-md
Path
by-scenario/cli-tool/CLAUDE.md
Versions recorded
1
Latest version
git:20260320.fcf2609, committed Mar 20, 2026
Size
1,793 bytes
Repository stars
3
License
MIT

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# CLI 工具项目规范

## 项目结构

- `src/cli.ts` - 入口,参数解析和命令路由;`src/commands/` - 子命令 handler
- `src/utils/` - 工具函数;`bin/` - 可执行入口,`package.json` 的 `bin` 指向此处

## 参数解析

- 使用 `commander` 或 `yargs` 处理参数,禁止手动解析 `process.argv`
- 所有命令必须支持 `--help` 和 `--version`;布尔取反用 `--no-xxx`
- 必填参数用 positional argument,可选配置用 named option
- 支持配置文件(`.xxxrc.json`)作为命令行参数的 fallback

## Exit Code 规范

- `0` - 执行成功
- `1` - 一般性错误(参数错误、运行时异常)
- `2` - 用户主动取消(Ctrl+C / 交互式取消)
- 所有非零退出必须在 stderr 输出错误原因,便于脚本管道组合

## 输出与日志

- 正常结果输出到 stdout,供管道和重定向使用
- 错误信息、警告、进度提示输出到 stderr
- 支持 `--json` 标志输出机器可读的 JSON 格式
- 支持 `--quiet` / `--verbose` 控制日志详细程度
- 终端颜色使用 `chalk` 并检测 `NO_COLOR` 环境变量

## 跨平台兼容

- 文件路径使用 `path.join()` / `path.resolve()`,禁止硬编码 `/` 或 `\\`
- 换行符使用 `os.EOL`,写文件时注意 line ending
- 子进程调用使用 `cross-spawn` 代替原生 `child_process.spawn`
- 配置文件目录遵循 XDG 规范:优先 `$XDG_CONFIG_HOME`,fallback `~/.config/`
- 在 `package.json` 中声明 `engines.node` 最低版本要求

## 测试与发布

- 每个 command handler 必须有单元测试,mock 掉 I/O 和文件系统
- 集成测试通过 `execa` 调用编译后的 binary 验证退出码和输出
- 入口脚本首行含 shebang `#!/usr/bin/env node`,发布前 `npm pack --dry-run` 检查打包内容

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add overseastelegramaliterateperson865/awesome-claude-md/by-scenario/cli-tool/CLAUDE.md@sha256:eedca83272eaedc4

The line at the top of this page pins the label git:20260320.fcf2609, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_oixxzh2w4wefqn7q.svg)](https://markdownregistry.com/a/art_oixxzh2w4wefqn7q)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Mar 20, 2026.

versioncommittedcommitsizeaudit
git:20260320.fcf2609 latest2026-03-20 fcf2609 1,793 BA view

Audit of the latest version

A  14 of 14 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Size between 200 bytes and 200 KB (1793 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

overseastelegramaliterateperson865/awesome-claude-md · 3 stars · license MIT · pushed 2026-10-14 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_oixxzh2w4wefqn7q
GET https://markdownregistry.com/api/v1/resolve?ref=overseastelegramaliterateperson865/awesome-claude-md/by-scenario/cli-tool/CLAUDE.md
GET https://markdownregistry.com/api/v1/blob/eedca83272eaedc4992e9a7ec69c580e8bb14ef0f5ff39a6bf5600e14be3acaa

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: what a CLAUDE.md file is · keeping AGENTS.md and CLAUDE.md in sync · which agent file does what.

More from overseastelegramaliterateperson865/awesome-claude-md

CLAUDE.md@by-framework/fastapi CLAUDE.md file
overseastelegramaliterateperson865/awesome-claude-md · by-framework/fastapi/CLAUDE.md
git:20260320.9b01aca · audit A · 3 stars
CLAUDE.md@by-framework/nextjs CLAUDE.md file
overseastelegramaliterateperson865/awesome-claude-md · by-framework/nextjs/CLAUDE.md
git:20260320.9b01aca · audit A · 3 stars
CLAUDE.md@by-framework/react CLAUDE.md file
overseastelegramaliterateperson865/awesome-claude-md · by-framework/react/CLAUDE.md
git:20260320.9b01aca · audit A · 3 stars
CLAUDE.md@by-framework/spring-boot CLAUDE.md file
overseastelegramaliterateperson865/awesome-claude-md · by-framework/spring-boot/CLAUDE.md
git:20260320.9b01aca · audit A · 3 stars
CLAUDE.md@by-framework/svelte CLAUDE.md file
overseastelegramaliterateperson865/awesome-claude-md · by-framework/svelte/CLAUDE.md
git:20260405.ab9f266 · audit B · 3 stars
CLAUDE.md@by-framework/tauri CLAUDE.md file
overseastelegramaliterateperson865/awesome-claude-md · by-framework/tauri/CLAUDE.md
git:20260320.fcf2609 · audit A · 3 stars
CLAUDE.md@by-framework/uni-app CLAUDE.md file
overseastelegramaliterateperson865/awesome-claude-md · by-framework/uni-app/CLAUDE.md
git:20260320.fcf2609 · audit B · 3 stars
CLAUDE.md@by-framework/vue-nuxt CLAUDE.md file
overseastelegramaliterateperson865/awesome-claude-md · by-framework/vue-nuxt/CLAUDE.md
git:20260320.fcf2609 · audit B · 3 stars
CLAUDE.md@by-language/go CLAUDE.md file
overseastelegramaliterateperson865/awesome-claude-md · by-language/go/CLAUDE.md
git:20260320.9b01aca · audit A · 3 stars
CLAUDE.md@by-language/java CLAUDE.md file
overseastelegramaliterateperson865/awesome-claude-md · by-language/java/CLAUDE.md
git:20260320.9b01aca · audit A · 3 stars
CLAUDE.md@by-language/python CLAUDE.md file
overseastelegramaliterateperson865/awesome-claude-md · by-language/python/CLAUDE.md
git:20260320.fcf2609 · audit A · 3 stars
CLAUDE.md@by-language/rust CLAUDE.md file
overseastelegramaliterateperson865/awesome-claude-md · by-language/rust/CLAUDE.md
git:20260320.9b01aca · audit A · 3 stars

Every file in overseastelegramaliterateperson865/awesome-claude-md

Browse by kind, by grade A, or by owner.