← ClaudeAtlas

github-repositorylisted

Configure a GitHub repository's description, homepage, topics, and solo-developer settings via gh, derived from the codebase. Use when tidying repo settings.
fmind/dot · ★ 4 · Code & Development · score 80
Install: claude install-skill fmind/dot
# GitHub Repository Derive a repository's description, homepage, and topics from its codebase and apply them with `gh repo edit` together with solo-developer settings: squash-only merges, secure defaults, a decluttered sidebar. ## Workflow 1. **Extract metadata** from the codebase: - Project metadata: Python `pyproject.toml` (`[project]` name, description, and URLs). - `README.md`: the first paragraphs give a one-line description under ~140 characters. - Homepage: derive from hosting, e.g. `https://<owner>.github.io/<repo>` for GitHub Pages. - Topics: 3 to 6 lowercase tags for language, frameworks, tools, or domain (`agent`, `python`, `cli`); letters, numbers, and hyphens only, 50 characters max, 20 per repository. 1. **Inspect the current state** so the edit stays idempotent; stop when there is no GitHub remote or `gh` is not authenticated: ```bash gh auth status git config --get remote.origin.url gh repo view --json nameWithOwner,visibility,isInOrganization,description,homepageUrl,repositoryTopics,deleteBranchOnMerge,squashMergeAllowed,mergeCommitAllowed,rebaseMergeAllowed,hasIssuesEnabled,hasProjectsEnabled,hasWikiEnabled,hasDiscussionsEnabled ``` 1. **Build one consolidated edit**: add the desired topics, remove every current topic not in that desired set, and append `--enable-issues=false` only when the project tracks issues elsewhere. Query the repository REST payload and add the two secret-scanning flags only for a public repository or w