General

coding-standards - Claude MCP Skill

Coding Standards & Best Practices

SEO Guide: Enhance your AI agent with the coding-standards tool. This Model Context Protocol (MCP) server allows Claude Desktop and other LLMs to coding standards & best practices... Download and configure this skill to unlock new capabilities for your AI workflow.

🌟8106 stars • 11775 forks
📥0 downloads

Documentation

SKILL.md
# Coding Standards & Best Practices



## Import Guidelines

### Type Imports

```typescript
// ✅ Good - Use type imports for TypeScript types
import type { User } from "@prisma/client";
import type { NextApiRequest, NextApiResponse } from "next";

// ❌ Bad - Regular import for types
import { User } from "@prisma/client";
```



## Code Structure

### Early Returns

- Prefer early returns to reduce nesting: `if (!booking) return null;`

### Composition Over Prop Drilling

- Use React children and context instead of passing props through multiple components

### ORM and Types

- Never import `@calcom/prisma/client` in features, services, UI, or handlers.
- Use repository DTOs or domain types instead.
- See "Repository + DTO Pattern and Method Conventions" in the knowledge base for details and examples.

### Security Rules

```typescript
// ❌ NEVER expose credential keys
const user = await prisma.user.findFirst({
  select: {
    credentials: {
      select: {
        key: true, // ❌ NEVER do this
      }
    }
  }
});

// ✅ Good - Never select credential.key field
const user = await prisma.user.findFirst({
  select: {
    credentials: {
      select: {
        id: true,
        type: true,
        // key field is excluded for security
      }
    }
  }
});
```

Signals

Avg rating0.0
Reviews0
Favorites0

Information

Repository
calcom/cal.com
Author
calcom
Last Sync
2/3/2026
Repo Updated
2/3/2026
Created
1/17/2026

Reviews (0)

No reviews yet. Be the first to review this skill!