| name | confidential |
| description | Use when encrypting, decrypting, signing, or managing confidential content. Smart routing across three tools: cryptoid for Hugo site encryption, pagevault for HTML and file encryption, and gpg for file-level encryption and signing. |
Confidentiality Toolkit
Smart routing across three complementary encryption tools. Pick the right tool based on what
needs protecting, apply it, and optionally sign the result.
Tool Selection
| Signal | Tool | Why |
|---|
Hugo site, markdown content, _index.md cascade, .cryptoid.yaml | cryptoid | Multi-user/group whole-page encryption integrated with Hugo build |
HTML files, static site output, arbitrary files for web delivery, <pagevault> tags | pagevault | Section-level or whole-file encryption, self-contained HTML output with viewers |
Offline encryption, signing, key exchange, .gpg files, asymmetric crypto | gpg | Standard file encryption, detached signatures, public key infrastructure |
Decision Tree
Is the target Hugo MARKDOWN content (files under content/)?
YES -> cryptoid
NO -> Is this HTML, built site output, assets (PDFs, images), or files
meant for browser viewing?
YES -> pagevault
NO -> gpg
Note the Hugo carve-out: cryptoid encrypts markdown content only. Hugo assets
(PDFs, images in static/) and built HTML output go to pagevault, even on a
Hugo site.
Override: the user may explicitly name a tool regardless of context. Honor that.
Compound Workflows
Some tasks require multiple tools in sequence:
- Encrypt and sign: Encrypt with cryptoid or pagevault first, then
gpg --detach-sign the output
- Verify then decrypt:
gpg --verify the signature, then pagevault unlock or cryptoid decrypt
- Web delivery + archival:
pagevault lock for browser access, gpg -e the original for offline backup
cryptoid — Hugo Site Encryption
Encrypts whole markdown pages for Hugo static sites. Multi-user access control with
group-based permissions and directory cascade via _index.md.
Key concepts: .cryptoid.yaml config (users/groups/salt), encrypted: true front matter,
cascade from _index.md, admin group gets universal access, _index.md bodies are encrypted
(front matter stays readable).
Essential Commands
cryptoid init
cryptoid protect content/private/ --groups team
cryptoid protect content/doc.md --groups admin
cryptoid protect -i
cryptoid unprotect content/private/
cryptoid encrypt --content-dir content/
cryptoid encrypt --content-dir content/ --dry-run
cryptoid decrypt --content-dir content/
cryptoid status --content-dir content/ --verbose
cryptoid rewrap --content-dir content/
cryptoid rewrap --rekey
cryptoid validate --content-dir content/
cryptoid hugo install
User/Group Management
cryptoid config list-users
cryptoid config add-user USERNAME [--group GROUP]
cryptoid config remove-user USERNAME
cryptoid config list-groups
cryptoid config add-group NAME [--members alice,bob]
cryptoid config remove-group NAME
cryptoid config generate-salt [--apply]
For detailed reference: ${CLAUDE_PLUGIN_ROOT}/skills/confidential/references/cryptoid.md
pagevault — HTML/File Encryption
Encrypts regions within HTML or wraps arbitrary files (PDF, images, text, markdown) into
self-contained encrypted HTML with built-in viewer plugins. Works with any static site.
Key concepts: <pagevault> tags for section-level encryption, .pagevault.yaml config,
self-contained output (HTML+JS+CSS all inline), viewer plugins for different file types,
multi-user support.
Essential Commands
pagevault lock page.html
pagevault lock report.pdf
pagevault lock site/ --site
pagevault lock page.html -s "#secret"
pagevault unlock _locked/page.html
pagevault mark page.html -s ".private"
pagevault inspect encrypted.html
pagevault config init
pagevault sync _locked/ -r
For detailed reference: ${CLAUDE_PLUGIN_ROOT}/skills/confidential/references/pagevault.md
gpg — File Encryption and Signing
Standard GNU Privacy Guard for offline file encryption, digital signatures, and key management.
Use for non-web scenarios or to sign outputs from cryptoid/pagevault.
Essential Commands
gpg -c --cipher-algo AES256 file.txt
gpg -d file.txt.gpg > file.txt
gpg -e -r recipient@email.com file.txt
gpg -d file.txt.gpg > file.txt
gpg --detach-sign file.txt
gpg --verify file.txt.sig file.txt
gpg --clearsign message.txt
gpg --list-keys
gpg --list-secret-keys
gpg --gen-key
gpg --export -a "Name" > public.key
gpg --import public.key
For detailed reference: ${CLAUDE_PLUGIN_ROOT}/skills/confidential/references/gpg.md
Additional Resources
Reference Files
For detailed usage, configuration, and troubleshooting:
${CLAUDE_PLUGIN_ROOT}/skills/confidential/references/cryptoid.md — Full cryptoid reference (config format, cascade rules, front matter options, build workflow, security model)
${CLAUDE_PLUGIN_ROOT}/skills/confidential/references/pagevault.md — Full pagevault reference (config format, viewers, selectors, site bundling, multi-user)
${CLAUDE_PLUGIN_ROOT}/skills/confidential/references/gpg.md — GPG reference (key management, trust model, batch operations, common recipes)