web-projects
Web Projects
Auto-activate when: Working with package.json, package-lock.json, yarn.lock, pnpm-lock.yaml, tsconfig.json, .eslintrc*, vite.config.*, next.config.*, *.jsx, *.tsx, *.vue, *.svelte, or when user mentions React, Next.js, Vue, Angular, Svelte, npm, yarn, pnpm, or frontend development.
Guidelines for modern JavaScript/TypeScript web projects.
Project Structure Recognition
Package Managers
- Check
package.jsonfor dependencies and scripts - Detect from lock files:
package-lock.json,yarn.lock,pnpm-lock.yaml
Framework Detection
Look for framework-specific configuration files:
- Next.js:
next.config.js,next.config.ts - Vite:
vite.config.js,vite.config.ts - React: Check
package.jsondependencies - Vue:
vue.config.js,vite.config.tswith Vue plugin - Angular:
angular.json - Svelte:
svelte.config.js
Development Workflow
Package Manager Usage
Respect the project's package manager:
- npm:
npm install,npm run,npm test - yarn:
yarn install,yarn,yarn test - pnpm:
pnpm install,pnpm run,pnpm test
Detection: Lock file or config (.npmrc, .yarnrc, pnpm-workspace.yaml)
Common Scripts
Check package.json "scripts" section for:
devorstart- Development serverbuild- Production buildtest- Run testslint- Lintingformat- Code formatting
Code Patterns
Component Patterns
- Respect existing patterns - Don't change established structure
- Check naming conventions and import/export patterns
- Review existing components directory
Testing Setup
- Respect existing test framework - Jest, Vitest, Testing Library, Cypress, Playwright
- Check config in
package.jsonor dedicated files - Follow established patterns and naming (
.test.js,.spec.ts, etc.)
Styling Approach
Identify and follow the project's styling method:
- CSS Modules (
.module.css) - Styled Components / Emotion
- Tailwind CSS (
tailwind.config.js) - SASS/SCSS (
.scssfiles) - Plain CSS
Configuration Files
Common Config Files
tsconfig.json- TypeScript configuration.eslintrc- Linting rules.prettierrc- Code formattingjest.config.jsorvitest.config.ts- Test configuration.env.local,.env.development- Environment variables
Quick Reference
Common mistakes to avoid:
- ❌ Mixing package managers
- ❌ Changing test framework without discussion
Note: Web projects vary greatly - always check the project's specific configuration and patterns before making assumptions.
More from ilude/claude-code-config
code-documentation
Guidelines for self-explanatory code and meaningful documentation. Activate when working with comments, docstrings, documentation, code clarity, API documentation, JSDoc, or discussing code commenting strategies. Guides on why over what, anti-patterns, decision frameworks, and language-specific examples.
12claude-code-workflow
Claude Code AI-assisted development workflow. Activate when discussing Claude Code usage, AI-assisted coding, prompting strategies, or Claude Code-specific patterns.
10css-workflow
CSS and styling workflow guidelines. Activate when working with CSS files (.css), Tailwind CSS, Stylelint, or styling-related tasks.
7api-design-patterns
Language-agnostic API design patterns covering REST and GraphQL, including resource naming, HTTP methods, status codes, versioning, pagination, filtering, authentication, error handling, and schema design. Activate when working with APIs, REST endpoints, GraphQL schemas, API documentation, OpenAPI/Swagger, JWT, OAuth2, endpoint design, API versioning, rate limiting, or GraphQL resolvers.
7python-workflow
Python project workflow guidelines. Triggers: .py, pyproject.toml, uv, pip, pytest, Python. Covers package management, virtual environments, code style, type safety, testing, configuration, CQRS patterns, and Python-specific development tasks.
6nextjs-workflow
Next.js framework workflow guidelines. Activate when working with Next.js projects, next.config, app router, or Next.js-specific patterns.
6