github-repository

github-repository is a skill for Claude Code, Codex from fmind/dot. It costs 37 tokens per session (766 once invoked), scanned A, original, MIT.

A guide for maintaining a GitHub repository’s public details and solo-developer settings from its codebase.

In plain words
What is it for?
Use it to update repository metadata, GitHub Pages links, topics, merge rules, and sidebar features with the GitHub command-line tool.
Why use it?
It avoids manually guessing repository descriptions, topics, homepage links, and merge settings, and keeps those changes repeatable.

Skill for Claude CodeCodex

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/fmind/dot/github-repository
Any agent
npx skills add fmind/dot --skill github-repository
Clone the repo
git clone --depth 1 https://github.com/fmind/dot

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-repository

README.md
[![agentmods](https://agentmods.dev/badge/skills/fmind/dot/github-repository.svg)](https://agentmods.dev/skills/fmind/dot/github-repository)
Your own site
<a href="https://agentmods.dev/skills/fmind/dot/github-repository"><img src="https://agentmods.dev/badge/skills/fmind/dot/github-repository.svg" alt="Measured on agentmods" height="20"></a>
Per session 37 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 766 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.00037 $0.00766
Opus 5 $0.00018 $0.00383
Sonnet 5 $0.00007 $0.00153
Haiku 4.5 $0.00004 $0.00077

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

Security

Grade A, and why

github-repository 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 yesterday.

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.

skills/github-repository/SKILL.md · 63 lines

How it starts

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

GitHub Repository

Derive a repository's description, homepage, and topics from its codebase and apply them with gh repo edit together with solo-developer settings: squash-only merges, secure defaults, a decluttered sidebar.

Workflow

  1. Extract metadata from the codebase:

    • Manifests: Go go.mod (module path), Python pyproject.toml ([project] name, description, urls), TypeScript package.json (name, description, homepage).
    • README.md: the first paragraphs give a one-line description under ~140 characters.
    • Homepage: derive from hosting, e.g. https://<owner>.github.io/<repo> for GitHub Pages.
    • Topics: 3 to 6 lowercase tags for language, frameworks, tools, or domain (agent, python, cli); letters, numbers, and hyphens only, 50 characters max, 20 per repository.
  2. Inspect the current state so the edit stays idempotent; stop when there is no GitHub remote or gh is not authenticated:

    gh auth status
    git config --get remote.origin.url
    gh repo view --json description,homepageUrl,repositoryTopics,deleteBranchOnMerge,squashMergeAllowed,mergeCommitAllowed,rebaseMergeAllowed,hasIssuesEnabled,hasProjectsEnabled,hasWikiEnabled,hasDiscussionsEnabled
    
  3. Apply one consolidated edit; append --enable-issues=false only when the project tracks issues elsewhere:

    gh repo edit \
      --description "<description>" \
      --homepage "<homepage-url>" \
      --add-topic "tag1,tag2,tag3" \
      --delete-branch-on-merge \
      --enable-squash-merge \
      --squash-merge-commit-message pr-title-description \
      --enable-merge-commit=false \
      --enable-rebase-merge=false \
      --allow-update-branch \
      --enable-secret-scanning \
      --enable-secret-scanning-push-protection \
      --enable-wiki=false \
      --enable-projects=false \
      --enable-discussions=false
    
  4. Verify with the same gh repo view --json ... call and report the fields that changed.

Gotchas

  • Truncation: keep the description single-line and under ~140 characters or the GitHub UI truncates it.
  • Advanced Security: secret-scanning push protection is free for public and personal private repositories; organization-owned private repositories may need GitHub Advanced Security.
  • Visibility: never pass --visibility or --accept-visibility-change-consequences unless the user explicitly asks.

Read the full file on GitHub · 63 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. yesterday First seen · 63 lines · 37 tokens per session scan A e85e89b1be8d

Subscribe to this mod's changes

github-repository is a skill published in the GitHub repository fmind/dot (4 stars, last pushed today), licensed MIT. It adds 37 tokens to every session and 766 once invoked, about $0.0002 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-09-03.