swain-keys
Installation
SKILL.md
swain-keys
Per-project key provisioning for git signing and authentication.
Supports two forges with the right signing mode for each:
- GitHub — SSH signing via
gh ssh-key add. - Forgejo — GPG signing via
fj user gpg upload.
Forge is auto-detected from the origin remote URL. Set SWAIN_FORGE to override.
When invoked
Locate and run the provisioning script at scripts/swain-keys.sh (relative to this skill's directory):
REPO_ROOT="$(git rev-parse --show-toplevel 2>/dev/null || pwd)"
SCRIPT="$REPO_ROOT/.agents/bin/swain-keys.sh"