Defines style and formatting conventions for code, documentation, naming, and file organization. Useful when reviewing style consistency or setting up new files.
Ships in preferences-code-and-collaboration-conventions. 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.
**) sparingly, primarily for critical emphasis within sentences. Avoid bolding section labels, definitions, or key terms when plain text suffices. Prefer italic (*) for subtle emphasis.preferences-documentation.Text sent to a forge or tracker is never hard-wrapped: pull-request and issue titles and bodies, review and issue comments, and Linear descriptions and comments.
Each paragraph is one line and each list item is one line, because GitHub renders every newline in those bodies as a line break, so wrapped text shows ragged on the web and in notification e-mails.
One sentence per line applies to markdown files in a repository, not to these bodies.
Code blocks, tables and preformatted output keep their line breaks.
Commit messages keep git's convention, a subject of at most 72 characters and a body wrapped at 72 columns, because git and terminals display them; the vanixiets publish script reflows commit bodies into pull-request bodies, but where a pull request is opened by a tool that copies commit bodies verbatim, such as mergify stack push, write that commit's body one paragraph per line.
Nothing that lands on GitHub cites an issue, pull request or discussion of another GitHub repository by number or link: neither owner/repo#123 nor owner/repo!123, nor https://github.com/<owner>/<repo>/issues/<n> (or /pull/, /discussions/) under any host prefix, www.github.com and redirect.github.com included.
This covers pull-request and issue titles and bodies and review and issue comments; commit messages are covered by the stricter bullet in preferences-git-version-control §Commit formatting, which bans every issue and pull-request reference.
GitHub turns each such mention into a cross-reference event on the other repository's issue, a backlink we cannot manage, which notifies that issue's participants.
Describe the upstream issue in words instead, by its title or what it says, or name the repository without a number, and put the full reference in the Linear issue: Linear descriptions and comments may and should cite other repositories.
The repository's own issues and pull requests (#123) may be cited in pull-request and issue bodies and comments.
Files committed to a repository are not mentions, because GitHub creates no autolinked references from file contents, so docs, code comments and READMEs are outside this rule.
Avoid presumptive, negatively judgmental, or editorializing language in code comments, documentation, and commit messages. State what code does, not speculative narratives about why.
Write code that explains itself through naming, structure, and types; this extends the "Factual commentary" stance above, and the code-comments rule in agent-context-core states the part a check enforces on every commit.
Doc comments are API-contract documentation and flow into generated docs/reference/ material, so the language skills' requirements for them (Rust /// and //!, Haskell Haddock, Python and TypeScript docstrings, nix module option descriptions) remain in force; what they may say is limited as for any comment.
A comment is read by whoever next edits the lines beneath it, holding the repository and nothing else, and it qualifies only as a constraint on that edit which the code cannot show: an invariant another file depends on; an external constraint such as an API quirk, hardware limit, or protocol-mandated ordering, with its link; a workaround for an external bug, with the upstream issue or pull request; a correctness, security, concurrency, or numerical-stability footgun the next editor would plausibly reintroduce.
The test is whether an editor who never read the comment would break something.
A design file's reasoning qualifies only as the constraint it imposes: state that constraint, and leave the alternatives weighed, the evidence and the decision to the design file.
When the comment would explain surprising behaviour of our own code, change the code instead: a name, a type, an extraction.
History and evidence belong in the commit message, where git blame leads, and behaviour in the option's description or documentation comment; this holds for docstrings and for comments in scripts embedded in Nix strings.
| Written | Instead |
|---|---|
# The hand-off to the ingress (design D14). above handoffWithoutClientCa (modules/checks/otel-collector-config.nix, 72f782b86) | Nothing: the attribute name and clause.handoff say it, and the design's reasoning stays in its design file. |
# nixbot: median 130 s, slowest 563 s, 576 runs in 30 days above darwin-stibnite.class = "medium"; (modules/checks/machines.nix, 165f5945a) | The class alone; the durations and their window go in the commit message. |
# Size classes (declare-test-size-classes design D1, D2): the median of nixbot's uncached runs of at least 1 s, read 2026-11-24 (logs/tsc-4-durations-runs-20261124-141600.log). (modules/checks/shared-vars-obligations.nix, 165f5945a) | How a class is chosen, once, in the testSizes option's description in modules/checks/test-sizes.nix; the date and the log in the commit message. |
# Whether the host runs the ingress. above the argument ingress ? false, (modules/lib/agent-session-collector.nix, 705b436c7) | Rename the argument runsIngress ? false and write no comment. |
A twelve-line header opening # Behavioural check of nixbot-upload-local-outputs.patch (F81): in every build … that retells the cases and the mutants (modules/checks/nixbot-upload-local.nix, 2609076c7) | One line saying what the check fails on; the cases are in test_upload_local.py, the mutants in mutants, the rest in the commit message. |
# … a standalone check judging every peer cost 454 MB of evaluation for its drvPath and was replaced by it. (modules/system/mesh-hosts.nix, 10aacbc77) | # Judge in the machine checks, which already evaluate each configuration; a standalone check over every peer costs far more evaluation. The figure and the replaced check go in the commit message. |
| What you will tell yourself | The answer |
|---|---|
| "This records why the design chose X." | The design file records it; the comment states only the constraint the choice leaves on the next edit. |
| "The next reader will want the benchmark." | The commit message has it, and git blame on the line leads there. |
| "It is only a pointer to the task." | A reader of the file cannot open it; state what it stood for, or nothing. |
| "Without the date nobody knows if it is still true." | A comment states what holds now; the commit that made it true carries the date. |
| "It is a docstring, not a comment." | Docstrings, doc comments and embedded-script comments are held to the same limits. |
| "The code is too subtle to follow without it." | Rename, retype or extract until it is not, then see what is left to say. |
Comments that fail this bar are noise: restating the code in prose, narrating control flow the structure already shows, section-divider banners, commented-out code (delete it; version control retains the history), and TODO or FIXME notes without an issue reference or owner.
Treat removing such comments as a standing responsibility rather than one gated to the file or change you are currently working on: when you encounter noise comments in the project's own code, remove them, and a comment-only cleanup is a legitimate standalone change.
This breadth is bounded by safety rails that are never relaxed.
Never alter vendored, third-party, generated, upstream-mirrored, or otherwise externally-owned trees, including any path bearing a DO NOT EDIT marker or designated by the repository as a mirror.
Never remove any item in the load-bearing list below.
When uncertain whether a comment is load-bearing or whether a tree is externally owned, leave it and surface the question rather than deleting; the cost of deleting one rationale-bearing comment exceeds the cost of leaving several redundant ones.
Some comments are load-bearing and must never be removed or rewritten as incidental cleanup, regardless of the bar above:
#!/usr/bin/env bash, #!/usr/bin/env python3).# -*- coding: utf-8 -*-).# type: ignore, # noqa, # pyright: ignore, # ruff: noqa, # shellcheck disable=SCxxxx, // eslint-disable, // @ts-expect-error, GHC {-# ... #-} pragmas.# fmt: off and # fmt: on, // prettier-ignore, nix formatter control comments, // rustfmt::skip.// SAFETY: comments on unsafe blocks, and the per-exclusion "explain why" comments other skills require (for example nix-unit package exclusions); these are the canonical truly-exceptional cases.// Code generated ... DO NOT EDIT., # Generated by ..., managed-block BEGIN and END sentinels) and any comment parsed by tooling as a directive (//go:generate, // go:build and cfg conditional-compilation comments, cython: directives, dependency-pin annotations)../docs/notes/[category]/[lower-kebab-case-filename.md] where you may need to create the directory if it doesn't exist before writing the file. See "Working notes" in preferences-documentation for lifecycle management and integration with formal documentation.Files should remain comprehensible as cohesive units. As files grow, split along responsibility boundaries rather than at arbitrary line counts.
Soft guidance thresholds:
For code, extract modules with clear interfaces using the language's import mechanism. For documentation, create index files linking to subpages or organize into subdirectories.
Create subdirectories when extractions form natural hierarchies or exceed 4-5 related files; otherwise sibling files with cross-references suffice.
Avoid splitting when it would fragment a genuinely cohesive unit or create excessive coupling through circular references.
Log files captured with tee during long-running commands live in a repository's logs/ directory, named with a lower-kebab-case identifier and a timestamp suffix, matching the command form given for long-running commands:
<command> 2>&1 | tee logs/<lower-kebab-identifier>-$(date +%Y%m%d-%H%M%S).log
Before writing there, verify that logs/ is actually ignored by that repository.
If it is not ignored, write to $XDG_STATE_HOME/agent-logs/<repo>/ instead and report the missing ignore entry rather than adding it silently.
Never leave an untracked, unignored file inside a jj working copy; see the jj-version-control skill's hazards.md for why a tracked log file is harmful once jj has begun snapshotting it.
Never delete logs within a session.
Pruning anything older than fourteen days is an explicit maintenance action only, never a side effect of other work.
When writing code, follow the XDG Base Directory specification for config, cache, and data paths.
Keep a scratch directory for agent working output rather than scattering it across the working tree.
Before transitioning from planning to implementation, materialize the plan into concrete commitments.
Determine precisely which files and directories will be modified, created, or removed.
Define the grouping and sequence of commits with draft commit messages.
Specify how each commit or collection of changes will be verified as useful progress: passing new or existing tests, producing observable output, improving conceptual clarity, or satisfying other criteria appropriate to the change.
This checkpoint converts abstract plans into auditable intentions, reducing rework from misaligned assumptions.
For each proposed change, identify the confidence level the verification plan is expected to achieve and whether the verification would be severe — would it fail under plausible incorrect implementations?
See preferences-validation-assurance for the severity criterion and confidence promotion chain.
shellcheck for shell scripts, cargo test, pytest, vitest, nix eval or nix build, a task runner like just test or make test, or gh workflow run before considering any work to be complete and correct.nix eval on the affected attribute, and a build adds nothing.
A change affecting one check is verified by nix build .#checks.<name> for that check.
The full parallel run over every check belongs to pre-pull-request validation, or to a change whose blast radius is genuinely repository-wide, and is not a routine iteration step.
The reason is cost against information: a full run takes minutes to hours and, for a one-file change, tells you almost nothing the targeted check does not, and spending it wantonly trains the habit of not knowing which check actually covers your change.
This is about scope for the moment rather than building individual tests instead of the check set — the parallel runner exists so that coverage never has to be traded for speed.When validating changes for merge, retrieve and analyze complete workflow logs across both CI backends (GitHub Actions and buildbot-nix) via the recipes in the ci-log-verification skill: wait with gh run watch, download full log archives, and use PAGER=cat gh pr checks <N> to route each check to its backend before analysis.
fd instead of findrg (ripgrep) instead of grepdiskus instead of du -shcb copy (clipboard-jh) instead of platform-specific pbcopy (macOS) or xclip/xsel (Linux); an agent in a herdr pane on a remote Linux host (HERDR_ENV=1 with SSH_CONNECTION set) pipes to osc52-pane instead, because cb writes its OSC 52 sequence to stdout, which the agent's tool call captures before it reaches the panentfy-send "<message>" where <message> includes the repo name and summarizes the completed task (default topic is the local hostname; override with ntfy-send "<message>" <topic>; fleet-* topics need the alerter token through NTFY_TOKEN_FILE, host topics stay anonymous)dependency-source-acquisition for both lookup kinds, the (see local) marker directive, and GitHub file, issue, and PR URL handling.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
style-guide, formatting, conventions, code-style, documentation-style
/preferences-code-and-collaboration-conventions:preferences-style-and-conventionsfrom preferences-code-and-collaboration-conventions
npx claudepluginhub cameronraysmith/vanixiets --plugin preferences-code-and-collaboration-conventions8 skills in this plugin
/preferences-change-managementChange management practices for controlled evolution of systems and codebases. Load when planning migrations, deprecations, or breaking changes./preferences-comment-cleanupUncomment-driven workflow for auditing and removing noise comments while preserving load-bearing markers, as the operational arm of the code-comments policy. Load when you remove comments, strip comments, uncomment or declutter code, run a comment cleanup, or systematically prune noise comments across a subtree./preferences-documentationOther plugins' skills for the same job