Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/release-hooks/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/sh
# release-it attempts remote tag rollback even after a failed atomic push.
# Never let a losing publisher delete a tag another publisher created.
while read -r local_ref local_sha remote_ref remote_sha; do
case "$remote_ref" in
refs/tags/*)
case "$local_sha" in
*[!0]*) ;;
*)
printf 'Release publishing cannot delete remote tag %s\n' "$remote_ref" >&2
exit 1
;;
esac
;;
esac
done
64 changes: 63 additions & 1 deletion .github/workflows/manifests.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
name: manifests
name: checks and release

on:
workflow_dispatch:
pull_request:
push:
branches: [main]

permissions:
contents: read

jobs:
manifests:
runs-on: ubuntu-latest
Expand All @@ -14,3 +18,61 @@ jobs:
- run: docker pull python:3.12-slim
- run: uv run --python 3.12 --with pytest --with pyyaml pytest
- run: uv run --python 3.12 scripts/generate_manifests.py --check

installation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: '24'
cache: npm
- uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
- run: npm ci --ignore-scripts
- name: Install supported harness CLIs
run: |
npm install --prefix "$RUNNER_TEMP/harnesses" @anthropic-ai/claude-code@2.1.333 @openai/codex@0.170.0
echo "$RUNNER_TEMP/harnesses/node_modules/.bin" >> "$GITHUB_PATH"
- run: uv run --python 3.12 --with pytest --with pyyaml pytest -m integration tests/integration

release:
needs: [manifests, installation]
if: >-
github.ref == 'refs/heads/main' &&
(github.event_name == 'workflow_dispatch' || github.event_name == 'push')
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: release-main
queue: max
cancel-in-progress: false
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
with:
ref: main
fetch-depth: 0
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: '24'
cache: npm
- uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
- run: npm ci --ignore-scripts
- name: Install supported harness CLIs
run: |
npm install --prefix "$RUNNER_TEMP/harnesses" @anthropic-ai/claude-code@2.1.333 @openai/codex@0.170.0
echo "$RUNNER_TEMP/harnesses/node_modules/.bin" >> "$GITHUB_PATH"
- name: Validate the current main revision before publishing
run: |
docker pull python:3.12-slim
uv run --python 3.12 --with pytest --with pyyaml pytest
uv run --python 3.12 --with pytest --with pyyaml pytest -m integration tests/integration
uv run --python 3.12 scripts/generate_manifests.py --check
- name: Publish release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config core.hooksPath .github/release-hooks
git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
npm run release
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
.env
.env.local

# Node release tooling
node_modules/

# Python
__pycache__/
*.pyc
Expand Down
36 changes: 36 additions & 0 deletions .release-it.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
import conventionalCommits from 'conventional-changelog-conventionalcommits';

const preset = await conventionalCommits();

export default {
npm: false,
git: {
requireBranch: 'main',
commitMessage: 'chore: release v${version}',
tagName: 'v${version}',
pushArgs: ['--atomic', '--follow-tags'],
},
github: {
release: true,
releaseName: 'v${version}',
},
plugins: {
'@release-it/bumper': {
in: 'scripts/marketplace.config.json',
out: 'scripts/marketplace.config.json',
},
'@release-it/conventional-changelog': {
preset: { name: 'conventionalcommits' },
infile: 'CHANGELOG.md',
// Even docs-only and non-conventional merges produce a patch release.
whatBump: commits => preset.whatBump(commits) ?? { level: 2 },
},
},
hooks: {
'before:init': 'uv run --python 3.12 scripts/generate_manifests.py --check',
'after:bump': [
'uv run --python 3.12 scripts/generate_manifests.py',
'uv run --python 3.12 scripts/generate_manifests.py --check',
],
},
};
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
- Killall skills is a public skills and plugin repository. Do not publish personal or work-related information.

# Supported tools
- claude
- codex
- Claude Code and Codex are supported; CI checks marketplace acceptance/installation.
- Cursor and GitHub Copilot CLI catalogs are best-effort, without harness runtime checks.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Changelog

New releases are recorded here automatically by release-it. Releases through
v6.2.0 predate this changelog; see the repository's Git tags for that history.
78 changes: 61 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# killall-skills

Workflow and coding-principle skills for Claude Code and Codex.
These are the supported harnesses. Cursor and GitHub Copilot CLI catalogs are
provided on a best-effort basis; their installation and runtime behavior are
not covered by our harness checks.

## Install

Expand Down Expand Up @@ -37,7 +40,10 @@ step stays in that tab.

`killall-skills` installs every skill. To install one, use its name instead,
for example `git-janitor@killallgit`. Pick either the bundle or individual
skills, not both.
skills, not both. Individual plugins do not install sibling dependencies.
`independent-review` can use a fresh reviewer without `wait-for-action`;
`lets-finish` needs `independent-review` whenever review is required, unless
explicitly waived by the user. Install the bundle to include both.

Any host, skills only, through the skills CLI:

Expand Down Expand Up @@ -112,28 +118,66 @@ for measured outcomes and limitations.
(`.claude-plugin/`, `.cursor-plugin/`, `.github/plugin/`) and the skills table
above from each skill's `SKILL.md` frontmatter and
`scripts/marketplace.config.json`. Run it after adding, renaming, or
changing the description of a skill. CI fails when the committed files are stale.
changing the description or invocation policy of a skill. It also derives
Codex's `policy.allow_implicit_invocation` from `disable-model-invocation`,
preserving other `agents/openai.yaml` metadata, and removes obsolete generated
Cursor manifests after a skill is renamed or deleted. Cleanup uses the previous
catalog to identify owned files; modified or symlinked obsolete manifests require
manual resolution. Unregistered manifests are left alone. CI fails on stale or
obsolete generated files. Edit invocation policy in `SKILL.md`, not in the
Codex policy field.

A skill can ship hooks in `skills/<name>/hooks/hooks.json`. The generator inlines
them into that skill's entry and into the `killall-skills` bundle. The bundle is
listed last so the skills CLI groups all skills under `Killall Skills` instead
of repeating each skill name as a group heading.
The bundle is listed last so the skills CLI groups all skills under
`Killall Skills` instead of repeating each skill name as a group heading.
Marketplace hook generation is no longer supported; no current skill uses it.

Update your checkout to the latest `main` first: the release script runs from
your checkout, not from the temporary worktree. Then run one of these:
Run the default tests:

```
task tag:patch
task tag:minor
task tag:major
uv run --python 3.12 --with pytest --with pyyaml pytest
```

The release runs in a temporary worktree off `origin/main`, so uncommitted
changes in your checkout are never released. It runs the tests and
`generate_manifests.py --check`, bumps `version` in
`scripts/marketplace.config.json`, regenerates the manifests, commits, tags
`vX.Y.Z`, and pushes the commit and tag together. If the push fails, it removes
the tag.
`task test:install` runs the separate installation and release checks. Run
`npm ci --ignore-scripts` first with Node 24.15+; the harness checks also need
`claude` and `codex` on PATH. These checks validate Claude's marketplace,
install the Codex bundle and a single plugin using temporary configuration and
tracked distribution files only, and exercise release-it against disposable local
Git repositories. They do not call models, use account credentials, publish to
GitHub/npm, or exercise skill workflows. CI runs both suites.

## Releases

Every push to `main` from a merge releases automatically after both CI jobs
pass. [release-it](https://github.com/release-it/release-it) determines the next
version from Conventional Commits: `feat:` bumps minor, `fix:` bumps patch, and
`!` or a `BREAKING CHANGE:` footer bumps major. Docs, chores, and non-conventional
commits fall back to patch, so they release too. Preserve the appropriate title
and breaking-change footer when squash-merging a PR.

The release updates `scripts/marketplace.config.json`, regenerates catalogs,
updates `CHANGELOG.md`, commits `chore: release vX.Y.Z`, atomically pushes that
commit and its tag, and creates a GitHub Release. Nothing is published to npm.
The release job queues publishing runs rather than replacing pending runs and
does not run on PRs. Each queued run checks out current `main` and re-runs both
suites before publishing, so closely spaced merges do not fail merely because
an earlier release advanced the branch. Each run makes a release; consecutive
releases can contain the same skill changes plus their version metadata.
GitHub Actions allows up to 100 pending runs in a concurrency group.
The bot uses `GITHUB_TOKEN`, whose pushes do not trigger another workflow run.

The workflow uses the built-in `GITHUB_TOKEN` with `contents: write`; no extra
secret is required. If branch rules are added, they must permit this bot's release
commit or publishing will fail safely. A concurrent push to `main` can also
reject the release push; it never force-pushes or publishes an unvalidated head.
The publishing checkout enables `.github/release-hooks/pre-push` to forbid tag
deletions, preventing release-it's failed-push rollback from removing another
publisher's tag.

To retry against the latest `main`, use `task release` (requires authenticated
`gh`), or run the **checks and release** workflow manually on `main`. The publishing job always revalidates current `main`, including on a retry.
If the tag was pushed but GitHub Release creation failed, repair that same tag
with `gh release create vX.Y.Z --verify-tag --generate-notes --title vX.Y.Z`
rather than bumping again. Normal releases need no manual version edit or command.

## Agents

Expand Down
17 changes: 6 additions & 11 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,12 @@ tasks:
cmds:
- uv run --python 3.12 scripts/generate_manifests.py

tag:patch:
desc: Test origin/main, bump the patch version, tag it, and push
test:install:
desc: Check harness installation and releases (npm ci and CLIs required)
cmds:
- uv run --python 3.12 scripts/release.py patch
- uv run --python 3.12 --with pytest --with pyyaml pytest -m integration tests/integration

tag:minor:
desc: Test origin/main, bump the minor version, tag it, and push
release:
desc: Rerun checks and release the latest main through GitHub Actions
cmds:
- uv run --python 3.12 scripts/release.py minor

tag:major:
desc: Test origin/main, bump the major version, tag it, and push
cmds:
- uv run --python 3.12 scripts/release.py major
- gh workflow run manifests.yml --ref main
Loading
Loading