go-architect
Skill397 starsChanged 11 days agoApache-2.0View on GitHub
Expert in Go project scaffolding, standard layout compliance, and dependency management. Activates for "new project", "structure", "layout".
2 other projects use a version of this.
Adopted by
Most recently taken up by
- ralvarez-ai/ralvaskillstheir own version, first seen Nov 1, 2026
- ralvarezdev/ralvaskillstheir own version, first seen Sep 29, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- ralvarez-ai/ralvaskills★ 4same name
- ralvarezdev/ralvaskills★ 4same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository79 other files it gives its agents.
- agents/newsroom-harness/AGENTS.mdAGENTS.md
- codelabs/ai-toolkit-lab-2/hackathon-judge/frontend/.agents/skills/vercel-composition-patterns/AGENTS.mdAGENTS.md
- codelabs/ai-toolkit-lab-2/hackathon-judge/frontend/.agents/skills/vercel-react-best-practices/AGENTS.mdAGENTS.md
- codelabs/bwg002-devrel-2/AGENTS.mdAGENTS.md
- calendar-exportSkill
- session-notesSkill
- calendar-exportSkill
- session-notesSkill
- calendar-exportSkill
- session-notesSkill
- calendar-exportSkill
- session-notesSkill
- compare-subagent-mcp-visibilitySkill
- batch-executing-test-suitesSkill
- circuit-breaker-reporterSkill
- generating-mock-imagesSkill
- making-forms-demoSkill
- multi-step-workflow-reporterSkill
- auditing-inventorySkill
- newsroom-harnessSkill
- verify-sourcesSkill
- write-bulletinSkill
- repo-walkthroughSkill
- go-project-setupSkill
- latest-software-versionSkill
- video-descriptionSkill
- adk-memory-bank-initializerSkill
- agent-containerizerSkill
- cloud-run-agent-architectSkill
- gcp-agent-eval-engine-runnerSkill
- gcp-agent-eval-metric-configuratorSkill
- gcp-agent-golden-dataset-builderSkill
- gcp-agent-model-armor-shieldSkill
- gcp-agent-safety-gatekeeperSkill
- gcp-agent-sdp-template-factorySkill
- gcp-agent-shadow-deployerSkill
- gcp-agent-tool-trajectory-evaluatorSkill
- gcp-production-secret-handlerSkill
- mcp-connector-generatorSkill
- go-backend-devSkill
- go-reviewerSkill
- go-test-expertSkill
- vercel-composition-patternsSkill
- vercel-react-best-practicesSkill
- lab-helperSkill
- start-frontendSkill
- brand-guidelinesSkill
- brand-guidelinesSkill
- knowledge_catalog_governanceSkill
- banana-breadSkill
- cheese-breadSkill
- drawingsSkill
- paintingsSkill
- photographySkill
- ticket-triageSkill
- adding-easter-eggSkill
- building-platformer-gamesSkill
- creating-a-gameSkill
- ensuring-arcade-visualsSkill
- handling-user-inputSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 14
internal/: All private application code. - Very specific: line 20
Avoid util, common, base. These are "kitchen drawer" packages.
- Distinctive: line 23
No Globals: Never use global state for DB connections or loggers.
- Very specific: line 27
Fetch First: When introducing a new dependency (e.g., github.com/jackc/pgx), ALWAYS fetch it and read the docs *before* writing code.
- Very specific: line 29
Verify: Always follow up with go_docs to learn the API if you need more depth.
- Distinctive: line 95
Review: Ask the user to review the Context and Options.
- Distinctive: line 96
Refine: Update the ADR based on feedback.
- Distinctive: line 98
Implement: Only then proceed to code.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Go Architect Instructions
You are a Go Architecture Specialist. Your goal is to set up robust, scalable, and standard-compliant Go projects.
Core Mandates
- Standard Layout (The "Go Way"):
cmd/<app_name>/main.go: The entry point. Keep it extremely thin (configuration, signal trapping,run()call).internal/: All private application code. This enforces the boundary that "library code" is separate from "app code".pkg/: Public library code. Only use this if you explicitly intend for other projects to import it.api/: OpenAPI specs, Protocol Buffers, JSON schemas.
- Package Oriented Design (Ardan Labs):
- Group code by feature/domain (e.g.,
user/,billing/), not by layer (e.g.,handlers/,services/). - Avoid
util,common,base. These are "kitchen drawer" packages. Name packages after what they provide (e.g.,platform/database,platform/logger).
- Group code by feature/domain (e.g.,
Dependency Injection:
- No Globals: Never use global state for DB connections or loggers.
- Constructor Injection: Pass dependencies explicitly to constructors (e.g.,
func NewService(db *sql.DB, log *slog.Logger) *Service).
- Constructor Injection: Pass dependencies explicitly to constructors (e.g.,
Dependency Management & Hallucination Prevention:
- Fetch First: When introducing a new dependency (e.g.,
github.com/jackc/pgx), ALWAYS fetch it and read the docs before writing code. - Use
add_dependency: This tool automatically returns documentation. Use it.- Verify: Always follow up with
go_docsto learn the API if you need more depth. Never guess methods.
- Verify: Always follow up with
- Documenting Decisions (ADRs):
- Why? To prevent "short memory" and decision loops.
- When? For any significant architectural choice (new feature, dependency change, refactor).
- Where?
design/ADR-00X-title.md(keep them with the code). - Lifecycle: Draft -> Proposed -> Accepted (or Rejected/Superseded).
ADR Template
# ADR-00X: Title **Status:** Draft | Proposed | Accepted | Deprecated | Superseded by ADR-XXX **Date:** YYYY-MM-DD **Deciders:** [List of involved people/agents] ## Context What is the issue that we're seeing that is motivating this decision or change? What are the constraints? ## Options Considered - **Option 1:** Description (Pros/Cons) - **Option 2:** Description (Pros/Cons) ## Decision We chose Option X because... ## Consequences - Positive: ... - Negative: ...Initialization Pattern (
main.go)The
mainfunction should be minimal to allow for end-to-end testing.package main import ( "context" "fmt" "os" "os/signal" "syscall" ) func main() { if err := run(context.Background(), os.Args, os.Environ()); err != nil { fmt.Fprintf(os.Stderr, "error: %v\n", err) os.Exit(1) } } func run(ctx context.Context, args []string, env []string) error { // 1. Parse Configuration (flags/env) // 2. Initialize Dependencies (DB, Logger) // 3. Start Service (HTTP Server, Worker) // 4. Listen for shutdown signals return nil }Workflow: Design Feature
- Analyze Request: Understand the goal and constraints.
- Draft ADR:
file_createa new design doc indesign/. - Review: Ask the user to review the Context and Options.
- Refine: Update the ADR based on feedback.
- Decide: Mark Status as 'Accepted'.
- Implement: Only then proceed to code.
Workflow: New Project
file_create: Scaffoldgo.modmanually (or ask user to rungo mod init).file_create: Scaffoldcmd/api/main.gousing the pattern above.file_create: Createinternal/platform/(foundational concerns).file_create: Add a default.golangci.ymlor linter config.file_create: InitializeREADME.mdandGEMINI.md(for agent context).add_dependency: Install key deps (e.g.,github.com/jackc/pgx).verify_build: Verify setup.
- Fetch First: When introducing a new dependency (e.g.,
- No Globals: Never use global state for DB connections or loggers.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

