Agent skill

Pre Commit Check

by Mooshieblob1 in Mooshieblob1/MooshieUI

Validates MooshieUI uncommitted changes before commit or PR — build gates, Rust fmt/clippy, conventions, i18n.

AGPL-3.0Auto-check passedFrontend & Design

Install Pre Commit Check

skills CLI
$ npx skills add Mooshieblob1/MooshieUI --skill pre-commit-check -a claude-code

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

GitHub CLI
$ gh skill install Mooshieblob1/MooshieUI pre-commit-check --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/Mooshieblob1/MooshieUI.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/pre-commit-check .claude/skills/pre-commit-check && 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
pre-commit-check
GitHub stars
207
Token cost
~825 tokens
SKILL.md length
304 words
Files
2
Skills in repo
9
Repo updated
First seen
Licence
AGPL-3.0

At a glance

Validates MooshieUI uncommitted changes before commit or PR — build gates, Rust fmt/clippy, conventions, i18n.

  • Tasks that involve Internationalization
  • SKILL.md covers Setup, Build gates [BLOCKING], Lint [NON-BLOCKING] and Convention audit [NON-BLOCKING…, plus 4 more sections
  • Calls git, cargo and npm
  • Tasks that involve Image generation

What it does

Pre Commit Check is an agent skill from Mooshieblob1/MooshieUI. Validates MooshieUI uncommitted changes before commit or PR — build gates, Rust fmt/clippy, conventions, i18n. Use before committing, or when push/release skills invoke pre-commit validation.

Its SKILL.md is about 830 tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `reference.md`).

It sits in Frontend & Design, covering Internationalization, Image generation and Diffusion and image models. It works with Rust, Tauri, Svelte and Stable Diffusion. The repository describes itself as: A front-end UI for ComfyUI made for beginner level users. The licence is AGPL-3.0.

When your agent uses it

  • Tasks that involve Internationalization
  • Tasks that involve Image generation
  • Tasks that involve Diffusion and image models

Example prompts

  • “Use the pre-commit-check skill to validate MooshieUI uncommitted changes before commit or PR — build gates, Rust fmt/clippy, conventions, i18n”
  • “/pre-commit-check”

What it can do on your machine

Read from SKILL.md and the folder at commit a9cb043. 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:

    • git
    • cargo
    • npm

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

  • Network

    No URLs in SKILL.md. Its commands use git 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

Pre Commit Check loads about 825 tokens when it runs. Until then it costs about 52 tokens; SKILL.md has 304 words of instructions outside code blocks.

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

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

The full file from Mooshieblob1/MooshieUI at commit a9cb043, republished under its AGPL-3.0 licence (© Mooshieblob1). 304 words, ~825 tokens.

Download SKILL.mdSave it as .claude/skills/pre-commit-check/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
pre-commit-check
description
Validates MooshieUI uncommitted changes before commit or PR — build gates, Rust fmt/clippy, conventions, i18n. Use before committing, or when push/release skills invoke pre-commit validation.

Pre-Commit Check (MooshieUI)

Run before any commit in the push or release workflows. Execute steps in order; stop on blocking failures. Only audit changed files (unstaged + staged).

Setup

powershell
cd "$(git rev-parse --show-toplevel)"
git diff --name-only HEAD
git diff --staged --name-only

Combine lists. Classify: rust (src-tauri/**/*.rs), config, rust-deps, svelte, store, typescript, locale, python-nodes, frontend-deps.

If empty → report "Nothing to check" and stop.

Build gates [BLOCKING]

StepWhenCommand
Frontendsvelte / store / ts / package.json changednpm run build — PASS if output ends with ✓ built in
Rust compilerust / rust-deps / config changedcargo check --manifest-path src-tauri/Cargo.toml
Rust server buildrust / rust-deps / config changedcargo check --manifest-path src-tauri/Cargo.toml --no-default-features --features server — the server binary does not link tauri, so the desktop check above cannot catch a tauri reference that escaped a #[cfg(feature = "desktop")] gate
Rust fmtany .rs changedcd src-tauri; cargo fmt --check — only blocking if diffs overlap your changed lines

If a build gate fails → report full error and STOP (skip convention audit).

Lint [NON-BLOCKING]

