/universal-agent-skills:coding-stylefrom universal-agent-skills
Keep code comments and docstrings concise, neutral, human-authored in tone, and written in English unless another language is required. Use when writing, refactoring, or reviewing code where comments, identifiers, or docstrings may be added or changed; do not use to shorten required public API documentation, safety notes, or legal notices.
Ships in universal-agent-skills. 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.
Read when SKILL.md points to them.
Write code that explains itself through names, structure, and small functions. Treat comments as a last-mile explanation for information the code cannot express clearly.
Prefer:
// Keep the old key for clients that cache signed URLs.
const cacheKey = previousKey ?? currentKey;
Avoid:
// Here we use the previous key because I want to make sure that clients that
// may have cached a signed URL do not suddenly stop working after this change.
const cacheKey = previousKey ?? currentKey;
Omit comments that only restate the code:
retryCount += 1;
State the current invariant, not the change that produced it:
# Built-in marketplaces (openai-*) are listed without a source.
if name not in managed:
continue
Avoid narrating the fix history:
# Before the fix this raised "inventory malformed"; now the built-in is skipped.
if name not in managed:
continue
Before finishing, inspect new and edited comments. Shorten or remove any comment that sounds conversational, narrates the implementation, repeats the code, describes the change history, or reveals use of an AI assistant. Rewrite any identifier or comment left in the conversation's language instead of the repository's.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub 26zl/universal-agent-skills --plugin universal-agent-skills41 skills in this plugin
/accessibility-auditAudit a user interface against every WCAG 2.2 A and AA criterion with evidence, fix safe barriers, and produce a manual test plan. Use when the user asks about accessibility, WCAG, screen readers, keyboard use or contrast./ai-feature-reviewReview LLM, agent, retrieval and ML features for reliability, evaluation, safety, privacy, cost and user experience. Use when the user asks to review an AI feature, prompts, RAG, agents with tools or a trained model./api-design-reviewReview REST, GraphQL, gRPC, WebSocket, SSE, webhook and SDK interfaces for consistency, errors, pagination, versioning, compatibility and documentation. Use when the user asks for an API design review, an API consistency check or a breaking-change assessment./architecture-reviewAssess architecture and codebase health: boundaries, consistency, runtime qualities, evolvability, hotspots and technical debt, with ranked risks and a prioritized plan. Use when the user asks whether the architecture fits, how healthy the codebase is, or which technical debt to pay first./cli-and-scripts-auditAudit command-line tools, shell and PowerShell scripts, installers, setup scripts and dotfiles for safety, robustness, portability, testing and distribution, and fix the safe parts. Use when the user asks to review a CLI, a shell or PowerShell script, an installer or a setup tool./data-auditAudit schemas, migrations, queries, integrity, access control, backups, data quality and pipelines, without running anything against a live database. Use when the user asks for a database, schema, migration or data pipeline review.