Files
style-guide/CLAUDE.md
2026-11-28 18:31:23 +01:00

3.8 KiB

Style guide

This repo holds the skills that set how code, comments and commits look in the Firka projects. When you work here, or are asked to set up a machine, install these four things.

What Where it comes from What it does
firka-style skills/firka-style/ style guide for the Firka mobile app: code, comments, commits, new screens, branching and PRs
anti-over-engineering skills/anti-over-engineering/ keep changes small, reuse what exists, no new abstractions
graphify skills/graphify/ (original, unchanged) plus the PyPI package graphifyy knowledge graph of a codebase, query it instead of reading every file
rust-best-practices skills/rust-best-practices/ (from Apollo's handbook) how to write and review Rust: ownership, errors, clippy, tests, docs

skills/firka-style-website/ is the same kind of guide for the website. Install it too if you work on the website.

Which skill for which repo

Each Firka repo has a short CLAUDE.md that sends you here. Find the repo you came from, install what is missing (next section), then read that repo's style skill and follow it for every change, comment and commit there.

Repo Style skill
firka/firka (phone and Wear OS app) skills/firka-style/SKILL.md
firka/website skills/firka-style-website/SKILL.md, plus rust-best-practices for server/
firka/api-v2 (the API) skills/firka-style-website/SKILL.md for comments and commits, plus rust-best-practices
firka/services (services.firka.app, Go) skills/firka-style-website/SKILL.md for comments and commits

anti-over-engineering and graphify apply to every repo. Read the style skill from this repo directly. Installing only matters for /graphify and for later sessions, which pick skills up on start.

Install

Check what is already there first, then install only what is missing. Run from the root of this repo.

mkdir -p ~/.claude/skills
cp -r skills/firka-style skills/anti-over-engineering skills/graphify skills/rust-best-practices ~/.claude/skills/
# website work only:
cp -r skills/firka-style-website ~/.claude/skills/

# graphify also needs its command line tool, skip if `graphify --help` already works
uv tool install graphifyy
graphify install
  • The PyPI name is graphifyy with two y's. The command is graphify.
  • On Arch, plain pip install is blocked as externally managed, so use uv tool or pipx.
  • If graphify is not found afterwards, add ~/.local/bin to PATH (uv tool update-shell).
  • graphify install writes the same skill again and adds a short entry to ~/.claude/CLAUDE.md, which is what makes /graphify trigger. Both are expected. The copy in this repo is version 0.9.121, see skills/graphify/SOURCE.
  • Restart Claude Code when done, skills are only picked up in a new session.

Working in this repo

  • The skills here are the source. Edit them here, then copy them to ~/.claude/skills/ again. Do not edit the installed copies.
  • anti-over-engineering, graphify and rust-best-practices are third-party. Do not edit the first two: anti-over-engineering is from agents-inc/skills (MIT, by @vince) and was deleted upstream in March 2026, keep the attribution comment at the top. graphify is Apache-2.0, keep its LICENSE, LICENSE-MIT and NOTICE. rust-best-practices is Apache-2.0 from apollographql/rust-best-practices, with the changes listed at the top of its SKILL.md; keep LICENSE and SOURCE.
  • firka-style and firka-style-website are ours and do not repeat the other two.
  • Commits: plain and human. No mention of Claude or any AI in a message, no Co-Authored-By. Use the format in skills/firka-style/SKILL.md, section 9.
  • Do not commit or push unless asked.