Skip to content
Back to skills

Secret Management

ASecurity

Manage secrets stored in q-ring — store, retrieve, list, inspect, import, export, and configure superposition, decay, entanglement, and tags. Use when the user mentions secrets, API keys, tokens, credentials, environment variables, .env files, or asks to store/retrieve/delete a value securely.

  • 6 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
ai-agentsapidatabase

Works with

  • api
  • mcp

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add I4cTime/q-ring --skill secret-management --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Secret Management?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Secret Management
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/i4ctime-secret-management/badge)](https://www.skillsdirectory.com/skills/i4ctime-secret-management)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: secret-management
description: Manage secrets stored in q-ring — store, retrieve, list, inspect, import, export, and configure superposition, decay, entanglement, and tags. Use when the user mentions secrets, API keys, tokens, credentials, environment variables, .env files, or asks to store/retrieve/delete a value securely.
---

# Secret Management

## When to Use

Activate when the user:
- Asks to store, retrieve, delete, or list secrets
- Mentions API keys, tokens, passwords, credentials, or environment variables
- Wants to import from or export to `.env` files
- Needs superposition (per-environment values) or entanglement (linked secrets)
- Asks about secret expiry, TTL, tags, or access history

## Workflow

### 1. Understand the landscape

Call `get_project_context` to get a redacted overview of existing secrets, scopes, manifest status, and recent activity.

### 2. CRUD operations

| Task | MCP Tool |
|------|----------|
| Store a secret | `set_secret` with optional `ttlSeconds`, `tags`, `description`, `env` (superposition), `rotationFormat` |
| Retrieve a secret | `get_secret` — collapses superposition automatically |
| Check existence | `has_secret` — never reveals the value |
| Delete a secret | `delete_secret` |
| List all secrets | `list_secrets` — filter with `tag`, `expired`, `stale`, `filter` |
| Inspect metadata | `inspect_secret` — shows decay, entanglement, access history (no value) |
| Usage / optimization | `analyze_secrets` — JSON report on secret usage patterns |

`get_secret`, `list_secrets`, and related tools return **JSON** text payloads (not raw unwrapped strings) for predictable agent parsing.

### 3. Import and export

- **Import**: `import_dotenv` to bulk-load from `.env` content
- **Export**: `export_secrets` with format `env` or `json`, optional key/tag filters

### 4. Superposition (multi-environment)

Store per-environment values with the `env` parameter on `set_secret`:
- `set_secret(key="DB_URL", value="...", env="dev")`
- `set_secret(key="DB_URL", value="...", env="prod")`
- `get_secret` collapses to the detected environment automatically

### 5. Entanglement

Link secrets so rotating one updates the other:
- `entangle_secrets(sourceKey, targetKey)` — bidirectional link
- `disentangle_secrets(sourceKey, targetKey)` — remove link

### 6. Scopes

Secrets resolve through a cascade: project -> team -> org -> global. Use the `scope` parameter to target a specific level.

## Best Practices

- Always add a `description` when storing secrets for discoverability
- Use `tags` to group related secrets (e.g., `database`, `api`, `auth`)
- Set `ttlSeconds` for credentials that expire (forces rotation awareness)
- Use `generate_secret` to create high-entropy values instead of inventing them

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.