agentleFS
stark-ai-destark-ai-de/agent-skills/skills/engineering-workflows/code-quality/SKILL.md

code-quality

Skill8 starsChanged 3 months agoApache-2.0View on GitHub

Set up, repair, update, or diagnose shared JavaScript and TypeScript quality checks with @servrox/code-quality. Use when a repository needs consistent root commands, missing checks, migration baselines, repository-specific checks, and CI wiring.

82 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use logging-patterns, spring-boot and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • DIL8654Skill

    logging-patterns

    Keep logs structured, correlated, low-noise, and safe for production support. Use when adding operational logging, reviewing observability, or improving diagnostics in .NET services.

    Also in 3 projects that use this

  • ffsshhttiikkSkill

    spring-boot

    Spring Boot framework and Java enterprise patterns

    Also in 3 projects that use this

  • mstuder-slalomSkill

    jpa-patterns

    JPA/Hibernate patterns for entity design, relationships, query optimization, transactions, auditing, indexing, pagination, and pooling in Spring Boot.

    Also in 3 projects that use this

  • ffsshhttiikkSkill

    design-patterns

    Practical application and coding skills for Design Patterns

    Also in 4 projects that use this

  • vm0-aiSkill

    cli-design

    Design patterns and conventions for the Okou CLI user experience

    Also in 3 projects that use this

  • OpenAISkill

    react-best-practices

    React and Next.js performance optimization guidelines from Vercel Engineering. This skill should be used when writing, reviewing, or refactoring React/Next.js code to ensure optimal performance patterns. Triggers on tasks involving React components, Next.js pages, data fetching, bundle optimization, or performance improvements.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 76 edited versions we read keep these.

  • 5

    Distinctive

    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 for shared quality setup, repair, release updates, baseline decisions, repo-specific checks and diagnosis.

    line 19
  2. Distinctive:

    Use the repository's native tools for non-JS/TS source.

    line 23
  3. Very specific:

    Run these scripts from the repository root with the owning package manager, for example pnpm run quality:check.

    line 51
  4. Distinctive:

    Keep package-manager trust, release-age and lifecycle controls.

    line 63
  5. Distinctive:

    Use the package documentation for the command, tool and configuration contract.

    line 67
  6. Distinctive:

    Keep missing or failing coverage unresolved.

    line 83

“Common” is measured: kept by at least 6 in 10 of the 76 edited versions of this file we could read. “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

Goal

Give maintained JavaScript and TypeScript one set of root quality commands and a blocking full check in CI.

When to use

Use for shared quality setup, repair, release updates, baseline decisions, repo-specific checks and diagnosis.

When not to use

Use the repository's native tools for non-JS/TS source. Record non-applicability when the repo has no maintained JS/TS.

Inputs to inspect

Inspect the repository root, package manager, lockfile, Node version, accepted ADRs, maintained JS/TS, workspaces, tool configs, existing checks and CI.

Workflow

Select a workflow

Available workflows are setup | repair | update | doctor. Announce the selection and reason when intent and authority are clear. For bare or materially ambiguous requests, show the options and ask only for the missing decision. An options request authorizes no execution.

  • setup introduces the package, shared root scripts, maintained source coverage, and a blocking CI gate.
  • repair restores incomplete or inaccurate package, script, check, configuration, or CI wiring.
  • update qualifies the current npm release and refreshes the existing installation and lockfile.
  • doctor inspects the integration and reports missing or unverified coverage. Run the existing quality:doctor when it is present. Do not install, update, or repair during diagnosis.

Apply setup, repair, or update

  1. Confirm applicable source and authority. Resolve conflicts with accepted local decisions before changing their scope.
  2. Resolve the public npm latest tag and inspect the selected stable release's integrity, deprecation, engines and peer metadata. Apply only after checking target compatibility and existing release-age and lifecycle policies. A blocked release leaves the previous working installation in place. Record the candidate, failed prerequisite, owner and revisit condition.
  3. Run code-quality setup or code-quality repair from the repository root using the selected release. For a fresh install use the repository's package runner or an isolated exact-release installation. Ensure the preview covers existing scripts and tool conflicts. Use --apply for authorized edits. Keep "@servrox/code-quality": "latest" in the root manifest. Use the existing package manager to resolve the selected release and verify its exact version and integrity in the lockfile. Frozen installs and day-to-day checks use that lockfile.
  4. Use code-quality.config.mjs and native tool configs for complete source coverage, named scopes, Knip entrypoints, architecture boundaries and approved repo extensions. Preserve required correctness, compiler, framework and test checks. Make them additional script checks where they apply to quality. Add the shared Oxlint, Oxfmt, Knip, jscpd and Dependency Cruiser checks. Qualify matching framework and type-aware presets in their own scope. Missing tooling, invalid input or missing scan coverage is an open blocker.
  5. Run the shared report before choosing how to handle existing findings. Reuse the owner's recorded decision. If absent, ask the owner to choose zero findings or a reviewed migration baseline. A baseline may cover only measured existing findings that the package can represent. Record selected gates, evidence, owner and cleanup or revisit trigger. Create or prune it only as an explicit reviewed action. Keep increases, new findings, tool failures and uncovered checks blocking.
  6. Wire quality:check to the repository's mandatory CI job after the frozen install. Verify quality:doctor, the full local command, a real rejecting case and hosted required CI at the same candidate when available. Re-running setup or repair on the qualified integration should produce no diff.

Daily commands

Run these scripts from the repository root with the owning package manager, for example pnpm run quality:check.

ScriptUse
quality:checkFull blocking check over configured source and repo extensions
quality:check:changedRead-only Git-scoped lint and format with an optional comparison base
quality:reportCheck coverage, findings, baseline status and blockers
quality:fixApply supported fixes to explicitly selected files and recheck them
quality:doctorInspect versions, scripts, configuration and source coverage

Safety rules

Keep package-manager trust, release-age and lifecycle controls. Use existing authorization for manifest, configuration and CI edits. Baseline creation or expansion requires the repository owner's recorded acceptance of measured debt.

References

Use the package documentation for the command, tool and configuration contract. Follow accepted local decisions for adoption and exceptions.

Scripts

The npm package supplies the CLI. Setup and repair preview manifest changes by default and write with --apply. The repository's package manager owns the lockfile.

Output format

Report the lockfile release, checks that ran, baseline decision, and any blocker or unverified hosted result.

Completion criteria

The full check covers each applicable tool locally and in the required CI job. The integration rejects an actual regression, and repeat setup or repair is idempotent.

Failure modes

Keep missing or failing coverage unresolved. An exception records exact paths and technical cause, compensating coverage where possible, and an owner and revisit condition.

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.