ワンクリックで
production-code-standards
Production-ready code standards following CLAUDE Framework with TDD, security, and quality requirements
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Production-ready code standards following CLAUDE Framework with TDD, security, and quality requirements
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
API design, database patterns, REST/GraphQL, microservices architecture, and backend best practices
CI/CD pipelines, zero-downtime deployments, infrastructure as code, and production deployment strategies
UI design system toolkit for Senior UI Designer including design token generation, component documentation, responsive design calculations, and developer handoff tools. Use for creating design systems, maintaining visual consistency, and facilitating design-dev collaboration.
UX research and design toolkit for Senior UX Designer/Researcher including data-driven persona generation, journey mapping, usability testing frameworks, and research synthesis. Use for user research, persona creation, journey mapping, and design validation.
| name | production-code-standards |
| description | Production-ready code standards following CLAUDE Framework with TDD, security, and quality requirements |
| triggers | ["production","code quality","standards","TDD","best practices","code review","maintainable","SOLID"] |
| version | 1.0.0 |
| agents | ["senior-fullstack-developer","code-refactoring-specialist","qa-testing-engineer"] |
| context_levels | {"minimal":"Core standards and quick reference","detailed":"Complete patterns and examples","full":"Scripts, templates, and automation tools"} |
This skill encapsulates the CLAUDE Framework standards for production-ready code development. It ensures consistency, quality, security, and maintainability across all code deliverables.
Basis Missie - Breaking these = delivery rejected:
Impact Analysis - Before ANY code change:
Single Responsibility & DRY:
// ✅ GOOD - Single responsibility
class UserAuthenticator {
authenticate(credentials: Credentials): AuthResult {
return this.validateAndAuthenticate(credentials);
}
}
class UserNotifier {
sendWelcomeEmail(user: User): void {
this.emailService.send(user.email, 'Welcome!');
}
}
// ❌ BAD - Multiple responsibilities
class UserManager {
authenticate() { /* auth logic */ }
sendEmail() { /* email logic */ }
updateDatabase() { /* db logic */ }
}
Naming Conventions (MUST):
getUserData(), calculateTotal() (verbs)user, totalAmount (nouns)isValid, hasPermission (is/has prefix)MAX_RETRY_COUNT, API_BASE_URLUserService, OrderController (PascalCase)Function Size Limit:
// ✅ GOOD - Comprehensive error handling
async function fetchUserData(userId: string): Promise<User> {
try {
if (!userId || userId.trim() === '') {
throw new ValidationError('User ID is required');
}
const user = await db.users.findById(userId);
if (!user) {
throw new NotFoundError(`User ${userId} not found`);
}
logger.info('User fetched successfully', { userId });
return user;
} catch (error) {
if (error instanceof ValidationError || error instanceof NotFoundError) {
throw error;
}
logger.error('Failed to fetch user', { userId, error: error.message });
throw new DatabaseError('Failed to fetch user data');
}
}
// ❌ BAD - Silent failure
async function fetchUserData(userId: string) {
try {
return await db.users.findById(userId);
} catch (error) {
return null; // Silent failure - NEVER do this!
}
}
Error Handling Rules (MUST):
Red-Green-Refactor Cycle:
Test Coverage Requirements:
// ✅ GOOD - Descriptive test with AAA pattern
describe('UserAuthenticator', () => {
it('should return success when valid credentials provided', () => {
// Arrange
const authenticator = new UserAuthenticator();
const validCredentials = { email: 'test@example.com', password: 'Valid123!' };
// Act
const result = authenticator.authenticate(validCredentials);
// Assert
expect(result.success).toBe(true);
expect(result.user).toBeDefined();
});
it('should throw ValidationError when email is missing', () => {
// Arrange
const authenticator = new UserAuthenticator();
const invalidCredentials = { email: '', password: 'Valid123!' };
// Act & Assert
expect(() => authenticator.authenticate(invalidCredentials))
.toThrow(ValidationError);
});
});
Input Validation (MUST):
// ✅ GOOD - Validate at boundaries
function createUser(input: unknown): User {
const validated = userSchema.parse(input); // Zod/Joi validation
// Sanitize
const sanitized = {
email: validator.normalizeEmail(validated.email),
name: validator.escape(validated.name),
};
return userService.create(sanitized);
}
// ❌ BAD - No validation
function createUser(input: any) {
return userService.create(input); // Unsafe!
}
Security Requirements (MUST):
See companion files:
detailed-patterns.md - Advanced patterns and examplesrefactoring-guide.md - Step-by-step refactoring strategiessecurity-checklist.md - Comprehensive security validationSee scripts directory:
scripts/pre-commit-check.sh - Run before commitsscripts/quality-gate.sh - CI/CD quality validationscripts/security-scan.sh - Dependency and secret scanningBefore marking any task complete:
senior-fullstack-developer:
code-refactoring-specialist:
qa-testing-engineer:
Track these KPIs:
Version 1.0.0 | Compatible with CLAUDE Framework v5.0