ccs
AGENTS.md0 starsChanged 5 months agoMITView on GitHub
CLI 工具 — 基于 Node.js ESM + TypeScript 构建。 版本号单一真源是 package.json 的 version,发版统一走 standard-version,日常提交不自动 bump: standard-version 自增版本号、生成/更新 CHANGELOG.md 并打 v* tag。推送 tag 后 .github/workflows/release.yml 校验 tag 与 package.json 版本一致,构建并发布到 npm,同时创建 GitHub Release。 These instructions are for AI assistants working in this project. This project is managed by Trellis. The working knowledge you need lives under .trellis/: If a Trellis command is available on your platform (e.g. /trellis:finish-work, /trellis:continue), prefer it over manual steps. Not every platform exposes every command. If…
- Commits and pushes
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 31,700 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository10 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- trellis-before-devSkill
- trellis-brainstormSkill
- trellis-break-loopSkill
- trellis-channelSkill
- trellis-checkSkill
- trellis-metaSkill
- trellis-session-insightSkill
- trellis-spec-bootstrapSkill
- trellis-update-specSkill
The file
We split this AGENTS.md into the rules it gives an agent
2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 65
If a Trellis command is available on your platform (e.g.
- Distinctive: line 67
If you're using Codex or another agent-capable tool, additional project-scoped helpers may live in:
≈ “Common” is an estimate: at least 1 in 5 of the 40,246 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CCS
CLI 工具 — 基于 Node.js ESM + TypeScript 构建。
Commands
# 构建(tsc → dist/)
npm run build
# 开发(watch 模式)
npm run dev
# 启动(需先 build)
node dist/cli.js --help
# 或全局安装后
ccs --help
# 测试
npm test # vitest run
npm run coverage # vitest run --coverage(formUi 除外 ≥80%)发版
版本号单一真源是 package.json 的 version,发版统一走 standard-version,日常提交不自动 bump:
npm run release # patch:0.2.0 → 0.2.1
npm run release-minor # minor:0.2.0 → 0.3.0
npm run release-major # major:0.2.0 → 1.0.0
git push --follow-tags # 推送 v* tag 触发 CIstandard-version 自增版本号、生成/更新 CHANGELOG.md 并打 v* tag。推送 tag 后 .github/workflows/release.yml 校验 tag 与 package.json 版本一致,构建并发布到 npm,同时创建 GitHub Release。
Project Notes
- ESM + TypeScript —
"type": "module",源文件使用.ts扩展名,经tsc编译到dist/ - CLI 框架:
@clack/prompts(交互提示)+ink/react(持久化 Tab 表单) - 测试:
vitest - 入口:
src/cli.ts(编译到dist/cli.js,带 shebang) - 类型契约集中于
src/types.ts:FormState(判别联合mode: 'alias' | 'single')、ProviderSettings、Preset、EffortLevel、Tier tsconfig.json:NodeNext模块解析、strict、noUncheckedIndexedAccess、exactOptionalPropertyTypes、resolveJsonModule
Coding Standards
- 遵循
.claude/rules/common/下的项目规则 - 不可变数据模式(创建新对象,不修改现有对象)
- 测试覆盖率目标: 80%+(
formUi因 ink TUI 难单测,排除出覆盖率统计,其余 7 文件门槛 80%) - 改
form.ts的FormMode分支时,buildResult的neverexhaustive check 会强制处理新分支
<!-- TRELLIS:START -->Trellis Instructions
These instructions are for AI assistants working in this project.
This project is managed by Trellis. The working knowledge you need lives under .trellis/:
.trellis/workflow.md— development phases, when to create tasks, skill routing.trellis/spec/— package- and layer-scoped coding guidelines (read before writing code in a given layer).trellis/workspace/— per-developer journals and session traces.trellis/tasks/— active and archived tasks (PRDs, research, jsonl context)
If a Trellis command is available on your platform (e.g. /trellis:finish-work, /trellis:continue), prefer it over manual steps. Not every platform exposes every command.
If you're using Codex or another agent-capable tool, additional project-scoped helpers may live in:
.agents/skills/— reusable Trellis skills.codex/agents/— optional custom subagents
Managed by Trellis. Edits outside this block are preserved; edits inside may be overwritten by a future trellis update.
<!-- TRELLIS:END -->Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

