ADVISORY validation of code against design principles that linters cannot enforce. Loaded by go-code-reviewer agent for design analysis guidance. Also invoked by @refactoring (after pattern application). Can be manually invoked for standalone code review. Categorizes findings as Design Debt, Readability Debt, or Polish Opportunities. Does NOT block commits.
Analyzes code against design principles that linters can't catch, detecting issues like primitive obsession, unstorified functions, and missing domain concepts. Used automatically during code reviews or manually invoked before commits to generate categorized reports with fix recommendations.
/plugin marketplace add buzzdan/ai-coding-rules/plugin install go-linter-driven-development@ai-coding-rulesThis skill inherits all available tools. When active, it can use any tool Claude has access to.
examples.mdreference.mdPure Analysis & Reporting - Generates report, doesn't fix anything or invoke skills.
Reference: See reference.md for complete detection checklist with examples.
Examples: See examples.md for real-world review scenarios.
</objective>
<quick_start>
<input_output> <input>
full (first run) or incremental (subsequent runs)<invocation_modes> <direct_skill_invocation context="User or Orchestrator">
<subagent_mode context="Task tool with go-code-reviewer">
<who_invokes>
<detection_capabilities> What Reviewer Detects (That Linters Can't):
Division of Labor:
See reference.md for complete detection checklist with examples. </detection_capabilities>
<workflow><full_review_mode context="First Run">
<incremental_review_mode context="Subsequent Runs"> Used after fixes have been applied to verify resolution and detect new issues.
When to Use Incremental Mode:
Benefits:
<detection_approach> LLM-Powered Analysis (not AST parsing or metrics calculation):
The reviewer reads code like a senior developer and applies design principles:
<report_format>
<full_report context="First Run">
š CODE REVIEW REPORT
Scope: [files reviewed]
Mode: FULL
SUMMARY
Total findings: 18
š Bugs: 2 (fix immediately)
š“ Design Debt: 5 (fix before commit)
š” Readability Debt: 8 (improves maintainability)
š¢ Polish: 3 (nice to have)
Estimated fix effort: 3.5 hours
[Detailed findings by category]
[Recommendations by priority]
[Skills to use for fixes]
</full_report>
<incremental_report context="Subsequent Runs">
š CODE REVIEW DELTA REPORT
Scope: [changed files only]
Mode: INCREMENTAL
SUMMARY
ā
Fixed: 4 (resolved from previous run)
ā ļø Remaining: 2 (still need attention)
š New: 1 (introduced by recent changes)
[Detailed delta findings]
</incremental_report>
<structured_output context="For Orchestrator Parsing"> When invoked as subagent for combined analysis, output follows strict format:
š BUGS
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
file:line | Issue description | Why it matters | Fix strategy | Effort: [Trivial/Moderate/Significant]
š“ DESIGN DEBT
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
file:line | Issue description | Why it matters | Fix strategy | Effort: [Trivial/Moderate/Significant]
š” READABILITY DEBT
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
file:line | Issue description | Why it matters | Fix strategy | Effort: [Trivial/Moderate/Significant]
š¢ POLISH
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
file:line | Issue description | Why it matters | Fix strategy | Effort: [Trivial/Moderate/Significant]
Effort Estimates:
file:line Format: Must be exact for orchestrator to correlate with linter errors
pkg/parser.go:45parser.go line 45 or pkg/parser.go (line 45)
</structured_output></report_format>
<constraints> This skill MUST NOT: - Invoke other skills (@refactoring, @code-designing, @testing) - Fix anything or make code changes - Make decisions on behalf of user - Parse AST or calculate complexity metrics (linter does this) - Run linter (caller does this) - Iterate or loop (caller decides whether to re-invoke) - Block commits (findings are advisory) </constraints> <integration><invoked_by_refactoring> Refactoring completes ā invoke reviewer ā analyze report:
<invoked_by_go_code_reviewer> During Phase 2 (Parallel Quality Analysis):
<invoked_by_user> Manual review request:
<review_scope> Primary Scope: Changed code in commit
Secondary Scope: Context around changes
<advisory_nature> This review does NOT block commits.
Purpose:
Caller (or user) decides:
<finding_categories>
<bugs severity="critical"> **Will cause runtime failures or correctness issues** - Nil dereferences, ignored errors, resource leaks - Invalid nil returns, race conditions - Fix immediately before any other work </bugs><design_debt severity="high"> Will cause pain when extending/modifying code
<readability_debt severity="medium"> Makes code harder to understand and work with
See reference.md for detailed principles and examples for each category. </finding_categories>
<success_criteria> Code Quality Analysis Performed:
Report Quality:
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.