Skip to content
Agentmart
Submit a tool

code-hygiene

Deterministic local code hygiene runner.

Skill by sapientcoffee

IndexedApache-2.0
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/sapientcoffee-code-hygiene

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Deterministic local code hygiene runner. Executes non-LLM static linters, typecheckers, and security tools (eslint, ruff, cargo check, gitleaks, mypy) emitting brief exit-code summaries.

Use cases: ml, security

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found
Runs as
Python package

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/code-hygiene

What's inside

Skill name
code-hygiene
Description
Deterministic local code hygiene runner. Executes non-LLM static linters, typecheckers, and security tools (eslint, ruff, cargo check, gitleaks, mypy) emitting brief exit-code summaries.
License
Apache-2.0
Instructions
49 lines in SKILL.md · view on GitHub

Before installing

  • Ships executable scripts

Files (2)

  • SKILL.md
  • run_hygiene.py · scripts/

SKILL.md (first lines)

<!--
Copyright 2026 Google LLC

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

# 🧹 Skill: Deterministic Code Hygiene

You are executing the **Code Hygiene** skill. This skill runs fast, deterministic, non-LLM local quality tooling to verify code formatting, type safety, and secret exposure before engaging heavier reasoning agents.

## Decoupled Stage 7 Verification Architecture
Stage 7 verification is split into two independent operations:
1. **Deterministic Code Hygiene (`code-hygiene` skill)**: Non-LLM execution of local linters and analyzers. Emits binary exit codes without wasting LLM token context.
2. **Architectural Contract Audit (`@contract-auditor` subagent)**: Isolated subagent checking generated API routes, JSON schemas, and data structures against `04_SPEC.md` and `contracts/`.

## CLI Usage
Execute the helper script from the repository root:
```bash
python3 skills/code-hygiene/scripts/run_hygiene.py [--cwd <target-dir>] [--all]
```

## Evaluated Tools
- **`ruff`**: Python linting and code formatting checks.
- **`mypy`**: Python static type validation.
- **`eslint`**: JavaScript / TypeScript linting.
- **`cargo check`**: Rust compilation and type verification.
- **`gitleaks`**: Local secret leakage scanning.

## Output Summary
Emits an exit code summary table:
```
Tool            | Status     | Exit Code  | Detail
-----------------------------------------------------------------
ruff            | PASSED     | 0          | All checks passed
gitleaks        | PASSED     | 0          | No leaks detected
-----------------------------------------------------------------
```

From sapientcoffee/bean-brewer, Apache-2.0.

More from sapientcoffee/bean-brewer

Signals

Stars
0
Forks
0
Open issues
0
Last commit (this folder)
Sep 9, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from sapientcoffee

Cite this page

code-hygiene skill. Agent Mart. https://agentmart.dev/skills/sapientcoffee-code-hygiene (last updated 2026-10-24)