agentleFS
amyodovamyodov/yet-another-agentic-chat/.claude/skills/releasing/SKILL.md

releasing

Skill4 starsChanged 3 months agoMITView on GitHub

Cut a YAAC release - preconditions, version bump, regenerated manifests, git tag, GitHub release, and the indexes that follow it: PyPI, the MCP registry, Context7. Invoked by the user only; a release never happens on the assistant's own initiative.

  • Reads credentials
  • Sends data out
  • Commits and pushes

9 other projects use a version of this, 1 of them edited.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Commit all of it together.

    line 37
  2. Distinctive:

    If the install surface changed (entry points, commands), update the README's install section to match what the released version actually …

    line 107
  3. Very specific:

    Check docs/tools.md is current (the updating-mcp-tools skill regenerates it) — the released docs should describe the released tools.

    line 111
  4. Distinctive:

    Update the README's Status section if the release shipped or deferred features.

    line 113

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Release a version of YAAC

One release reaches PyPI, the git tag and GitHub release, the official MCP registry, and Context7. Releases only happen when the user asks for one — disable-model-invocation enforces that, and nothing in this file overrides it. The version being released is $1 (e.g. 0.1.1): a bare semver, no leading v — the tag adds it.

The publish pipeline is: GitHub release → .github/workflows/publish.yml → PyPI trusted publisher (OIDC, no tokens). This skill's job is everything around that trigger, in order, aborting loudly at the first failure rather than improvising past it.

1. Preconditions

  • Working tree clean, on main, in sync with origin/main (git status -sb). Unpushed work either goes into the release consciously or waits — it must not ride along by accident.
  • $1 is not already released: absent from git tag and from https://pypi.org/pypi/yet-another-agentic-chat/json.
  • The full local suite passes: uv run pytest.
  • CI is green on HEAD for all three OSes: gh run list --branch main --limit 1. Local tests cannot vouch for Windows; only the matrix can.

2. Version bump

Set version = "$1" in pyproject.toml, run uv sync so uv.lock follows, then regenerate the plugin manifests, which carry the version too:

uv run python ${CLAUDE_SKILL_DIR}/scripts/generate_manifests.py

Commit all of it together. The version in the code and the version being tagged must be the same string — a wheel that reports a different version than its tag is a support puzzle nobody needs.

3. Tag and release

Push the bump first, then wait for its own CI run to go green before tagging. The green checked in step 1 was for the commit before the bump; pushing starts a fresh run, and the commit being released is the one nobody has verified yet. A red Windows job has hidden here before.

git push origin main
until [ "$(gh run list --branch main --limit 1 --json status --jq '.[0].status')" = completed ]; do sleep 20; done
gh run list --branch main --limit 1 --json headSha,conclusion --jq '.[0] | "\(.headSha[0:7]) \(.conclusion)"'

That has to print the bump commit and success. If it does not, stop: the tag is the point of no return.

git tag v$1 && git push origin v$1
gh release create v$1 --title "v$1 — <short summary>" --notes "<what changed and why it matters>"

Release notes follow the prose rules in CLAUDE.md: what changed and what it displaces, not a file list. Creating the release is the publish trigger — after this line, the release is happening.

4. Watch and verify

  • Watch the run: gh run watch $(gh run list --workflow publish.yml --limit 1 --json databaseId -q '.[0].databaseId') --exit-status.
  • Confirm PyPI serves the new version: curl -s https://pypi.org/pypi/yet-another-agentic-chat/json → info.version == "$1".
  • Cold-run the real user path: uvx --refresh --from yet-another-agentic-chat yaac --help.

5. Tell the indexes

Both of these describe a version, and both keep describing the previous one until told otherwise. Run them only after step 4 confirms PyPI is serving $1 — each reads the published package, so running them early records the release that is still live.

The MCP registry publishes itself. publish.yml waits for PyPI to serve $1, authenticates with github-oidc using the id-token permission it already holds, and republishes server.json — which step 2 regenerated with the new version. Nothing to run and nothing to log in to; just confirm it landed:

curl -sS "https://registry.modelcontextprotocol.io/v0/servers?search=agentic-chat&limit=3"

The entry should report $1, status: active, isLatest: true. If the workflow step failed instead, a 400 naming ownership validation failed means the published README lacks the mcp-name: marker — the marker has to be inside the released artifact, not merely in git, so the fix is a later release rather than a retry.

Context7, which otherwise re-crawls a project of this size only every 45 days, so its answers would describe the previous release for weeks:

curl -sS -X POST https://context7.com/api/v1/refresh \
  -H "Authorization: Bearer $CONTEXT7_API_KEY" -H "Content-Type: application/json" \
  -d '{"libraryName": "/amyodov/yet-another-agentic-chat"}'

The field is libraryName and the body must be JSON; a form-encoded post or a libraryId key returns a bare 500 that says nothing. Refreshes are rate-limited to one per 10 days, so {"error":"too-early", ...} is a normal answer meaning the index is already recent enough — report it and move on rather than retrying. Skip the step entirely if CONTEXT7_API_KEY is unset; the key comes from context7.com/dashboard and is not required to release.

Both are written up for a human in docs/development.md under Publishing.

6. After

  • If the install surface changed (entry points, commands), update the README's install section to match what the released version actually supports — the README must never advertise unreleased behavior. Re-read the rules in context7.json too: they are printed verbatim ahead of every answer Context7 gives about YAAC, so a stale one is wrong in public and invisible here.
  • Check docs/tools.md is current (the updating-mcp-tools skill regenerates it) — the released docs should describe the released tools.
  • Update the README's Status section if the release shipped or deferred features; it is the only feature record.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.