mirror of
https://github.com/calcom/cal.com.git
synced 2026-03-25 15:44:55 +00:00
## What does this PR do? This PR adds https://vercel.com/blog/introducing-react-best-practices for your coding agent using `npx add-skill vercel-labs/agent-skills` command The skills are added to `.claude/`, `.cursor/`, and `.opencode/` directories to provide React and Next.js performance optimization guidance for AI-assisted workflows. ## Updates since last revision Addressed Cubic AI review feedback for issues with confidence >= 9/10: - **rerender-dependencies.md** - Replaced `console.log(user.id)` with `fetchUserDetails(user.id)` to avoid logging sensitive information - **server-after-nonblocking.md** - Removed `sessionCookie` from `logUserAction` call to avoid logging sensitive authentication data, added `await` to async call - **bundle-conditional.md** - Added `loadError` state and `setLoadError` setter to fix undefined `setEnabled` reference - **advanced-event-handler-refs.md** - Updated `useWindowEvent` handler signature to accept `Event` parameter and forward it to the stored handler - **rerender-derived-state.md** - Closed `<nav>` elements in both examples for valid JSX Fixes applied to both `.claude` and `.cursor` skill directories for consistency. ## Mandatory Tasks (DO NOT REMOVE) - [x] I have self-reviewed the code (A decent size PR without self-review might be rejected). - [x] N/A I have updated the developer docs in /docs if this PR makes changes that would require a [documentation change](https://cal.com/docs). If N/A, write N/A here and check the checkbox. - [x] N/A, I confirm automated tests are in place that prove my fix is effective or that my feature works. ## How should this be tested? These are documentation files for AI coding agents. No runtime testing required - review the markdown files to verify the example code snippets are correct. ## Checklist for human review - [ ] Verify example code snippets in the skill files are syntactically correct - [ ] Confirm the fixes don't introduce new issues in the documentation examples - [ ] Check that `.claude` and `.cursor` directories have consistent content --- Link to Devin run: https://app.devin.ai/sessions/f7f7e67fdeea4b22a4817d63ed9e1759 Requested by: unknown ()
113 lines
1.5 KiB
Plaintext
113 lines
1.5 KiB
Plaintext
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
|
|
|
# .env file
|
|
.env
|
|
!packages/prisma/.env
|
|
|
|
# dependencies
|
|
node_modules
|
|
.pnp
|
|
.pnp.js
|
|
|
|
# testing
|
|
coverage
|
|
/test-results/
|
|
**/playwright/videos
|
|
**/playwright/screenshots
|
|
**/playwright/artifacts
|
|
**/playwright/results
|
|
**/playwright/reports/*
|
|
|
|
# next.js
|
|
.next/
|
|
out/
|
|
build
|
|
|
|
# misc
|
|
.DS_Store
|
|
*.pem
|
|
|
|
# debug
|
|
npm-debug.log*
|
|
yarn-debug.log*
|
|
yarn-error.log*
|
|
.pnpm-debug.log*
|
|
|
|
# local env files
|
|
.env.local
|
|
.env.development.local
|
|
.env.test.local
|
|
.env.production.local
|
|
.env.*
|
|
!.env.example
|
|
!.env.appStore.example
|
|
|
|
# vercel
|
|
.vercel
|
|
|
|
# Webstorm
|
|
.idea
|
|
|
|
### VisualStudioCode template
|
|
.vscode/*
|
|
!.vscode/settings.json
|
|
!.vscode/tasks.json
|
|
!.vscode/launch.json
|
|
!.vscode/extensions.json
|
|
*.code-workspace
|
|
|
|
# Local History for Visual Studio Code
|
|
.history/
|
|
|
|
# Typescript
|
|
*.tsbuildinfo
|
|
|
|
# turbo
|
|
.turbo
|
|
|
|
# Prisma generated files
|
|
packages/prisma/client/*
|
|
!packages/prisma/client/index.ts
|
|
apps/api/v2/generated/prisma/*
|
|
packages/prisma/generated/prisma/*
|
|
packages/prisma/zod/**/*.ts
|
|
packages/prisma/enums
|
|
|
|
# Builds
|
|
dist
|
|
packages/app-store/types
|
|
|
|
# Linting
|
|
lint-results
|
|
|
|
#Storybook
|
|
apps/storybook/build-storybook.log
|
|
|
|
# Snaplet
|
|
.snaplet/snapshots
|
|
.snaplet/structure.d.ts
|
|
|
|
# Submodules
|
|
.gitmodules
|
|
apps/website
|
|
apps/console
|
|
apps/auth
|
|
|
|
# Yarn Modern
|
|
.pnp.*
|
|
.yarn/*
|
|
!.yarn/patches
|
|
!.yarn/plugins
|
|
!.yarn/releases
|
|
!.yarn/sdks
|
|
!.yarn/versions
|
|
i18n.cache
|
|
packages/**/.yarn/ci-cache/
|
|
|
|
# AI - session/user specific files (keep CLAUDE.md and .cursor/skills tracked)
|
|
.claude/plans/
|
|
.claude/settings.local.json
|
|
|
|
# trigger.dev
|
|
.trigger
|