Borrowing it
Nothing to install: this file belongs to pandulapeter/campfire. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/pandulapeter/campfire/master/.claude/skills/code-style/SKILL.mdgit clone --depth 1 https://github.com/pandulapeter/campfireWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/pandulapeter/campfire/code-style)<a href="https://agentmods.dev/skills/pandulapeter/campfire/code-style"><img src="https://agentmods.dev/badge/skills/pandulapeter/campfire/code-style/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/pandulapeter/campfire/code-style"><img src="https://agentmods.dev/badge/skills/pandulapeter/campfire/code-style.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00171 | $0.05161 |
| Opus 5.5 | $0.00068 | $0.02064 |
| Sonnet 5.5 | $0.00034 | $0.01032 |
| Haiku 4.5 | $0.00017 | $0.00516 |
Grade A, and why
code-style scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 260 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Campfire code style
Conventions for matching the pre-established style of this codebase. Architecture, the module graph,
the build, the coding conventions and a one-line index of the product rules are in the root CLAUDE.md;
the release pipeline is in .github/CLAUDE.md; everything else is in the nearest directory-scoped
CLAUDE.md (each module's, each :presentation source set's, and those of the packages that need one).
This skill is about how the code reads.
License header
- Every new file starts with the MPL-2.0 header, copied verbatim from a sibling file:
.kt,.kts,.xml(comment syntax),.md(HTML comment),.gitignore-style config (#lines). No exceptions — a new file without it is an incomplete change. - The year range stays as the siblings have it (
2017-2026); don't invent a new one per file.
Comments
Campfire is a heavily commented codebase, but only in one direction: comments carry the why, never the what. The bar for a comment is "a reader who understands Kotlin and Compose would still get this wrong or undo it".
- Never narrate routine code. No comment above a
remember, awhen, a mapper, aLaunchedEffectthat does the obvious thing, and no section-divider banners. If the code says it, the comment is noise. - Do comment the load-bearing decision. Platform quirks, ordering constraints, API misbehavior,
why a state is eager instead of
WhileSubscribed, why a sheet clearsvisibleDialogitself, why a file input is wider than it looks like it should be. These are exactly the comments the codebase already has, and the ones a future "simplification" would otherwise delete. - Write them as prose, in full sentences, in the voice of the existing comments and
CLAUDE.mdfiles: specific, technical, unhurried, several lines when the reason needs several lines. Wrap at the same width as the surrounding file (~130 columns). Not telegraphic fragments, not "// HACK". - Never write archaeology. Once a fix has landed the code is simply how it works; no "this used to crash because…", no postmortems, no bug/ticket numbers. Where an unintuitive solution invites being optimized away, state the constraint that makes it necessary, in the present tense.
- No TODOs, no commented-out code. Delete it instead.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- yesterday Changed · +7 lines 17195290ab0f
- 2d ago Changed · +2 lines c2386669b359
- 4d ago First seen · 251 lines · 171 tokens per session scan A 71fe05021aa3
code-style is a skill published in the GitHub repository pandulapeter/campfire (119 stars, last pushed yesterday), licensed MPL-2.0. It adds 171 tokens to every session and 5,161 once invoked, about $0.0007 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-02.
code-style compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| code-stylepandulapeter/campfire | Skill | 119 | yesterday | MPL-2.0 | A | 171 | Claude Code |
| imagegenopenai/codex | Skill | 133k | yesterday | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 99k | yesterday | Apache-2.0 | A | 19 | Claude Code |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 79k | 4d ago | MIT | A | 200 | Claude Code, Codex |
| systematic-debuggingobra/superpowers | Skill | 313k | 3d ago | MIT | A | 21 | Claude Code |
| next-cache-components-adoptionvercel/next.js | Skill | 143k | yesterday | MIT | A | 95 | Claude Code |
| next-partial-prefetching-adoptionvercel/next.js | Skill | 143k | yesterday | MIT | A | 103 | Claude Code |