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
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.
About
Use cases: writing, agent-building
Reviews
Write a reviewNo 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
- 0.524score
write-the-present-not-the-diff
kasofsk
Write prose that states what is true now, without narrating the correction, the superseded claim, or the path that got there.
SkillBFreshness: BClaude Code +9 - 0.524score
design-with-known-limits
kasofsk
Design systems with explicit correctness limits, failure modes, and operational assumptions instead of automatically engineering every weakness away.
SkillBFreshness: BClaude Code +9 - 0.524score
diminishing-returns
kasofsk
Pursue the highest-value work first and stop when the expected value of the next improvement no longer justifies its full cost.
SkillBFreshness: BClaude Code +9 - 0.524score
domain-modelling
kasofsk
Shape the contents of the domain core — ubiquitous language, aggregates as consistency boundaries, entities versus value objects, making illegal states…
SkillBFreshness: BClaude Code +9 - 0.524score
fix-the-assumption-not-the-hack
kasofsk
When a new feature invalidates an assumption the current design rests on, rethink the pattern rather than land a tweak that technically satisfies the request.
SkillBFreshness: BClaude Code +9 - 0.524score
idiomatic-by-default
kasofsk
Take the community-standard path for the language, framework, or ecosystem unless there is an articulable reason not to, and don't escalate a decision the…
SkillBFreshness: BClaude Code +9 - 0.524score
illegal-states-unrepresentable
kasofsk
Make illegal states unrepresentable with precise types, discriminated variants, and boundary parsing.
SkillBFreshness: BClaude Code +9 - 0.524score
layering
kasofsk
Decide where code goes and which way its dependencies point — inward-pointing source dependencies, what the domain, application, adapter and infrastructure…
SkillBFreshness: BClaude Code +9 - 0.524score
modular-and-layered-code
kasofsk
Architect so a future agent can act at a single layer — strict tested contracts between layers, testing concentrated at domain boundaries, pure logic kept…
SkillBFreshness: BClaude Code +9 - 0.524score
push-back-and-verify-assumptions
kasofsk
Treat the operator as a fellow engineer — challenge naive or wrong premises, state assumptions explicitly, keep asking until they are right, and stop rather…
SkillBFreshness: BClaude Code +9 - 0.494score
dependencies
kasofsk
Add, remove, upgrade, or pin a dependency with the ecosystem's package manager instead of hand-editing the manifest.
SkillBFreshness: BClaude Code +9
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
- Repository
- github.com/kasofsk/blessed-practices
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from kasofsk
- 0.524score
write-the-present-not-the-diff
kasofsk
Write prose that states what is true now, without narrating the correction, the superseded claim, or the path that got there.
SkillBFreshness: BClaude Code +9 - 0.524score
design-with-known-limits
kasofsk
Design systems with explicit correctness limits, failure modes, and operational assumptions instead of automatically engineering every weakness away.
SkillBFreshness: BClaude Code +9 - 0.524score
diminishing-returns
kasofsk
Pursue the highest-value work first and stop when the expected value of the next improvement no longer justifies its full cost.
SkillBFreshness: BClaude Code +9 - 0.524score
domain-modelling
kasofsk
Shape the contents of the domain core — ubiquitous language, aggregates as consistency boundaries, entities versus value objects, making illegal states…
SkillBFreshness: BClaude Code +9 - 0.524score
fix-the-assumption-not-the-hack
kasofsk
When a new feature invalidates an assumption the current design rests on, rethink the pattern rather than land a tweak that technically satisfies the request.
SkillBFreshness: BClaude Code +9 - 0.524score
idiomatic-by-default
kasofsk
Take the community-standard path for the language, framework, or ecosystem unless there is an articulable reason not to, and don't escalate a decision the…
SkillBFreshness: BClaude Code +9
Cite this page
comments-describe-the-code skill. Agent Mart. https://agentmart.dev/skills/kasofsk-comments-describe-the-code (last updated 2026-10-24)