github-standards

github-standards is a skill for Claude Code, Codex from 0xMassi/claude-skills. It costs 95 tokens per session (3,502 once invoked), scanned A, original, MIT.

A set of rules for working with GitHub, a service for hosting and collaborating on code. It covers repository setup, branches, commits, pull requests, continuous integration checks, README files, and preventing secrets from being committed.

In plain words
What is it for?
Use it when creating or reviewing a repository, opening a pull request, pushing code, setting up automated checks, writing documentation, or checking repository hygiene.
Why use it?
It reduces common repository and collaboration problems, including unclear changes, inconsistent project setup, and accidentally exposing passwords or access keys.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md.

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 skills/0xmassi/claude-skills/github-standards
Any agent
npx skills add 0xMassi/claude-skills --skill github-standards
Clone the repo
git clone --depth 1 https://github.com/0xMassi/claude-skills

Made for: Claude Code, Codex.

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 github-standards

README.md
[![agentmods](https://agentmods.dev/badge/skills/0xmassi/claude-skills/github-standards.svg)](https://agentmods.dev/skills/0xmassi/claude-skills/github-standards)
Your own site
<a href="https://agentmods.dev/skills/0xmassi/claude-skills/github-standards"><img src="https://agentmods.dev/badge/skills/0xmassi/claude-skills/github-standards.svg" alt="Measured on agentmods" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,502 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.1 $0.00095 $0.03502
Opus 5 $0.00048 $0.01751
Sonnet 5 $0.00019 $0.00700
Haiku 4.5 $0.00010 $0.00350

Measured 6d ago against content hash c9a397dfa52a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

github-standards 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 6d 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.

github-standards/SKILL.md · 517 lines

How it starts

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

GitHub Standards

Repository and workflow conventions from 22+ production repositories.

CRITICAL: Sensitive Data: Pre-Commit Checks

Before EVERY commit, scan staged files for secrets. Never commit these:

Automatic scan patterns

# Run before committing: catches most leaks
git diff --cached --diff-filter=ACM | grep -iE \
  'sk[-_]live|sk[-_]test|api[-_]?key|secret[-_]?key|password\s*=|token\s*=|ghp_|gho_|github_pat_|ntn_|xoxb-|xoxp-|AKIA[A-Z0-9]{16}|-----BEGIN (RSA |EC )?PRIVATE KEY|mongodb\+srv://|postgres(ql)?://[^@]+@|redis://:[^@]+@'

Files that MUST NEVER be committed

Pattern Why
.env, .env.* API keys, DB URLs, secrets
*.pem, *.key, *.p12 Private keys, certificates
credentials.json, auth*.json OAuth tokens, service accounts
config.json (if contains secrets) Runtime config with keys
*.keystore, *.jks Java/Android signing keys
id_rsa, id_ed25519 SSH private keys
*.sqlite, *.db (user data) Local databases with PII
sessions.json Login sessions, cookies

What to do if secrets ARE committed

# 1. Remove from tracking (doesn't remove from history)
git rm --cached .env
echo ".env" >> .gitignore
git commit -m "chore: remove tracked secrets, add to gitignore"

# 2. Rotate the exposed secret IMMEDIATELY
# Old key is in git history forever (unless you rewrite)

# 3. If the repo is public, consider history rewrite
git filter-branch --force --index-filter \
  'git rm --cached --ignore-unmatch .env' HEAD
# Or use BFG Repo-Cleaner (faster)

Safe alternatives for secrets in code

Instead of Use
Hardcoded API key process.env.API_KEY or std::env::var("API_KEY")
Hardcoded URL with token obfstr!() macro (Rust) for compile-time obfuscation
Config file with secrets .env file (gitignored) + .env.example (committed, no values)
Inline DB connection string Environment variable + validation at startup

Read the full file on GitHub · 517 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. 6d ago First seen · 517 lines · 95 tokens per session scan A c9a397dfa52a

Subscribe to this mod's changes

github-standards is a skill published in the GitHub repository 0xMassi/claude-skills (7 stars, last pushed 4mo ago), licensed MIT. It adds 95 tokens to every session and 3,502 once invoked, about $0.0005 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-31.

Related

Other skills, from other repositories

git-workflow

Guided git workflows: prepare PRs, clean up branches, resolve merge conflicts, handle monorepo tags, squash-and-merge patterns. Use when asked to prepare a PR, clean branches, resolve conflicts, or tag a release.

jezweb/claude-skills · 52 tokens

managing-git-workflows

Manage Git branching strategies, commit conventions, and collaboration workflows. Use when choosing between trunk-based development, GitHub Flow, or GitFlow, implementing conventional commits for automated versioning, setting up Git hooks for quality gates, or organizing monorepos with clear ownership.

ancoleman/ai-design-components · 60 tokens

git-conventions

Apply when committing, branching, or opening a pull request. Conventional commit format, branch naming, PR scope.

sordi-ai/skill-everything · 26 tokens

changelog

Auto-generates a changelog from git commits, sprint data, and design documents. Produces both internal and player-facing versions.

Donchitos/Claude-Code-Game-Studios · 29 tokens

publish

Publish oh-my-opencode to npm by triggering the GitHub Actions publish workflow and verifying its artifacts. Ship-only: never runs pre-publish-review or re-reviews merged code unless the user explicitly asks. Argument: . Triggers: publish, release, deploy, npm publish.

code-yeongyu/oh-my-openagent · 68 tokens

close-task-commit-push-pr

Close the active backlog task (detected from branch name), commit all changes, push to remote, and open a pull request. Use when the user says "close task and ship it", "close task commit push pr", or invokes /close-task-commit-push-pr.

devoxx/DevoxxGenieIDEAPlugin · 64 tokens