oss-polish
Skill3 starsChanged 4 months agoMITView on GitHub
Use when polishing an open source project's GitHub presence — README, topics/About description, commit-history narrative story, and trending-repo positioning. Triggers on "polish my repo", "beautify open source project", "开源项目美化", "优化项目展示".
In this repository49 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- brainstormSkill
- oss-strategySkill
- specSkill
- researchSkill
- api-designSkill
- architectureSkill
- codebase-designSkill
- design-researchSkill
- domain-modelingSkill
- frontend-designSkill
- imagegenSkill
- image-to-codeSkill
- prompt-engineeringSkill
- prototypeSkill
- schema-designSkill
- auth-implementationSkill
- breakdownSkill
- context-engineeringSkill
- error-handlingSkill
- i18nSkill
- implementSkill
- multi-agent-orchestrationSkill
- cost-optimizationSkill
- performanceSkill
- refactoringSkill
- simplifySkill
- api-testingSkill
- e2e-testingSkill
- load-testingSkill
- tddSkill
- test-generationSkill
- a11y-reviewSkill
- code-reviewSkill
- debuggingSkill
- lintingSkill
- security-reviewSkill
- ci-cdSkill
- deprecation-migrationSkill
- git-workflowSkill
- shippingSkill
- documentation-auditSkill
- handoffSkill
- incident-responseSkill
- observabilitySkill
- purity-auditSkill
- skill-authoringSkill
- using-skillsSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 25
Read entry files (package.json, go.mod, Cargo.toml, requirements.txt, mkdocs.yml).
- Distinctive: line 27
Check existing README.md and repo metadata.
- Very specific: line 28
If README.md exists, ask: update in place or back up to README-backup.md first?
- Distinctive: line 65
Write the About description (GitHub allows ≤350 chars): one compelling sentence covering what + who + why.
- Very specific: line 96
Run python references/scripts/github_fetcher.py with TOPIC=<your-domain> to fetch top repos by stars.
- Very specific: line 98
Run python references/scripts/readme_fetcher.py (or the batch helper) to pull competitor README summaries.
- Very specific: line 120
After user approval, apply changes via your available GitHub tooling — the gh CLI or GitHub MCP (create_or_update_file for README/LICENSE.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Open Source Project Polish
One-pass workflow to turn a bare repo into a professional, discoverable open source project. Four phases: README → topics/About → commit-history narrative → trending-repo positioning.
When to use
- Preparing a project for public release or first launch
- Repo has working code but a bare README, missing topics, or no About description
- Want a commit-history narrative (
REPOSITORY_SUMMARY.md+THE_STORY_OF_THIS_REPO.md) - Researching trending repos in a domain for positioning benchmarking
Not for: open source business model or commercialization strategy (use oss-strategy), or general project documentation (use documentation-audit).
Steps
1. Analyze project
- Read entry files (
package.json,go.mod,Cargo.toml,requirements.txt,mkdocs.yml). - Scan source dirs for architecture and key features; note tech stack, target users, unique value.
- Check existing
README.mdand repo metadata. - If
README.mdexists, ask: update in place or back up toREADME-backup.mdfirst?
Result: a one-paragraph summary of what the project does, who it's for, and what's special.
2. Generate README
Produce a professional README.md with sections in this order:
- Title (H1) — repository name.
- Badges — shields.io format. Order: build status → tech stack → hosting → license.
Pick templates from
references/badges.md. Limit 5–10 for readability. Do NOT add a self-link "GitHub repo" badge — readers are already on GitHub. - Live site link — if deployed (GitHub Pages, Netlify, Vercel).
- Overview — 1–3 paragraphs answering what / who / why / unique. Hook a visitor in <15s.
- Site metrics (documentation/educational repos) — for content-heavy repos (docs sites,
courses), run
python references/scripts/collect-site-metrics.py <repo-path>; emit a| Metric | Count |table (markdown files, words, chapters, glossary…). For code-focused repos, skip this step —github_fetcher.pycovers repo metrics instead. - Getting Started — prerequisites, clone, install, build/serve, deploy.
- Repository Structure — concise ASCII tree (10–20 lines), representative not exhaustive.
- Reporting Issues — link to GitHub Issues + bug-report template.
- License — match
LICENSEfile /mkdocs.ymlcopyright; default CC BY 4.0 for educational content (CC BY-SA if share-alike is desired); reserve NC (NonCommercial) only for projects that explicitly restrict commercial use, MIT or Apache-2.0 for code. - Acknowledgements — key dependencies only.
- Contact — maintainer info.
- Optional — Contributing, Citation (BibTeX), Changelog.
Formatting: ATX headers, blank line before lists, code fences with a language tag, lines <120 chars.
3. Topics & About description
- Research trending repos in the same domain — what topics do they use? Run
python references/scripts/github_fetcher.pywithTOPIC=<domain>env var to list repos by stars; inspect each repo'stopicsfield. - Identify 8–15 highly relevant topics; rank by discoverability × relevance × search volume.
- Select the final list (max 20 — GitHub limit).
- Write the About description (GitHub allows ≤350 chars): one compelling sentence covering what + who + why.
Present the final list + rationale to the user before applying. Apply via GitHub API
(PUT /repos/:owner/:repo/topics) and repo settings (description).
4. Commit-history narrative story
Generate two files in the repo root using git data as evidence — write the files directly, do NOT paste markdown to chat.
REPOSITORY_SUMMARY.md— overview, architecture, key components, technologies, data flow, team/ownership.THE_STORY_OF_THIS_REPO.md— chronicles (year in numbers), cast of characters (contributors + specialties), seasonal patterns, great themes (feat/fix/refactor), plot twists/turning points, current chapter.
Git commands to run systematically (POSIX forms for Git Bash):
git rev-list --all --count— total commitsgit shortlog -sn --since="1 year ago" | head -20— top contributorsgit log --since="1 year ago" --format="%ai" | cut -c1-7 | sort | uniq -c | sort -rn | head -12— monthly activitygit log --since="1 year ago" --oneline --grep="feat\|fix\|update\|add\|remove" | head -50— change themesgit log --since="1 year ago" --name-only --oneline— hotspot filesgit log --since="1 year ago" --merges --oneline | head -20— collaboration patterns
Be specific: actual file names, commit messages, contributor names. Evidence-based — explain why patterns exist (holidays, releases, incidents).
5. Trending-repo positioning
- Run
python references/scripts/github_fetcher.pywithTOPIC=<your-domain>to fetch top repos by stars. - Run
python references/scripts/readme_fetcher.py(or the batch helper) to pull competitor README summaries. - Benchmark: how does this project compare on stars, README quality, topic coverage, positioning?
- Produce: a 5–10 word tagline, recommended launch channels (HN / Reddit / Dev.to / DevHunt by domain), and a short positioning paragraph noting differentiators.
GH_TOKEN env var is optional but recommended (5000 req/hr authenticated vs 60 unauthenticated).
6. Consolidated report
Output a single report:
# [Project Name] Open Source Polish
## Analysis Summary — what / stack / audience
## README — full content or diff
## Topics & About — About (≤350 chars), topics list, rationale
## Narrative — links to the two generated .md files
## Positioning — tagline, launch plan, differentiators
## Next Steps — apply checklist (README, topics, About, LICENSE)After user approval, apply changes via your available GitHub tooling — the gh
CLI or GitHub MCP (create_or_update_file for README/LICENSE; GitHub API
PUT /repos/:owner/:repo/topics for topics; repo settings for the About
description).
Output: README.md (polished) + REPOSITORY_SUMMARY.md + THE_STORY_OF_THIS_REPO.md (commit-history narrative), plus topics/About applied via GitHub API.
Verify
- README conforms to best practices — run
python references/scripts/validate-readme.py README.md; score ≥75/100 and no missing required sections (overview, getting started, license, contact). - Topics set on the repo (1–20 topics, all relevant to the project's domain).
- About description set (≤350 chars, covers what + who + why).
- Both narrative files (
REPOSITORY_SUMMARY.md,THE_STORY_OF_THIS_REPO.md) exist in repo root with complete content (not chat output). - Badge URLs resolve; no self-link GitHub-repo badge; all README links work.
- Positioning report includes tagline, launch channels, and ≥1 differentiator vs trending repos.
References
- ${CLAUDE_PLUGIN_ROOT}/references/engineering-principles.md — discipline every skill shares.
- references/badges.md — shields.io templates by category (languages, hosting, license, status, custom).
- references/scripts/ —
collect-site-metrics.py(README metrics),validate-readme.py(README linter, scores 0–100),github_fetcher.py+readme_fetcher.py+config.py(trending-repo research via GitHub API).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

