MR
Mayur Rathi
@github
⭐ 34.1k GitHub stars

Repo-Standardizer

Repo-Standardizer is an code AI skill with a core value of Polish any GitHub repository's surface — labels (emoji rating tiers, P0–P3 priority, impact severity), issue forms, PR template, CI workflows, CODEOWNERS, rulesets, docs. It helps developers solve real-world problems in the code domain, boosting efficiency, automating repetitive tasks, and optimizing workflows.

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

Last verified on: 2026-10-06

Quick Facts

Category code
Works With GitHub Copilot, Claude
Source github/awesome-copilot
Stars ⭐ 34.1k
Last Verified 2026-10-06
Risk Level Low
mkdir -p ./skills/repo-standardizer && curl -sfL https://raw.githubusercontent.com/github/awesome-copilot/main/skills/repo-standardizer/SKILL.md -o ./skills/repo-standardizer/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

# 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**: `gh` CLI (authenticated), `git`, `jq`, `python3` — verify

> they exist before starting (`which gh git jq python3`).


1. Authenticate — check gh login first


bash
gh auth status 2>/dev/null || echo "NOT_LOGGED_IN"

- **Logged in** → continue; print `gh api user -q .login` so the user knows which account will act.

- **Not logged in** → STOP. Tell the user (do not guess):

1. Run `gh auth login` (web/device flow), **or**

2. Export a token: `export GH_TOKEN=ghp_xxx` — needs `repo`, `workflow` (for CI files) and, for org repos, `admin:org` (or `admin: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 login` is impossible in this environment (headless), suggest `gh auth login --with-token` reading from a file the user created.


Verify the acting account can write to the target:


bash
# 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


bash
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


bash
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):


bash
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.md` and the PR tem

🎯 Best For

  • GitHub Copilot users
  • Claude users
  • Software engineers
  • Development teams
  • Tech leads

💡 Use Cases

  • Code quality improvement
  • Best practice enforcement

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open GitHub Copilot or Claude and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply Repo-Standardizer to Your Work

    Open your project in the AI assistant and ask it to apply the skill. Start with a small module to verify the output quality.

  4. 4

    Review and Refine

    Review AI suggestions before committing. Run tests, check for regressions, and iterate on the skill output.

❓ Frequently Asked Questions

Is Repo-Standardizer compatible with Cursor and VS Code?

Yes — this skill works with any AI coding assistant including Cursor, VS Code with Copilot, and JetBrains IDEs.

Do I need specific dependencies for Repo-Standardizer?

Check the install command and Works With section. Most code skills only require the AI assistant and your codebase.

How do I install Repo-Standardizer?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/repo-standardizer/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Skipping validation

Always test AI-generated code changes, even for simple refactors.

Missing dependency updates

Check if the skill requires updated dependencies or new packages.

🔗 Related Skills