Audit found the spec accurate through the skills port but silent on the release tooling. Added section 12 (publish.py guards and exit codes, roller-tag tolerance, immutable published versions, absolute-link README rule found at 0.1.0, MANIFEST.in and dist/ policy) and refreshed the item 2.1 tree (publish.py, MANIFEST.in, dist/, skill support files). CONTRIBUTING gains a short Releasing section pointing at SPEC 12. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
2.7 KiB
Contributing to phronesis
A skill is one directory under skill/ containing a single
SKILL.md file. It must be self-contained: anyone (or any agent)
reading only that file should be able to follow the skill.
Adding a skill
-
Create a directory named after the skill:
skill/<kebab-case-name>/. -
Add
skill/<name>/SKILL.mdwith this front matter:--- name: <name> # must equal the directory name version: x.y.z # semantic, start at 1.0.0 description: <one line> # what the skill is for category: <kebab> # lowercase label, used by `phronesis <category>` --- -
Write the instructions below the front matter. Cover identity, rules, workflow, and examples; avoid references that only make sense inside your machine.
-
Add the skill to the table in README.md.
-
Run the checks. All of them must pass:
python -m pip install -r requirements.txt python -m pip install -e . python autotest.py -
Commit with a semantic message, e.g.
feat: add skill <name>. A new category is announced to users the moment the skill is bundled, sincephronesislists it live.
Changing a skill
- Bump the
versionin the front matter for every change: patch for fixes, minor for additions, major for breaking changes. - Keep
SKILL.mdthe only required file; support files are allowed but must stay inside the skill's directory.
Check failures
autotest.py <check> runs one check; without arguments it runs all:
sanity— LF line endings, no private keys, file size limitpython_syntax—.pyfiles parsepycodestyle— PEP 8 on.pyfilesshellcheck— shell scripts lint cleanfrontmatter— YAML header valid,name,version, andcategorycorrectmarkdown— markdownlint (md013line length andmd033inline HTML are ignored)pytest— the suite intest/, coverage floor 75 percent
Style
- KISS/YAGNI: a skill that fits in one screen beats a manual.
- Plain, imperative sentences. Lists over prose where order matters.
- Test what you preach: a TDD skill is itself written cleanly.
Releasing
- Bump
versioninpyproject.toml, commit, then tag the release:git tag -a v<x.y.z> -m "..."and move thestable/latestroller tags (git tag -f ...,git push -f origin stable latest). python publish.pyguards, builds, and twine-checks exactly the tagged version;python publish.py --uploadpublishes it (SPEC.md section 12). A published version is immutable: any change, even to the README, is a new version.
License
By contributing you agree your work is released under the MIT license.