Secret

From the-agency-ai/the-agency · View interactive version

Secret is an AI agent skill from the GitHub repository the-agency-ai/the-agency. Secret Management — set, get, list, delete, rotate, scan via configured provider

How to use this skill

Skill file

<!--

Flag #62/#63: allowed-tools removed. Inherits Bash(*) from

.claude/settings.json. Restricting to specific subcommand patterns at the

skill level silently blocks agents on permission prompts the agent cannot

see — see dispatch #171 for the devex incident that surfaced this trap.

-->

Secret Management

Manage secrets through the configured provider (SPEC-PROVIDER pattern). Generic skill that dispatches to a provider tool based on agency/config/agency.yaml.

Arguments

Instructions

Step 1: Resolve the provider

Read agency/config/agency.yaml for the secrets provider:

secrets:
  provider: "vault"  # or "aws", "1password", etc.

The provider maps to a tool: ./agency/tools/secret-{provider}

If no provider is configured, default to vault.

Step 2: Verify the provider tool exists

Check ./agency/tools/secret-{provider} exists and is executable. If not:

Step 3: Map verbs to provider commands

Different providers use different verbs:

Step 4: Execute

Run the provider tool with the mapped verb:

./agency/tools/secret-vault create api-key
./agency/tools/secret-{provider} get database-url
./agency/tools/secrets-scan

Use relative paths — never $CLAUDE_PROJECT_DIR/agency/tools/... (the env var is empty in agent Bash calls).

Step 5: Report

Show the user the result. Never echo secret values to the conversation — pipe them to the appropriate destination (env file, clipboard, etc.) or confirm completion without revealing the value.

Error Handling

Security Rules

SPEC-PROVIDER Pattern

This skill is one of several using the SPEC-PROVIDER pattern (see agency/README-THEAGENCY.md SPEC-PROVIDER section). The skill is generic; the provider implements the contract. Add new providers by creating ./agency/tools/secret-{name} that supports the standard verbs.

OFFENDERS WILL BE FED TO THE — CUTE — ATTACK KITTENS!

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.