Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/phobologic/claude_code_helpersnpx agentmods add skills/phobologic/claude_code_helpers/setup-go-projectWrote 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.
[](https://agentmods.dev/skills/phobologic/claude_code_helpers/setup-go-project)<a href="https://agentmods.dev/skills/phobologic/claude_code_helpers/setup-go-project"><img src="https://agentmods.dev/badge/skills/phobologic/claude_code_helpers/setup-go-project/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.
<a href="https://agentmods.dev/skills/phobologic/claude_code_helpers/setup-go-project"><img src="https://agentmods.dev/badge/skills/phobologic/claude_code_helpers/setup-go-project.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00070 | $0.03491 |
| Opus 5.5 | $0.00028 | $0.01396 |
| Sonnet 5.5 | $0.00014 | $0.00698 |
| Haiku 4.5 | $0.00007 | $0.00349 |
Grade A, and why
setup-go-project 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 22d 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.
How it starts
The opening of the file, as written. The whole thing — 444 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Setup Go Project
Scaffold a new Go project with opinionated defaults: a cmd/<name>/main.go layout,
a Makefile with build/test/lint/fmt/clean/cover targets, golangci-lint
for linting, GitHub Actions for CI, and a two-layer git-hook setup — fast gate at
pre-commit (goimports + go vet) and full gate at pre-push (make lint && make test,
mirroring CI).
Phase 1 — Determine project name and module path
- If
$ARGUMENTSis non-empty, use it as the project name - Otherwise, infer from
basename $PWD - Ask the user for the Go module path (e.g.
github.com/<user>/<name>). Do not guess — wrong module paths are painful to change later. Ifgo.modalready exists, read the module path from it instead of asking.
Present a brief summary, then ask for confirmation. If .git/ exists, include the
hook files in the list; otherwise omit them and note that hooks will be skipped
until git is initialized.
For new projects:
Project name: <name>
Module path: <module-path>
Binary: <name> (in cmd/<name>/)
Files to create: go.mod, Makefile, .gitignore, README.md, .golangci.yml,
cmd/<name>/main.go, .github/workflows/ci.yml
Git hooks: .git/hooks/pre-commit, .git/hooks/pre-commit.d/go.sh,
.git/hooks/pre-push, .git/hooks/pre-push.d/go.sh
(or: "skipped — git not initialized")
Proceed? [y/N]
For existing projects (re-run), show what will be added/updated:
Project name: <name> (existing project)
Updates:
.golangci.yml: add <missing linters>
Makefile: add <missing targets>
.github/workflows/ci.yml: already up to date
pre-push.d/go.sh: add (hook is new)
Proceed? [y/N]
Phase 2 — Preflight checks
Before writing anything:
- Check which target files already exist. Read each existing file so you understand what's already configured.
- Check if git is initialized (
git rev-parse --git-dir 2>/dev/null). If not, note it in the final report — don't rungit inityourself. - Check if
goandgolangci-lintare on PATH. Ifgolangci-lintis missing, note the install command (brew install golangci-lintorgo install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@latest) in the final report.
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.
- 22d ago Changed · +8 lines df1eb8694f09
- 1mo ago Changed · -1 lines d3a71c528de9
- 3mo ago First seen · 437 lines · 70 tokens per session scan A 2acc8aaac213
setup-go-project is a skill published in the GitHub repository phobologic/claude_code_helpers (6 stars, last pushed 5d ago), licensed MIT. It adds 70 tokens to every session and 3,491 once invoked, about $0.0003 per session on Opus 5.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-31.
setup-go-project compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| setup-go-projectphobologic/claude_code_helpers | Skill | 6 | 5d ago | MIT | A | 70 | Claude Code |
| golang-continuous-integrationsamber/cc-skills-golang | Skill | 4.0k | 22d ago | MIT | A | 181 | Claude Code |
| tree-sitter-language-pack-managing-parsersxberg-io/tree-sitter-language-pack | Skill | 489 | 2d ago | MIT | A | 65 | Claude Code |
| go-cieduardo-sl/go-agent-skills | Skill | 90 | 1mo ago | MIT | A | 142 | Claude Code |
| scaffold-gourmzd/dotfiles | Skill | 6 | 5d ago | Apache-2.0 | A | 116 | Claude Code |
| go-ci-workflowjohnqtcg/awesome-skills | Skill | 31 | 1mo ago | MIT | A | 53 | Claude Code |
| scaffold-go-clicboone/agent-harness-plugins | Skill | 3 | 5d ago | MIT | A | 55 | Claude Code |