gpg-multi-key
БесплатноБез исполняемых скриптовНе проверенAdvanced GPG multi-key management strategies for consultants, CI/CD automation, and enterprise teams. Configure, set up, run, and execute multi-key GPG…
Об этом скилле
GPG Multi-Key
Advanced strategies for managing multiple GPG keys across different contexts: personal development, CI/CD automation, multi-client consultant work, and enterprise environments.
Overview
Multi-key GPG strategies enable:
- Separation of concerns: Personal vs automation vs client keys
- Risk isolation: Compromised key in one context doesn't affect others
- Identity management: Different email addresses for different clients
- Security flexibility: Different passphrase/expiration policies per context
This skill covers scaling from single-key (basic setup) to sophisticated multi-key architectures.
When to Use This Skill
This skill should be used when:
- Setting up CI/CD automation with GPG signing (GitHub Actions, GitLab CI)
- Managing multiple client identities as a consultant
- Implementing per-client key isolation strategies
- Configuring Git conditional includes for automatic key switching
- Planning GPG key strategies for growing teams
- Balancing security (passphrase protection) with automation (no passphrase)
- Migrating from single-key to multi-key setup
- Understanding security trade-offs for different key types
Prerequisites
Before using multi-key GPG strategies:
- GPG installed: Run
gpg --version(should show GnuPG 2.2+) - Git installed: Run
git --version(should show Git 2.23+ for conditional includes) - Basic GPG familiarity: See
git:gpg-signingskill for single-key setup basics - For CI/CD scenarios: GitHub/GitLab repository access and Secrets management permissions
- For consultant scenarios: Organized directory structure (
~/Clients/recommended)
Strategy Selection Guide
Quick Decision Matrix
| Scenario | Keys Needed | Passphrase | Expiration | Reference |
|---|---|---|---|---|
| Personal development only | 1 key | Yes | No (or 2y) | Basic Setup |
| Personal + CI/CD | 2 keys | Personal: Yes, Automation: No | No | Scenario 2 |
| Multi-client consultant | 3+ keys | All: Yes | 1 year | Scenario 3 |
| Enterprise team | 1 key | Yes | 1 year | Scenario 4 |
Quick Decision Flowchart
Are you a new GPG user?
├─ YES → Use gpg-signing skill first
└─ NO → Continue below
Do you need multiple keys?
├─ NO → Use gpg-signing skill (Scenario 1)
└─ YES → Continue below
Which applies to you?
├─ Personal projects + CI/CD automation → Scenario 2 (Personal + CI/CD)
├─ Multiple clients (consultant/contractor) → Scenario 3 (Multi-Client)
├─ Corporate/regulated environment → Scenario 4 (Enterprise)
└─ Unsure? → See references/scenarios.md for detailed comparison
Scenario 1: Basic Setup (Single Personal Key)
For basic single-key setup, use the git:gpg-signing skill instead.
If you're new to GPG signing, start with the git:gpg-signing skill to:
- Install and configure GPG
- Generate your first signing key
- Set up Git commit signing
- Understand passphrase caching
Then return to this skill when you need multiple keys (CI/CD, clients, enterprise).
Scenario 2: Personal + CI/CD Automation
Two-Key Strategy:
- Key 1: Personal Development - Passphrase-protected, used for interactive commits
- Key 2: CI/CD Automation - No passphrase (required for unattended operation), stored in GitHub Secrets
Quick Setup:
- Generate automation key (no passphrase)
- Export private key:
gpg --armor --export-secret-keys <KEY_ID> > automation-private.asc - Store in GitHub Secrets → GPG_PRIVATE_KEY
- Configure GitHub Actions to import and use key
Security trade-off: Automation key has NO passphrase (required for unattended operation), but is isolated from personal key and stored in encrypted GitHub Secrets.
Full workflow: See references/scenarios.md#scenario-2-personal--cicd
Scenario 3: Multi-Client Consultant
Per-Client Key Strategy:
- Different GPG key for each client
- Automatic key switching by directory (Git conditional includes)
- Identity isolation (Client A commits ≠ Client B commits)
Directory Structure:
~/Clients/
├── ClientA/
│ ├── .gitconfig-clienta
│ └── projects/
└── ClientB/
├── .gitconfig-clientb
└── projects/
Automatic Switching:
Global ~/.gitconfig uses includeIf to load per-client configs based on directory.
Quick Setup:
- Generate key per client (1-year expiration recommended)
- Configure conditional includes in
~/.gitconfig - Create
.gitconfig-clientawith client-specific key - Test automatic switching:
cd ~/Clients/ClientA && git config user.signingkey
Full workflow: See references/scenarios.md#scenario-3-multi-client-consultant
Scenario 4: Enterprise Environment
Follow Enterprise Policy:
Your organization will specify:
- Key algorithm and size (RSA 4096, Ed25519)
- Expiration period (typic
Установить gpg-multi-key в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
ReadBashGlobGrepВложенные файлы
FAQ
Что делает скилл gpg-multi-key?
Advanced GPG multi-key management strategies for consultants, CI/CD automation, and enterprise teams. Configure, set up, run, and execute multi-key GPG workflows. Use when managing multiple GPG keys (personal + automation, per-client keys, enterprise keys), configuring CI/CD commit signing, implementing per-client key isolation, using conditional Git includes, setting up automated signing, or scaling GPG key strategies beyond single-key setups.
Как установить скилл gpg-multi-key?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл gpg-multi-key запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic