Langsung ke konten
Skillpedia
Pemrograman umum40k Β· #7399

repo-standardizer

Fungsinya

Agent AI ini membantu merapikan dan memperbaiki tampilan repository GitHub. Agent ini menambahkan atau memperbarui file konfigurasi dan dokumentasi, seperti issue forms, PR templates, labels, dan CI workflows, tanpa mengubah kode itu sendiri.

Kapan dipakai

  • βœ“Saat membuat repository baru dan membutuhkan pengaturan awal.
  • βœ“Saat repository yang sudah ada terlihat berantakan atau belum lengkap.
  • βœ“Untuk menyeragamkan tampilan dan aturan di beberapa repository.

Link skill

https://github.com/github/awesome-copilot/blob/main/skills/repo-standardizer/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/github/awesome-copilot/blob/main/skills/repo-standardizer/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œRapikan repository GitHub ini, tambahkan templates, labels, dan CI workflows.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent memeriksa kondisi repository Anda saat ini, menemukan apa yang kurang atau sudah usang, lalu menerapkan konfigurasi standar. Prosesnya aman karena tidak mengubah kode proyek Anda.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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: gh CLI (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 .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:

# 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.md and 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.

…

Pertanyaan umum

Apa arti 'idempotent'?

Artinya Anda bisa menjalankan agent berkali-kali, dan hasil akhirnya akan selalu sama tanpa menimbulkan masalah atau menggandakan informasi.

Apakah agent ini mengubah kode proyek saya?

Tidak, agent hanya mengubah file konfigurasi dan dokumentasi repository, seperti labels, templates, dan CI workflows. Kode proyek Anda tetap utuh.

Apakah saya perlu menginstal sesuatu?

Ya, Anda perlu menginstal beberapa tool di komputer, seperti `gh` (tool command-line GitHub), `git`, `jq`, dan `python3`, serta sudah login ke akun GitHub Anda.

Detail

Deskripsi asli dari pembuat

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

Popularitas

Bintang GitHub
40k
Peringkat
#7399
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa