Agent skill

Precommit

by mycelium-io in mycelium-io/mycelium

Run precommit checks (lint, format, tests) on the mycelium codebase.

Custom licenceAuto-check passedDevelopment

Install Precommit

skills CLI
$ npx skills add mycelium-io/mycelium --skill precommit -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mycelium-io/mycelium precommit --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mycelium-io/mycelium.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/precommit .claude/skills/precommit && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
precommit
GitHub stars
119
Token cost
~1.5k tokens
SKILL.md length
631 words
Files
1
Skills in repo
7
Repo updated
First seen
Licence
Custom licence

At a glance

Run precommit checks (lint, format, tests) on the mycelium codebase.

  • Works in 9 steps: Lint + format — Fix lint and format… → Type check (ty) — Both backend and CLI… → Backend tests — Run pytest → …
  • The user says /precommit
  • Calls uv, npx and docker
  • Wants to check code quality before committing

What it does

Precommit is an agent skill from mycelium-io/mycelium. Run precommit checks (lint, format, tests) on the mycelium codebase. Use when the user says /precommit or wants to check code quality before committing.

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Linting and formatting and Code quality. The repository describes itself as: Multi-agent coordination + persistent memory, semantic negotiation, async rooms, and a shared knowledge graph.

When your agent uses it

  • The user says /precommit
  • Wants to check code quality before committing

Example prompts

  • “/precommit”

Requirements

  • Python 3
  • Node.js
  • Docker

Workflow steps

9 steps, taken from the first numbered list in SKILL.md.

  1. Lint + format — Fix lint and format issues automatically
  2. Type check (ty) — Both backend and CLI must come back clean. CI gates on this
  3. Backend tests — Run pytest
  4. Frontend — Type-check, test, and build. All three: tsc and next build between them prove the app compiles, not that it behaves, and the…
  5. CLI docs — If any CLI command files were changed (mycelium-cli/src/mycelium/commands/)
  6. Generated OpenAPI clients — Two clients are vendored from live OpenAPI specs. CI gates on the mycelium one being current; the CFN one is…
  7. Docs consistency — If any user-facing behavior changed (commands renamed, new features, API changes), grep for stale references and fix…
  8. Doctor sanity check — If mycelium-cli/src/mycelium/commands/doctor.py was changed, run mycelium doctor to verify every check still passes…
  9. Report — Summarize what was fixed and any remaining issues.

What it can do on your machine

Read from SKILL.md and the folder at commit a45bca1. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • uv
    • npx
    • docker
    • npm
    • tsc

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use uv, npx, docker and npm, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Precommit loads about 1.5k tokens when it runs. Until then it costs about 41 tokens; SKILL.md has 631 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~41
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 631 words (~1,519 tokens).

“Run all quality checks on the mycelium codebase. Auto-fix issues where possible.”

— opening of SKILL.md by mycelium-io, Custom licence
name
precommit

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .claude/skills/precommit of mycelium-io/mycelium.

Open the folder on GitHubat commit a45bca1

Compare with similar skills

Precommit next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Precommit compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Precommit this skillmycelium-io/mycelium119—~1.5kAutomated safety check: PassCustom licence
Install Anti-Slop Oxlint Rulesdmmulroy/anti-slop5.2k—~2.2kAutomated safety check: PassMIT
Add Opik Code Quality Hookcomet-ml/opik22k—~2.3kAutomated safety check: PassApache-2.0
LobeHub Alint Rule Set Maintenancelobehub/lobehub83k—~1.9kAutomated safety check: PassCustom licence
Code Quality Gatefengshao1227/ccg-workflow5.9k—~593Automated safety check: NotesMIT
Experiment Iterative CoderEvoScientist/EvoSkills4743 repos~2.5kAutomated safety check: PassApache-2.0

