Skip to main content
rule CX Codex

cursor-go-skills — Claude Code rule: what it does, how to install

cursor-go-skills instructs Claude Code to load the golang-how-to orchestrator alongside testing, security, and error-handling skills before every Go task.

MIT ★ 3,912 updated 2026-10-23

Install into Cursor · Manually: put the files in place All methods and platforms ↓
.cursor/rules/cursor-go-skills.mdc
Open on GitHub

What cursor-go-skills does

The rule runs with alwaysApply: true. Whenever you start writing, reviewing, troubleshooting, or configuring Go code, Claude Code must first load the samber/cc-skills-golang@golang-how-to skill. That orchestrator determines what the task demands and routes to the relevant Go skills.

Beyond the router, the rule requires three skills on every Go task: golang-error-handling, golang-security, and golang-testing. The agent has to bring these in automatically, even if your prompt does not name them.

Keep in mind that this rule is purely an instruction. If the samber/cc-skills-golang skills are missing from your environment, the agent will have nowhere to route.

What it helps with

  • Route Go coding, review, and troubleshooting tasks through a central skill orchestrator
  • Enforce Go error handling standards automatically without manual prompting
  • Check Go services for security concerns during everyday edits
  • Apply testing guidelines whenever writing tests for Go packages

Example prompts for the agent

  • Find the root cause of the panic in main.go when handling HTTP requests
  • Write unit tests for the user authentication service
  • Audit the payment handler for security flaws and unhandled errors

How to install cursor-go-skills

Manually: put the files in place

.cursor/rules/cursor-go-skills.mdc

Frontmatter: description, globs, alwaysApply

Step by step, with commands for each platform: Cursor rules: .mdc files, four modes and what replaced .cursorrules

Questions about cursor-go-skills

How to install cursor-go-skills in Claude Code?

Place the rule content into .claude/rules/cursor-go-skills.md inside your project directory.

What does the cursor-go-skills rule do?

It forces Claude Code to load the Go skill orchestrator and skills for error handling, testing, and security before touching Go code.

Which Go skills are marked as required?

The rule mandates golang-error-handling, golang-security, and golang-testing from samber/cc-skills-golang, routed via golang-how-to.

Source text

cursor-go-skills.mdc · MIT
---
description: Load the Go skills orchestrator before any Go task
alwaysApply: true
---

Before any Go coding, review, debugging, troubleshooting, or setup task, load the `samber/cc-skills-golang@golang-how-to` skill first — it routes to whichever other Go skills the task needs.

## Required Go skills

The following Go skills from `samber/cc-skills-golang` MUST always be applied when working on this project. Load them at the start of every Go-related task, regardless of whether the user explicitly mentions them.

- `samber/cc-skills-golang@golang-error-handling`
- `samber/cc-skills-golang@golang-security`
- `samber/cc-skills-golang@golang-testing`

© samber · MIT · samber/cc-skills-golang

Similar IDE rules

All IDE rules for Agent setup: memory, context, orchestration →

From the same set47

The whole set →
golang-spf13-viper golang-spf13-viper configures the spf13/viper Go library with strict precedence, flag bindings, environment variables, and struct decoding. CX Codex +1 38,900installs golang-uber-fx golang-uber-fx — a skill for uber-go/fx — a dependency injection framework with lifecycle hooks, module system, and graceful shutdown. Useful if your project already uses fx or you're migrating to it for long-running services. CX Codex +1 38,700installs golang-how-to The golang-how-to skill picks the Go skills a task needs and loads them together. Useful when you write a service, chase a panic, or set up a project. CX Codex +1 38,600installs golang-uber-dig The golang-uber-dig skill helps wire Go application dependencies with uber-go/dig. Use it when registering constructors and resolving an application graph at startup. CX Codex +1 38,600installs golang-pkg-go-dev golang-pkg-go-dev queries Go package docs, API signatures, examples, and CVEs via godig and pkg.go.dev. Inspects external dependencies directly in agent chat. CX Codex +1 14,000installs golang-refactoring golang-refactoring — a skill for behavior-preserving restructuring of Go code at scale. Uses gopls, gofmt, and tools like gopatch to break down large functions, rename types across a project, and reorganize packages without breakage. CX Codex +1 13,600installs golang-gopls golang-gopls is a Claude Code skill for semantic navigation and refactoring of Go code through gopls. It reveals types, call relationships, and build structure beyond text search. CX Codex +1 13,100installs golang-always The golang-always rule maps Go tasks to primary and related skills. Use it to guide skill selection across a project’s Go files. CX Codex +1 ★ 3,912repo stars

More in the catalog

Project sponsors

Companies that keep this analytics open