# Github Topics

> Generates and applies GitHub repository topics by analyzing the codebase, validating candidates against existing GitHub topics, and setting them via the CLI. Triggers on "add topics", "set repo tags", "update GitHub topics", or managing repository topics.

- Skill: `h2cone/github-topics` (Agent Skill)
- Install (CLI): `npx skillmds@latest add h2cone/github-topics`
- Raw SKILL.md: https://api.skillmd.com/api/skills/h2cone/github-topics/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: h2cone (https://skillmd.com/u/h2cone)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/h2cone/github-topics

---


Analyze the repository and recommend 10-20 candidate topics. Topics must be lowercase and hyphenated (e.g., `command-line-tool`, `typescript`).

## Validate topics

For each candidate, verify it exists on GitHub:

```bash
gh search repos --topic=<topic> --limit=1 --json fullName --jq 'length'
```

Drop any topic that returns `0`. Show the user which topics were removed and why.

## Apply topics

```bash
gh repo edit --add-topic topic1 --add-topic topic2 --add-topic topic3
```

Print the final list and a link to the repository.

