Skip to main content
skill CX Codex

bencium-code-conventions — Claude Code skill

Sets Bence's conventions for React and Next.js projects, covering the stack, code style, tests and workflow. Use it when building or setting up work under those rules.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add bencium/bencium-marketplace --skill bencium-code-conventions -a claude-code
Open on GitHub

What bencium-code-conventions does

This skill steers the agent towards ReactJS, Next.js with the App Router, and TypeScript. For UI work it selects TailwindCSS v3.x and Shadcn UI, with Zustand, TanStack React Query, and Zod in the stated stack. New code uses ES modules, async/await, explicit types, and early returns.

The rules cover @/components/ui, @phosphor-icons/react, sonner, loading states, dynamic imports, and image optimisation. In Next.js, the skill limits 'use client', useEffect, and setState in favour of RSC and SSR. This is a strict convention set: TailwindCSS v4, Docker, and local Postgres conflict with it.

Its workflow is to inspect relevant files, plan the change, write code, then commit. It asks for failing tests before implementation, typechecking after code changes, and test runs before a commit. For backend work, it asks for a choice first and directs API keys to .env plus Vercel or Netlify environment variables.

What it helps with

  • set up a Next.js project with the App Router structure
  • apply Bence's TypeScript code conventions
  • validate schemas with Zod
  • write failing tests before implementation
  • prepare a project for Vercel or Netlify deployment

Example prompts for the agent

  • “Create app/dashboard/page.tsx following Bence's conventions.”
  • “Build a React component using @/components/ui, a loading state, and sonner.”
  • “Plan the API change, add its tests, then run typechecking.”

How to install bencium-code-conventions

1Skills CLI (Vercel)

npx skills add bencium/bencium-marketplace --skill bencium-code-conventions -a claude-code

2Manually: put the files in place

~/.claude/skills/bencium-code-conventions/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/bencium-code-conventions/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about bencium-code-conventions

How do I install bencium-code-conventions in Claude Code?

Run npx skills add bencium/bencium-marketplace --skill bencium-code-conventions -a claude-code, then run npx skills add bencium/bencium-marketplace --skill bencium-code-conventions -a claude-code again. The skill file is at ~/.claude/skills/bencium-code-conventions/SKILL.md.

What does bencium-code-conventions do?

It gives an agent Bence's rules for project setup and code changes, including ReactJS, Next.js, TypeScript, TailwindCSS v3.x, testing, and development workflow.

How does the skill handle backend setup?

It asks for a backend choice and points to Postgres-compatible convex.dev or Supabase. Its conventions avoid local Postgres and Docker.

Source text

SKILL.md · MIT
---
name: bencium-code-conventions
description: Bence's code style, tech stack, and workflow conventions
when_to_use: When writing code or setting up projects for Bence
---

# Code Conventions

## Core Technologies
- **Frontend:** ReactJS, Next.js (App Router structure), TypeScript
- **Styling:** TailwindCSS v3.x (never v4), Shadcn UI
- **Build Tools:** Vite (when applicable)
- **Backend:** Postgres compatible convex.dev or Supabase (always ask, never local postgres)
- **Deployment:** Netlify or Vercel or Fly - suggest
- **Environment:** Mac M2, Python3 with virtual environments, no CUDA, no Docker
- **Alternative Languages:** Avoid python if you can, try using RUST

## Code Style & Structure
- Use ES modules (import/export) syntax
- Destructure imports when possible
- Use TypeScript for all new code
- Use async/await instead of Promise chains
- Prefer const/let over var; use early returns
- Use consts instead of functions: `const toggle = () =>`. Define types.
- Use descriptive variable names with auxiliary verbs (e.g., `isLoading`, `hasError`)
- Use lowercase with dashes for directory names (e.g., `components/auth-wizard`)

## Framework Conventions
- **Next.js:** Use App Router (app directory) structure and page.tsx files
- **React:** Functional and declarative patterns; avoid classes
- **State Management:** Zustand, TanStack React Query
- **Validation:** Zod for schema validation

## Component Library & Styling
- **Component Library:** Prefer shadcn components from `@/components/ui`
- **Styling:** Tailwind utility classes
- **Layout:** Grid/flex wrappers with `gap` for spacing
- **Icons:** `@phosphor-icons/react`
- **Toasts:** `sonner` for notifications
- Always add loading states, spinners, placeholder animations

## Quality Assurance & Testing
- **TDD:** Write failing tests first, commit them, then iterate until suite passes
- Never mock tests - if there's a test script, execute all until done
- Always write SQL in chunks with test steps after each chunk
- Typecheck after making code changes
- Run tests before committing
- Prefer running single tests for performance, not whole suite

## Error Handling
- Implement proper error handling and user input validation
- Error messages should be understood by non-technical people
- Use early returns for error conditions
- Test APIs via curl commands first, then implement in code

## Performance & Architecture
- Minimize `'use client'`, `useEffect`, `setState`; favor RSC and Next.js SSR
- Implement dynamic imports for code splitting
- Optimize images: WebP format, size data, lazy loading
- Favor small, simple, well-named modules

## Development Workflow
**Process:** Explore → Plan → Code → Commit
- Read relevant files
- Think through a plan
- Implement
- Then commit
- Never local backend, always ask (usually Supabase, Neon)
- Minimal dependency, no docker

## Environment & Deployment
- Add .env files for API keys; warn me to save keys in Vercel/Netlify env variables
- Write code deployable to Netlify or Vercel; prepare to build locally first
- Document progress in progress.md; ask for implementation plan

© bencium · MIT · bencium/bencium-marketplace

Similar skills

Everything for Frontend and UI →

From the same set16

bencium-controlled-ux-designer Guides visual choices for web interfaces before code changes begin. Use it when building components, pages, or applications that need accessibility checks. CX Codex +1 4,600installs design-audit Audits an app’s visual design and produces a phased refinement plan. Use it to review hierarchy, typography, spacing, color, and interface consistency. CX Codex +1 4,100installs ui-typography A skill that sets typography rules for interfaces and has the agent apply them silently while generating HTML, CSS and React. CX Codex +1 3,900installs Agentic UX Design - Relationship-Centric Interfaces Guides AI interface design toward continuous memory, trust evolution, and co-planning instead of isolated screens. Useful for systems with repeated user sessions. CX Codex +1 3,300installs renaissance-architecture A skill that pushes the agent toward first-principles design instead of "X but for Y". Useful when you plan features, pick a stack or review UI. CX Codex +1 3,300installs adaptive-communication Tunes agent responses to user communication style, detecting hedging, emotional context, or concise transactional prompts to adjust tone. CX Codex +1 3,300installs bencium-aeo This skill prepares content for AI search citations, FAQ schemas, and evidence panels. Use it to assess whether pages are ready for LLM extraction. CX Codex +1 3,300installs human-architect-mindset A skill that makes the agent ask about domain, dependencies and constraints before it starts writing code. CX Codex +1 3,300installs

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor