2.8 KiB
Contributing to agent-skills
Thanks for helping improve agent-skills. Contributions should make a skill more useful, more portable, or easier for humans and agents to discover.
Before you start
- Read
AGENTS.mdfor repository-wide conventions. - Read the target skill's
SKILL.mdandREADME.mdbefore changing it. - For a new skill or a substantial change, open an issue first so the scope can be discussed.
- Do not include credentials, private infrastructure details, or deployment-specific paths.
Skill requirements
Each skill must:
- Live in its own directory with a matching lowercase, hyphenated name.
- Include
SKILL.mdwith valid YAML frontmatter. - Include a human-facing
README.mdwith the required sections described inAGENTS.md. - Keep core instructions concise and put deeper material in
references/,templates/, orscripts/. - Use relative links that work from a fresh clone.
- Describe when the skill should be loaded, and identify the nearest alternative when overlap matters.
Development
Clone the repository and run the validator from its root:
git clone https://github.com/magnus919/agent-skills.git
cd agent-skills
ruby scripts/validate-skills.rb
ruby scripts/validate-skill-quality.rb --base origin/main
The structural validator checks the whole repository. The quality validator checks only added, renamed, modified, or uncommitted SKILL.md files relative to the supplied base. Changed descriptions must begin with an imperative verb and define a negative boundary in the description or a When not to use section. Generic no-op instructions are reported as warnings. The same validation runs in GitHub Actions for pushes and pull requests.
If a skill includes executable scripts or a package, run its documented checks as well and include the commands and results in your pull request.
Deprecating a skill
When replacing a skill, preserve its old directory as a routing stub. Prefix its description with Deprecated: use <replacement>, explain the migration in the stub, and remove it only after compatibility is no longer required.
Pull requests
- Create a branch from
main:feat/short-description,fix/short-description, ordocs/short-description. - Keep each pull request focused on one logical change.
- Use a clear Conventional Commit subject, such as
feat(skill): add ...orfix(skill): .... - Add or update documentation with the behavior it describes.
- Do not force-push after review unless a maintainer asks you to.
- Complete the pull request checklist and disclose meaningful AI assistance.
A maintainer may ask for an issue before reviewing a large design change. Small documentation fixes and clear bug fixes can go directly to a pull request.
License
By contributing, you agree that your contribution is released under the MIT License in this repository.