agentleFS
metyatechmetyatech/skill-code-quality-setup/SKILL.md

code-quality-setup

Skill0 starsChanged 4 months agoMITView on GitHub

Use when setting up or configuring code quality tools (formatters, linters, type checkers, dependency scanners) for a repository. Also use when adding visual accessibility automation or security baseline scanning. Do not use for general coding or when tools are already configured.

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. standardagents/skills★ 13same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository2 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use the standard toolchain for each language in the repository.

    line 36
  2. Very specific:

    When configuring Prettier, the agent MUST add and maintain .prettierignore so generated/build outputs and composed files are not …

    line 41
  3. Distinctive:

    MUST be treated as errors.

    line 102
  4. Distinctive:

    If temporary exclusions are unavoidable, the agent MUST keep them narrowly scoped, MUST document the rationale, and MUST remove them …

    line 149

≈ “Common” is an estimate: at least 1 in 5 of the 364,980 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Code quality setup

Formatter automation model

The repository formatter runs across three layers (obligation: engineering-standards):

  1. Editor/agent edit flows format in write mode immediately after creating or modifying formatter-managed files.
  2. Pre-commit hooks format changed files in write mode and stage the result.
  3. CI runs formatter checks in check-only mode and fails on drift, without writing, committing, or otherwise mutating the repo.

GitHub Actions runtime currency

Keeping JavaScript actions on GitHub's current GA Node major (obligation: engineering-standards) uses this migration procedure:

  • During a window where the runner default is an older major, set GitHub's documented workflow-scope opt-in variable. For the Node 20 to Node 24 migration, set FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" under top-level workflow env.
  • Once the newer major becomes the runner default, remove the opt-in variable in the same change set that updates the workflow.

Per-language toolchain

Use the standard toolchain for each language in the repository.

JavaScript / TypeScript (incl. React/Next)

  • Format and lint: ESLint + Prettier.
  • When configuring Prettier, the agent MUST add and maintain .prettierignore so generated/build outputs and composed files are not formatted/linted as source (e.g., dist/, build artifacts, and AGENTS.md when generated by compose-agentsmd).
  • Typecheck: tsc with strict settings for TS projects.
  • Dependency scan: osv-scanner. If unsupported, use the package manager's audit tooling.

Python

  • Format and lint: Ruff.
  • Typecheck: Pyright.
  • Dependency scan: pip-audit.

Go

  • Format: gofmt.
  • Lint and static analysis: golangci-lint (includes staticcheck).
  • Dependency scan: govulncheck.

Rust

  • Format: cargo fmt.
  • Lint and static analysis: cargo clippy with warnings as errors.
  • Dependency scan: cargo audit.

Java

  • Format: Spotless + google-java-format.
  • Lint and static analysis: Checkstyle + SpotBugs.
  • Dependency scan: OWASP Dependency-Check.

Kotlin

  • Format: Spotless + ktlint.
  • Lint and static analysis: detekt.
  • Compiler: enable warnings-as-errors in CI. If impractical, the agent MUST get explicit user approval before relaxing.

C#

  • Format: dotnet format (verify-no-changes in CI).
  • Lint and static analysis: enable .NET analyzers; treat warnings as errors; enable nullable reference types.
  • Dependency scan: dotnet list package --vulnerable.

C++

  • Format: clang-format.
  • Lint and static analysis: clang-tidy.
  • Build: enable strong warnings and treat as errors. Run sanitizers (ASan/UBSan) in CI where supported.

PowerShell

  • Format and lint: PSScriptAnalyzer (Invoke-Formatter + Invoke-ScriptAnalyzer).
  • Runtime: Set-StrictMode -Version Latest. Fail fast on errors.
  • Tests: Pester when tests exist.
  • The agent MUST enforce PSScriptAnalyzer via the repo's standard verify command or script when PowerShell is used. Findings MUST be treated as errors.

Shell (sh/bash)

  • Format: shfmt.
  • Lint: shellcheck.

Dockerfile

  • Lint: hadolint.

Terraform

  • Format: terraform fmt -check.
  • Validate: terraform validate.
  • Lint: tflint.
  • Security scan: trivy config.

YAML

  • Lint: yamllint.

Markdown

  • Lint: markdownlint.

Design and visual accessibility automation

Apply this section to projects with web UI components only.

  • The agent MUST enforce automated visual accessibility checks as part of the repo-standard verify command and CI.
  • The agent MUST use route discovery (sitemap, generated route lists, or framework route manifests) so newly added pages are automatically included.
  • The agent MUST validate both light and dark themes when theme switching is supported.
  • The agent MUST validate at least default, hover, and focus states for interactive elements.
  • The agent MUST enforce non-text boundary contrast checks across all visible UI elements that present boundaries (including interactive controls and container-like elements), not only predefined component classes.
  • The agent MUST use broad DOM discovery with only minimal technical exclusions (hidden, zero-size, or non-rendered nodes).
  • CI MUST fail on violations. The agent MUST NOT silently ignore design regressions.
  • If temporary exclusions are unavoidable, the agent MUST keep them narrowly scoped, MUST document the rationale, and MUST remove them promptly.

Security baseline

  • The agent MUST require dependency vulnerability scanning appropriate to the ecosystem (SCA) for merges. If unavailable, the agent MUST report the limitation and get explicit user approval.
  • The agent MUST enable GitHub secret scanning and remediate findings. The agent MUST NOT commit secrets. If GitHub secret scanning is unavailable, the agent MUST add a repo-local secret scanner.
  • The agent MUST enable CodeQL code scanning for supported languages. If unavailable, the agent MUST use the best alternative for that ecosystem.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.