redpanda-data / code-standards
Install for your project team
Run this command in your project directory to install the skill for your entire team:
mkdir -p .claude/skills/code-standards && curl -L -o skill.zip "https://fastmcp.me/Skills/Download/2662" && unzip -o skill.zip -d .claude/skills/code-standards && rm skill.zip
Project Skills
This skill will be saved in .claude/skills/code-standards/ and checked into git. All team members will have access to it automatically.
Important: Please verify the skill by reviewing its instructions before using it.
TypeScript, React, and JavaScript best practices enforced by Ultracite/Biome.
0 views
0 installs
Skill Content
---
name: code-standards
description: TypeScript, React, and JavaScript best practices enforced by Ultracite/Biome.
---
# 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
| Action | Rule |
|--------|------|
| Write components | `react-functional-only.md` |
| Async code | `async-await-promises.md` |
| Avoid legacy libs | `no-legacy.md` |
`any` types and top-level regex are enforced by Biome (`noExplicitAny`, `useTopLevelRegex`).
## Commands
```bash
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:
```bash
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.