Similar skills

  • Installs, updates or migrates the vendored anti-slop Oxlint plugin in a repository, keeping local rule changes and the plugin's license and provenance files.

    5.2k GitHub stars~2.2k tokensUpdated 27 days ago
    DevelopmentAuto-check passed
  • Checklist for wiring a new linter into Opik's Code Quality pipeline: the four files to edit, the silent-failure gotchas and the pass/fail verification loop.

    22k GitHub stars~2.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Maintains LobeHub's model-backed alint rule set: writing rules, removing false positives against real code, deciding warn versus error and tracking token cost.

    83k GitHub stars~1.9k tokensUpdated today
    DevelopmentAuto-check passed
  • Code Quality Gate

    fengshao1227/ccg-workflow

    Scans code for complexity, long functions, duplicated blocks, naming problems and code smells with a Node script, then reports and suggests refactors.

    5.9k GitHub stars~593 tokensUpdated 22 days ago
    DevelopmentAuto-check: notes
  • Experiment Iterative Coder

    EvoScientist/EvoSkills

    Iterative code refinement through plan → code → evaluate → refine cycles.

    474 GitHub starsUsed in 3 repos~2.5k tokens
    DevelopmentAuto-check passed
  • Code Quality

    redis/RedisInsight

    Official

    Code-quality standards for RedisInsight: TypeScript strictness, naming conventions (camelCase, PascalCase, UPPERSNAKECASE), linting rules, no any without reason, no !important in styles, and…

    8.9k GitHub stars~1.2k tokensUpdated 2 days ago
    DevelopmentAuto-check passed

More from mycelium-io/mycelium

  • Audit Comments

    mycelium-io/mycelium

    Cheap-model audit of comments and inline docs for temporal/historical narration, overly long prose, over-referencing of GitHub issues / PR numbers / plan-step IDs, and design-justification /…

    119 GitHub stars~3.2k tokensUpdated today
    Auto-check passed
  • Modern Python

    mycelium-io/mycelium

    Modern Python tooling practices for the mycelium project. An agent skill from mycelium-io/mycelium.

    119 GitHub stars~752 tokensUpdated today
    Auto-check passed
  • Screenshot

    mycelium-io/mycelium

    Take a screenshot of the running Mycelium app, or of CLI output rendered as a terminal card, or record a short video of a flow with a visible cursor and click/zoom animations.

    119 GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • Mycelium

    mycelium-io/mycelium

    Multi-agent coordination layer with persistent memory. An agent skill from mycelium-io/mycelium.

    119 GitHub stars~6.2k tokensUpdated today
    Auto-check passed
  • Generate CLI Docs

    mycelium-io/mycelium

    Regenerate the HTML docs site (CLI Reference, Configuration, content sections) from decorators, the pydantic config schema, and markdown source files

    119 GitHub stars~641 tokensUpdated today
    Auto-check passed
  • Mycelium Remote Agent

    mycelium-io/mycelium

    Bootstrap yourself as an ephemeral Mycelium agent when your environment is wired to a hub.

    119 GitHub stars~3k tokensUpdated today
    Auto-check: notes

Categories

Questions about Precommit

What does Precommit do?

Run precommit checks (lint, format, tests) on the mycelium codebase. Precommit is an agent skill from mycelium-io/mycelium. Run precommit checks (lint, format, tests) on the mycelium codebase.

When should I use Precommit?

Precommit fits situations like: the user says /precommit; wants to check code quality before committing.

How do I install Precommit in Claude Code?

Run `npx skills add mycelium-io/mycelium --skill precommit -a claude-code`. Or copy the skill folder (.claude/skills/precommit in mycelium-io/mycelium) into .claude/skills/precommit in your project. Claude Code loads it when a task matches its description.

How do I install Precommit in Codex?

Run `npx skills add mycelium-io/mycelium --skill precommit -a codex`. Or copy the skill folder (.claude/skills/precommit in mycelium-io/mycelium) into .agents/skills/precommit in your project. Codex loads it when a task matches its description.

Can I use Precommit in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mycelium-io/mycelium --skill precommit -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/precommit, .gemini/skills/precommit, .github/skills/precommit and .opencode/skills/precommit in your project.

What does Precommit need to run?

Going by SKILL.md and its folder, Precommit needs the command-line tools its instructions call (uv, npx, docker, npm and tsc). Our summary lists: Python 3; Node.js; Docker.

Does Precommit access the network?

SKILL.md contains no URLs. Its commands use uv, npx, docker and npm, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Precommit safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Precommit use?

Precommit has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Precommit use?

About 1.5k tokens (SKILL.md is roughly 6.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Precommit?

Skills that share tags, products or a category with Precommit: Install Anti-Slop Oxlint Rules (dmmulroy/anti-slop, 5.2k stars), Add Opik Code Quality Hook (comet-ml/opik, 22k stars), LobeHub Alint Rule Set Maintenance (lobehub/lobehub, 83k stars) and Code Quality Gate (fengshao1227/ccg-workflow, 5.9k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Precommit?

mycelium-io (a GitHub organization) maintains it in mycelium-io/mycelium, which has 119 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on October 7, 2026.

Source: mycelium-io/mycelium on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.