Code and Comment Simplification

VerifiedSafe

Review branch changes and simplify code without changing behavior: word choice, naming, comments, structure, and derivability.

Sby Skills Guide Bot
DevelopmentIntermediate
11/2/2026
Claude CodeCursorCodex
#refactoring#code-review#naming#code-comments#readability

Recommended for

Automated summary

A code-review skill that trims names, comments, and file structure on a branch without changing behavior, using Orwell-style prose rules plus an anti-overfitting checklist.

Strengths

  • Concrete, checkable rules (one word per concept, cut context-redundant words, drop derivable state) instead of hand-wavy 'write clean code' advice.
  • Explicit comment triage: keep the non-obvious constraint, delete history narration and restatements of self-evident code.
  • Tight scope control: only touch the reviewed scope, run the relevant existing checks, and preserve behavior.
  • The 'no backwards compatibility with unshipped code' rule catches a common source of dead aliases and stale paths near the end of a branch.

Limitations

  • Purely qualitative: outcomes rest on reviewer judgment, with no lint rule or automated verification attached.
  • Renaming exported or public identifiers can break downstream consumers despite the 'no behavior change' promise; the skill does not separate internal names from already-shipped ones.
  • The trigger ('when you feel the code is ready') is subjective, and nothing is said about what to do when no tests exist to verify the refactor.
When to use it

Use it right before requesting human review, or when cleaning up naming, comments, and module layout in a branch.

When not to use it

Skip it during prototyping or when external consumers depend on the code and renames would be breaking API changes.

Security analysis

Safe
Quality score82/100

This is a prose style-and-structure guide for code review. It declares no tools, executes nothing, touches no network or filesystem, and contains no destructive, exfiltrating, or obfuscated instructions. The only imperative of note is an auto-invocation hint in the frontmatter description, which is normal skill metadata rather than a manipulation of the auditor.

No concerns found

How this analysis is made

Examples

Pre-review cleanup
Review the changes on this branch and simplify names, comments, and structure without changing behavior. Run the tests afterwards.
Comment triage
These comments just narrate what the code does and some mention our conversation. Clean them up using the simplify criteria and keep only the non-obvious constraints.
Vocabulary consolidation
This module uses three different names for the same concept and stores a value that can be derived from what's already in scope. Consolidate the vocabulary, merge the overlapping types, and drop the derivable state.

name: simplify description: Use this skill automatically when you feel your code is ready for human review, and whenever writing or reviewing code comments. Ready means the code works and achieves a stated goal, verified by your own tests and/or, if you deem it necessary, human testing.

Review changes in the current branch, or in the scope the user specifies. Apply these criteria without changing behavior. Only touch code in that scope, and run the relevant existing checks after changes.

Word choice in code and comments

Variable names, function names, and comments are all prose. Apply Orwell's rules ("Politics and the English Language") to each:

Never use a long word where a short one will do.

If it is possible to cut a word out, always cut it out.

Never use the passive where you can use the active.

Never use a foreign phrase, a scientific word, or a jargon word if you can think of an everyday English equivalent.

Latinate vocabulary (reconcile, coalesce, normalize, reconciliation) sounds technical and abstract; Anglo-Saxon words (prune, run, watch, stop, drop, walk) are short and physical. Prefer the Saxon word.

Names

  1. One word per concept, one concept per word. Keep a vocabulary. If sync names "pulling remote changes," it cannot also name "flushing edits to disk;" rename one of them.
  2. Cut words the context already carries. A module named workspaceWatcher does not need startNativeWorkspaceWatcher; watchWorkspace says the same thing.
  3. A compound name is usually a hedge:
  • ❌ lastObservedDiskContent is a specification to defend
  • ✅ baseline is a readable description

Comments

State, in plain English, the constraint the code cannot show: why the non-obvious exists.

  • ✅ If code is complex and the implementation is non-obvious, add a comment.
  • ✅ If a function contains complex behaviors or side effects, add a doc comment.
  • 🗑️ If a comment narrates change history from the conversation, delete it.
  • 🗑️ If a comment restates code whose behavior is self-evident, delete it.

Code structure

  1. Inverted pyramid. Within a file, lead with the exported or significant functions and push helpers below them. Don't bury the lead.
  2. Related concepts over monoliths. Break a large file into modules that each own one concept.
  3. Combine overlapping concepts. If two types, functions, or constants overlap significantly, merge them. The fewer distinct concepts a reader must hold in their head, the better.
  4. Use shared code. Common utilities (ex. file path parsing) may exist in the codebase already. Check for library or utility functions before inlining.
  5. Derivability. If a value can be computed from values already in scope, don't pass or store it separately. Removing derivable state often simplifies signatures, types, and control flow in one move. Example: an isDirty parameter that is always editorContent !== baseline can be dropped.

Overfitting

Code must stand on its own. If a change only makes sense to someone who watched it happen (this conversation, this PR), it is overfitted. Write for the reader who arrives with no history.

  • If a name or comment needs the conversation to be understood, rewrite it against the codebase's own vocabulary.
  • No backwards compatibility with unshipped code. Supporting an old signature, alias, or data shape that only existed earlier in the same branch is compatibility with something that was never deployed. Delete the old path and update its callers.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/code-and-comment-simplification-mverao35/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/code-and-comment-simplification-mverao35' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/code-and-comment-simplification-mverao35/download' --output '.skill-downloads/code-and-comment-simplification-mverao35/SKILL.md.part' && mv '.skill-downloads/code-and-comment-simplification-mverao35/SKILL.md.part' '.skill-downloads/code-and-comment-simplification-mverao35/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/code-and-comment-simplification-mverao35/SKILL.md' && test -s '.skill-downloads/code-and-comment-simplification-mverao35/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/simplify' && cp -R '.skill-downloads/code-and-comment-simplification-mverao35' '.claude/skills/simplify'

Cursor
test -f '.skill-downloads/code-and-comment-simplification-mverao35/SKILL.md' && test -s '.skill-downloads/code-and-comment-simplification-mverao35/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/simplify' && cp -R '.skill-downloads/code-and-comment-simplification-mverao35' '.cursor/skills/simplify'

Codex
test -f '.skill-downloads/code-and-comment-simplification-mverao35/SKILL.md' && test -s '.skill-downloads/code-and-comment-simplification-mverao35/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/simplify' && cp -R '.skill-downloads/code-and-comment-simplification-mverao35' '.agents/skills/simplify'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/code-and-comment-simplification-mverao35'

openskills read 'code-and-comment-simplification-mverao35'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/code-and-comment-simplification-mverao35/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills