[Issue #56] Create software-architecture skill #61

Merged
HugoNijhuis merged 1 commits from issue-56-software-architecture-skill into main 2026-01-09 23:07:47 +00:00
Owner

Summary

Creates the foundational software-architecture skill that encodes best practices, review checklists, and patterns. This skill serves as the knowledge base for the software-architect agent and architecture-related commands.

Closes #56

Changes

  • Added skills/software-architecture/SKILL.md with:
    • Go-specific best practices (package organization, interfaces, error handling, DI, testing)
    • Generic architecture patterns (layered architecture, SOLID, dependency direction, module boundaries)
    • Repository health indicators (positive indicators, warning signs, metrics)
    • Review checklists (repo audit, issue refinement, PR review)
    • Anti-patterns to flag (god packages, circular deps, leaky abstractions, anemic domain model, shotgun surgery, feature envy, premature abstraction, deep hierarchy)
    • Skill marked as user-invocable: false in frontmatter
## Summary Creates the foundational software-architecture skill that encodes best practices, review checklists, and patterns. This skill serves as the knowledge base for the software-architect agent and architecture-related commands. Closes #56 ## Changes - Added skills/software-architecture/SKILL.md with: - Go-specific best practices (package organization, interfaces, error handling, DI, testing) - Generic architecture patterns (layered architecture, SOLID, dependency direction, module boundaries) - Repository health indicators (positive indicators, warning signs, metrics) - Review checklists (repo audit, issue refinement, PR review) - Anti-patterns to flag (god packages, circular deps, leaky abstractions, anemic domain model, shotgun surgery, feature envy, premature abstraction, deep hierarchy) - Skill marked as user-invocable: false in frontmatter
HugoNijhuis added 1 commit 2026-01-09 23:04:22 +00:00
Creates the foundational skill that encodes software architecture
best practices, review checklists, and patterns for Go and generic
architecture guidance.

Closes #56

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
HugoNijhuis merged commit 8ed646857a into main 2026-01-09 23:07:47 +00:00
Author
Owner

AI Code Review

LGTM - All acceptance criteria met. Comprehensive software architecture skill with accurate Go best practices, generic patterns, practical checklists, and well-documented anti-patterns.

## AI Code Review LGTM - All acceptance criteria met. Comprehensive software architecture skill with accurate Go best practices, generic patterns, practical checklists, and well-documented anti-patterns.
Author
Owner

AI Code Review

This is an automated review generated by the code-review agent.

Summary

This PR delivers a comprehensive, well-structured software architecture skill that successfully addresses all acceptance criteria from issue #56. The content is accurate, practical, and immediately actionable for architecture reviews.

Findings

Code Quality

  • SKILL.md is excellently organized with clear hierarchy and logical flow
  • Go code examples are idiomatic and demonstrate best practices accurately
  • ASCII diagrams for layered architecture and dependency direction are clear and helpful
  • Consistent formatting and structure throughout all sections
  • Good balance between being comprehensive and remaining focused

Content Accuracy - Go Best Practices

  • Package organization guidance is spot-on (cmd/, internal/, pkg/ structure)
  • Interface advice follows Go proverbs correctly ("accept interfaces, return structs", "consumer owns interface")
  • Error handling patterns are accurate (wrap with %w, sentinel errors, error types)
  • Dependency injection guidance promotes explicit dependencies and avoids globals
  • Table-driven test example follows Go testing conventions perfectly
  • No technical inaccuracies found

Content Accuracy - Generic Patterns

  • Layered architecture diagram correctly shows dependency flow
  • SOLID principles are explained concisely and accurately
  • Dependency direction diagram clearly illustrates the dependency inversion principle
  • Module boundary guidance is practical and recognizable
  • All patterns are explained at the right level of detail for a review skill

Review Checklists Usefulness

  • Three checklists (repo audit, issue refinement, PR review) cover distinct use cases
  • Checklist items are specific, actionable, and measurable
  • Repository health indicators provide concrete warning signs (e.g., "20+ files", "4+ levels nesting")
  • Positive indicators balance the warning signs well
  • Checklists will be immediately useful for software-architect agent

Anti-Patterns Documentation

  • Eight anti-patterns documented with Problem/Symptoms/Fix structure
  • Examples are realistic and commonly encountered
  • Fixes are actionable and specific
  • Good coverage: god packages, circular deps, leaky abstractions, anemic domain, shotgun surgery, feature envy, premature abstraction, deep hierarchy
  • The "god packages" example with specific fix (extract validation, httputil, timeutil) is particularly helpful

Completeness Against Acceptance Criteria

  • Skill file at skills/software-architecture/SKILL.md
  • Go-specific best practices (package org, interfaces, errors, DI, testing)
  • Generic architecture patterns (layered, SOLID, dependency direction, module boundaries)
  • Repository health indicators (positive indicators, warning signs, metrics)
  • Review checklists (repo audit, issue refinement, PR review)
  • Anti-patterns documented (8 comprehensive examples)
  • user-invocable: false in frontmatter

All acceptance criteria fully satisfied.

Style Notes

Consistent with existing skills in the codebase. Frontmatter follows skill conventions.

Test Coverage

Not applicable - this is documentation. The skill will be validated through usage by the software-architect agent and architecture commands.

Positive Highlights

  1. The "define interfaces at point of use" section with side-by-side good/bad examples is exceptionally clear
  2. Repository health indicators table format makes scanning for issues very efficient
  3. Anti-pattern structure (Problem/Symptoms/Fix) provides excellent guidance for both detection and remediation
  4. The dependency direction diagram with the "key insight" annotation is a great teaching moment
  5. Code examples are minimal but complete - easy to understand at a glance

Verdict

LGTM - Ready to Merge

This is excellent foundational work. The skill is comprehensive, accurate, and immediately actionable. It provides exactly the knowledge base needed for the software-architect agent and architecture commands. No changes needed.

## AI Code Review > This is an automated review generated by the code-review agent. ### Summary This PR delivers a comprehensive, well-structured software architecture skill that successfully addresses all acceptance criteria from issue #56. The content is accurate, practical, and immediately actionable for architecture reviews. ### Findings #### Code Quality - SKILL.md is excellently organized with clear hierarchy and logical flow - Go code examples are idiomatic and demonstrate best practices accurately - ASCII diagrams for layered architecture and dependency direction are clear and helpful - Consistent formatting and structure throughout all sections - Good balance between being comprehensive and remaining focused #### Content Accuracy - Go Best Practices - Package organization guidance is spot-on (cmd/, internal/, pkg/ structure) - Interface advice follows Go proverbs correctly ("accept interfaces, return structs", "consumer owns interface") - Error handling patterns are accurate (wrap with %w, sentinel errors, error types) - Dependency injection guidance promotes explicit dependencies and avoids globals - Table-driven test example follows Go testing conventions perfectly - No technical inaccuracies found #### Content Accuracy - Generic Patterns - Layered architecture diagram correctly shows dependency flow - SOLID principles are explained concisely and accurately - Dependency direction diagram clearly illustrates the dependency inversion principle - Module boundary guidance is practical and recognizable - All patterns are explained at the right level of detail for a review skill #### Review Checklists Usefulness - Three checklists (repo audit, issue refinement, PR review) cover distinct use cases - Checklist items are specific, actionable, and measurable - Repository health indicators provide concrete warning signs (e.g., "20+ files", "4+ levels nesting") - Positive indicators balance the warning signs well - Checklists will be immediately useful for software-architect agent #### Anti-Patterns Documentation - Eight anti-patterns documented with Problem/Symptoms/Fix structure - Examples are realistic and commonly encountered - Fixes are actionable and specific - Good coverage: god packages, circular deps, leaky abstractions, anemic domain, shotgun surgery, feature envy, premature abstraction, deep hierarchy - The "god packages" example with specific fix (extract validation, httputil, timeutil) is particularly helpful #### Completeness Against Acceptance Criteria - [x] Skill file at skills/software-architecture/SKILL.md - [x] Go-specific best practices (package org, interfaces, errors, DI, testing) - [x] Generic architecture patterns (layered, SOLID, dependency direction, module boundaries) - [x] Repository health indicators (positive indicators, warning signs, metrics) - [x] Review checklists (repo audit, issue refinement, PR review) - [x] Anti-patterns documented (8 comprehensive examples) - [x] user-invocable: false in frontmatter All acceptance criteria fully satisfied. #### Style Notes Consistent with existing skills in the codebase. Frontmatter follows skill conventions. #### Test Coverage Not applicable - this is documentation. The skill will be validated through usage by the software-architect agent and architecture commands. ### Positive Highlights 1. The "define interfaces at point of use" section with side-by-side good/bad examples is exceptionally clear 2. Repository health indicators table format makes scanning for issues very efficient 3. Anti-pattern structure (Problem/Symptoms/Fix) provides excellent guidance for both detection and remediation 4. The dependency direction diagram with the "key insight" annotation is a great teaching moment 5. Code examples are minimal but complete - easy to understand at a glance ### Verdict **LGTM - Ready to Merge** This is excellent foundational work. The skill is comprehensive, accurate, and immediately actionable. It provides exactly the knowledge base needed for the software-architect agent and architecture commands. No changes needed.
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: flowmade-one/architecture#61