
Bencium Code Conventions
- 484 installs
- 376 repo stars
- Updated August 2, 2026
- bencium/bencium-claude-code-design-skill
This is a copy of bencium-code-conventions by bencium - installs and ranking accrue to the original listing.
bencium-code-conventions is an agent skill that enforces consistent naming, folder layout, patterns, and review norms so new code matches an established React and Next.js stack without repeated manual style correction.
About
bencium-code-conventions is an agent skill from bencium/bencium-claude-code-design-skill that codifies a full-stack style guide for AI-assisted coding sessions. The skill specifies ReactJS and Next.js App Router structure, TypeScript conventions, TailwindCSS v3.x with Shadcn UI, Vite when applicable, and Postgres-compatible Convex or Supabase backends deployed to Netlify, Vercel, or Fly. Developers reach for bencium-code-conventions when agents repeatedly drift from repo norms on naming, folder layout, or stack choices. The skill also notes Mac M2 environment constraints, Python virtual environments, and a preference for Rust over Python when alternatives exist.
- Naming and layout rules
- Pattern consistency
- Review-ready diffs
- Cross-layer standards
- Reduced style drift
Bencium Code Conventions by the numbers
- 484 all-time installs (skills.sh)
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/bencium/bencium-claude-code-design-skill --skill bencium-code-conventionsAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 484 |
|---|---|
| repo stars | ★ 376 |
| Last updated | August 2, 2026 |
| Repository | bencium/bencium-claude-code-design-skill ↗ |
How do you enforce consistent code style in AI sessions?
Enforce consistent naming, folder layout, patterns, and review norms so new code matches the repo’s established style without repeated manual correction.
Who is it for?
Developers using Claude Code on React and Next.js repos who want agents to follow a fixed TailwindCSS v3, Shadcn UI, and Convex or Supabase stack guide.
Skip if: Teams on different stacks such as Vue, Angular, TailwindCSS v4, or local Postgres without Convex or Supabase compatibility requirements.
When should I use this skill?
An agent starts writing code or scaffolding a project and the repo should follow Bence's React, Next.js, TypeScript, and TailwindCSS conventions.
What you get
Convention-aligned file structure, naming patterns, stack choices, and review norms applied across new code changes.
- Convention-compliant code structure
- Stack-aligned component patterns
Files
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
gapfor spacing - Icons:
@phosphor-icons/react - Toasts:
sonnerfor 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
Related skills
FAQ
Which frontend stack does bencium-code-conventions enforce?
bencium-code-conventions standardizes ReactJS, Next.js App Router, TypeScript, TailwindCSS v3.x, and Shadcn UI. The skill rejects TailwindCSS v4 and defines folder layout and naming patterns agents must follow when generating UI code.
What backend databases does bencium-code-conventions allow?
bencium-code-conventions routes backend work to Postgres-compatible Convex.dev or Supabase and instructs agents to ask rather than assume local Postgres. Deployment targets include Netlify, Vercel, or Fly.