# Use secret

> Use secret is an open-source agent skill for security. Lets an agent run permitted Secrets broker operations or pinned jobs without seeing. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/awebai/aweb/tree/main/naapp/secrets/src/aweb_secrets/skills/use-secret
- **Repository:** https://github.com/awebai/aweb
- **GitHub stars:** 132
- **License:** MIT
- **Skill name:** use-secret
- **Collection:** https://github.com/awebai/aweb
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-04

## About

This skill guides an agent through calling credentials it has been granted through the Secrets broker, without the agent ever handling the secret values. It walks through listing the references a user can access, describing the operations, job definitions and parameter schemas attached to each one, and then submitting either a named broker operation or an open request, or launching a pinned runner job.

The skill spells out how to read the response state after each call, since a zero exit code only means HTTP success. It covers the approval flow, where a human approver confirms the request on the Secrets console with a passkey, and how to resubmit the same request only once it is approved. It also says how to treat uncertain outcomes, refusals and withheld results, and instructs the agent not to retry automatically or change parameters.

The skill expects the aw command-line tool and an installed Secrets app, reached through the aw plugin install command. It refers to a self-hosted option that uses a configured origin and app id instead. The guidance is in plain instructions with no bundled scripts.

## When your agent uses it

> Use an allowed Secrets broker operation or pinned runner job without handling credential values.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/awebai/aweb/tree/HEAD/naapp/secrets/src/aweb_secrets/skills/use-secret)
- [License: MIT](https://github.com/awebai/aweb/tree/HEAD/naapp/secrets/src/aweb_secrets/skills/use-secret)

## Features

- **Discover granted references:** Lists permitted secret references and reads the operations, job definitions and parameter schemas attached to each.
- **Named and open requests:** Submits broker calls as either named operations with parameters or open method and URL requests where the grant allows.
- **Pinned runner jobs:** Launches fixed jobs on a runner using durable credential slots, without arbitrary shell commands.
- **Approval handling:** Checks request status and resubmits only after an enrolled approver has approved the request.
- **Outcome reconciliation:** Explains how to read states such as not_sent, refused and outcome_unknown without assuming success or retrying blindly.

## Good for

- Check the status of an upstream service using a granted credential
- Run a pre-approved runner job that uses a stored token
- Find which secret references and operations are available to me
- Follow up on a request that is waiting for passkey approval

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/use-secret` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awebai/aweb.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/use-secret &&
cp -R "$tmp/naapp/secrets/src/aweb_secrets/skills/use-secret" ~/.claude/skills/use-secret &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/use-secret` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/use-secret` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awebai/aweb.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/use-secret &&
cp -R "$tmp/naapp/secrets/src/aweb_secrets/skills/use-secret" ~/.agents/skills/use-secret &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/use-secret` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/use-secret` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awebai/aweb.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/use-secret &&
cp -R "$tmp/naapp/secrets/src/aweb_secrets/skills/use-secret" ~/.cursor/skills/use-secret &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/use-secret` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/awebai/aweb.git --path naapp/secrets/src/aweb_secrets/skills/use-secret
```

Or copy the folder to `~/.gemini/skills/use-secret` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/use-secret`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/awebai/aweb.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/use-secret &&
cp -R "$tmp/naapp/secrets/src/aweb_secrets/skills/use-secret" ~/.copilot/skills/use-secret &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/use-secret` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/awebai/aweb.git
```

Then copy `aweb/naapp/secrets/src/aweb_secrets/skills/use-secret` into your agent's skills folder as `use-secret`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What do I need to use Use secret?

It needs the aw command-line tool and the Secrets app installed from its origin, for example with aw plugin install https://secrets.aweb.ai. Self-hosted deployments use their configured origin and app id.

### Does the agent ever see the credential values?

No. The skill says credentials reach the broker or a pinned job process rather than the tool interface, and the agent must never request, export, log or insert a credential value.

### Can the agent approve its own requests?

No. The skill states that an enrolled approver must decide with a passkey on Secrets' own console, and that an agent tool, a link or a team signature cannot approve.

### Does a successful command mean the action completed?

Not necessarily. The skill says to read the response state, since a zero exit only reflects HTTP success and a job may still await its runner.

### How do I install Use secret in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/use-secret to use it in all your projects, or to .claude/skills/use-secret in one project.

### Does Use secret run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Use secret?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Use secret?

The closest alternatives to Use secret are Contain access, Envault, Sh kb secrets, Key custody and Agent security hardening.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Contain access](https://ai-powered.com/skills/contain-access): Contain access is an open-source agent skill for security.
- [Envault](https://ai-powered.com/skills/envault-mildynora): Envault is an open-source agent skill for security.
- [Sh kb secrets](https://ai-powered.com/skills/sh-kb-secrets): Sh kb secrets is an open-source agent skill for security.
- [Key custody](https://ai-powered.com/skills/key-custody): Key custody is an open-source agent skill for security.
- [Agent security hardening](https://ai-powered.com/skills/agent-security-hardening): Agent security hardening is an open-source agent skill for security.
- [Security](https://ai-powered.com/skills/security-jasgujral): Security is an open-source agent skill for security.
- [Secrets in git history](https://ai-powered.com/skills/secrets-in-git-history): Secrets in git history is an open-source agent skill for security.
- [Secret scanning](https://ai-powered.com/skills/secret-scanning): Secret scanning is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/use-secret
