Release

From edictum-ai/edictum · View interactive version

Release is an AI agent skill from the GitHub repository edictum-ai/edictum. Bump version, tag, push, create GitHub Release, and verify PyPI publish.

How to use this skill

Skill file

Release

Automates the full release process for edictum (Python).

Arguments

Step 1: Pre-flight checks

Run all checks in sequence. Abort immediately on any failure.

  1. Tests:

```

Bash: pytest tests/ -v

```

Abort if tests fail.

  1. Lint:

```

Bash: ruff check src/ tests/

```

Abort if lint fails.

  1. Build (dry run):

```

Bash: python -m build --sdist --wheel

```

Abort if build fails.

  1. Clean working tree:

```

Bash: git status --porcelain

```

Abort if output is non-empty (dirty tree).

  1. Read current version:

```

Read: pyproject.toml

```

Extract the version field from [project] section.

Step 2: Determine new version

```

AskUserQuestion: "What version should this release be? Current version is {current_version}."

```

Step 3: Bump version

  1. Edit pyproject.toml:

```

Edit: pyproject.toml

old_string: version = "{current_version}"

new_string: version = "{new_version}"

```

  1. Audit all version references in the repo:

```

Grep: pattern="{current_version}" (search tracked files only, exclude CHANGELOG.md)

```

For each match, determine if it is a "current version" reference or a historical reference:

Use Edit to update each current-version reference. Common locations to check:

If unsure whether a reference is current or historical, leave it unchanged and flag it to the user.

  1. Commit the change:

```

Bash: git add -A && git commit -m "chore: bump version to {version}"

```

Step 4: Tag and push

Bash: git tag v{version}
Bash: git push origin main && git push origin v{version}

Step 5: Create GitHub Release

Bash: gh release create v{version} --generate-notes

This auto-generates release notes from commits since the previous tag.

Step 6: Wait and verify

  1. Find the publish workflow run:

```

Bash: gh run list --workflow=publish.yml --limit=1 --json databaseId,status --jq '.[0]'

```

  1. Watch it:

```

Bash: gh run watch {run_id}

```

  1. Report result:

```

Bash: gh run view {run_id} --log-failed

```

And report the failure to the user.

Post-release

After successful publish:

  1. Verify on PyPI: pip index versions edictum
  2. Test install: pip install edictum=={version}

Important Notes

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.