campfire: Skill for Claude Code

.claude/skills/code-style/SKILL.md

code-style is a skill for Claude Code from pandulapeter/campfire. It costs 171 tokens per session (5,161 once invoked), scanned A, original, MPL-2.0.

A coding-style guide for the Campfire codebase. It explains required file headers, useful comments, and where to find architecture and directory-specific instructions.

In plain words
What is it for?
Use it before changing Kotlin, Gradle, or resource files, especially when creating files or adding comments about non-obvious decisions.
Why use it?
It helps new or edited source match the repository's established conventions instead of introducing inconsistent structure or comments.

Skill for Claude Code

Written for Claude Code: installed under .claude/. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

This is pandulapeter/campfire's own configuration. It tells Claude Code how to work on campfire itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything campfire configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/pandulapeter/campfire/master/.claude/skills/code-style/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/pandulapeter/campfire

Made for: Claude Code.

Wrote 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.

agentmods badge for code-style

README.md
[![agentmods](https://agentmods.dev/badge/skills/pandulapeter/campfire/code-style/github.svg)](https://agentmods.dev/skills/pandulapeter/campfire/code-style)
Your own site
<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.

agentmods 80×15 button for code-style

Your own site · 80×15
<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>
Per session 171 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,161 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce 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

Measured yesterday against content hash 17195290ab0f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

.claude/skills/code-style/SKILL.md · 260 lines

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, a when, a mapper, a LaunchedEffect that 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 clears visibleDialog itself, 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.md files: 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.

Read the full file on GitHub · 260 lines

Changes

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.

  1. yesterday Changed · +7 lines 17195290ab0f
  2. 2d ago Changed · +2 lines c2386669b359
  3. 4d ago First seen · 251 lines · 171 tokens per session scan A 71fe05021aa3

Subscribe to this mod's changes

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.

Related

code-style compared with skills from other repositories

code-style next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-stylepandulapeter/campfireSkill119yesterdayMPL-2.0A171Claude Code
imagegenopenai/codexSkill133kyesterdayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99kyesterdayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k4d agoMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill313k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143kyesterdayMITA95Claude Code
next-partial-prefetching-adoptionvercel/next.jsSkill143kyesterdayMITA103Claude Code