If .rs changed: cd src-tauri; cargo clippy — warn only on new issues in changed files.

Convention audit [NON-BLOCKING unless noted]

Inspect only + lines in git diff HEAD. Full rule tables: reference.md.

Blocking convention errors:

  • Svelte: <style> blocks; legacy on:click / on:input; unpinned installPipPackage("pkg") (must contain ==)
  • Stores: imports from svelte/store
  • Utils: duplicate exports
  • Rust commands: #[tauri::command] must return Result<T, AppError>
  • Templates: new builders must return complete WorkflowResult
  • Locales: key parity and interpolation parity (see i18n below)

i18n [BLOCKING if locale files changed]

  • Canonical: src/lib/locales/en.ts
  • Parity: every other src/lib/locales/*.ts must have the same keys and matching {placeholder} names as en.ts
  • Export: each file ends with export default <name>; matching filename

Cross-file [NON-BLOCKING]

If commands/*.rs or lib.rs changed: matching wrapper in src/lib/utils/api.ts using ipcInvoke() (not raw invoke()).

Report format

markdown
## Pre-Commit Check Report

### Files Changed
- path (category)

### Build Gates
- [ ] Frontend build: PASS/FAIL
- [ ] Rust compile: PASS/FAIL
- [ ] Rust formatting: PASS/FAIL

### Lint
- [ ] Clippy: PASS/WARN

### Convention / i18n
- (list findings with file:line)

### Summary
✅ Ready to commit
— or —
❌ N blocking issue(s)
⚠️ N warning(s)

Rules

  • Diff-aware; ignore pre-existing issues in untouched lines
  • Do not auto-fix unless the parent workflow (push/release) is fixing blockers
  • Push/release: fix blocking issues, re-run this skill, then continue

© Mooshieblob1, AGPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in .agents/skills/pre-commit-check of Mooshieblob1/MooshieUI.

  • SKILL.md
  • reference.md

Open the folder on GitHubat commit a9cb043

Compare with similar skills

Pre Commit Check 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.

Pre Commit Check compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Pre Commit Check this skillMooshieblob1/MooshieUI207—~825Automated safety check: PassAGPL-3.0
Worklog Designregisx001/Worklog258—~3.3kAutomated safety check: PassMIT
Update TranslationsRaicuparta/rai-pal732—~839Automated safety check: PassGPL-3.0
Tv Remote UIventic/ventic174—~4.2kAutomated safety check: PassMIT
Web Designdrewnekota/cetus146—~2.1kAutomated safety check: PassMIT
Tauri Config Ipcifer47/markeron1.2k—~1kAutomated safety check: PassMIT

Similar skills

  • Worklog Design

    regisx001/Worklog

    Design and UI skill for the Worklog desktop project manager.

    258 GitHub stars~3.3k tokensUpdated 1 mo ago
    Frontend & DesignAuto-check passed
  • Update Translations

    Raicuparta/rai-pal

    A skill your agent uses when asked to update translations, localize strings, add new languages, fix missing translation keys, or sync language files in this project.

    732 GitHub stars~839 tokensUpdated yesterday
    Writing & ContentAuto-check passed
  • Tv Remote UI

    ventic/ventic

    How this app stays usable from a TV remote (Android TV / Google TV).

    174 GitHub stars~4.2k tokensUpdated 3 days ago
    Frontend & DesignAuto-check passed
  • Web Design

    drewnekota/cetus

    A skill your agent uses when building any web page, HTML artifact, landing page, dashboard, slide deck, report, email, or UI component the user will look at.

    146 GitHub stars~2.1k tokensUpdated 2 days ago
    Frontend & DesignAuto-check passed
  • Tauri Config Ipc

    ifer47/markeron

    Extend MarkerOn settings, persisted config, or Tauri IPC commands.

    1.2k GitHub stars~1k tokensUpdated 8 days ago
    Frontend & DesignAuto-check passed
  • I18n

    huoshen80/ReinaManager

    使用 i18next-cli 检查、同步和整理本项目的国际化资源。涉及新增、修改、删除翻译键或国际化字符串,以及修复缺失翻译时使用。

    693 GitHub stars~177 tokensUpdated 4 days ago
    Frontend & DesignAuto-check passed

More from Mooshieblob1/MooshieUI

All 9 skills in this repo
  • Add Comfyui Node

    Mooshieblob1/MooshieUI

    Adds a custom ComfyUI Python node to MooshieUI — Python class in mooshienodes.py, Rust required-class registration, and optional workflow template chain hookup.

    207 GitHub stars~936 tokensUpdated 2 days ago
    Auto-check passed
  • Add Tauri Command

    Mooshieblob1/MooshieUI

    Adds a MooshieUI Tauri command end-to-end — Rust handler, lib.rs registration, and TypeScript ipcInvoke wrapper.

    207 GitHub stars~467 tokensUpdated 2 days ago
    Auto-check passed
  • Cleanup

    Mooshieblob1/MooshieUI

    Runs branch hygiene and bot PR comment triage without cutting a release.

    207 GitHub stars~808 tokensUpdated 2 days ago
    Auto-check passed
  • Quickrelease

    Mooshieblob1/MooshieUI

    Cuts a MooshieUI semver release quickly, skipping bot reviews, pre-commit-checks, and local build validation.

    207 GitHub stars~1.1k tokensUpdated 2 days ago
    Auto-check passed
  • Release

    Mooshieblob1/MooshieUI

    Cuts a MooshieUI semver release — bumps three version files, updates changelog and release notes, validates build, opens release PR, merges, tags, and triggers Build & Release CI.

    207 GitHub stars~2.8k tokensUpdated 2 days ago
    Auto-check passed
  • Workflow Template Builder

    Mooshieblob1/MooshieUI

    Builds or modifies ComfyUI workflow JSON templates in MooshieUI's Rust backend (src-tauri/src/templates).

    207 GitHub stars~640 tokensUpdated 2 days ago
    Auto-check passed

Questions about Pre Commit Check

What does Pre Commit Check do?

Validates MooshieUI uncommitted changes before commit or PR — build gates, Rust fmt/clippy, conventions, i18n. Pre Commit Check is an agent skill from Mooshieblob1/MooshieUI. Validates MooshieUI uncommitted changes before commit or PR — build gates, Rust fmt/clippy, conventions, i18n.

When should I use Pre Commit Check?

Pre Commit Check fits situations like: tasks that involve Internationalization; tasks that involve Image generation; tasks that involve Diffusion and image models.

How do I install Pre Commit Check in Claude Code?

Run `npx skills add Mooshieblob1/MooshieUI --skill pre-commit-check -a claude-code`. Or copy the skill folder (.agents/skills/pre-commit-check in Mooshieblob1/MooshieUI) into .claude/skills/pre-commit-check in your project. Claude Code loads it when a task matches its description.

How do I install Pre Commit Check in Codex?

Run `npx skills add Mooshieblob1/MooshieUI --skill pre-commit-check -a codex`. Or copy the skill folder (.agents/skills/pre-commit-check in Mooshieblob1/MooshieUI) into .agents/skills/pre-commit-check in your project. Codex loads it when a task matches its description.

Can I use Pre Commit Check 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 Mooshieblob1/MooshieUI --skill pre-commit-check -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pre-commit-check, .gemini/skills/pre-commit-check, .github/skills/pre-commit-check and .opencode/skills/pre-commit-check in your project.

What does Pre Commit Check need to run?

Going by SKILL.md and its folder, Pre Commit Check needs the command-line tools its instructions call (git, cargo and npm).

Does Pre Commit Check access the network?

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

Is Pre Commit Check 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 Pre Commit Check use?

Pre Commit Check is published under the AGPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Pre Commit Check use?

About 825 tokens (SKILL.md is roughly 3.3k 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 Pre Commit Check?

Skills that share tags, products or a category with Pre Commit Check: Worklog Design (regisx001/Worklog, 258 stars), Update Translations (Raicuparta/rai-pal, 732 stars), Tv Remote UI (ventic/ventic, 174 stars) and Web Design (drewnekota/cetus, 146 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Pre Commit Check?

Mooshieblob1 (a GitHub user) maintains it in Mooshieblob1/MooshieUI, which has 207 GitHub stars. The repository holds 9 skills in this directory. The repository was last updated on October 5, 2026.

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