repo-standardizer
What it does
This AI agent helps organize and improve the appearance of GitHub repositories. It adds or updates configuration and documentation files, such as issue forms, PR templates, labels, and CI workflows, without changing the code itself.
When to use it
- βWhen creating a new repository and needing initial setup.
- βWhen an existing repository looks messy or incomplete.
- βTo standardize the look and rules across multiple repositories.
Skill link
https://github.com/github/awesome-copilot/blob/main/skills/repo-standardizer/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βOrganize this GitHub repository, adding templates, labels, and CI workflows.β
5 new skills a week. 1 minute to read.
How it works
It checks your repository's current state, identifies what's missing or outdated, and applies standard configurations. It does this safely, without modifying your project's actual code.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
GitHub Repo Standardizer
Detect a repository's current state, then polish its surface: issue forms, PR template, label taxonomy, CI, CODEOWNERS, rulesets, docs. Works on repo metadata and config files only β code logic is never touched. Idempotent β safe to re-run; fills gaps and reconciles drift without duplicating or clobbering.
When to use
- User says "standardize / tidy up / professionalize this repo"
- A new repo was just created and needs templates, labels, CI, and rules from day one
- A repo looks bare: no templates, no labels, no CI, no branch protection
Preflight (mandatory, in order)
Requires:
ghCLI (authenticated),git,jq,python3β verify they exist before starting (which gh git jq python3).
1. Authenticate β check gh login first
gh auth status 2>/dev/null || echo "NOT_LOGGED_IN"
- Logged in β continue; print
gh api user -q .loginso the user knows which account will act. - Not logged in β STOP. Tell the user (do not guess):
- Run
gh auth login(web/device flow), or - Export a token:
export GH_TOKEN=ghp_xxxβ needsrepo,workflow(for CI files) and, for org repos,admin:org(oradmin:repo_hook/ org membership admin) scopes.
- Never paste tokens into chat, logs, or files. If the user pastes a token in chat, advise them to revoke it and re-issue.
- If
gh auth loginis impossible in this environment (headless), suggestgh auth login --with-tokenreading from a file the user created.
- Run
Verify the acting account can write to the target:
# user repos: no extra check needed beyond token scopes
# org repos: must be a member/admin of the org
gh api "orgs/ORG/memberships/$(gh api user -q .login)" -q .role 2>/dev/null || echo "NO_ORG_ACCESS"
admin/memberβ OK.404β stop and ask the user to add the account to the org first.
2. Detect repository type
gh repo view OWNER/REPO --json name,owner,visibility,defaultBranchRef,isArchived,isFork \
-q '{name:.name, ownerType:.owner.type, visibility:.visibility, defaultBranch:.defaultBranchRef.name, archived:.isArchived, fork:.isFork}'
| Field | Meaning | Consequence |
|---|---|---|
ownerType |
User = personal, Organization = org |
Org repos can also use org-level rulesets; both support repo-level rulesets |
visibility |
PUBLIC / PRIVATE / INTERNAL |
Private: skip public-facing docs pressure, keep CI secrets minimal; public: README badges + CONTRIBUTING/SECURITY matter |
archived / fork |
Read-only / fork | Skip write modules; report why |
If the repo was not explicitly named by the user, confirm before touching an org or private repository.
3. Audit current state
gh label list --repo OWNER/REPO --limit 200
gh api repos/OWNER/REPO/contents/.github -q '.[].path' 2>/dev/null || echo "no .github dir"
gh api repos/OWNER/REPO/contents/.github/workflows -q '.[].name' 2>/dev/null || echo "no workflows"
gh api repos/OWNER/REPO/rulesets -q '.[] | {name:.name, enforcement:.enforcement}' 2>/dev/null || echo "no rulesets"
gh api repos/OWNER/REPO/branches -q '.[].name' 2>/dev/null
for f in README.md CONTRIBUTING.md SECURITY.md LICENSE .gitignore; do
gh api "repos/OWNER/REPO/contents/$f" -q .name 2>/dev/null || echo "missing: $f"
done
4. Detect test framework (for CI module)
Check for these signals (first match wins):
gh api repos/OWNER/REPO/contents/package.json -q .name 2>/dev/null # node β templates/ci-node.yml
gh api repos/OWNER/REPO/contents/pyproject.toml -q .name 2>/dev/null # python β templates/ci-python.yml
gh api repos/OWNER/REPO/contents/go.mod -q .name 2>/dev/null # go β templates/ci-go.yml
gh api repos/OWNER/REPO/contents/Cargo.toml -q .name 2>/dev/null # rust β templates/ci-rust.yml
No signal β propose the generic CI (or ask the user whether CI is wanted at all).
5. Ask about language (before planning)
- Ask the user which language
CONTRIBUTING.mdand the PR template should be written in (default: English, or the project's primary language for local projects). Translate the templates accordingly when generating β never assume a language. - (README languages are asked separately in Module F.)
6. Ask about automation (decides the Governance labels)
Ask the user whether the repo has any automation bots or AI writers running on it β e.g. dependabot, a Stale bot, ClawSweeper, or an AI coding agent that auto-files PRs / auto-fixes issues.
β¦
FAQ
What does 'idempotent' mean?
It means you can run the agent multiple times, and it will always produce the same final result without causing issues or duplicating information.
Does it change my project's code?
No, it only modifies repository configuration and documentation files, like labels, templates, and CI workflows. Your project's code remains untouched.
Do I need to install anything?
Yes, you'll need to have a few tools installed on your computer, such as `gh` (the GitHub command-line tool), `git`, `jq`, and `python3`, and be logged into your GitHub account.
Details
Original description by the author
Polish any GitHub repository's surface β labels (emoji rating tiers, P0βP3 priority, impact severity), issue forms, PR template, CI workflows, CODEOWNERS, rulesets, docs. Repo meta & config only β no code logic touched. Use when creating a new repo or polishing an existing one.
repo: github/awesome-copilot
Popularity
- GitHub stars
- 40k
- Ranking position
- #7399
- License
- MIT
- Updated
- 10/15/2026
Comments
- β¦
More skills from this repository
acquire-codebase-knowledge
40kHelps your agent understand and document an existing code project. It's useful for onboarding new people or getting an overview of the architecture.
acreadiness-assess
40kEnables your agent to assess a project's readiness for AI and generate a report. It's useful for understanding how well a project is prepared to use AI tools.
acreadiness-generate-instructions
40kHelps your agent create instructions for AI tools based on an assessment. It's useful for improving how AI interacts with code and closing identified gaps.
acreadiness-policy
40kEnables your agent to help define or apply policies for AI project assessment. It's useful for standardizing how projects are evaluated and ensuring compliance.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.