cc-skills-golang: Instructions file for Claude Code

CLAUDE.md

cc-skills-golang CLAUDE.md is an instructions file for Claude Code from samber/cc-skills-golang. It costs 16,755 tokens per session, scanned A, original, MIT.

A guide for creating skills in a Claude Code plugin for Go projects. It explains the repository layout, required skill files, metadata, and optional supporting materials such as scripts and references.

In plain words
What is it for?
Use it when adding or updating Go-project skills, plugin metadata, references, scripts, or reusable configuration assets.
Why use it?
It helps contributors make skills that follow the Agent Skills specification and work correctly across supported coding agents.

Instructions file for Claude Code

Written for Claude Code: Claude Code plugin machinery. Also seen: mentions CLAUDE.md; mentions subagents; names the AskUserQuestion tool.

This is samber/cc-skills-golang's own configuration. It tells Claude Code how to work on cc-skills-golang itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything cc-skills-golang configures →

About the project

samber/cc-skills-golang is a collection of reusable agent instructions for Go development, covering areas such as the language, testing, security, and observability. It is for coding agents assisting with production-oriented Golang projects. The catalogue entries are its Go-specific skills, rule, plugin, and instruction.

samber/cc-skills-golang · 3,223 stars · on GitHub · skills.sh

Reuse

Borrowing it

Nothing to install: this file belongs to samber/cc-skills-golang. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/samber/cc-skills-golang/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/samber/cc-skills-golang

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cc-skills-golang CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/samber/cc-skills-golang/claude-md/github.svg)](https://agentmods.dev/instructions/samber/cc-skills-golang/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/samber/cc-skills-golang/claude-md"><img src="https://agentmods.dev/badge/instructions/samber/cc-skills-golang/claude-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cc-skills-golang CLAUDE.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/samber/cc-skills-golang/claude-md"><img src="https://agentmods.dev/badge/instructions/samber/cc-skills-golang/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16,755 This file is loaded in full into every session.
When invoked 16,755 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. ✓ AI security review Sonnet 5 · 7 Sept 2026 📄 Read the review
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.16755 $0.16755
Opus 5 $0.08377 $0.08377
Sonnet 5 $0.03351 $0.03351
Haiku 4.5 $0.01675 $0.01675

Measured 3d ago against content hash 2c56f545269e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

cc-skills-golang CLAUDE.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

CLAUDE.md · 903 lines

How it starts

The opening of the file, as written. The whole thing — 903 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CLAUDE.md

Project Overview

This is a Claude Code plugin containing AI agent skills for production-ready Go projects. The repository provides reusable skill definitions that Claude Code can invoke when working on Go codebases.

Facts in CLAUDE.md, procedures in skills. Repository-wide facts, conventions and constraints live here; step-by-step instructions for a technique or library live in a skill body. Duplicating one in the other produces two sources of truth that drift and eventually contradict each other — the same failure Atomic skills and deduplication prevents between skills, one level up.

Project Structure

skills/               # Claude Code skill definitions
  <skill-name>/
    SKILL.md          # Required: metadata + instructions
    references/       # Optional: detailed documentation loaded on demand
    scripts/          # Optional: executable code
    assets/           # Optional: templates, resources, linter configs (.golangci.yml, etc.)
.claude-plugin/       # Plugin metadata and configuration
.cursor-plugin/       # Plugin metadata and configuration (version must match .claude-plugin/plugin.json)
gemini-extension.json # Gemini CLI extension manifest (version must match .claude-plugin/plugin.json)

Agent Skills Specification

All skills MUST conform to the Agent Skills specification. Key requirements are summarized below; the spec is the source of truth when in doubt.

Frontmatter

New skills go in skills/<skill-name>/SKILL.md. Each SKILL.md has YAML frontmatter. Fields per the Agent Skills specthis project requires all fields marked "Project-required":

Field Required Constraints
name Spec-required 1-64 chars. Lowercase a-z, digits, hyphens. No leading/trailing/consecutive hyphens. Must match parent directory name.
description Spec-required 1-1024 chars. Describes what the skill does and when to use it — this is the primary triggering mechanism. Be specific and slightly "pushy" to avoid under-triggering.
license Project-required License name or reference to a bundled license file. Use MIT for this project.
compatibility Project-required 1-500 chars. Describe actual requirements as capabilities, never tool namesRequires internet access, not Requires WebSearch; the capability holds on every harness, the tool name only on Claude Code. Base: Designed for Claude Code, Codex or similar harness. Extend when needed: add Requires git, Requires internet access, Requires Python 3.14+ and uv, etc. Skills with no special requirements use the base string only.
metadata Project-required Must include author (string), version (semver a.b.c string, e.g. "1.0.0"), and openclaw (object — see below). Caution: some harnesses (e.g. OpenCode) parse metadata as a flat string→string map and may not preserve the nested openclaw object — don't assume every field survives outside Claude Code.
user-invocable Project-required Boolean. true for skills invocable as slash commands (e.g. /golang-security), false (default) for contextual skills that auto-trigger.
allowed-tools Project-required Space-delimited list of pre-approved tools. See "Allowed tools" below.
paths Optional Glob(s) scoping the skill to specific files/directories (e.g. **/*.go). Recognized by Cursor only — a no-op elsewhere. Add it for skills tied to Go source files to sharpen triggering there; skip it for skills with no natural file-type scope (setup, CI, ecosystem-lookup skills).
dependencies Optional, experimental List of owner/repo@skill identifiers this skill should always load alongside. Formalizes an existing → See cross-reference as a machine-enforced co-load instead of prose the model might skip. Currently recognized by Antigravity only (third-party-documented, not yet confirmed in Google's official docs) — verify before relying on it, and keep the prose → See reference regardless since it's what every other harness actually reads.

Read the full file on GitHub · 903 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 5d ago Changed · +1 lines · +44 tokens per session dbc745d9d109
  2. 7d ago Changed · +20 lines · +305 tokens per session 2c56f545269e
  3. 8d ago Changed · +107 lines · +3,267 tokens per session e19b78b12e38
  4. 11d ago First seen · 776 lines · 13,183 tokens per session scan E acad992968c4

Subscribe to this mod's changes

cc-skills-golang CLAUDE.md is an instructions file published in the GitHub repository samber/cc-skills-golang (3,223 stars, last pushed 3d ago), licensed MIT. It adds 16,755 tokens to every session, about $0.0838 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other instructions, from other repositories

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,296 tokens

codex AGENTS.md

AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.

openai/codex · 5,153 tokens

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 6,785 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.

github/spec-kit · 7,104 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).

microsoft/vscode · 5,001 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,469 tokens