ワンクリックで
check-patterns
Check code pattern consistency across the codebase
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Check code pattern consistency across the codebase
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
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]