AgentStack
SKILL verified Apache-2.0 Self-run

Code Quality

skill-nexadevapp-nexa-claude-skills-marketplace-code-quality · by nexadevapp

>

No reviews yet
0 installs
9 views
0.0% view→install

Install

$ agentstack add skill-nexadevapp-nexa-claude-skills-marketplace-code-quality

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Code Quality? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Code Quality — Oxc (oxlint + oxfmt)

When to Apply

Run these checks after generating or modifying TypeScript/JavaScript files. This applies to implementation code, test files, and any .ts/.tsx/.js/.jsx files. It does not apply to Prisma schema files.

Nexa Rules Gate

Read and follow ${CLAUDE_PLUGIN_ROOT}/shared/readiness/NEXA_RULES_GATE.md.

Prerequisites

Verify oxlint and oxfmt are available in the project:

npx oxlint --version
npx oxfmt --version

If not installed, add them:

npm install -D oxlint oxfmt

Configuration

If the project does not yet have an oxlintrc.json at the root, create one:

{
  "rules": {
    "eslint/complexity": ["warn", { "max": 10 }]
  }
}

This enforces a cyclomatic complexity ceiling of 10 per function. Functions exceeding this threshold must be refactored before the task is considered complete.

Linting

Run oxlint with auto-fix on the source and test directories:

npx oxlint --fix --tsconfig tsconfig.json src/
  • If there are remaining warnings or errors that cannot be auto-fixed, resolve them manually.
  • Cyclomatic complexity violations (eslint/complexity): refactor the function —

extract helpers, use early returns, or simplify conditional logic.

Formatting

Format all changed files with oxfmt:

npx oxfmt --write src/

Order

  1. Lint firstoxlint --fix (fixes code issues, reports complexity violations)
  2. Format lastoxfmt --write (normalizes style without changing semantics)

This order matters because the formatter may reformat the linter's fixes, but not vice versa.

Verification

The skill is complete when:

  • npx oxlint --tsconfig tsconfig.json src/ exits with 0 errors and 0 warnings
  • npx oxfmt --check src/ exits with code 0 (all files already formatted)
  • No function exceeds cyclomatic complexity of 10

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.