SkillsReviewed · sgaunet

go-structure

go-structure is an AI assistant skill for Go developers choosing or reviewing project layouts, but its size thresholds and architecture rules need project-specific judgment. It supplies directory patterns, package review procedures and instructions for creating minimal project files.

Researched 17 Nov 2026

In short.

go-structure is an AI assistant skill for Go developers organizing projects, but its layout rules need interpretation and its generated results have not been assessed. It covers command-line tools, APIs, libraries and repositories with multiple binaries or modules. Its practical strengths are concrete directory examples, guidance on separating responsibilities and checks for structural problems. Nothing was executed, so scaffolding correctness, review accuracy and compatibility remain unknown.

Researched and written by an AI model and checked by a second AI model. How it works

Covers plugins/go-specialist/skills/go-structure at commit 8b8182cfc8dcdb5f84d185e0e88d038f56d1c5f1. The supplied complete folder contents consist of SKILL.md. The repository-root LICENSE is included as a related notice outside that folder. Other plugin files, installation metadata, related generator implementations and linked external Go documentation were not assessed. No commands, generated projects, assistant behavior or application journeys were executed or tested.

The overview

Identity

go-structure is an instruction-based skill in the go-specialist plugin within sgaunet/claude-plugins. Its source is plugins/go-specialist/skills/go-structure/SKILL.md. The metadata marks it as user-invocable and describes recommending and scaffolding Go layouts for CLI tools, APIs, libraries and monorepos.

Assessment

The instructions provide a useful starting point for a layout discussion: they connect project types to directory trees, explain file responsibilities and name concrete problems to investigate. They favor beginning with a small structure and adding packages when needed.

The material supports assessing the guidance itself. It supplies no observed assistant sessions, completed scaffolds or validation results, so the quality of actual recommendations and generated files is unknown.

Users

Beginners starting a Go module can use the examples to understand executable entry points, private implementation packages and reusable library code. Developers maintaining existing projects can use the review procedures to discuss package names, nesting, circular dependencies and responsibilities.

Experienced teams may find the interface-based dependency examples and single-module versus multi-module distinction useful. They still need to choose boundaries that match their own domain and release requirements.

Capabilities

The skill describes identifying project types from entry points, imports, go.mod files and go.work. It supplies layouts for small tools, command-line applications, REST APIs, reusable libraries, larger domain-oriented services and repositories with several binaries.

Its review procedures look for vague package names, excessive nesting, circular imports, SQL in HTTP handlers and transport dependencies in service code. Its scaffolding procedure calls for needed directories, minimal bootstrap or package files, followed by go build ./... and go vet ./.... These are prescribed capabilities; their execution is unassessed.

Using it

Requirements

A Go module, identified by go.mod, must exist or be created, and the project type must be known or inferable. Using the skill requires an assistant environment capable of loading its instructions and accessing project files. Creating files requires write access; running the proposed validation requires a Go toolchain.

The metadata declares Read, Write, Glob, Grep and Bash permissions for go:* and mkdir:*. How a particular host enforces those declarations is unknown. No required assistant version, model or Go version is stated.

Mechanism

The resource supplies natural-language procedures and code examples for an assistant to follow. It directs the assistant to inspect project signals, choose a layout, explain findings and optionally create files. File-count thresholds guide its suggested progression from a flat layout to feature packages and then a fuller cmd/ plus internal/ structure.

For APIs, it groups handler, service and repository files by feature. Constructors receive dependencies through interfaces. In the illustrated feature layout, these files share a Go package, so their layer boundaries depend on coding discipline. The source separately describes internal/ as an import restriction enforced by Go.

Setup

The supplied file does not document plugin installation commands, a skill installation location or an exact invocation command. Those host-specific steps are unknown.

Once available to an assistant, the described workflow begins by identifying the project type and module structure. Ambiguous projects require clarification. A missing go.mod prompts a question about initializing a module. Scaffolding should create only needed directories and minimal files, then request the documented build and vet checks.

Example

For a hypothetical REST API with user and product features, the reference layout places the executable entry point at cmd/api/main.go and feature code under internal/user/ and internal/product/. Each feature has handler, service and repository files. The entry point connects the database, constructs dependencies and registers routes.

For a small command-line tool, the simpler reference keeps main.go at the repository root beside go.mod and README.md. These are examples from the instructions; no project was generated or validated.

Assessment & evidence

Limitations

Some rules require interpretation. The medium and large size bands overlap at exactly 30 Go files. The skill also warns against introducing cmd/ prematurely for a single binary while showing a single API entry point under cmd/api/. These examples leave room for project-specific choices.

The structural scans are review prompts; their completeness and false-positive rate are unknown. The scaffolding workflow names build and vet checks but supplies no test-running or migration-compatibility procedure. Related /gen-goreleaser and /gen-taskfiles generators are mentioned, but their implementations are outside the supplied material.

Reasoning

The design argument is to add structure as responsibilities grow, keep related feature code together and separate HTTP handling from business logic and storage access. Interface-based constructors are intended to make dependencies replaceable and easier to isolate in tests.

These principles explain the layouts, but the file-count thresholds are author-supplied heuristics without supporting measurements. Choosing between the simpler feature layout and separate domain, application and adapter packages still requires architectural judgment.

Alternatives

The resource offers several layout choices: a flat root for small tools, feature packages for APIs, separate domain/application/adapter packages for complex services, and a public package root with private internal code for libraries.

For repositories containing several executables, it distinguishes one module with multiple binaries from a workspace containing multiple modules. Developers can also apply the included layouts manually. No comparison with other assistant skills or scaffolding tools is supplied, so relative quality and feature coverage are unknown.

Evidence

The skill's procedures, metadata and examples are available in its original source file: [https://raw.githubusercontent.com/sgaunet/claude-plugins/8b8182cfc8dcdb5f84d185e0e88d038f56d1c5f1/plugins/go-specialist/skills/go-structure/SKILL.md].

The accompanying repository licence is available at [https://raw.githubusercontent.com/sgaunet/claude-plugins/8b8182cfc8dcdb5f84d185e0e88d038f56d1c5f1/LICENSE].

These sources establish the written instructions and licence terms. They contain no observed assistant output, benchmark, build log or test result. Nothing was executed.

Access & freshness

Costs

No usage price, assistant subscription requirement, model rate or token estimate is provided. Total operating cost is unknown. The evidence includes no measurements of execution time, compute use or developer time saved.

Rights

The repository-level MIT licence permits use, copying, modification, publication, distribution, sublicensing and sale. Copies or substantial portions must retain the copyright and permission notice.

The notice names Sylvain as the 2025 copyright holder and disclaims warranties and liability. Redistribution of the skill should retain the accompanying licence notice.

Freshness

The source snapshot identifies commit 8b8182cfc8dcdb5f84d185e0e88d038f56d1c5f1 and a capture time of 2026-11-17T06:53:49.874Z. The skill states no release number, Go compatibility range or last-updated date.

Changes after that revision and compatibility with a particular current assistant environment are unknown. The licence's 2025 copyright year does not establish when the skill was last changed.

Actions

Before using the skill, establish whether the repository contains a CLI, API, library or several applications, and whether those applications share one module. Ask for an explained layout proposal before restructuring existing code.

For a trial, review the proposed files and package moves, including effects on existing import paths. After applying changes in your environment, run the prescribed go build ./... and go vet ./... checks and relevant project tests. If several binaries are introduced, review release and task configuration as the source warns that related generators default to a single binary.

Evidence for this report

LICENSEnotice · checked 2026-11-17