/sorah-guides:codingfrom sorah-guides
Provides language-agnostic coding conventions for code quality, comments, error handling, and formatting. Useful when writing or reviewing code in any language.
Ships in sorah-guides. 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.
Language-agnostic coding conventions applicable across all projects. Project-specific conventions (CLAUDE.md, style guides) always take priority over this guidance.
Comments must not repeat what the code already expresses. Use comments to explain why something is done, or to record context that cannot be recovered from the code itself.
Three rules govern everything below.
Write for a stranger reading the file, not a reviewer reading the diff. The reader has never seen the pull request, the spec, the ticket, the review discussion, or the previous version of the code. A comment that only makes sense with that context is noise to everyone else.
Keep them short. Default to a single line. Use two or three only when one genuinely cannot carry the constraint. This applies to doc comments too: a class or method doc comment states what the thing is and what it guarantees, in a sentence or two. It is not a design document.
Avoid narrative. A comment states a fact. It does not build to a point, weigh alternatives, or qualify itself. Punctuation is a reliable tell: reaching for an em dash, a semicolon, or a colon that introduces an explanation is the signal to stop and cut, not to keep writing. So is a second sentence opening with "But", "So", "Note that", or "In practice".
When to comment:
When not to comment:
Never write these:
ON DELETE semantics, what frozen_string_literal does. The reader knows the tool, and the linter or compiler catches the mistake anyway.**bold**, *italics*) inside comments.Test and spec files follow the same rules. Let the example name carry the intent instead of narrating the setup.
When the rationale is genuinely valuable but too long for a line or two, it belongs where a reader will look for it: the pull request description, the commit message, docs/, or the spec.
Cite a discussion rather than retelling it. A bare reference to a pull request, a GitHub or Linear issue, or an upstream bug is the compact form of context too large for a comment, and beats a paragraph whenever the reasoning behind the code is genuinely complex: # Bound set from the measurements in #1234. The reference still has to earn its line. Straightforward code with nothing hidden behind it gets no comment and no link.
Deferred cleanup is a TODO:. Code kept only until something else lands carries a comment starting with TODO: that names the trigger and the replacement, so the cleanup is a grep away: # TODO: remove once the v2 endpoint graduates; superseded by the presence rule on Order#total.
Example. The same fact, before and after:
# Retries with a fresh connection rather than reusing the pooled one — the
# pooled connection is what went stale in the first place, so reusing it is
# the obvious implementation and it is wrong: the second attempt then fails
# exactly as the first did, which is what happened before this changed.
# A pooled connection may be stale, so the retry opens its own.
When a boundary converts failures into one exception type:
Space retries of a failed operation with exponential backoff that is capped, jittered, and computed in floats:
backoff = [INITIAL_BACKOFF * (2**(attempts - 1)), MAX_BACKOFF].min * (0.5 + (0.5 * rand))
A fixed delay makes processes that failed together retry together. In Python, cap the exponent as well: 2 ** 1024 cannot be converted to a float, so the min never applies.
.invalid TLD (RFC 2606) for fake hostnames and URLs in test data. It never resolves, so a test cannot reach a real domain.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
coding-conventions, code-quality, code-review, comment-style
npx claudepluginhub sorah/config --plugin sorah-guides23 skills in this plugin
/commit-styleThis skill should be used when writing git commit messages, creating git commits, composing pull request titles and descriptions, or when the user asks to "commit", "git commit", "write commit message", "pull request", or "PR description". Provides conventions for subject lines, prefix patterns, body content, and verb choices./dsql-on-railsThis skill should be used when building, extending, or testing a Rails app on Amazon Aurora DSQL, or when moving a Rails app onto DSQL. Use it when writing a transaction, a uniqueness check, a schema change, a spec, a rake task, or CI for such an app, even if the user only says "add a model" or "fix this flaky spec" in such an app. Signs include `aws-sdk-dsql`, `pg-aws_rds_iam`, `aws_rds_iam_auth_token_generator`, a `*.dsql.<region>.on.aws` host, `ActiveRecord::SerializationFailure` with `OC000`/`OC001`, `retryable_transaction`, `non_idempotent_transaction`, `create index async`, `script/pdsql`, or the user mentioning "DSQL", "Aurora DSQL", or "OCC". Provides connection settings and adapter patches, OCC-aware transactions, schema constraints with psqldef, roles, per-developer schemas, RSpec setup, and CI against real clusters. Project-specific conventions always take priority./english-textThis skill should be used when writing English text on behalf of the user, such as GitHub issue/PR descriptions, code review comments, replies to maintainers or contributors, commit message bodies, business emails, or when the user asks to "write in English", "draft a reply", "write a PR description", "file an issue upstream", or "reply to this email". Provides register, phrasing, punctuation, and formatting conventions derived from the author's own GitHub activity, commits, and emails./github-ciThis skill should be used when writing, editing, or reviewing GitHub Actions workflows (`.github/workflows/*.yml`, composite actions in `.github/actions/`), or when setting up CI, a release pipeline, a Docker image build, or gem/crate publishing for a project. Use it whenever the user mentions "GitHub Actions", "CI", "workflow", "release workflow", "trusted publishing", "pin actions", "zizmor", "actionlint", or asks to "add tests to CI", "publish on tag", or "build a container image in CI", even if they never say "workflow". Provides the standard workflow layout (ci / `_test` / release), least-privilege and SHA-pinning rules, release and publishing patterns, and per-language test jobs. Project-specific conventions always take priority./japanese-textThis skill should be used when writing Japanese text, blog posts, diary entries, technical articles, prose, or when the user asks to write in Japanese, compose a blog post, draft a diary entry, or write technical content in Japanese. Provides writing style, orthography, and composition conventions across personal, technical, and corporate contexts./railsThis skill should be used when writing or reviewing Ruby on Rails code, or when the project uses "Rails", "ActiveRecord", "ActiveJob", "ActionMailer", "concerns", "migrations", "initializers", "Rails.configuration", "before_action", "request specs", "let_it_be", or "controller". Provides Rails coding conventions for configuration, models, controllers, jobs, mailers, logging, API changes and testing. Project-specific conventions always take priority.Other plugins' skills for the same job