codehub: Skill for Claude Code

.claude/skills/lint-fix/SKILL.md

lint-fix is a skill for Claude Code from mpolatcan/codehub. It costs 54 tokens per session (985 once invoked), scanned A, original, MIT.

A procedure for checking and automatically fixing code style across a CodeHub project.

In plain words
What is it for?
Use it with Biome for TypeScript, JavaScript, CSS, and JSON, and with rustfmt and Clippy for Rust code; it also provides separate lint, formatting, and type-check commands.
Why use it?
It finds formatting, lint, import-order, and type-related problems that can fail checks or make code inconsistent.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is mpolatcan/codehub's own configuration. It tells Claude Code how to work on codehub 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 codehub configures →

Reuse

Borrowing it

Nothing to install: this file belongs to mpolatcan/codehub. 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/mpolatcan/codehub/main/.claude/skills/lint-fix/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/mpolatcan/codehub

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 lint-fix

README.md
[![agentmods](https://agentmods.dev/badge/skills/mpolatcan/codehub/lint-fix/github.svg)](https://agentmods.dev/skills/mpolatcan/codehub/lint-fix)
Your own site
<a href="https://agentmods.dev/skills/mpolatcan/codehub/lint-fix"><img src="https://agentmods.dev/badge/skills/mpolatcan/codehub/lint-fix/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 lint-fix

Your own site · 80×15
<a href="https://agentmods.dev/skills/mpolatcan/codehub/lint-fix"><img src="https://agentmods.dev/badge/skills/mpolatcan/codehub/lint-fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 985 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.00054 $0.00985
Opus 5.5 $0.00022 $0.00394
Sonnet 5.5 $0.00011 $0.00197
Haiku 4.5 $0.00005 $0.00098

Measured 2mo ago against content hash 6b641fbf7f7b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

lint-fix 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 2mo ago.

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/lint-fix/SKILL.md · 102 lines

How it starts

The opening of the file, as written. The whole thing — 102 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Lint + fix

CodeHub uses Biome for the frontend (TypeScript, JavaScript, CSS, JSON, import organisation) and the standard rustfmt + clippy pair for the Rust backend. Both are configured at repo root.

Frontend — Biome

Biome is one binary, one config (biome.json), no plugins.

Check (no writes)

npm run check          # Format + lint + import organize, report only
npm run lint           # Lint only

Auto-fix

npm run check:fix      # Format + safe lint fixes + import organize, in place
npm run lint:fix       # Lint auto-fixes only
npm run format         # Formatter only

Biome's --write is conservative — it only applies fixes flagged as safe. Unsafe rules surface as remaining diagnostics; resolve those by hand.

Type check (separate from lint)

npm run typecheck      # tsc --noEmit, catches type errors Biome can't see

Backend — Rust

Format

cd src-tauri
cargo fmt --all          # write
cargo fmt --all -- --check   # report only (use in CI)

rustfmt.toml lives in src-tauri/ and pins edition, line width, and import reordering.

Clippy

cd src-tauri
cargo clippy --all-targets --all-features -- -D warnings

-D warnings upgrades every clippy lint to a hard error — matches the strictness we want for releases. During iteration you can drop -D warnings to keep going while you sweep.

Clippy auto-fix for the lints that support it:

cargo clippy --all-targets --all-features --fix --allow-dirty --allow-staged

--allow-dirty lets clippy modify uncommitted files. --allow-staged lets it modify files that are staged but not committed.

One-shot full sweep

The Makefile wraps both pipelines:

make check     # Biome + tsc + rustfmt --check + clippy -D warnings (no writes)
make fix       # Apply all safe auto-fixes, then re-run make check

make fix does Biome safe fixes → cargo fmt → cargo clippy --fix (allow-dirty / allow-staged) → re-run make check to confirm the sweep is idempotent. If the final check fails, the remaining issues need manual judgement.

Read the full file on GitHub · 102 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. 2mo ago First seen · 102 lines · 54 tokens per session scan A 6b641fbf7f7b

Subscribe to this mod's changes

lint-fix is a skill published in the GitHub repository mpolatcan/codehub (6 stars, last pushed 3mo ago), licensed MIT. It adds 54 tokens to every session and 985 once invoked, about $0.0002 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-08-31.

Related

Other skills, from other repositories

logging-patterns

Java logging best practices with SLF4J, structured logging (JSON), and MDC for request tracing. Includes AI-friendly log formats for Claude Code debugging. Use when user asks about logging, debugging application flow, or analyzing logs.

piomin/claude-ai-spring-boot · 50 tokens

observability

Periodic health sweep of the running system via the debug pipeline (cloud logs / k8s / daemon / DB slices). On a real anomaly, open a bug task (--kind workitem) carrying the evidence refs so it re-enters the bugfix loop. A healthy sweep opens NO task — never fabricate a bug.

Prismer-AI/PrismerCloud · 67 tokens

prismer-python-debugpy

Debug Python: pdb REPL + debugpy remote (DAP).

Prismer-AI/PrismerCloud · 19 tokens

impact-trace

For a change point (function / type / endpoint / SQL column), enumerate its real blast radius across six dimensions with a grep citation per row, then derive the regression test scope. Every impact-table row must trace to a real search hit — never a self-asserted claim.

Prismer-AI/PrismerCloud · 60 tokens

temps-plugin

Design, build, test, and distribute external Temps plugins with TypeScript/Bun; provide development and local-testing guidance for existing Rust plugins. Use for creating a plugin, adding an embedded console UI or deployment-event automation, testing host permissions and AI, installing from GitHub, or submitting a…

gotempsh/temps · 92 tokens

files-inspect

Inspect, download, upload, and debug Kurtosis file artifacts. View artifacts in an enclave, download them locally for inspection, upload local files, and troubleshoot file mounting issues. Use when services can't find expected files or configs are wrong.

kurtosis-tech/kurtosis · 51 tokens