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.

Install it, pinned
mdr add chenshuo2004/cs-skills/cs-clean-code@git:20261006.c2a8989

Pins 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

The exact contents, by fingerprint
mdr add chenshuo2004/cs-skills/cs-clean-code@sha256:c1417f7e55b0491c

The 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.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_3bjpsafklm7gx64l.svg)](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.

versioncommittedcommitsizeaudit
git:20261006.c2a8989 latest2026-10-06 c2a8989 2,621 BA view · diff
git:20260811.08cc3c62026-08-11 08cc3c6 5,264 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • 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

GitHub

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.

More from chenshuo2004/cs-skills

AGENTS.md AGENTS.md file
chenshuo2004/cs-skills · AGENTS.md
git:20261001.0b27495 · audit A · 204 stars
cs-auto-videl SKILL.md skill
chenshuo2004/cs-skills · cs-auto-videl/SKILL.md · Use when the user types $cs-auto-videl or asks for Douyin/TikTok ecommerce video workflows, including competitor…
git:20261006.c2a8989 · audit A · 204 stars
cs-chatcut-video-blueprint SKILL.md skill
chenshuo2004/cs-skills · cs-chatcut-video-blueprint/SKILL.md · 将自媒体素材、内容想法或已有口播写成中文剧本与制作蓝图,附逐镜分镜、逐图图片提示词和按需的视频动作提示词。用于选题、剧本、分镜与制作前文本交接;不操作项目,不生成或导出媒体。
git:20261006.c2a8989 · audit A · 204 stars
cs-chatcut SKILL.md skill
chenshuo2004/cs-skills · cs-chatcut/SKILL.md · 当用户要规划一条 ChatCut 短视频,或需要从内容想法到首个 ChatCut 项目的零到一操作指引时使用:先选择最值得做的主题和唯一核心观点,再完成可确认的中文口播稿、素材清单、Motion Graphics…
git:20261006.c2a8989 · audit A · 204 stars
cs-checkpoint-version SKILL.md skill
chenshuo2004/cs-skills · cs-checkpoint-version/SKILL.md · Use when the user asks to save the current repository version, create a rollback point, checkpoint dirty worktree…
git:20261006.c2a8989 · audit A · 204 stars
cs-code-story-video SKILL.md skill
chenshuo2004/cs-skills · cs-code-story-video/SKILL.md · 把中文口播、角色和参考素材制作成可验收的 16:9 代码叙事视频:A-roll 角色讲述、全屏场景 B-roll、真实音频时码、Remotion 样片与成片、3:4/4:3 杂志风封面。仅用于代码驱动的叙事视频,不替代 ChatCut…
git:20261006.c2a8989 · audit A · 204 stars
cs-code-video SKILL.md skill
chenshuo2004/cs-skills · cs-code-video/SKILL.md · 用代码做动画视频:页面暴露 render(t),Playwright 逐帧截图 + FFmpeg 合成 mp4,可接合成配乐、出图和配音。通用模式先明确主题、规格、风格和声音,出风格卡、分镜与关键帧后逐镜制作;Vibe知识大赏模式额外查证来…
git:20261006.c2a8989 · audit A · 204 stars
cs-codex-image SKILL.md skill
chenshuo2004/cs-skills · cs-codex-image/SKILL.md · 通过 Codex 内置生图生成或编辑图片,并将该能力接入 Claude Code、Claude 桌面版或其他本地 MCP Agent。用于 cs-codex-image、内置生图、不用 API Key 出图、Claude 调用 Codex…
git:20261006.438ac88 · audit A · 204 stars
cs-digital-human-product-video-pipeline SKILL.md skill
chenshuo2004/cs-skills · cs-digital-human-product-video-pipeline/SKILL.md · 当用户要把产品事实、口播、数字人、产品界面和 CTA 制作成可验收的数字人产品介绍视频时使用:统一预检 ChatCut、FFmpeg、ComfyUI、Fish/TTS 与 Remotion,按 plan、sample、batch…
git:20261006.c2a8989 · audit A · 204 stars
cs-ending-time SKILL.md skill
chenshuo2004/cs-skills · cs-ending-time/SKILL.md · 完成已实现功能的验证、Git 提交/推送、PR 或部署交付。按用户在会话中已授权的动作执行,核对仓库、提交与真实部署结果;单纯本地收尾不自动公开发布。
git:20261006.c2a8989 · audit A · 204 stars
cs-frontend-design SKILL.md skill
chenshuo2004/cs-skills · cs-frontend-design/SKILL.md · 设计、实现、迭代或评审真实前端页面与交互流程,包括 SaaS、仪表盘、编辑器、落地页和可视化工具。关注产品任务、现有设计语言、可达状态与浏览器验证;不用于纯后端工作。
git:20261006.c2a8989 · audit A · 204 stars
cs-github-push SKILL.md skill
chenshuo2004/cs-skills · cs-github-push/SKILL.md · 将已完成的本地改动安全提交并推送到 GitHub,或为已提交的改动创建 PR;适用于用户要求推送、同步仓库、发布 skill 或核验远端提交。需要部署网站或应用时使用 cs-ending-time。
git:20261006.c2a8989 · audit A · 204 stars

Every file in chenshuo2004/cs-skills

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