Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Um comando direto ignora o prompt de revisão. Verifique a origem antes de executá-lo.
The github-repo skill establishes strict standards for building, organizing, sanitizing, and maintaining production-ready GitHub repositories. It serves as a sister skill to openwiki-skill: while openwiki-skill manages deep wiki documentation in .openwiki/ and continuous updates, github-repo governs repository layout, top-tier README design, CI/CD pipelines, NPM release workflows, and strict privacy/security audits.
1. When to Invoke This Skill
Repository Initialization: When creating a new repository or preparing an existing codebase for open-source publication.
Pre-Push Sanitization Audit: Before committing or pushing code, to ensure no absolute local paths, API keys, foreign repository names, or cloned user metadata are published.
Workflow Setup: Setting up automated testing (ci.yml), automated NPM releases (publish.yml), or .gitignore rules.
README Overhaul: Restructuring a project's README.md to conform to modern open-source standards.
Whenever the github-repo skill is invoked, the agent MUST perform an automated pre-flight check:
Check .openwiki/ Existence: Verify if .openwiki/ directory exists and contains quickstart.md, architecture.md, and release notes.
Automatic Execution of openwiki-skill: If .openwiki/ is missing, empty, or stale, automatically invoke openwiki-skill first before performing repo structure or README edits.
Handshake: Allow openwiki-skill to scan the codebase and populate .openwiki/, then resume github-repo tasks (README layout, dynamic badges, CI/CD workflows, sanitization audit).
4. High-Impact README Layout Standard & Dynamic Badges
A top-tier README.md MUST include a clean row of dynamic shields/badges directly under the main title. Badges MUST be tailored to the specific repository owner, repository name, tech stack, license, test coverage, and key project metric.
Standard Badge Row Formula
# Project Name
[](https://github.com/<owner>/<repo>/actions)
[](https://github.com/<owner>/<repo>)
[](https://github.com/<owner>/<repo>)
[](LICENSE)
[](https://github.com/<owner>/<repo>)
> **High-impact tagline explaining what the project does in 1-2 concise sentences.**
Dynamic Badge Adaptation Guidelines
CI Status Badge: Points to .github/workflows/ci.yml in the specific repository (CI | passing).
Coverage Badge: Reflects actual test suite coverage (e.g. coverage | 94%).
Runtime / Language Badge: Matches the primary runtime (e.g., python | 3.10+, node | 18+, go | 1.22+).
Key Metric Badge: Highlights the primary value or performance metric (e.g. avg savings | 67%, downloads | 10k+).
🌐 Multi-Language README Standard (Trilingual Switcher)
When preparing repositories for international audiences, provide multi-language READMEs with a top-bar language navigation switcher placed directly under the header banner:
File Naming Standards:
README.md (Default English - GitHub root entrypoint)