with one click
check-patterns
Check code pattern consistency across the codebase
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Check code pattern consistency across the codebase
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Audit documentation for drift, dead links, and stale content
Assess alignment with the current roadmap phase
Spot-check that code matches ADR invariants
Analyze test quality and coverage patterns
Inventory technical debt across the codebase
Run all project health checks and produce a unified report
| name | check-patterns |
| description | Check code pattern consistency across the codebase |
| user_invocable | true |
| context | fork |
| agent | Explore |
Verify that the codebase follows consistent Go patterns and project conventions.
Spot-check 3 .go files (non-test) for error wrapping:
fmt.Errorf with %w verb (preferred pattern)errors.New() that should include contextSpot-check 3 _test.go files for table-driven test patterns:
[]struct test case definitionst.Run( subtest executionCheck that all exported types and functions have doc comments:
^func [A-Z] and ^type [A-Z] declarations// commentVerify every package has a doc.go file:
Spot-check that public APIs use io.Reader/io.Writer interfaces:
Grep for panic( in all non-test .go files:
## Code Pattern Consistency
### Summary
| Pattern | Status | Findings |
|---------|--------|----------|
| Error handling | ... | ... |
| Table-driven tests | ... | ... |
| Godoc coverage | ... | ... |
| doc.go files | ... | ... |
| Interface APIs | ... | ... |
| No panics | ... | ... |
### Details
[Findings per pattern with code references]
### Recommendations
[Inconsistencies to address, ordered by importance]