Skip to content
Back to skills

Exec With Secrets

ASecurity

Run shell commands with secrets injected from q-ring with stdout/stderr redaction and policy checks. Use when the user wants to run tests, migrations, or CLIs that need API keys without pasting secrets into the shell or .env.

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

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Scanned November 7, 2026

npx -y skills add I4cTime/q-ring --skill exec-with-secrets --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Exec With Secrets?

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

Security grade badge for Exec With Secrets
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/i4ctime-exec-with-secrets/badge)](https://www.skillsdirectory.com/skills/i4ctime-exec-with-secrets)

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: exec-with-secrets
description: Run shell commands with secrets injected from q-ring with stdout/stderr redaction and policy checks. Use when the user wants to run tests, migrations, or CLIs that need API keys without pasting secrets into the shell or .env.
---

# Exec with secrets (MCP)

## When to use

- Running a project script that reads env vars you keep in q-ring
- One-off CLI tools (`curl`, SDK CLIs) that need a token from the keyring
- CI-like commands where redaction and `policy.exec` matter

## Tool

| Task | MCP tool |
|------|----------|
| Run command with env from q-ring | `exec_with_secrets` |

## Workflow

1. Call **`get_policy_summary`** if unsure whether `exec_with_secrets` is allowed (`policy.mcp` may deny this tool).
2. Prefer **`check_policy`** with `action: "exec"` when experimenting with deny/allow rules.
3. Call **`exec_with_secrets`** with the argv array, `projectPath`, and optional key filters so only required secrets are loaded.

## Safety

- Redacted output reads `[QRING:REDACTED:<KEY_NAME>]`: the value of that keyring key appeared there (verbatim, encoded, or as a 16+ char slice) and was scrubbed. Treat it as a leak to fix in the command, not as data. `[QRING:REDACTED]` means the key is unknown.
- Never log raw command output to public channels without reviewing redaction limits.
- Prefer **`tunnel_create` / `tunnel_read`** for one-off handoff of a single value to another agent when full `exec` is unnecessary.

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.