mcpField
C
code-standards

code-standards

github.com/redpanda-dataTesting & quality4.3k61 installsUpdated today
Repository

About code-standards

A coding standards skill for developers addressing lint, formatting, review feedback, and style questions. It provides concise guidance and Ultracite commands for checking and fixing issues.

Key features

  1. 01Lint and formatting guidance
  2. 02React component and async rules
  3. 03Biome-enforced type and regex rules
  4. 04Ultracite fix, check, and doctor commands
  5. 05Production console logging guidance

Use cases

  1. 01Fixing lint errors in a codebase
  2. 02Applying consistent formatting
  3. 03Responding to code review style feedback

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/redpanda-data/console --skill code-standards

After installing, type/code-standardsin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

rules/
async-await-promises.md
no-legacy.md
react-functional-only.md

Details

From the project README

Code Standards

Write code that is accessible, performant, type-safe, and maintainable.

Activation Conditions

  • Linting errors need fixing
  • Code formatting issues
  • Code review feedback
  • Questions about style guidelines

Quick Reference

ActionRule
Write componentsreact-functional-only.md
Async codeasync-await-promises.md
Avoid legacy libsno-legacy.md

any types and top-level regex are enforced by Biome (noExplicitAny, useTopLevelRegex).

Commands

bun x ultracite fix     # Format and fix
bun x ultracite check   # Check for issues
bun x ultracite doctor  # Diagnose setup

Quick Fix

Most issues are auto-fixed:

bun x ultracite fix

Console Logging

  • Never use console.log, console.debug, or console.info in production code
  • Only use console.error and console.warn for actionable errors
  • For debug logging, wrap in if (IsDev) { ... }
  • Don't use biome-ignore to suppress console warnings - remove the logs instead

Rules

See rules/ directory for detailed guidance.

Comments

Markdown supported