recreate-repo

recreate-repo is a skill for Claude Code from wardawgmalvicious/agent-config. It costs 228 tokens per session (3,549 once invoked), scanned A, original, MIT.

A procedure for responding when a secret or identifying name has already been pushed to a GitHub repository. It recreates the repository after recording its settings, while noting that exposed credentials and copies in forks or clones still need separate attention.

In plain words
What is it for?
Use it to snapshot repository settings and recreate a GitHub repository after a credential, client name, tenant name, or other sensitive text was pushed.
Why use it?
Rewriting files in place may leave pull-request references and unreachable commits accessible, so it does not fully remove the leaked data.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions Claude Code.

Good fit Use it to snapshot repository settings and recreate a GitHub repository after a credential, client name, tenant name, or other sensitive text was pushed.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/wardawgmalvicious/agent-config/recreate-repo
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.

Any agent
npx skills add wardawgmalvicious/agent-config --skill recreate-repo
Clone the repo
git clone --depth 1 https://github.com/wardawgmalvicious/agent-config

Made for: Claude Code.

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 recreate-repo

README.md
[![agentmods](https://agentmods.dev/badge/skills/wardawgmalvicious/agent-config/recreate-repo/github.svg)](https://agentmods.dev/skills/wardawgmalvicious/agent-config/recreate-repo)
Your own site
<a href="https://agentmods.dev/skills/wardawgmalvicious/agent-config/recreate-repo"><img src="https://agentmods.dev/badge/skills/wardawgmalvicious/agent-config/recreate-repo/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 recreate-repo

Your own site · 80×15
<a href="https://agentmods.dev/skills/wardawgmalvicious/agent-config/recreate-repo"><img src="https://agentmods.dev/badge/skills/wardawgmalvicious/agent-config/recreate-repo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 228 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,549 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.00228 $0.03549
Opus 5.5 $0.00091 $0.01420
Sonnet 5.5 $0.00046 $0.00710
Haiku 4.5 $0.00023 $0.00355

Measured 1mo ago against content hash 6010b50bcb76, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

recreate-repo 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/repo-settings.ps1), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/workflow/recreate-repo/SKILL.md · 247 lines

How it starts

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

Recreating a repository after a pushed leak

A name or a credential has reached GitHub: in a file, a commit message, a pull request, a branch name. A rewrite in place is not the remedy. refs/pull/N/head pin every commit a pull request touched, and GitHub serves unreachable objects by SHA until a collection on no schedule you control. GitHub's own page says the same of clones, forks and "cached views", and of the pull requests themselves (references/pushed-leaks.md). Deleting the repository and creating it again is the immediate remedy, and the one in the owner's hands: the pull request refs go with the repository. The settings go with it too, which is why this is an order and not one command; it was learned twice, on 2026-09-10 when nothing recorded the old values, and on 2026-09-23 in a repo where nothing named the script.

Two things the recreate does not undo, and step 1 names both: a credential's exposure, and the copies in forks and clones.

1. Before anything: whose repo, where you are, what survives

gh api user -q .login                                   # who gh acts as, here
gh repo view <owner>/<name> --json visibility,forkCount,isFork,parent
git rev-parse --show-toplevel                           # which repo this session is in
  • A credential is revoked or rotated first. The recreate removes the record, not the exposure, and GitHub's page puts the rotation "as a first step". Its Support can purge cached views and pull request refs after a rewrite, but only for data it judges sensitive and only where rotating cannot mitigate the risk; that route was never tried here, and the recreate needs no one's judgment.
  • The login must equal <owner>. gh is folder-scoped on this machine: the repo's account inside an identity root, the keyring's active one outside every root (~/.claude/CLAUDE.md § "Git identity is folder-scoped"). The script refuses -Export and -Apply under any other login; gh repo delete and gh repo create make no such check and act as whatever gh resolves to, so the probe is yours. A mismatch is a stop: report it.
  • An organization's repo is a stop. It is its owners' to recreate, and the script's owner check refuses it.
  • A public repo's forkCount above 0 means the leak outlives it. "Deleting a public repository will not delete any forks of the repository" — a private repo's forks go with it — and the fork owners have to be asked: GitHub "cannot provide contact information for these owners". Say so; the recreate still clears this repo.
  • isFork true, with a pull request into its parent: that pull request lives in the parent, where this delete does not reach, and pins the commits there. Reasoned from GitHub's "any pull requests that reference them", not tried (2026-10-01).
  • Record visibility. The snapshot leaves it out on purpose, so once the repo is gone nothing else says whether it was public or private, and step 5 needs it.
  • Add a leaked name to ~/.config/identity-denylist.txt if it is not there; a credential never goes in it. identity-guard knows only what is listed, and step 6's push is where it catches whatever the rewrite missed.

Read the full file on GitHub · 247 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 1mo ago Changed · +3 lines · +3 tokens per session 6010b50bcb76
  2. 1mo ago Changed a4ea961e491b
  3. 1mo ago Changed 8553ad886f7e
  4. 1mo ago Changed b121d604d5c1
  5. 1mo ago First seen · 244 lines · 225 tokens per session scan A 27e5ff24b0df

Subscribe to this mod's changes

recreate-repo is a skill published in the GitHub repository wardawgmalvicious/agent-config (1 stars, last pushed 1mo ago), licensed MIT. It adds 228 tokens to every session and 3,549 once invoked, about $0.0009 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-10-02.

Related

recreate-repo compared with skills from other repositories

recreate-repo next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
recreate-repowardawgmalvicious/agent-configSkill11mo agoMITA228Claude Code
update-changelogAzure/azure-sdk-for-netSkill6.1kyesterdayMITA25Claude Code, Codex
release-notesAzure/azure-sdk-for-javaSkill2.6k2d agoMITA50Claude Code, Codex
codegenAzure/azure-sdk-for-javaSkill2.6k2d agoMITA37Claude Code, Codex
cosmos-pre-commit-validationAzure/azure-sdk-for-rustSkill8903d agoMITA35Claude Code
bitbucketArvo-AI/auroraSkill470todayApache-2.0A23Claude Code
multi-repo-releaseAzure/GPT-RAGSkill1.2k2mo agoMITA56Claude Code, Codex