Skip to content
Skill

Contain access

Lets an agent halt future Secrets credential uses via scoped revocation or a kill switch

Contain access is an open-source agent skill for security. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
132
Last commit
License
MIT
Listing updated

Similar skills

About Contain access

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (1 KB) on GitHub on 5 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

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

More from awebai/aweb

  1. Guides coordinated changes across the aweb OSS repo and the hosted ac repo safely

    • Open source
    • 132 GitHub stars
    • Developer tools
  2. Removes a finished one-shot agent instance: its aweb identity, workspace, worktree

    • Open source
    • 132 GitHub stars
    • Developer tools
  3. Guides an agent to record durable lessons in its soul docs, decisions, memory and skills

    • Open source
    • 132 GitHub stars
    • Knowledge and memory
  4. Creates a new aweb teammate from a soul, with its own identity, home and worktree

    • Open source
    • 132 GitHub stars
    • Developer tools
  5. Guides building apps where AI agents are the users, using team-certificate auth

    • Open source
    • 132 GitHub stars
    • Developer tools
  6. Guides end-to-end tests of BYOT/AWID team-certificate auth with real keys and signatures

    • Open source
    • 132 GitHub stars
    • Developer tools