Agent skill
coding-standards
Apply corbat-coco coding standards to a project being built. Adapts standards based on the detected stack (TypeScript, Python, Java, Go). Generates a CODING_STANDARDS.md file for the user's project.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/coding-standards-corbat-tech-coco
SKILL.md
Coding Standards
Generate and apply coding standards for the user's project based on their stack.
Step 1: Detect Stack
ls package.json tsconfig.json pyproject.toml pom.xml go.mod 2>/dev/null
cat package.json 2>/dev/null | grep '"main"\|"type"\|"dependencies"' | head -10
Step 2: Apply Stack-Specific Standards
TypeScript/Node.js
- ESM only (
"type": "module"in package.json) - TypeScript strict mode
- Imports with
.jsextension - Vitest for testing (80%+ coverage)
- oxlint + prettier/oxfmt
- Zod for validation
- No
any, noconsole.login production
Python
- Type hints everywhere (
def foo(x: int) -> str:) dataclassesorpydanticfor data models- pytest for testing (80%+ coverage)
rufffor linting + formattingmypyfor type checking- Virtual environments (
venvoruv) - No bare
except:— always catch specific exceptions
Java/Spring Boot
- Java 21+ with records, sealed classes, pattern matching
- Spring Boot 3.x with virtual threads
- Constructor injection (no field injection)
- Hexagonal/ports-adapters architecture
- JUnit 5 + Mockito for testing (80%+ coverage)
- Checkstyle + Spotbugs
- No
null— useOptional<T>or explicit null checks
Go
- Go 1.21+ with generics
errors.Is/errors.Asfor error handling- Table-driven tests with
testingpackage golangci-lintfor linting- No naked returns
- Always check errors (no
_for errors) context.Contextas first parameter for IO functions
Step 3: Generate Standards Document
Create CODING_STANDARDS.md in the project root:
# Coding Standards — [Project Name]
## Language: [Detected Language]
## Framework: [Detected Framework]
## Style
[Stack-specific style rules]
## Testing
[Stack-specific test requirements]
## Security
[Stack-specific security rules]
## Quality Thresholds
- Test coverage: 80%+
- Lint: zero warnings
- Type safety: strict mode enabled
Usage
/coding-standards # detect stack and generate standards
/coding-standards typescript # force TypeScript standards
/coding-standards python # force Python standards
/coding-standards java # force Java standards
/coding-standards go # force Go standards
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?