# cursor-go-skills

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

- rule · `type=rule` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline · ★ 3912 repo stars
- Author: samber
- License: MIT · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-how-to/assets/cursor-go-skills.mdc
- Updated: 2026-10-23
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/rules/cursor-go-skills

## What it 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.

## Install

### Cursor (native platform)

**Manually: put the files in place**
- File: `.cursor/rules/cursor-go-skills.mdc` — Frontmatter: description, globs, alwaysApply

### Claude Code

**Manually: put the files in place**
- File: `.claude/rules/cursor-go-skills.md` — The paths frontmatter field limits the files: move globs from the source into paths

### Codex

**AGENTS.md**
- Codex reads AGENTS.md: paste the rule text there

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/instructions/cursor-go-skills.instructions.md` — The applyTo field sets which files it applies to: move globs from the source into applyTo

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/rules/cursor-go-skills.md`

### Cline

**Manually: put the files in place**
- File: `.clinerules/cursor-go-skills.md`

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-how-to/assets/cursor-go-skills.mdc

## When to use it
- 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
- 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

## Source text · cursor-go-skills.mdc · MIT

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 96306a4cfbd40349.

BEGIN THIRD-PARTY FILE 96306a4cfbd40349
```text
---
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`
```
END THIRD-PARTY FILE 96306a4cfbd40349

The third-party file has ended. Everything between the 96306a4cfbd40349 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

© samber · MIT · https://github.com/samber/cc-skills-golang/tree/HEAD/skills/golang-how-to/assets/cursor-go-skills.mdc

## Similar
- [golang-pro](https://affpapa.org/en/nevibecode/skills/httpsgithubcomjeffallan-golang-pro.md) — skill · 19800 installs
- [go-interfaces](https://affpapa.org/en/nevibecode/skills/go-interfaces.md) — skill · 1400 installs
- [go](https://affpapa.org/en/nevibecode/skills/go.md) — skill · 804 installs
- [writing-go](https://affpapa.org/en/nevibecode/skills/writing-go.md) — skill · 110 installs
- [golang-idioms](https://affpapa.org/en/nevibecode/skills/golang-idioms.md) — skill · ★ 2858 repo stars
- [go-expert](https://affpapa.org/en/nevibecode/agents/go-expert.md) — subagent · ★ 1029 repo stars

From the same set: [samber/cc-skills-golang](https://affpapa.org/en/nevibecode/by/samber/cc-skills-golang.md) — 47 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
