# Contain access

> Contain access is an open-source agent skill for security. Lets an agent halt future Secrets credential uses via scoped revocation or a kill switch. 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/contain-access
- **Repository:** https://github.com/awebai/aweb
- **GitHub stars:** 132
- **License:** MIT
- **Skill name:** contain-access
- **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 containing a credential incident in the aweb Secrets app. It asks the agent to read the installed app's reference for the current contain schema and the caller's authority, then pick the narrowest action that covers the problem. An owner can revoke a single grant or disable the whole installation with the aw secrets contain command, and the skill notes other targets such as a secret, pending approvals, an approver or a runner, using the manifest's enumerated actions.

After acting, the agent is told to check the returned state and any available operational or audit record. The skill is explicit about limits: stopping future dispatch does not undo a request already sent or recall a credential already delivered to a runner. Upstream credential rotation and 1Password service-account revocation stay with the owner, and uncertain effects should be recorded for later reconciliation.

Containment needs the caller's verified identity and an appropriate Secrets role, but it does not require a passkey. The agent is instructed never to handle credential values while investigating.

## When your agent uses it

> Stop future Secrets credential uses with a narrowly scoped revocation or the installation kill switch.

## 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/contain-access)
- [License: MIT](https://github.com/awebai/aweb/tree/HEAD/naapp/secrets/src/aweb_secrets/skills/contain-access)

## Features

- **Scoped grant revocation:** Revokes one specific grant so that only that access path stops working.
- **Installation kill switch:** Disables the entire Secrets installation for owners when a broader stop is needed.
- **Smallest-action selection:** Directs the agent to choose the narrowest containment action that covers the incident.
- **Post-action state checks:** Asks the agent to verify returned state and available audit records after acting.
- **Limits and reconciliation notes:** States what containment cannot undo and how to log uncertain effects for follow-up.

## Good for

- Revoke a single credential grant after a suspected misuse
- Disable a Secrets installation during an active security incident
- Block pending approvals or a runner from receiving credentials
- Document effects that containment could not reverse for later review

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/contain-access` 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/contain-access &&
cp -R "$tmp/naapp/secrets/src/aweb_secrets/skills/contain-access" ~/.claude/skills/contain-access &&
rm -rf "$tmp"
```

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

### Codex

Copy the skill folder to `~/.agents/skills/contain-access` 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/contain-access &&
cp -R "$tmp/naapp/secrets/src/aweb_secrets/skills/contain-access" ~/.agents/skills/contain-access &&
rm -rf "$tmp"
```

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

### Cursor

Copy the skill folder to `~/.cursor/skills/contain-access` 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/contain-access &&
cp -R "$tmp/naapp/secrets/src/aweb_secrets/skills/contain-access" ~/.cursor/skills/contain-access &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/contain-access` 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/contain-access
```

Or copy the folder to `~/.gemini/skills/contain-access` yourself.

### VS Code

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

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

For one project only, put the folder in `.github/skills/contain-access` 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/contain-access` into your agent's skills folder as `contain-access`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does containment require a passkey?

No. The skill says containment narrows access and needs no passkey, but it still requires the caller's verified identity and an appropriate Secrets role.

### Does disabling access also rotate the credential?

No. Stopping future dispatch does not recall a credential already delivered, and upstream credential rotation and 1Password service-account revocation remain the owner's separate actions.

### What does the agent run to revoke one grant?

It runs aw secrets contain with a request ID, the revoke-grant action and the target grant ID.

### How do I install Contain access in Claude Code?

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

### Does Contain access 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 Contain access?

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 Contain access?

The closest alternatives to Contain access are Use secret, Key custody, Security, Envault and Agent action safety.

## Where this comes from

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

## Alternatives

- [Use secret](https://ai-powered.com/skills/use-secret): Use secret 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.
- [Security](https://ai-powered.com/skills/security-jasgujral): Security 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.
- [Agent action safety](https://ai-powered.com/skills/agent-action-safety): Agent action safety 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.
- [Sh kb secrets](https://ai-powered.com/skills/sh-kb-secrets): Sh kb secrets is an open-source agent skill for security.
- [Speclock guardrails](https://ai-powered.com/skills/speclock-guardrails-sgroy10): Speclock guardrails is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/contain-access
