/h2t-dev:docs-sync-labelsfrom h2t-dev
Sync canonical GitHub labels (from references/standards/labels.json) to the repositories you name, or those in your repo mapping, via gh CLI. Triggers on "sync labels", "update labels", "apply labels to repos", "docs-sync-labels".
Ships in h2t-dev. 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.
Sync canonical labels defined in references/standards/labels.json to GitHub repos using the gh CLI. The owner is never assumed: name owner/repo, or set H2T_GITHUB_OWNER (or github.owner in user.yaml) to use bare repo names.
Default behaviour: dry-run (preview only). Use --apply to actually write labels.
Run this before any other command of this skill:
h2t-ops version --expect 4.1.3 --json
Act on the result, in this order:
"ok": true — continue."ok": false — show the user error.hint as it is and stop this skill until
it is resolved. Do not run anything the hint names unless the user asks you to: on
reason: path it is a command for the user to decide on. error.details.reason names the
case: not_installed, version or path.command not found — read ~/.h2t/run/install.env
(grep -E '^(STATE|H2T_HOOK)=' ~/.h2t/run/install.env). With STATE=ready the install
is fine and PATH does not reach it: show the directory of the H2T_HOOK= path, ask the
user to restart the harness, and offer uv tool update-shell for them to run. Without
it there is no install: give the user uvx --isolated --python 3.12.11 --managed-python -c "https://github.com/lichtpfad/h2t-skills/releases/download/v4.1.3/constraints.txt" --from "h2t-ops @ https://github.com/lichtpfad/h2t-skills/releases/download/v4.1.3/h2t_ops-4.1.3-py3-none-any.whl" h2t-setup sync.uvx --isolated --python 3.12.11 --managed-python -c "https://github.com/lichtpfad/h2t-skills/releases/download/v4.1.3/constraints.txt" --from "h2t-ops @ https://github.com/lichtpfad/h2t-skills/releases/download/v4.1.3/h2t_ops-4.1.3-py3-none-any.whl" h2t-setup sync.The sync is the h2t-docs-sync-labels command; the label set it applies ships with it.
owner/repo. A bare name needs github.owner; without it the command exits 3 and names the setting.github.owner. An empty mapping exits 3: register repos, or pass owner/repo.Run without --apply to preview every label that would be created/updated:
h2t-docs-sync-labels # the repos in your repo mapping
h2t-docs-sync-labels <owner>/<repo> <owner>/<repo> # specific repos
Output shows label-name (category) per repo. No GitHub API calls are made.
After confirming the dry-run output looks correct, run with --apply:
h2t-docs-sync-labels --apply # the repos in your repo mapping
h2t-docs-sync-labels <owner>/<repo> <owner>/<repo> --apply # specific repos
The script calls gh label create --force for each label. --force updates existing labels.
Exit 0 on success; exit 1 if any label failed.
Report count of repos synced and whether any errors occurred.
| Error | Cause | Fix |
|---|---|---|
labels.json not found | The package's bundled standards are missing labels.json | Reinstall the CLI, or point H2T_DEV_ROOT at your own docs/standards/ |
gh CLI not found | gh not on PATH or wrong path in docs/common.py | Install gh or fix GH constant |
FAIL: <label> per label | GitHub API error (auth, rate-limit, repo not found) | Check gh auth status, verify the owner/repo you passed |
h2t-docs-sync-labels: command not found | The CLI is not installed or not on PATH | Follow the version check at the top of this skill |
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub lichtpfad/h2t-skills --plugin h2t-dev5 skills in this plugin
/docs-lintAudit and maintain documentation/structure health in h2t-stack repos. Full pipeline: sniff → gate → analyze → plan → issues → fixes → validate. Scoped to repos using Claude Code + h2t standards./github-issuesThis skill should be used when creating or updating GitHub issues. The issue contract itself lives in the repository's issue forms; this skill covers what the forms cannot — sizing, labels, milestones, duplicate check, and the gh command shape. Triggers on "create issue", "add to backlog", "github issue"./milestone-closureThis skill should be used when all issues in a GitHub milestone are closed and the phase is complete. Triggers on "close milestone", "milestone done", "phase complete", "закрыть milestone", or when the last issue in a milestone is closed.