No slash command · from wordsmith
Use when writing, editing, or reviewing code or config in any language, including IaC and manifests, to decide whether a comment belongs and how to word it.
Ships in wordsmith. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Default to no comments. A file that reads clean from start to finish is the expected result, not a gap to fill.
Add a comment only when both conditions are true:
"Competent" is the calibration: not a novice, and not someone new to this tool. A true, well-written sentence that teaches this reader what they already know fails the test. So does "a reader might appreciate this", because nearly anything clears that bar.
Comments that pass usually record one of these:
When you are unsure, cut the comment. A reader sent to git blame now and then costs less than a codebase where every comment must be evaluated for whether it is worth reading.
Each pair below shows a comment that sounds useful but fails, and one that passes. The failing comment states general knowledge or restates the code. The passing comment states a fact specific to this system.
# Fails: Pin deliberately; check the registry before bumping.
# Passes: 3.2.5 breaks OIDC token refresh (upstream #4812).
image_tag = "v3.2.4"
# Fails: 2 replicas gives failover if one pod goes down.
# Passes: Max 2. Each replica holds 200 connections, and the database allows 400.
replicas: 2
// Fails: Use a transaction to ensure atomicity.
// Passes: The reconciliation job flags a ledger row with no balance update as fraud.
await db.transaction(writeLedgerAndBalance);
// Fails: Retry with backoff to handle transient failures.
// Passes: The vendor returns 429 for up to 30 s after a burst, so retries must outlast that.
await retry(sendInvoice, { maxElapsedMs: 45_000 });
# Fails: Start the retry count at 1.
# Passes: Upstream treats 0 as "infinite retries".
retry_count = 1
# Fails: writeback improves write performance.
# Passes: A crash-looping pod under cache=none generated 23 TB of disk reads and wedged the node (k8s-prod-wrk-2 incident).
cache = "writeback"
# Fails: Address of the NFS server.
# Passes: Must be the IP. The CSI controller mounts from a pod, and cluster DNS never sees the nodes' /etc/hosts entry.
NFS_SERVER: "10.0.0.5"
// Fails: Fix for PROJ-123, as requested in review.
// Passes: Works around acme-http #2114, which drops the body on redirect.
const res = await fetch(url, { redirect: "manual" });
An external bug that explains the code belongs in the comment. The ticket, review, or conversation that produced the change belongs in the commit message or PR description.
These habits fail the test, however reasonable each comment looks:
/** @param userId The ID of the user */
// --- Helpers ---
// Arrange
// Changed to a Set for O(1) lookup
# Let's Encrypt account email
ACME_EMAIL: "[email protected]"
# A separate Terraform root gives this its own state file.
module "storage" { ... }
# noqa, //go:build, or license headers: write them when required. Apply the test to any reason you add beside them.TODO comments: write one only with a tracked issue or a specific condition for doing the work. Otherwise, tell the user about the gap.Apply the test to each comment, then check the whole file:
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub davidnlopes/claude-code-plugins --plugin wordsmith5 skills in this plugin
/document-disciplineUse before creating or changing documentation, including READMEs, `docs/` files, runbooks, and design documents, or when deciding whether knowledge from a task should be written down./writing-effective-agents-mdUse before creating or changing `AGENTS.md` or `CLAUDE.md` files, and when reviewing them./writing-effective-readmeUse before creating or changing a repository's root `README.md`, and when reviewing it./writing-effective-rulesUse before creating or changing Claude Code rules, and when reviewing them, including files in `.claude/rules/` and `~/.claude/rules/`.