self-documenting-code-checklists

Use a checklist when writing, reviewing, or refactoring code to ensure it is self-documenting. Apply the checklist to routines, naming, data organization, and overall layout to improve readability and maintainability without relying on comments.

Last repository push
GitHub Stars
140
Forks
36
Issues / PRs
1

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 "self-documenting-code-checklists" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-30be7dd46ecdb72bbb9bc6b18f227b567ff08572fbcbc96b92387501166b04a6. Verify the upstream source and version against https://github.com/kitchen-engineer42/pdf2skills 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

Use a checklist when writing, reviewing, or refactoring code to ensure it is self-documenting. Apply the checklist to routines, naming, data organization, and overall layout to improve readability and maintainability without relying on comments.

0 Downloads

Introduction source: third_party · kitchen-engineer42 · 0.0.1 Reference

SkillPi interpretation

Tasks
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.
Audience
Writing new routines, functions, or methods Conducting code reviews Refactoring existing code for maintainability Evaluating code quality and readability
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
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.

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 提供代码自解释性四大维度(例程设计、数据命名、数据组织、布局设计)的完整检查清单
  • 适用于编写、审查、重构代码等高频开发场景,显著提升代码可读性和可维护性
Trigger Precision95/100

Highlights

  • 触发场景描述精准,明确覆盖编写、审查、重构代码三大使用时机
  • 应用领域具体到例程、数据命名、数据组织、整体布局,边界清晰无歧义
Structure and Standards95/100

Highlights

  • 文档结构清晰,五大模块划分合理,每个检查项配有明确的 Action 出口条件
  • frontmatter 完整,单文件长度适中,符合规范要求
Execution Reliability98/100

Highlights

  • 纯文档型检查清单,不涉及外部工具调用,无执行失败风险
  • 所有建议均为通用最佳实践,适用性强,可靠性高
Evidence Verifiability (mean of the first four)95/100

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.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

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.