cs-clean-code
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "cs-clean-code" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-5dafabb51b577e76da466d8701e344b2f2d9430fc68b9dfda23c760d1adbbbcb. Verify the upstream source and version against https://github.com/ChenShuo2004/cs-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Intended for code cleanup and refactoring scenarios: use when you need to tidy code, improve implementation quality, review implementations and align code with requirements, update post-development documentation, or prepare for maintainable handoff. Trigger phrases include "clean code", tidy code, code perfectionism, refactor this, wrap up, readable by newcomers, review this implementation, make it maintainable. The approach emphasizes requirement-first, closed business flow, small-scope changes, and verifiable outputs.
Introduction source: third_party · ChenShuo2004 · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: cs-clean-code
description: "整理代码、重构、审查实现、修复已定位问题或同步开发文档时使用。聚焦需求与业务行为、最小修改和本地验证;Git 或部署收尾由 cs-ending-time 处理。"<!-- CS Skills · 陈硕 | https://github.com/ChenShuo2004/cs-skills -->
CS Clean Code
让实现符合需求,降低维护成本。保留现有框架、公共接口与用户改动;不为风格一致重写可用模块。
先定位再修改
读取拥有该行为的代码、相关项目指令、测试和错误证据。Bug 先复现或找到可追溯的失败路径,再解释原因和最小修复。
明确请求是审查还是修改:只要求 review 时给发现,不自动修复;要求整理、修复时直接执行。可推断的命名、目录和实现细节自行决定。
按风险选择工作量
- 小范围重命名、删重复、文案或注释调整:直接修改并检查 diff,不强制计划卡或新增测试。
- 行为修改:从输入、状态变化到输出追踪一条业务路径,覆盖本次缺陷与相关失败条件;复用已有测试。
- 跨模块重构、迁移或多项验收:用简短诊断记录说明原因、影响范围、接口约束和验证方案。需要时参考 review checklist。
公共接口变化若已在用户要求内,继续实现兼容或迁移方案;只有会超出约定范围、损失用户数据或破坏他人工作且无法隔离时才需要决定。请求确认之前先完成不依赖该决定的工作。
修改与验证
沿用现有组件和依赖。修复真正拥有逻辑的模块;更新因本次行为变化失效的文档、命令或示例,不写无关历史说明。
每个行为修改保留“需求 → 修改 → 验证”的证据,可以是一段说明,不强制表格。按影响运行针对性测试、类型检查或构建;UI 行为需要真实交互证据。通过必需检查后即交付,只有新改动、失败或未解假设才扩大检查。
测试应能发现实际回归,不为可逆的小改动编写重复实现的测试。不因工具缺失冒充通过:报告失败命令、原因及仍未验证的行为。
交付
说明改了什么、原因、实际验证和剩余阻塞。Bug 修复补一句如何避免再次发生。审查以有证据的发现及文件位置开头。
只请求本地整理时不扩大为发布。若用户已要求“整理后提交/推送”,本地验证完成后继续 $cs-ending-time,沿用已有授权;若用户明确“确认后再提交”,在该处停下。
Version history
-
v0.7.0
GitHub ↗
Original release notes
本地与 GitHub 默认分支的技能集合此前不一致,旧 Release 也没有完整安装附件。v0.7.0 统一为 22 个任务技能与 1 个执行辅助技能,并提供可直接解压安装的 ZIP。 - README 用 cs-run、cs-writer、cs-clean-code 完成产品介绍、技能选择、调用示例与安装命令核对,中英文入口保持一致。 - 新增跨平台 Node 安装器:内容相同跳过;显式更新先备份,再逐文件 SHA-256 核对。默认安装任务技能,辅助项可按名称安装。 - 保留远端原有网页、代码动画与固定系列视频能力,补齐本地 KAI 封面、口播、分镜、数字人与音频对齐工作流。 - 模型清单、固定版本与官方哈希随包提供;先检查共用缓存,只补缺失文件,权重不随包分发。 本地 23 个已安装入口、205 个技能文件核对一致。统一回归通过;ZIP 解压后默认安装 22 个任务技能、203 个文件,第二次安装全部跳过。完整包附 INSTALL-MANIFEST.json,包文件校验见 SHA256SUMS.txt。 新会话加载与媒体人工验收需单独检查。当前凭据缺少 workflow 权限,新增 CI 工作流留在本地;发布内容已经本地回归验证。 解压后进入 cs-skills-v0.7.0,运行: ```sh node scripts/install-skills.mjs --update node scripts/install-skills.mjs --check ```
-
v0.1.0
GitHub ↗
Original release notes
# 更新日志 ## v0.1.0 · 2026-08-05 CS Skills 的首个公开版本,面向使用 Codex 构建产品、自动化工作流和 SaaS 的独立开发者。 ### 包含内容 - 新增 `cs-run` 主入口,用一句话澄清目标并路由到合适的工作流。 - 整理产品设计、前端开发、代码质量、内容创作、深度调研、视频制作和交付收尾等技能。 - 增加可移植的作者信息、源码地址和兼容性元数据,方便跨 Agent 复用。 - 优化 README、技能展示名和安装指引。 ### 安装 ```text 帮我安装这个 skill:https://github.com/ChenShuo2004/cs-skills/tree/main/cs-run ``` 推荐将整个仓库作为 skill 集合安装,并根据需要启用具体下游 skill。
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 面向开发者高频刚需场景,显著提升代码可维护性与交付质量
- 聚焦需求对齐、最小修改与本地验证,工程实践导向明确
Highlights
- 触发词覆盖全面且边界清晰,变体合理无歧义
Areas to improve
-
description写错位置 Reported severity: Minor
顶层 frontmatter 中 description 字段为空,实质描述内容位于 skill_body 内部
Recommendation: 将完整 description 内容移至顶层 frontmatter 字段
-
缺少When to Use显式章节 Reported severity: Minor
文档隐含使用场景但未独立标题显式说明
Recommendation: 增加独立 When to Use 章节以提升可读性
Highlights
- Phase/步骤清晰,有出口条件与端到端逻辑
- frontmatter 完整,结构规范
Highlights
- 工具来源明确,参数正确,覆盖主要异常
- 不可逆操作有确认机制,验证闭环完整
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- github.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.