skills-config
Creates or validates a repository's .agent-skills.json against the schema, detecting defaults from the repository and the tracker, and reporting any label the tracker is missing. Use when setting up a
SKILL.mdskills/meta/skills-config/SKILL.md
GitHubskills-config
Create or validate the per repository skills configuration, never the tracker's labels.
When to use
- A repository has no
.agent-skills.jsonand is about to use the work loop. - Asked to check, fix or regenerate the configuration.
Steps
- No file present: detect sensible values, write a new
.agent-skills.json. - File present: validate it structurally against
agent-skills.schema.jsonwithjq, report every key that fails the schema. - Detect
pr.basefrom the repository's default branch. - Detect
verify:task checkwhen the Taskfile has achecktarget. Without one, the small targets (lint:*,test:*,validate) joined with&&. Without a Taskfile, the detected tool commands joined the same way. - Detect
release.toolfromrelease-me.yamlor release-please's config file, whichever exists. Neither existing leavesreleaseunset. - Confirm every configured label exists on the tracker with
gh label list. - A label the config names but the tracker lacks: report it as missing for the infrastructure repository to create. Never create it here.
- Explain every key actually set, in one line each, before writing the file.
- Read
AGENTS.mdfor## Deviationsand report every entry found, next to the explanation of the config keys. - Include the
$schemakey pointing at the schema's raw URL. - Write the file with the file tools, never with shell redirection.
Guardrails
- Absent key means the schema default applies. Never invent a value the repository does not need.
- Labels are infrastructure as code. This skill reports a gap, it never closes one.
- Structural validation only: a value that parses but contradicts repository reality is named, not silently kept.
- Deviations are reported, never silently applied and never silently ignored.
Config
This skill writes and reads .agent-skills.json itself; the schema is agent-skills.schema.json
at the root of the skills repository.
References
- Schema:
agent-skills.schema.json. - Label defaults:
~/.claude/skills/README.md.