Skip to content
Agentmart
Submit a tool

comments-describe-the-code

Write comments about the code itself, never about the prompt, conversation, or moment that produced it — and treat a long justifying comment as a signal the…

Skill by kasofsk

IndexedMIT
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/kasofsk-comments-describe-the-code

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Write comments about the code itself, never about the prompt, conversation, or moment that produced it — and treat a long justifying comment as a signal the code is wrong. Use when writing or reviewing comments, when stripping provenance scaffolding before merging to main, or when tempted to explain a change with "as requested" or "changed per discussion".

Use cases: writing, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/comments-describe-the-code

What's inside

Skill name
comments-describe-the-code
Description
Write comments about the code itself, never about the prompt, conversation, or moment that produced it — and treat a long justifying comment as a signal the code is wrong. Use when writing or reviewing comments, when stripping provenance scaffolding before merging to main, or when tempted to explain a change with "as requested" or "changed per discussion".
License
MIT
Instructions
52 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Comments Describe the Code, Not Its History

## Core principle

Comments should be descriptive and clarifying, and they should be about **the
code itself** — not about the moment, the conversation, or the prompt that
produced it.

## How we get there

### 1. No time-capsule comments

Comments should not encode history or context that only makes sense at the
time the code was generated — and in particular, they should not refer to the
prompt or request that created them. A comment like "changed per discussion"
or "as requested, now handles the new case" is meaningless to the next reader.
The test: a reader with no knowledge of how this code came to exist should
find the comment fully intelligible and useful.

### 2. Provenance comments are legitimate scaffolding — temporarily

We do understand that provenance-style comments can be genuinely helpful while
working out larger tasks: coordinating several pull requests into one
significant feature, or navigating a large refactoring. Embedded markers of
"where this came from / what it connects to" can make that work go smoothly,
and that's okay.

### 3. Scaffolding comes down before merge to main

By the time work is merging back onto the main branch, no comment should
remain that only makes sense to the specific operator who asked for the
specific change. Provenance comments are construction scaffolding: essential
during the build, removed before hand-off. Main-branch comments serve every
future reader, not the one who commissioned the work.

### 4. A long justifying comment is a code smell

If a very long comment exists to justify code that seems bad, it's very likely
the code *is* bad. The right move is usually to change the code so that the
comment can be simpler — not to keep polishing the explanation. Comment length
spent on justification is a signal pointing at the code, and the fix belongs
in the code.

## Why this matters

Comments are part of the permanent interface of the code, read far more often
and far later than they are written. History-bound and operator-bound comments
actively mislead future readers by pointing at context that no longer exists;
long apologetic comments paper over problems that should be fixed. Keeping
comments descriptive, self-contained, and short keeps the codebase honest.

From kasofsk/blessed-practices, MIT.

More from kasofsk/blessed-practices

Signals

Stars
0
Forks
1
Open issues
0
Last commit (this folder)
Aug 20, 2026 (2 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from kasofsk

Cite this page

comments-describe-the-code skill. Agent Mart. https://agentmart.dev/skills/kasofsk-comments-describe-the-code (last updated 2026-10-24)