self-documenting-code-checklists
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "self-documenting-code-checklists":https://skillpi.com/zh/skills/deepskill-30be7dd46ecdb72bbb9bc6b18f227b567ff08572fbcbc96b92387501166b04a6。安装前核对上游来源和版本:https://github.com/kitchen-engineer42/pdf2skills。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
github.com
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
在编写、审查或重构代码时使用检查清单,确保代码具有自解释性。将清单应用于例程、命名、数据组织和整体布局,以在不依赖注释的情况下提高可读性和可维护性。
介绍来源: third_party · kitchen-engineer42 · 0.0.1 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 适合谁
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: self-documenting-code-checklists
description: Use this skill when writing, reviewing, or refactoring code to ensure it is self-documenting. Apply these checklists to routines, data naming, data organization, and overall code layout to improve code clarity and maintainability without relying on comments.Self-Documenting Code Checklists
Self-documenting code communicates its purpose through clear naming, structure, and organization rather than through comments. Use these checklists to evaluate and improve code clarity.
When to Use
- Writing new routines, functions, or methods
- Conducting code reviews
- Refactoring existing code for maintainability
- Evaluating code quality and readability
Routine Design Checklist
Apply this checklist when designing or reviewing functions, methods, and subroutines:
- [ ] Naming accuracy: Does the routine name accurately describe what it does?
- [ ] Single responsibility: Does the routine perform one well-defined task?
- [ ] Modularity: Have all parts that could benefit from being independent been extracted into their own routines?
- [ ] Interface clarity: Is the routine's interface obvious and clear?
Action: If any item is "no," refactor the routine.
Data Naming Checklist
Apply this checklist when declaring or naming variables, constants, and types:
- [ ] Type descriptiveness: Is the type name descriptive enough to help document data declarations?
- [ ] Variable naming: Are variables named well?
- [ ] Purpose consistency: Is each variable used only for the purpose its name indicates?
- [ ] Loop counters: Do loop counters use more informative names than i, j, k?
- [ ] Enumerated types: Are well-named enums used instead of ad-hoc flags or booleans?
- [ ] Named constants: Are named constants used instead of magic numbers or magic strings?
- [ ] Naming conventions: Do naming conventions distinguish between type names, enums, named constants, local variables, class variables, and global variables?
Action: Rename variables or introduce constants if magic numbers or ambiguous names are found.
Data Organization Checklist
Apply this checklist when organizing data access and structures:
- [ ] Helper variables: Are additional variables used where needed to improve clarity?
- [ ] Reference locality: Are references to variables grouped together?
- [ ] Type simplicity: Are data types simple to minimize complexity?
- [ ] Abstract access: Is complex data accessed through abstract access routines (abstract data types)?
Action: Refactor data structures or introduce intermediate variables to simplify logic.
Layout and Design Checklist
Apply this checklist when reviewing code layout or high-level design:
- [ ] Logical layout: Does the program's layout display its logical structure?
- [ ] Directness: Is the code straightforward, avoiding "clever" tricks?
- [ ] Hidden details: Are implementation details hidden as much as possible?
- [ ] Domain terminology: Is the program written using problem-domain terminology rather than computer science or programming language terminology?
Action: Format and simplify code if it is too "clever" or the layout is confusing.
当前收录版本
0.0.1
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供代码自解释性四大维度(例程设计、数据命名、数据组织、布局设计)的完整检查清单
- 适用于编写、审查、重构代码等高频开发场景,显著提升代码可读性和可维护性
亮点
- 触发场景描述精准,明确覆盖编写、审查、重构代码三大使用时机
- 应用领域具体到例程、数据命名、数据组织、整体布局,边界清晰无歧义
亮点
- 文档结构清晰,五大模块划分合理,每个检查项配有明确的 Action 出口条件
- frontmatter 完整,单文件长度适中,符合规范要求
亮点
- 纯文档型检查清单,不涉及外部工具调用,无执行失败风险
- 所有建议均为通用最佳实践,适用性强,可靠性高
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
未从主文档识别到上述常见操作,不能据此判断无需权限或没有风险。
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。