golang-workspace

Manage multi-module Go projects with workspaces and replace directives.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/ep0ll/bons-ci --skill golang-workspace
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: golang-workspace
Source: https://github.com/ep0ll/bons-ci/tree/main/.agents/skills/workspace
Command: npx skills add https://github.com/ep0ll/bons-ci --skill golang-workspace

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

Tasks related to managing multiple Go modules in a shared workspace are complex and error-prone, hindering efficient development.

Core Features & Use Cases

  • Multi-module Development: Simplifies configuring and running multiple interdependent Go modules within a single repository.
  • Local Dependency Management: Enables effortless local development by replacing remote modules with local paths, eliminating manual edits in go.mod.
  • CI/CD Integration: Supports consistent testing and building workflows across multiple modules in the same environment, fostering seamless continuous integration.

Quick Start

Use the workspace setup to initialize, add modules, and run tests across all components with minimal configuration.

Frequently Asked Questions about golang-workspace

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage multiple Go modules in a monorepo without manual go.mod edits?

Managing multiple Go modules in a monorepo is streamlined by using workspaces and replace directives to map remote dependencies to local paths. This eliminates manual go.mod edits during multi-module development.

How do I set up a Go workspace for local multi-module development?

To set up a Go workspace, initialize the configuration and add your interdependent modules. This allows you to run tests and builds across all monorepo components with minimal manual setup.

Does Go workspaces support CI workflows for monorepos?

Yes, Go workspaces support CI workflows by enabling consistent testing and building processes across multiple modules. This ensures reliable continuous integration within a shared monorepo environment.

What is the best way to run tests across multiple Go components in a single repository?

The best way to test multiple Go components is by using a configured workspace, which ensures integrated module handling and reliable test execution across the entire monorepo.

Can I use replace directives to point to local modules during development?

Yes, you can use replace directives within a Go workspace to point to local modules. This substitutes remote dependencies with local paths, streamlining multi-module development environment setup.

Why does managing interdependent Go modules cause CI errors?

Managing interdependent Go modules causes CI errors due to complex, manual dependency tracking. Using workspaces standardizes the build environment, ensuring consistent continuous integration and preventing module resolution failures.