/code-quality:repository-documentationfrom Code Quality
Generate or update a project's README.md plus a ready-to-paste GitHub repository description and topics list, following the Szum-Tech documentation standard. Auto-detects project type (web app, mobile app, npm package, CLI tool, monorepo, Claude plugin, Python API service such as a FastAPI template with uv) and confirms it with the user before generating. Use whenever the user wants a README written, refreshed or fixed, asks to document a repo or a freshly scaffolded project, or needs the GitHub About text, description or topics — even if they only say "this repo has no docs" or "the README is outdated after the refactor". Also invoked as /repository-documentation. Not for CLAUDE.md (use claude-md-improver) or for catching a repo up with its template (use template-sync).
Ships in Code Quality. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Generates production-grade README files matching the Szum-Tech standard
(see references/section-standards.md for the canonical structure) and
produces two extra GitHub artifacts the user can paste directly into the
repo settings:
All output is in English by default, regardless of conversation language. If the user explicitly requests another language, use it for README.md only. The GitHub description and topics must always remain in English — they serve GitHub's global search and discoverability.
Follow these steps in order; a step is skipped only under its stated condition (Step 5, and the gh sub-steps of 9b).
Read the configuration files in the repository root (package.json,
app.json, pubspec.yaml, turbo.json, next.config.*, bin/, the plugin
manifests, and for Python pyproject.toml, uv.lock / poetry.lock /
pdm.lock, .python-version, Makefile) in parallel Read/Glob calls, and apply the priority-ordered
rules in references/detection-rules.md — first match wins.
Build an evidence list (e.g., ["expo@~50 in deps", "app.json present", "metro.config.js"])
so you can show the user why you picked the type.
Call AskUserQuestion with:
If user picks "Other", ask a follow-up free-text question to capture the
custom type, then fall back to templates/generic.md.
Extract everything you can from the filesystem without asking:
package.json#name / app.json#name / directory namepackage.json#descriptionpackage.json#author / git configpackage.json#license / LICENSE filepackage.json#repository.url / git remotepackage.json#engines.node / .nvmrcpnpm-lock.yaml, yarn.lock, bun.lockb, default npmpackage.json#scriptsdependencies and notable
devDependencies. Capture, for each one, the exact package name and
whether it's a regular / dev / peer dependency, plus its npm scope (if
any). This is needed to build dependency-version badges in Step 6 — see
references/badges-registry.md → Dependency version badges.Glob on * (depth 2) to build Project Structure sectionPython projects read the same fields from other files:
[project] in pyproject.toml ([tool.poetry] for Poetry).python-version, else [project].requires-pythonuv.lock → uv, poetry.lock → Poetry, pdm.lock → PDMMakefile's .PHONY targets (else [tool.poe.tasks], justfile, or the
uv run … lines in CI); list every target, never one that is not there[project].dependencies and [dependency-groups], each looked up in the
lockfile under its normalized name for the badges in Step 6.env.example and the settings classgh repo view --json isTemplate,defaultBranchRefpackage.json#description is often too short or stale. Before writing the
description and tagline, read the actual source to understand what the project
really does. What to read (in priority order):
src/index.ts, src/main.ts, app/layout.tsx,
src/App.tsx, src/cli.ts, bin/<name>, and for Python
src/<package>/main.py, __main__.py, config.py and the routers —
reveals core API surface and app structure.src/, app/, lib/, packages/ with
Glob("**/*.ts", depth: 3). Read the most meaningful files (hooks,
services, routes, components with complex logic). Skip generated files,
node_modules, and test fixtures.docs/, CHANGELOG.md, CHANGELOG.json,
.changeset/*.md, any .md in root other than README.next.config.*, vite.config.*,
turbo.json, expo-plugins, feature flag configs. They reveal
integrations (auth, DB, CDN, analytics) not visible in package.json.app/**/page.tsx or
pages/**/*.tsx to list all routes; this reveals scope (dashboard,
auth flows, API surface, etc.)..claude-plugin/plugin.json and SKILL.md files to enumerate capabilities.From this research, synthesise:
Use this synthesis as the source of truth for the tagline, the Features
section, and the GitHub description. Do not rely solely on package.json#description.
If anything critical is still missing after this research, ask in ONE
AskUserQuestion round (group all questions). Do not ask about things you
can read from disk.
Read the template for the confirmed type: web-app,
mobile-app, npm-package,
cli-tool, monorepo,
claude-plugin,
python-service, or
generic as the fallback. The template uses
{{placeholders}} that map directly to fields gathered in Step 3.
Read the current README.md. If present:
Acknowledgments, Contact & Support, License
(if it points to a specific file), and any H2 sections not present in
the template (treat them as user-authored).package.json#name).<!-- begin:template -->,
<!-- only:example --> and the like) around the same content in the
regenerated sections. A template repo's setup script strips lines by
them; losing one breaks every project made from it. See
templates/python-service.md → Audience markers.grep -rn "README" tests/ scripts/
first; a heading or phrase a test looks for stays verbatim, even without
the standard emoji (see Tests that read the README in the same template).If no README exists, skip this merge step.
Substitute placeholders, attach preserved sections at their original positions, validate Markdown headings are properly nested (H1 → H2 → H3), ensure the Table of Contents links match the actual section anchors.
Apply standards from references/section-standards.md:
Read references/badges-registry.md and pick badges matching the detected
stack (license, package version, build, coverage, etc.).
Render every dependency list as dynamic version badges, as specified in
references/section-standards.md → Dependencies / tech stack rendering.
One sentence, ≤ 350 characters, English. Format:
{What it does} for {target users} — {key benefit / standout feature}.
Example: Enterprise-ready Next.js 16 template with TypeScript, Vitest, Playwright, Storybook, and GitHub Actions CI/CD pre-configured for production deployment.
See references/github-metadata.md for examples per project type.
5–20 tags, all lowercase-kebab-case, no spaces, no emoji, ≤ 50 chars
each. Compose from:
nextjs, expo, npm-package, cli)typescript, react, tailwindcss)vitest, playwright, storybook)design-system, boilerplate, template, monorepo)Prefer well-known GitHub topics (check that they exist on
github.com/topics if uncertain). Avoid niche names no one searches for.
See references/github-metadata.md for curated topic pools per type.
Run every item against the draft README, description and topics. Fix each failure and re-check until all pass; only then write the README and touch GitHub.
<div align="center"> and contains title + at least one badge + taglineGlob)LICENSE file (read it; don't assume MIT)package.json — or, for Python, every Makefile target as make <target> (no invented commands)begin/end counts unchanged and balanced{{placeholders}} remain unsubstituted in the final fileOnce the quality bar passes, Write the generated content to README.md
in the repository root.
This overwrites the repository's description and all topics on GitHub, and
the old values are not recoverable afterwards — so read them first and get
approval. If any gh command fails, record the error and continue to 9c —
do NOT abort.
Check auth:
gh auth status
If the command fails (not installed or not logged in), skip steps 2–5 and note the reason in the report.
Get repo owner/name:
gh repo view --json nameWithOwner -q .nameWithOwner
If this fails (not a GitHub remote, no remote configured), skip steps 3–5 and note the reason.
Read current state and ask:
gh repo view --json description,repositoryTopics
Show old vs new description and topics, then ask once with
AskUserQuestion whether to apply. If the user declines, skip steps 4–5
and print the manual commands in the report. Keep the old values in the
report so they can be restored.
Set description:
gh repo edit --description "<generated description>"
Replace all topics (PUT overwrites existing topics completely) with the
list validated in Step 8, one -f "names[]=<topic>" argument per topic:
gh api repos/<owner>/<repo>/topics -X PUT -f "names[]=nextjs" -f "names[]=typescript" -f "names[]=vitest"
Output a structured summary. Use the exact layout below, filling in the
correct values. Omit the [If updating…] block for new READMEs. Always end
the GitHub section with the description text and topic list, whether or not
the update succeeded.
─────────────────────────────────────────────────────────────────
Repository Documentation — Complete
─────────────────────────────────────────────────────────────────
📄 README.md
✅ Written to repository root
[If updating existing README:]
Preserved: Acknowledgments · Contact & Support · License
Regenerated: Header · Features · Getting Started · Scripts ·
Project Structure · [per-type sections]
─────────────────────────────────────────────────────────────────
🐙 GitHub repository
[Use the matching status block:]
On success:
✅ Description updated (XXX/350 chars)
✅ Topics replaced (N tags)
On auth failure:
⚠️ GitHub update skipped — gh not authenticated
Run: gh auth login
On other failure:
❌ GitHub update failed — <short error message>
Manual fallback commands:
gh repo edit --description "..."
gh api repos/OWNER/REPO/topics -X PUT -f "names[]=t1" ...
Description (XXX/350 chars):
<description text>
Topics (N):
<space-separated list>
─────────────────────────────────────────────────────────────────
references/badges-registry.md (opens in a new tab)references/detection-rules.md (opens in a new tab)references/github-metadata.md (opens in a new tab)references/section-standards.md (opens in a new tab)templates/claude-plugin.md (opens in a new tab)templates/cli-tool.md (opens in a new tab)templates/generic.md (opens in a new tab)templates/mobile-app.md (opens in a new tab)templates/monorepo.md (opens in a new tab)templates/npm-package.md (opens in a new tab)templates/python-service.md (opens in a new tab)templates/web-app.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub janszewczyk/claude-plugins --plugin code-quality3 skills in this plugin
/template-syncCatch a repository created from a GitHub template ('Use this template') up with that template: finds what the template changed since the last sync — dependency and runtime bumps, CI, linters and build config, tooling, containers, AI-agent config, scaffolding — sorts each change into missing, already done by hand, or deliberately different, and writes an ordered plan. After approval it applies the plan on its own branch, one commit per step, ends with a Template-Sync trailer commit and opens a pull request. Changes nothing until the plan is read. Use for 'sync with the template', 'what did the template change that we don't have', 'catch this repo up with the starter', 'template drift', 'zaktualizuj repo do template'u', 'czego brakuje względem template'a', 'zsynchronizuj z szablonem'. NOT for shared .claude/rules files (sync-rules), an upstream fork remote, bumping deps to latest (update-deps), or migrating one component./update-depsUpdate a project's dependencies safely in sequential, theme-grouped batches: Node (npm, pnpm, yarn, bun), plus Python (uv, Poetry, PDM, Pipenv, pip-tools, pip) and Java/JVM (Maven, Gradle) in beta. Detects the repository's ecosystems first and loads only the matching profile. Works on its own branch: verifies each group (type-check, lint, build, tests), commits it or rolls it back, pauses before any major bump, runs a security audit on the final tree, and opens a pull request with the full report. Use whenever the user wants to update, upgrade, or bump packages or libraries in bulk — "update my deps", "upgrade everything to latest", "update Storybook / Next / Vitest", "bump the pom.xml / Gradle dependencies", "update the pyproject / requirements.txt", "update Spring Boot / Django" — even if they don't say "update-deps". Prefer the library-updater agent for a single one-off npm package change.
Other plugins' skills for the same job