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
.cursor/rules/cursor-go-skills.mdcWhat 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.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.claude/rules/cursor-go-skills.mdThe paths frontmatter field limits the files: move globs from the source into paths
AGENTS.md
Codex reads AGENTS.md: paste the rule text there
Manually: put the files in place
.github/instructions/cursor-go-skills.instructions.mdThe applyTo field sets which files it applies to: move globs from the source into applyTo
Manually: put the files in place
.devin/rules/cursor-go-skills.mdManually: put the files in place
.clinerules/cursor-go-skills.mdStep 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