regression-io/claude-config-plugins/style

Claude Code and agent skill by regression-io/claude-config-plugins

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

TypeScript Style guidance

Install

npx vskill@latest install regression-io/claude-config-plugins/style

SKILL.md

TypeScript Style Rules

Naming Conventions

  • camelCase for variables, functions, methods
  • PascalCase for classes, interfaces, types, enums
  • UPPER_SNAKE_CASE for constants
  • _privateMethod prefix discouraged; use private keyword
  • Prefix interfaces with I only if project convention requires

Type Definitions

typescript
// Prefer interfaces for objects
interface User {
id: number;
name: string;
email: string;
roles?: string[];
}
// Use types for unions, intersections, primitives
type Status = 'active' | 'inactive' | 'pending';
type ID = string | number;
// Generics
function first<T>(items: T[]): T | undefined {
return items[0];
}

Strict Mode

Enable in tsconfig.json:

json
{
"compilerOptions": {
"strict": true,
"noImplicitAny": true,
"strictNullChecks": true,
"noUnusedLocals": true,
"noUnusedParameters": true
}
}

Avoid any

typescript
// ❌ Bad
function process(data: any): any { ... }
// ✅ Good
function process<T extends Record<string, unknown>>(data: T): ProcessedData { ... }
// Use unknown for truly unknown types
function parseJSON(text: string): unknown {
return JSON.parse(text);
}

Null Handling

typescript
// Optional chaining
const name = user?.profile?.name;
// Nullish coalescing
const displayName = name ?? 'Anonymous';
// Type guards
function isUser(obj: unknown): obj is User {
return typeof obj === 'object' && obj !== null && 'id' in obj;
}

Imports

typescript
// Named imports (preferred)
import { User, UserService } from './user';
// Type-only imports
import type { Config } from './config';
// Avoid default exports (harder to refactor)
export { UserService }; // Named export preferred

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/regression-io/claude-config-plugins/style/badge)](https://verified-skill.com/skills/regression-io/claude-config-plugins/style)

Something wrong with this skill or its page? Tell us.