cs-clean-code SKILL.md skillA
cs-clean-code from chenshuo2004/cs-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add chenshuo2004/cs-skills/cs-clean-code@git:20261006.c2a8989Pins git:20261006.c2a8989 in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- chenshuo2004/cs-skills
- Path
cs-clean-code/SKILL.md- Versions recorded
- 2
- Latest version
- git:20261006.c2a8989, committed Oct 6, 2026
- First version recorded
- Aug 11, 2026
- Size
- 2,621 bytes
- Repository stars
- 204
- License
- MIT
整理代码、重构、审查实现、修复已定位问题或同步开发文档时使用。聚焦需求与业务行为、最小修改和本地验证;Git 或部署收尾由 cs-ending-time 处理。.
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
<!-- CS Skills · 陈硕 | https://github.com/ChenShuo2004/cs-skills --> # CS Clean Code 让实现符合需求,降低维护成本。保留现有框架、公共接口与用户改动;不为风格一致重写可用模块。 ## 先定位再修改 读取拥有该行为的代码、相关项目指令、测试和错误证据。Bug 先复现或找到可追溯的失败路径,再解释原因和最小修复。 明确请求是审查还是修改:只要求 review 时给发现,不自动修复;要求整理、修复时直接执行。可推断的命名、目录和实现细节自行决定。 ## 按风险选择工作量 - 小范围重命名、删重复、文案或注释调整:直接修改并检查 diff,不强制计划卡或新增测试。 - 行为修改:从输入、状态变化到输出追踪一条业务路径,覆盖本次缺陷与相关失败条件;复用已有测试。 - 跨模块重构、迁移或多项验收:用简短诊断记录说明原因、影响范围、接口约束和验证方案。需要时参考 [review checklist](references/review-checklist.md)。 公共接口变化若已在用户要求内,继续实现兼容或迁移方案;只有会超出约定范围、损失用户数据或破坏他人工作且无法隔离时才需要决定。请求确认之前先完成不依赖该决定的工作。 ## 修改与验证 沿用现有组件和依赖。修复真正拥有逻辑的模块;更新因本次行为变化失效的文档、命令或示例,不写无关历史说明。 每个行为修改保留“需求 → 修改 → 验证”的证据,可以是一段说明,不强制表格。按影响运行针对性测试、类型检查或构建;UI 行为需要真实交互证据。通过必需检查后即交付,只有新改动、失败或未解假设才扩大检查。 测试应能发现实际回归,不为可逆的小改动编写重复实现的测试。不因工具缺失冒充通过:报告失败命令、原因及仍未验证的行为。 ## 交付 说明改了什么、原因、实际验证和剩余阻塞。Bug 修复补一句如何避免再次发生。审查以有证据的发现及文件位置开头。 只请求本地整理时不扩大为发布。若用户已要求“整理后提交/推送”,本地验证完成后继续 $cs-ending-time,沿用已有授权;若用户明确“确认后再提交”,在该处停下。
Read the whole file at its exact version.
How to install
mdr add chenshuo2004/cs-skills/cs-clean-code@sha256:c1417f7e55b0491cThe line at the top of this page pins the label git:20261006.c2a8989, 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.
[](https://markdownregistry.com/a/art_3bjpsafklm7gx64l)
2 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 2 versions of this file, between Aug 11, 2026 and Oct 6, 2026, about one every 56 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261006.c2a8989 latest | 2026-10-06 | c2a8989 | 2,621 B | A | view · diff |
| git:20260811.08cc3c6 | 2026-08-11 | 08cc3c6 | 5,264 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (2621 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
chenshuo2004/cs-skills · 204 stars · license MIT · pushed 2026-10-08 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_3bjpsafklm7gx64l GET https://markdownregistry.com/api/v1/resolve?ref=chenshuo2004/cs-skills/cs-clean-code GET https://markdownregistry.com/api/v1/blob/c1417f7e55b0491c7153e858ec1c73864ffa33bcf3509ddcb7b486dad2e5e143
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: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.