agentleFS
ryoppippiryoppippi/ccusage/.agents/skills/code-comments/SKILL.md

code-comments

Skill20k starsChanged 3 days agoMITView on GitHub

Applies the ccusage comment rule when writing, reviewing, or deleting code comments in any repository language, including source files, configuration, workflows, and build scripts.

35 other projects use a version of this; 1 new project in the last 4 weeks, against 0 the 4 before.

Adopted by

Surging: 1 new project took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projectsWeek of Nov 22: 1 new project
Oct 2026Nov 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 1 in all, so this is a hint, not a trend.

Most recently taken up by

Who's talking about ryoppippi/ccusage

The biggest 5 of 73 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 73

Talked about on GitHub, YouTube, Bluesky, Hacker News and the web (73 times).

On GitHub · 31

26 more on GitHub

On YouTube · 21

16 more on YouTube

On Bluesky · 14

9 more on Bluesky

On the web · 3

Used with

Projects with it also use codebase-design, improve-codebase-architecture and 4 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • GoogleSkill

    codebase-design

    Shared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary.

    Also in 5 projects that use this

  • GoogleSkill

    improve-codebase-architecture

    Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.

    Also in 5 projects that use this

  • MicrosoftSkill

    api-design

    Guide for designing and documenting RESTful APIs. Use when asked to design an API, create endpoints, or document an API.

    Also in 3 projects that use this

  • HashiCorpSkill

    changelog

    Add a Changie change fragment (`.changes/<major>.x/unreleased/*.yaml`) for a GitHub Pull Request, commit, and push.

    Also in 3 projects that use this

  • MicrosoftSkill

    handoff

    Compact the current conversation into a handoff document for another agent to pick up.

    Also in 4 projects that use this

  • +1 more from google

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 30 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Default to no comment. Keep a comment only for a fact a reader cannot derive from the code and would otherwise undo by mistake.

    line 8
  2. Distinctive:

    No comments after code on the same line.

    line 18
  3. Distinctive:

    Put change history and reasons for config entries or small diffs in commits.

    line 19

“Common” is measured: kept by at least 6 in 10 of the 30 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Code Comments

  • Default to no comment. Keep a comment only for a fact a reader cannot derive from the code and would otherwise undo by mistake.
  • Use // NOTE(YYYY-MM-DD[, <agent CLI> <version>][, #<issue or PR>]): <fact>. <why>. with the language's line-comment prefix (# for Nushell, shell, Nix, TOML, YAML and just, ; for Babashka). Date the fact when it was found or verified. Name the agent CLI and version used to verify any claim about its log format. Include the issue or PR when one exists. The source must be clear.
  • Allow // SAFETY: immediately above a Rust unsafe block. Allow /// on pub items that another crate uses as API and on the schema structs and their fields in config_schema.rs. Allow //! at crate roots only.
  • No comments after code on the same line. No TODO, FIXME, HACK or XXX markers. Put change history and reasons for config entries or small diffs in commits.
  • Exempt shebangs and tool directives such as #!, # shellcheck, // biome-ignore, # yaml-language-server and Cargo, rustfmt and Clippy configuration syntax. Give @ts-expect-error a dated reason.
  • Exempt Renovate version tags after 40-hex SHA-pinned uses: entries in YAML under .github/.
  • Exempt just recipe docs shown by just --list, Nushell def help and parameter comments, licensing headers, generated files, test fixture data and golden snapshots.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.