gen-github-dir

gen-github-dir is a skill for Claude Code from sgaunet/claude-plugins. It costs 22 tokens per session (5,757 once invoked), scanned A, original, MIT.

A generator for a Go project's .github directory. It creates GitHub Actions workflows, Dependabot settings for keeping dependencies updated, and GitHub Sponsors configuration.

In plain words
What is it for?
Use it to set up linting, coverage, snapshot, and release workflows, Dependabot for Go modules, Docker, and actions, and sponsorship settings.
Why use it?
It avoids manually creating several related configuration files and keeps the tools used in GitHub Actions aligned with the project's pinned versions. GitHub Actions is GitHub's system for running automated checks and releases.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: names the AskUserQuestion tool; mentions Claude Code.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the go-specialist plugin — 11 skills, 1 agent shipped together

Good fit Use it to set up linting, coverage, snapshot, and release workflows, Dependabot for Go modules, Docker, and actions, and sponsorship settings.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add sgaunet/claude-plugins
Claude Code
/plugin install go-specialist

Made for: Claude Code.

Or install go-specialist, the plugin that ships this one along with the rest of its 11 skills, 1 agent.

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 gen-github-dir

README.md
[![agentmods](https://agentmods.dev/badge/skills/sgaunet/claude-plugins/gen-github-dir/github.svg)](https://agentmods.dev/skills/sgaunet/claude-plugins/gen-github-dir)
Your own site
<a href="https://agentmods.dev/skills/sgaunet/claude-plugins/gen-github-dir"><img src="https://agentmods.dev/badge/skills/sgaunet/claude-plugins/gen-github-dir/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 gen-github-dir

Your own site · 80×15
<a href="https://agentmods.dev/skills/sgaunet/claude-plugins/gen-github-dir"><img src="https://agentmods.dev/badge/skills/sgaunet/claude-plugins/gen-github-dir.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,757 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00022 $0.05757
Opus 5.5 $0.00009 $0.02303
Sonnet 5.5 $0.00004 $0.01151
Haiku 4.5 $0.00002 $0.00576

Measured 22d ago against content hash 389f59554aa7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

plugins/go-specialist/skills/gen-github-dir/SKILL.md · 653 lines

How it starts

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

Generate .github Directory

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 Skill 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 skill is for Go projects only."

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

Subscribe to this mod's changes

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

Related

Other skills, from other repositories

implementing-go

Implements concise, streamlined Go code matching exact architect specifications. Use when writing Go code, creating packages, or when the user asks to implement features in Go.

qte77/claude-code-plugins · 36 tokens

reviewing-go

Provides concise, focused Go code reviews matching exact task complexity requirements. Use when reviewing Go code quality, concurrency safety, or when the user asks for code review.

qte77/claude-code-plugins · 36 tokens

golang-continuous-integration

GitHub Actions CI/CD pipeline configuration for Golang projects — workflow files for test, lint, SAST, coverage and vulnerability-scan jobs, Dependabot and Renovate config files, GoReleaser release pipelines, Docker build/push, repository security settings, and AI-driven PR review. Use when setting up or improving Go…

samber/cc-skills-golang · 181 tokens

tree-sitter-language-pack-managing-parsers

Use when the user needs to manage the tree-sitter parser cache — prefetch parsers for offline or CI runs, list what is downloaded, inspect a language, find the cache directory, or clean it. Covers ts-pack download, list, info, cache-dir, clean, and init.

xberg-io/tree-sitter-language-pack · 65 tokens

dotnet-analyzers

Run dotnet format to fix code style and analyzer diagnostics (IDE0005, CA, SA). Use when fixing unnecessary usings, code style violations, analyzer warnings, or verifying format compliance.

NikiforovAll/claude-code-rules · 45 tokens

dotnet-dependency

This skill should be used when investigating .NET project dependencies, understanding why packages are included, listing references, or auditing for outdated/vulnerable packages.

NikiforovAll/claude-code-rules · 35 tokens