[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DANTHVFF2G5WCNYVW3DT4V":3,"skill-same:01M7DANTHVFF2G5WCNYVW3DT4V":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":6,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7DANTHVFF2G5WCNYVW3DT4V","release",null,"Cut a release of the package: tag the commit, build the source distribution and the wheel from that tag, and verify what the artifacts actually contain. Use when preparing a release, bumping the version, building distributions, or checking that packaging metadata is correct","LNSD\u002Florecraft","LNSD","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F3949095?v=4","01M7DAK7ETP75C8S8PT783SWSP","Lorenzo Delgado","01M7DAK7FBVXE30743ZG437MTN",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FLNSD\u002Florecraft\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Frelease\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: \"release\"\ndescription: \"Cut a release of the package: tag the commit, build the source distribution and the wheel from that tag, and verify what the artifacts actually contain. Use when preparing a release, bumping the version, building distributions, or checking that packaging metadata is correct\"\ncompatibility: \"Requires the just task runner, uv, a working GPG signing key because every tag and commit is signed, and git with the repository's full history: hatch-vcs reads the version from `git describe`, so a shallow or tagless checkout builds a version that is not the release. Publishing is the release workflow's job, on a published GitHub release; this skill ends at a local tag and a verified artifact.\"\nallowed-tools: Bash(just build *) Bash(just clean *) Bash(just fmt-check *) Bash(just check *) Bash(just check-types *) Bash(just test *) Bash(just check-docs *) Bash(git status *) Bash(git log *) Bash(git tag *) Bash(git describe *) Bash(uv venv dist\u002Fverify *) Bash(uv pip install --python dist\u002Fverify *) Bash(dist\u002Fverify\u002Fbin\u002Florecraft *)\n---\n\n# Release Skill\n\nPackaging for this repository, one package, `lorecraft`, built with hatchling from the root `pyproject.toml`.\nThe command line and the libraries it is built on are layers of that one import package, so a release is one\nsource distribution and one wheel.\n\nA release here is four steps: tag the commit, build, verify what was built, and delete the tag if the\nartifacts are wrong. The build itself is a single recipe, so the work that matters is the verification\neither side of it.\n\n**The tag comes first, and that is the one ordering constraint.** The version is derived from the tag\nat build time, so building before tagging produces an artifact labelled with a development version\n(`0.2.dev3+g93b1ed1fb`) rather than the release.\n\n## Prerequisite\n\n**Every gate must be green on the commit being released, not on a dirty tree.** These are the same\nchecks CI runs, in the same order:\n\n```bash\njust fmt-check && just check && just check-types && just test && just check-docs\n```\n\nIf any of them fails, go back to the skill that owns it: `\u002Fcode-format`, `\u002Fcode-check`, `\u002Fcode-test`,\n`\u002Fdocs-rules-check`, `\u002Fskills-check`. A release built from a tree that fails its own document checks\npublishes documents this project says are invalid.\n\nAlso confirm the working tree is clean and the release is being cut from the intended branch:\n\n```bash\ngit status --porcelain     # must print nothing\ngit log --oneline -1\n```\n\n## One requirements list\n\n`[project].dependencies` holds the third-party requirements of every layer. A library layer that starts\nimporting a new third-party package needs it added there, and only the clean install under\n[Verify the artifacts](#verify-the-artifacts) catches a miss.\n\n## Everything a release stands on is signed\n\n**Every tag is GPG-signed, and so is every commit it points at.** A tag is what the version is derived\nfrom and what a consumer resolves a release by, so an unsigned tag is an unauthenticated claim about\nwhich code is `v\u003Cversion>` — and anyone with push access can move it.\n\n- Tags: `git tag -s`. Never `git tag -a`, which annotates without signing, and never a bare\n  `git tag v\u003Cversion>`, which is a lightweight tag carrying no author, no date and no signature.\n- Commits: `commit.gpgsign` is set in the owner's git configuration, so `git commit -s` produces a\n  commit that is both GPG-signed and DCO signed-off. The two are different things and a release needs\n  both; the `commit` skill owns the sign-off trailer.\n\nCheck the commit being released before tagging it:\n\n```bash\ngit log -1 --show-signature     # must report a good signature on the release commit\n```\n\nAn unsigned commit is not fixed by signing the tag over it. Re-sign it with `git commit --amend -s`\nbefore tagging, or cut the release from a commit that is signed.\n\n## The version has one home, and it is the git tag\n\nNo file in the tree holds the package's release version. `pyproject.toml` declares `dynamic = [\"version\"]` and\n`[tool.hatch.version]` sets `source = \"vcs\"`, so the build runs `git describe` against the tag. Bumping the version *is* tagging:\n\n```bash\ngit tag -s v0.2.0 -m \"v0.2.0\"\n```\n\nWhat each state builds as, under the `node-and-date` local scheme:\n\n| Tree state | Built version |\n|---|---|\n| Exactly on tag `v0.2.0`, clean | `0.2.0` |\n| Three commits past `v0.2.0`, clean | `0.2.1.dev3+g93b1ed1fb` |\n| Any of the above with uncommitted changes | the same, plus `.d\u003Cdate>`, e.g. `+g93b1ed1fb.d20260923` |\n\nA `+`-suffixed local version is a development build. It is legitimate to hand someone, and PyPI will\nrefuse it, which is the intended safety net.\n\nAt runtime the command line reports what it was built with, via `importlib.metadata` in\n`lorecraft\u002Fmetadata.py`; the libraries ship inside the same wheel and report no version of their own.\n`lorecraft version --verbose` additionally runs\n`git describe --tags --always --dirty` when it is running from a checkout, so a developer's install\nshows the working tree it is actually sitting on rather than the version frozen at install time.\n\nDo not add a version string anywhere. If you find one, delete it rather than syncing it.\n\nTwo exceptions. A rule's `SINCE` and a removed rule's `REMOVED_IN`, in `src\u002Florecraft\u002Frules\u002F`, are immutable\nliterals naming the release that first shipped the rule or removed it, not the current version, so a release never\nbumps, syncs or deletes one. And the fixed `0.0.0` of the private `lorecraft-gen` in `gen\u002Fpyproject.toml`, which has\nno release, stays as it is: `just gen` needs it.\n\n## Tag, then build\n\nTag the commit the release is cut from, before anything is built:\n\n```bash\ngit tag -s v\u003Cversion> -m \"v\u003Cversion>\"\ngit describe --tags --dirty     # must print exactly v\u003Cversion>, with no -dirty suffix\ngit tag -v v\u003Cversion>            # must report a good signature\n```\n\n`-s`, never `-a` and never a bare `git tag v\u003Cversion>`. A `-dirty` suffix or a `-\u003Cn>-g\u003Csha>` suffix\nfrom `git describe` means the tag is not on the commit being built, and every artifact below will\ncarry a development version.\n\n| Command | Purpose |\n|---|---|\n| `just clean` | Remove `dist\u002F`, caches and `__pycache__` before a build |\n| `just build` | `uv build`: writes the source distribution and the wheel into `dist\u002F` |\n\nAlways clean first. `uv build` does not empty `dist\u002F`, so a stale wheel from an earlier version sits\nnext to the new one and is easy to upload or inspect by mistake.\n\n```bash\njust clean\njust build\nls -la dist\u002F\n```\n\nTwo files should appear, and nothing else:\n\n```\ndist\u002F\u003Cdistribution>-\u003Cversion>.tar.gz            source distribution\ndist\u002F\u003Cdistribution>-\u003Cversion>-py3-none-any.whl  wheel\n```\n\n`\u003Cdistribution>` is the package's `name` with `-` normalized to `_`.\n\n## Verify the artifacts\n\nA green build says the metadata parsed. It does not say the right files went in. Check every\nartifact before the tag is pushed or a wheel is handed to anyone: run each command below once per file,\nnaming it instead of the glob.\n\n### The wheel\n\n```bash\npython3 -c \"import zipfile,sys;[print(n) for n in zipfile.ZipFile(sys.argv[1]).namelist()]\" dist\u002F*.whl\n```\n\nIt must contain, and contain nothing beyond:\n\n- `lorecraft\u002F` and everything under it, and no other top-level package\n- `\u003Cdist-info>\u002Flicenses\u002FLICENSE-MIT` and `LICENSE-APACHE`, because the project is dual licensed and\n  `license-files` in `pyproject.toml` puts both in the artifact\n- `METADATA`, `WHEEL`, `RECORD`\n\nRead the metadata and confirm the version is the one just tagged, and that the licence expression\nsurvived:\n\n```bash\npython3 -c \"import zipfile,sys;z=zipfile.ZipFile(sys.argv[1]);print(z.read([n for n in z.namelist() if n.endswith('METADATA')][0]).decode()[:400])\" dist\u002F*.whl\n```\n\n`Version:` must be the tag without its `v` prefix, and must carry no `+` local segment — a `+g\u003Csha>`\nor `.d\u003Cdate>` suffix means the build did not happen on the tagged commit, or happened on a dirty tree.\n`License-Expression: MIT OR Apache-2.0` and both `License-File:` lines must be present. Every\n`Requires-Dist:` is a third-party requirement, with no local path.\n\n### The source distribution\n\n```bash\ntar tzf dist\u002F*.tar.gz | sed 's|^[^\u002F]*\u002F||' | cut -d\u002F -f1 | sort -u\n```\n\nThe sdist carries only what is needed to build the package from source: `src\u002Florecraft\u002F`,\n`pyproject.toml`, `README.md` and the two licence files, plus the top-level `.gitignore` that Hatchling always\nadds. Everything else, `tests\u002F`, `docs\u002F`, `.agents\u002F`,\n`.github\u002F`, `justfile` and `uv.lock`, is repository material rather than package material, and is\nexcluded by the `include` list in `[tool.hatch.build.targets.sdist]`.\n\n`tests\u002F` is the one worth revisiting. A downstream packager builds from the sdist and runs its suite to\nverify the build, and cannot do that when the tests are absent. Add `\"\u002Ftests\"` back the day someone\npackages this project.\n\nExpect exactly that listing. Anything else means an `include` pattern lost its leading slash: the\npatterns are gitignore-style, so an unanchored `README.md` also matches `docs\u002F__meta__\u002FREADME.md` and\ndrags a directory back in.\n\n### A clean install\n\nThe workspace tests cannot see a requirement the wheel is missing, so install it alone:\n\n```bash\nuv venv dist\u002Fverify\nuv pip install --python dist\u002Fverify dist\u002F*.whl\ndist\u002Fverify\u002Fbin\u002Florecraft version    # the tagged version\ndist\u002Fverify\u002Fbin\u002Florecraft check      # no findings\n```\n\n### Known packaging gap\n\n`README.md` is the long description, and its relative links, to the licence files and into `docs\u002F`, resolve\non GitHub but not on an index rendering it. Make them absolute before the first upload, not after.\n\n## After verifying\n\n```bash\ngit tag -l --sort=-v:refname | head -3\n```\n\nDo not push a tag as part of this skill. Pushing is the owner's call, and a tag that exists only\nlocally can still be deleted. If the artifacts are wrong, delete the tag with\n`git tag -d v\u003Cversion>`, fix the cause, and tag again — a tag that was never pushed costs nothing to\nwithdraw.\n\n## Publishing\n\nPublishing a GitHub release publishes the package. The owner pushes the signed tag, then creates the\nrelease from it:\n\n```bash\ngit push origin v\u003Cversion>\ngh release create v\u003Cversion> --verify-tag --generate-notes\n```\n\n`--verify-tag` refuses to create the tag on the fly: the release form would otherwise make a lightweight,\nunsigned tag, and the release workflow rejects one. `.github\u002Fworkflows\u002Frelease.yml` runs on the published\nrelease and repeats this skill in CI: it checks the tag is annotated, carries a signature GitHub verifies,\nand points at a commit on `main`, then runs every gate, builds, checks that both artifacts carry the tag's\nversion and nothing else sits in `dist\u002F`, and installs the wheel alone. Only then does the upload job\nstart, and it waits for the owner's approval of the `pypi` environment.\n\nThe upload uses a trusted publisher: PyPI trusts the workflow's OIDC token for the `pypi` GitHub\nenvironment, so there is no index token in the repository or in its secrets. The publisher is registered\non PyPI against the repository, the workflow file name and that environment; renaming any of the three\nbreaks publishing until the registration is updated to match. Each artifact is uploaded with a PEP 740\nattestation and a GitHub build provenance attestation.\n\nA published version is permanent. `v*` tags cannot be moved or deleted, a published release is\nimmutable, and PyPI refuses a second upload of the same version even after it is deleted, so a wrong\nrelease is fixed by tagging the next version.\n\n## Anti-patterns\n\n- Building from a dirty tree, or from a tree whose document and skill checks fail. The version says so\n  now, but the artifact is still wrong.\n- Building before tagging, and then reading the development version off the artifact as if it were the\n  release.\n- Writing a version into a file, or editing `version` in a `pyproject.toml`. The tag holds it.\n- Building from a shallow clone or a checkout whose tags were never fetched: `git describe` cannot see\n  the tag, and the version silently comes out as a development version off an older one.\n- Tagging with `git tag -a` or `git tag v\u003Cversion>`. Both produce an unsigned tag, and the second\n  produces a lightweight one that records nothing at all.\n- Tagging a commit that is not itself signed, or signing the tag and skipping the DCO sign-off on the\n  commit.\n- Running `just build` without `just clean` and then reading a stale artifact from `dist\u002F`.\n- Treating a successful build as a verified artifact. Read the wheel's contents and install it alone.\n- Tagging before the artifacts are checked, or pushing a tag without being asked.\n- Running `uv publish` from a workstation, or adding an index token to the repository or its secrets.\n  The release workflow is the only publisher.\n- Creating the release without `--verify-tag`, or from the release form's \"create new tag\" field. The tag\n  it makes is unsigned, and the release workflow rejects it.\n- Committing `dist\u002F`. It is ignored, and it should stay ignored.\n\n## Next Steps\n\nAfter a verified build and a local tag:\n\n1. **Report** the version, both artifact filenames, and what the wheel contained.\n2. **Ask** before pushing the tag or creating the release: a published release publishes the package.\n","# Release Skill\n\nPackaging for this repository, one package, `lorecraft`, built with hatchling from the root `pyproject.toml`.\nThe command line and the libraries it is built on are layers of that one import package, so a release is one\nsource distribution and one wheel.\n\nA release here is four steps: tag the commit, build, verify what was built, and delete the tag if the\nartifacts are wrong. The build itself is a single recipe, so the work that matters is the verification\neither side of it.\n\n**The tag comes first, and that is the one ordering constraint.** The version is derived from the tag\nat build time, so building before tagging produces an artifact labelled with a development version\n(`0.2.dev3+g93b1ed1fb`) rather than the release.\n\n## Prerequisite\n\n**Every gate must be green on the commit being released, not on a dirty tree.** These are the same\nchecks CI runs, in the same order:\n\n```bash\njust fmt-check && just check && just check-types && just test && just check-docs\n```\n\nIf any of them fails, go back to the skill that owns it: `\u002Fcode-format`, `\u002Fcode-check`, `\u002Fcode-test`,\n`\u002Fdocs-rules-check`, `\u002Fskills-check`. A release built from a tree that fails its own document checks\npublishes documents this project says are invalid.\n\nAlso confirm the working tree is clean and the release is being cut from the intended branch:\n\n```bash\ngit status --porcelain     # must print nothing\ngit log --oneline -1\n```\n\n## One requirements list\n\n`[project].dependencies` holds the third-party requirements of every layer. A library layer that starts\nimporting a new third-party package needs it added there, and only the clean install under\n[Verify the artifacts](#verify-the-artifacts) catches a miss.\n\n## Everything a release stands on is signed\n\n**Every tag is GPG-signed, and so is every commit it points at.** A tag is what the version is derived\nfrom and what a consumer resolves a release by, so an unsigned tag is an unauthenticated claim about\nwhich code is `v\u003Cversion>` — and anyone with push access can move it.\n\n- Tags: `git tag -s`. Never `git tag -a`, which annotates without signing, and never a bare\n  `git tag v\u003Cversion>`, which is a lightweight tag carrying no author, no date and no signature.\n- Commits: `commit.gpgsign` is set in the owner's git configuration, so `git commit -s` produces a\n  commit that is both GPG-signed and DCO signed-off. The two are different things and a release needs\n  both; the `commit` skill owns the sign-off trailer.\n\nCheck the commit being released before tagging it:\n\n```bash\ngit log -1 --show-signature     # must report a good signature on the release commit\n```\n\nAn unsigned commit is not fixed by signing the tag over it. Re-sign it with `git commit --amend -s`\nbefore tagging, or cut the release from a commit that is signed.\n\n## The version has one home, and it is the git tag\n\nNo file in the tree holds the package's release version. `pyproject.toml` declares `dynamic = [\"version\"]` and\n`[tool.hatch.version]` sets `source = \"vcs\"`, so the build runs `git describe` against the tag. Bumping the version *is* tagging:\n\n```bash\ngit tag -s v0.2.0 -m \"v0.2.0\"\n```\n\nWhat each state builds as, under the `node-and-date` local scheme:\n\n| Tree state | Built version |\n|---|---|\n| Exactly on tag `v0.2.0`, clean | `0.2.0` |\n| Three commits past `v0.2.0`, clean | `0.2.1.dev3+g93b1ed1fb` |\n| Any of the above with uncommitted changes | the same, plus `.d\u003Cdate>`, e.g. `+g93b1ed1fb.d20260923` |\n\nA `+`-suffixed local version is a development build. It is legitimate to hand someone, and PyPI will\nrefuse it, which is the intended safety net.\n\nAt runtime the command line reports what it was built with, via `importlib.metadata` in\n`lorecraft\u002Fmetadata.py`; the libraries ship inside the same wheel and report no version of their own.\n`lorecraft version --verbose` additionally runs\n`git describe --tags --always --dirty` when it is running from a checkout, so a developer's install\nshows the working tree it is actually sitting on rather than the version frozen at install time.\n\nDo not add a version string anywhere. If you find one, delete it rather than syncing it.\n\nTwo exceptions. A rule's `SINCE` and a removed rule's `REMOVED_IN`, in `src\u002Florecraft\u002Frules\u002F`, are immutable\nliterals naming the release that first shipped the rule or removed it, not the current version, so a release never\nbumps, syncs or deletes one. And the fixed `0.0.0` of the private `lorecraft-gen` in `gen\u002Fpyproject.toml`, which has\nno release, stays as it is: `just gen` needs it.\n\n## Tag, then build\n\nTag the commit the release is cut from, before anything is built:\n\n```bash\ngit tag -s v\u003Cversion> -m \"v\u003Cversion>\"\ngit describe --tags --dirty     # must print exactly v\u003Cversion>, with no -dirty suffix\ngit tag -v v\u003Cversion>            # must report a good signature\n```\n\n`-s`, never `-a` and never a bare `git tag v\u003Cversion>`. A `-dirty` suffix or a `-\u003Cn>-g\u003Csha>` suffix\nfrom `git describe` means the tag is not on the commit being built, and every artifact below will\ncarry a development version.\n\n| Command | Purpose |\n|---|---|\n| `just clean` | Remove `dist\u002F`, caches and `__pycache__` before a build |\n| `just build` | `uv build`: writes the source distribution and the wheel into `dist\u002F` |\n\nAlways clean first. `uv build` does not empty `dist\u002F`, so a stale wheel from an earlier version sits\nnext to the new one and is easy to upload or inspect by mistake.\n\n```bash\njust clean\njust build\nls -la dist\u002F\n```\n\nTwo files should appear, and nothing else:\n\n```\ndist\u002F\u003Cdistribution>-\u003Cversion>.tar.gz            source distribution\ndist\u002F\u003Cdistribution>-\u003Cversion>-py3-none-any.whl  wheel\n```\n\n`\u003Cdistribution>` is the package's `name` with `-` normalized to `_`.\n\n## Verify the artifacts\n\nA green build says the metadata parsed. It does not say the right files went in. Check every\nartifact before the tag is pushed or a wheel is handed to anyone: run each command below once per file,\nnaming it instead of the glob.\n\n### The wheel\n\n```bash\npython3 -c \"import zipfile,sys;[print(n) for n in zipfile.ZipFile(sys.argv[1]).namelist()]\" dist\u002F*.whl\n```\n\nIt must contain, and contain nothing beyond:\n\n- `lorecraft\u002F` and everything under it, and no other top-level package\n- `\u003Cdist-info>\u002Flicenses\u002FLICENSE-MIT` and `LICENSE-APACHE`, because the project is dual licensed and\n  `license-files` in `pyproject.toml` puts both in the artifact\n- `METADATA`, `WHEEL`, `RECORD`\n\nRead the metadata and confirm the version is the one just tagged, and that the licence expression\nsurvived:\n\n```bash\npython3 -c \"import zipfile,sys;z=zipfile.ZipFile(sys.argv[1]);print(z.read([n for n in z.namelist() if n.endswith('METADATA')][0]).decode()[:400])\" dist\u002F*.whl\n```\n\n`Version:` must be the tag without its `v` prefix, and must carry no `+` local segment — a `+g\u003Csha>`\nor `.d\u003Cdate>` suffix means the build did not happen on the tagged commit, or happened on a dirty tree.\n`License-Expression: MIT OR Apache-2.0` and both `License-File:` lines must be present. Every\n`Requires-Dist:` is a third-party requirement, with no local path.\n\n### The source distribution\n\n```bash\ntar tzf dist\u002F*.tar.gz | sed 's|^[^\u002F]*\u002F||' | cut -d\u002F -f1 | sort -u\n```\n\nThe sdist carries only what is needed to build the package from source: `src\u002Florecraft\u002F`,\n`pyproject.toml`, `README.md` and the two licence files, plus the top-level `.gitignore` that Hatchling always\nadds. Everything else, `tests\u002F`, `docs\u002F`, `.agents\u002F`,\n`.github\u002F`, `justfile` and `uv.lock`, is repository material rather than package material, and is\nexcluded by the `include` list in `[tool.hatch.build.targets.sdist]`.\n\n`tests\u002F` is the one worth revisiting. A downstream packager builds from the sdist and runs its suite to\nverify the build, and cannot do that when the tests are absent. Add `\"\u002Ftests\"` back the day someone\npackages this project.\n\nExpect exactly that listing. Anything else means an `include` pattern lost its leading slash: the\npatterns are gitignore-style, so an unanchored `README.md` also matches `docs\u002F__meta__\u002FREADME.md` and\ndrags a directory back in.\n\n### A clean install\n\nThe workspace tests cannot see a requirement the wheel is missing, so install it alone:\n\n```bash\nuv venv dist\u002Fverify\nuv pip install --python dist\u002Fverify dist\u002F*.whl\ndist\u002Fverify\u002Fbin\u002Florecraft version    # the tagged version\ndist\u002Fverify\u002Fbin\u002Florecraft check      # no findings\n```\n\n### Known packaging gap\n\n`README.md` is the long description, and its relative links, to the licence files and into `docs\u002F`, resolve\non GitHub but not on an index rendering it. Make them absolute before the first upload, not after.\n\n## After verifying\n\n```bash\ngit tag -l --sort=-v:refname | head -3\n```\n\nDo not push a tag as part of this skill. Pushing is the owner's call, and a tag that exists only\nlocally can still be deleted. If the artifacts are wrong, delete the tag with\n`git tag -d v\u003Cversion>`, fix the cause, and tag again — a tag that was never pushed costs nothing to\nwithdraw.\n\n## Publishing\n\nPublishing a GitHub release publishes the package. The owner pushes the signed tag, then creates the\nrelease from it:\n\n```bash\ngit push origin v\u003Cversion>\ngh release create v\u003Cversion> --verify-tag --generate-notes\n```\n\n`--verify-tag` refuses to create the tag on the fly: the release form would otherwise make a lightweight,\nunsigned tag, and the release workflow rejects one. `.github\u002Fworkflows\u002Frelease.yml` runs on the published\nrelease and repeats this skill in CI: it checks the tag is annotated, carries a signature GitHub verifies,\nand points at a commit on `main`, then runs every gate, builds, checks that both artifacts carry the tag's\nversion and nothing else sits in `dist\u002F`, and installs the wheel alone. Only then does the upload job\nstart, and it waits for the owner's approval of the `pypi` environment.\n\nThe upload uses a trusted publisher: PyPI trusts the workflow's OIDC token for the `pypi` GitHub\nenvironment, so there is no index token in the repository or in its secrets. The publisher is registered\non PyPI against the repository, the workflow file name and that environment; renaming any of the three\nbreaks publishing until the registration is updated to match. Each artifact is uploaded with a PEP 740\nattestation and a GitHub build provenance attestation.\n\nA published version is permanent. `v*` tags cannot be moved or deleted, a published release is\nimmutable, and PyPI refuses a second upload of the same version even after it is deleted, so a wrong\nrelease is fixed by tagging the next version.\n\n## Anti-patterns\n\n- Building from a dirty tree, or from a tree whose document and skill checks fail. The version says so\n  now, but the artifact is still wrong.\n- Building before tagging, and then reading the development version off the artifact as if it were the\n  release.\n- Writing a version into a file, or editing `version` in a `pyproject.toml`. The tag holds it.\n- Building from a shallow clone or a checkout whose tags were never fetched: `git describe` cannot see\n  the tag, and the version silently comes out as a development version off an older one.\n- Tagging with `git tag -a` or `git tag v\u003Cversion>`. Both produce an unsigned tag, and the second\n  produces a lightweight one that records nothing at all.\n- Tagging a commit that is not itself signed, or signing the tag and skipping the DCO sign-off on the\n  commit.\n- Running `just build` without `just clean` and then reading a stale artifact from `dist\u002F`.\n- Treating a successful build as a verified artifact. Read the wheel's contents and install it alone.\n- Tagging before the artifacts are checked, or pushing a tag without being asked.\n- Running `uv publish` from a workstation, or adding an index token to the repository or its secrets.\n  The release workflow is the only publisher.\n- Creating the release without `--verify-tag`, or from the release form's \"create new tag\" field. The tag\n  it makes is unsigned, and the release workflow rejects it.\n- Committing `dist\u002F`. It is ignored, and it should stay ignored.\n\n## Next Steps\n\nAfter a verified build and a local tag:\n\n1. **Report** the version, both artifact filenames, and what the wheel contained.\n2. **Ask** before pushing the tag or creating the release: a published release publishes the package.\n",{"name":5,"description":7,"allowed-tools":24,"compatibility":25},"Bash(just build *) Bash(just clean *) Bash(just fmt-check *) Bash(just check *) Bash(just check-types *) Bash(just test *) Bash(just check-docs *) Bash(git status *) Bash(git log *) Bash(git tag *) Bash(git describe *) Bash(uv venv dist\u002Fverify *) Bash(uv pip install --python dist\u002Fverify *) Bash(dist\u002Fverify\u002Fbin\u002Florecraft *)","Requires the just task runner, uv, a working GPG signing key because every tag and commit is signed, and git with the repository's full history: hatch-vcs reads the version from `git describe`, so a shallow or tagless checkout builds a version that is not the release. Publishing is the release workflow's job, on a published GitHub release; this skill ends at a local tag and a verified artifact.","main","d2f3a5835a8673ccf134ae62f0a5e84104ff7098",".agents\u002Fskills\u002Frelease",1,"https:\u002F\u002Fgithub.com\u002FLNSD\u002Florecraft","https:\u002F\u002Fgithub.com\u002FLNSD","2026-11-10 04:14:00",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add LNSD\u002Florecraft --skill release",{"tool":39,"command":40},"bunx","bunx skills add LNSD\u002Florecraft --skill release",{"tool":42,"command":43},"pnpm","pnpm dlx skills add LNSD\u002Florecraft --skill release","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLNSD\u002Florecraft\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Frelease\u002FSKILL.md",true,[],[48,55,60,65,70,75],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7DASA0R4R68AVTZJFJJBYDB","review","Review a change. Use when asked to review.","https:\u002F\u002Fgithub.com\u002FLNSD\u002Florecraft\u002Fblob\u002Fmain\u002Ftests\u002Fit\u002Frule_cases\u002FLC504\u002Ftrigger\u002Freference-link-to-parent-skill-file\u002Froot\u002F.agents\u002Fskills\u002Freview\u002FSKILL.md",[],[],{"skillNo":56,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7DAS1YXJQ8FGABR8BGX9FAT","https:\u002F\u002Fgithub.com\u002FLNSD\u002Florecraft\u002Fblob\u002Fmain\u002Ftests\u002Fit\u002Frule_cases\u002FLC504\u002Fnear_miss\u002Fclimb-that-stays-inside-and-document-climb\u002Froot\u002F.agents\u002Fskills\u002Freview\u002FSKILL.md",[],[],{"skillNo":61,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M7DAS0TCKQFF2YJ5VY9SWHV2","https:\u002F\u002Fgithub.com\u002FLNSD\u002Florecraft\u002Fblob\u002Fmain\u002Ftests\u002Fit\u002Frule_cases\u002FLC503\u002Ftrigger\u002Fskill-reference-link-read-from-skill-root\u002Froot\u002F.agents\u002Fskills\u002Freview\u002FSKILL.md",[],[],{"skillNo":66,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M7DARZNA9QGXHAY17142R8YT","https:\u002F\u002Fgithub.com\u002FLNSD\u002Florecraft\u002Fblob\u002Fmain\u002Ftests\u002Fit\u002Frule_cases\u002FLC503\u002Fnear_miss\u002Fskill-link-climbing-above-skill-root\u002Froot\u002F.agents\u002Fskills\u002Freview\u002FSKILL.md",[],[],{"skillNo":71,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M7DARYHB7WBR44AJXFJSZQ7X","https:\u002F\u002Fgithub.com\u002FLNSD\u002Florecraft\u002Fblob\u002Fmain\u002Ftests\u002Fit\u002Frule_cases\u002FLC502\u002Ftrigger\u002Fskill-fragment-in-file-without-headings\u002Froot\u002F.agents\u002Fskills\u002Freview\u002FSKILL.md",[],[],{"skillNo":76,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7DARXCTFKMH92FHVV8H30MM","https:\u002F\u002Fgithub.com\u002FLNSD\u002Florecraft\u002Fblob\u002Fmain\u002Ftests\u002Fit\u002Frule_cases\u002FLC501\u002Ftrigger\u002Fskill-link-starting-with-slash\u002Froot\u002F.agents\u002Fskills\u002Freview\u002FSKILL.md",[],[]]