gen-github-dir

A command that creates a complete .github directory for Go projects, including GitHub Actions workflows, Dependabot settings, and funding configuration.

In plain words
What is it for?
Adding linting, coverage, snapshot, and release workflows to a Go project, configuring Dependabot for Go modules, Docker, and GitHub Actions, and setting up GitHub Sponsors.
Why use it?
Setting up continuous integration, dependency updates, coverage, releases, and related GitHub files by hand takes time and can lead to inconsistent tool versions. This command generates the files around the versions pinned in mise.toml.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/sgaunet/claude-plugins/gen-github-dir
Clone the repo
git clone --depth 1 https://github.com/sgaunet/claude-plugins
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 5,761 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00022 $0.05761
Opus 5 $0.00011 $0.02880
Sonnet 5 $0.00004 $0.01152
Haiku 4.5 $0.00002 $0.00576

Measured 2d ago against content hash a98dd45dbc0f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

gen-github-dir 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 2d 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.

plugins/go-specialist/commands/gen-github-dir.md · 651 lines

How it starts

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

Generate .github Directory Command

Instantly create a complete .github directory structure for Go projects with production-ready, mise-based GitHub Actions workflows, Dependabot configuration, and sponsorship setup.

Why This Command Exists

Problem: Setting up CI/CD for Go projects requires manually creating multiple workflow files, understanding GitHub Actions syntax, and keeping tool versions in sync between local development and CI - a 30-60 minute process.

Solution: One-command generation that:

  • Creates a complete .github directory (6 files): FUNDING, dependabot, and the linter/coverage/snapshot/release workflows
  • Workflows are mise-based: each installs tools via jdx/mise-action@v3 then runs a task …, so CI uses the exact versions pinned in mise.toml
  • Ensures a mise.toml exists at the repo root (creates one with detected versions if missing) — the single source of truth shared with local dev
  • Configures Dependabot for Go modules, Docker, and GitHub Actions
  • Sets up GitHub Sponsors integration
  • Preserves all customization comments for user control

Content Generation Rules

CRITICAL: When generating any content (workflow files, commit messages, or any other output):

  • NEVER add Claude Code attribution or co-authorship
  • NEVER include phrases like "Generated by Claude", "Created with Claude Code", or similar
  • NEVER add "Co-Authored-By: Claude" in commit messages or documentation
  • All generated content should appear as if written by a human developer
  • Focus on technical accuracy and providing working templates

Process (6 Phases)

Phase 1: Prerequisites Validation

Critical checks before proceeding:

  1. Validate Git repository:

    git rev-parse --git-dir
    
    • If fails: Exit with error "Not a git repository. Run 'git init' first."
  2. Validate Go project:

    test -f go.mod
    
    • If fails: Exit with error "go.mod not found. This command is for Go projects only."

Read the full file on GitHub · 651 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. 2d ago First seen · 651 lines · 22 tokens per session scan A a98dd45dbc0f

Subscribe to this mod's changes

gen-github-dir is a command published in the GitHub repository sgaunet/claude-plugins (16 stars, last pushed 7d ago), licensed MIT. It adds 22 tokens to every session and 5,761 once invoked, about $0.0001 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.