Clean up AWS resources created by the AgentCore workshop. An agent skill from aws-samples/sample-amazon-bedrock-agentcore-onboarding.

OfficialMIT-0Auto-check: notes

Install Clean Workshop

skills CLI
$ npx skills add aws-samples/sample-amazon-bedrock-agentcore-onboarding --skill clean-workshop -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install aws-samples/sample-amazon-bedrock-agentcore-onboarding clean-workshop --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/aws-samples/sample-amazon-bedrock-agentcore-onboarding.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/clean-workshop .claude/skills/clean-workshop && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
clean-workshop
GitHub stars
133
Token cost
~789 tokens
SKILL.md length
370 words
Files
1
Skills in repo
4
Repo updated
First seen
Licence
MIT-0

At a glance

Clean up AWS resources created by the AgentCore workshop. An agent skill from aws-samples/sample-amazon-bedrock-agentcore-onboarding.

  • Works in 7 steps: 09_browser_use first (independent,… → 08_policy second (depends on 07_gateway) → 07_gateway (depends on 06_identity) → …
  • Someone wants to tear down
  • SKILL.md covers Usage, Arguments, Steps with Cleanable Resources and Dependency Order (CRITICAL), plus 2 more sections
  • Calls uv

What it does

Clean Workshop is an agent skill from aws-samples/sample-amazon-bedrock-agentcore-onboarding, published by the product's own GitHub organization. Clean up AWS resources created by the AgentCore workshop. Use when someone wants to tear down, clean up, or remove workshop resources.

Its SKILL.md is about 790 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with Amazon Web Services. The licence is MIT-0.

When your agent uses it

  • Someone wants to tear down
  • Remove workshop resources

Example prompts

  • “/clean-workshop”

Requirements

  • Python 3
  • Pre-approved tools (allowed-tools): Bash, Read, Glob, Grep, Task, TaskCreate, TaskUpdate, TaskList

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. 09_browser_use first (independent, ephemeral sessions)
  2. 08_policy second (depends on 07_gateway)
  3. 07_gateway (depends on 06_identity)
  4. 06_identity (depends on 02_runtime)
  5. 05_evaluation (independent)
  6. 03_memory (independent)
  7. 02_runtime last (other steps depend on it)

What it can do on your machine

Read from SKILL.md and the folder at commit 376ee7c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash
    • Read
    • Glob
    • Grep
    • Task
    • TaskCreate
    • TaskUpdate
    • TaskList

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • uv

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use uv, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Clean Workshop loads about 789 tokens when it runs. Until then it costs about 37 tokens; SKILL.md has 370 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~37
When it runs · the whole SKILL.md, loaded when a task matches
~789

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash, Read, Glob, Grep, Task, TaskCreate, TaskUpdate, TaskList

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from aws-samples/sample-amazon-bedrock-agentcore-onboarding at commit 376ee7c, republished under its MIT-0 licence (© aws-samples). 370 words, ~789 tokens.

Download SKILL.mdSave it as .claude/skills/clean-workshop/SKILL.md (or your agent's skills folder).
name
clean-workshop
description
Clean up AWS resources created by the AgentCore workshop. Use when someone wants to tear down, clean up, or remove workshop resources.
allowed-tools
Bash, Read, Glob, Grep, Task, TaskCreate, TaskUpdate, TaskList

Clean Workshop Resources

Clean up AWS resources created by the AgentCore onboarding workshop.

Usage

  • /clean-workshop — Clean all workshop resources (09, 08, 07, 06, 05, 03, 02)
  • /clean-workshop 02 — Clean only step 02 (runtime)
  • /clean-workshop 02 03 — Clean steps 02 and 03
  • /clean-workshop 05 06 07 — Clean steps 05, 06, and 07
  • /clean-workshop 08 09 — Clean steps 08 and 09

Arguments

$ARGUMENTS contains space-separated step numbers to clean (e.g., 02 03 07). If empty, clean ALL steps that have resources.

Steps with Cleanable Resources

Only these steps create AWS resources that need cleanup:

StepDirectoryResourcesConfig File
0202_runtime/Agent runtime, ECR repository, config files.bedrock_agentcore.yaml
0303_memory/Memory instances (prefix: cost_estimator_memory)None
0505_evaluation/Custom evaluator (name: cost_estimator_tool_usage)None
0606_identity/OAuth2 provider, Cognito user pool/client/domain, runtimeinbound_authorizer.json
0707_gateway/Gateway targets, gateway, config filesoutbound_gateway.json
0808_policy/Policy engine, policies, Cognito app clientspolicy_config.json
0909_browser_use/Browser sessions (ephemeral, auto-expire)None

Dependency Order (CRITICAL)

Resources MUST be cleaned in reverse dependency order to avoid errors:

  1. 09_browser_use first (independent, ephemeral sessions)
  2. 08_policy second (depends on 07_gateway)
  3. 07_gateway (depends on 06_identity)
  4. 06_identity (depends on 02_runtime)
  5. 05_evaluation (independent)
  6. 03_memory (independent)
  7. 02_runtime last (other steps depend on it)

Execution

For each step to clean, run:

cd <project_root>/<step_directory> && uv run python clean_resources.py
Show full SKILL.md (160 more words)Show less
Before cleaning each step:
  1. Check if the config file exists (indicates resources were created)
  2. If no config file, skip that step with a message
  3. Run clean_resources.py from within the step directory (scripts use relative paths)
  4. Report success or failure for each step
Error handling:
  • If a step fails, log the error and continue with remaining steps
  • Report a summary at the end showing which steps succeeded/failed
  • Common errors: ResourceNotFoundException (already deleted), config file missing (never created)

Implementation

  1. Parse $ARGUMENTS to determine which steps to clean. If empty, use all: 09 08 07 06 05 03 02
  2. Sort the requested steps in correct cleanup order: 09, 08, 07, 06, 05, 03, 02
  3. Create a task list tracking each step
  4. For each step (in order): a. Check if the step directory and config file exist b. If resources exist, run clean_resources.py from that directory c. Mark task as completed
  5. Print a final summary

© aws-samples, MIT-0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/clean-workshop of aws-samples/sample-amazon-bedrock-agentcore-onboarding.

Open the folder on GitHubat commit 376ee7c

Compare with similar skills

Clean Workshop next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Clean Workshop compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Clean Workshop this skillaws-samples/sample-amazon-bedrock-agentcore-onboarding133—~789Automated safety check: NotesMIT-0
SageMaker IAM Role Preflighthuggingface/skills11k1 repos~1.8kAutomated safety check: PassApache-2.0
SageMaker Serving Image Selectionhuggingface/skills11k1 repos~4.6kAutomated safety check: PassApache-2.0
Cloud Cost Optimizationwshobson/agents40k13 repos~1.7kAutomated safety check: PassMIT
Agent Squad Python Guide2FastLabs/agent-squad7.8k—~4.7kAutomated safety check: PassApache-2.0
Paperclip Pagepaperclipai/paperclip98k—~1kAutomated safety check: PassMIT

Similar skills

  • Official

    Finds or validates a usable SageMaker execution role before deploying or training, so scripts do not try to create IAM roles they lack permission to create.

    11k GitHub starsUsed in 1 repo~1.8k tokens
    DevOps & CloudAuto-check passed
  • Official

    Chooses the right serving container and current image URI for deploying a Hugging Face model to a SageMaker endpoint, preferring Hugging Face images over generic ones.

    11k GitHub starsUsed in 1 repo~4.6k tokens
    AI & LLM EngineeringAuto-check passed
  • Cuts cloud spend across AWS, Azure, GCP and OCI with cost tagging, rightsizing, commitment and spot pricing models, and architecture changes.

    40k GitHub starsUsed in 13 repos~1.7k tokens
    DevOps & CloudAuto-check passed
  • Agent Squad Python Guide

    2FastLabs/agent-squad

    Map of the agent-squad Python framework for async multi-agent orchestration: which agent, classifier, storage and tool provider to pick, and the pitfalls to avoid.

    7.8k GitHub stars~4.7k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Paperclip Page

    paperclipai/paperclip

    Publish static HTML pages and asset folders to the Paperclip S3/CloudFront page host.

    98k GitHub stars~1k tokensUpdated today
    Frontend & DesignAuto-check passed
  • AWS Cdk Development

    zxkane/aws-skills

    AWS Cloud Development Kit (CDK) expert for building cloud infrastructure with TypeScript/Python.

    367 GitHub starsUsed in 2 repos~2.5k tokens
    DevOps & CloudAuto-check passed

More from aws-samples/sample-amazon-bedrock-agentcore-onboarding

  • Run Workshop

    aws-samples/sample-amazon-bedrock-agentcore-onboarding

    Official

    Run the AgentCore workshop steps sequentially to test the full attendee experience.

    133 GitHub stars~1.2k tokensUpdated 5 days ago
    Auto-check: notes
  • Scaffold Workshop

    aws-samples/sample-amazon-bedrock-agentcore-onboarding

    Official

    Scaffold and draft a new AgentCore workshop. An agent skill from aws-samples/sample-amazon-bedrock-agentcore-onboarding.

    133 GitHub stars~1.5k tokensUpdated 5 days ago
    Auto-check: notes
  • Sync Ja

    aws-samples/sample-amazon-bedrock-agentcore-onboarding

    Official

    Sync Japanese README translations with English source. An agent skill from aws-samples/sample-amazon-bedrock-agentcore-onboarding.

    133 GitHub stars~1.5k tokensUpdated 5 days ago
    Auto-check passed

Questions about Clean Workshop

What does Clean Workshop do?

Clean up AWS resources created by the AgentCore workshop. An agent skill from aws-samples/sample-amazon-bedrock-agentcore-onboarding. Clean Workshop is an agent skill from aws-samples/sample-amazon-bedrock-agentcore-onboarding, published by the product's own GitHub organization. Clean up AWS resources created by the AgentCore workshop.

When should I use Clean Workshop?

Clean Workshop fits situations like: someone wants to tear down; remove workshop resources.

How do I install Clean Workshop in Claude Code?

Run `npx skills add aws-samples/sample-amazon-bedrock-agentcore-onboarding --skill clean-workshop -a claude-code`. Or copy the skill folder (.claude/skills/clean-workshop in aws-samples/sample-amazon-bedrock-agentcore-onboarding) into .claude/skills/clean-workshop in your project. Claude Code loads it when a task matches its description.

How do I install Clean Workshop in Codex?

Run `npx skills add aws-samples/sample-amazon-bedrock-agentcore-onboarding --skill clean-workshop -a codex`. Or copy the skill folder (.claude/skills/clean-workshop in aws-samples/sample-amazon-bedrock-agentcore-onboarding) into .agents/skills/clean-workshop in your project. Codex loads it when a task matches its description.

Can I use Clean Workshop in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add aws-samples/sample-amazon-bedrock-agentcore-onboarding --skill clean-workshop -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/clean-workshop, .gemini/skills/clean-workshop, .github/skills/clean-workshop and .opencode/skills/clean-workshop in your project.

What does Clean Workshop need to run?

Going by SKILL.md and its folder, Clean Workshop needs the command-line tools its instructions call (uv). Our summary lists: Python 3. Its frontmatter pre-approves these tools: Bash, Read, Glob, Grep, Task, TaskCreate, TaskUpdate, TaskList.

Does Clean Workshop access the network?

SKILL.md contains no URLs. Its commands use uv, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Clean Workshop safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Clean Workshop use?

Clean Workshop is published under the MIT-0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Clean Workshop use?

About 789 tokens (SKILL.md is roughly 3.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Clean Workshop?

Skills that share tags, products or a category with Clean Workshop: SageMaker IAM Role Preflight (huggingface/skills, 11k stars), SageMaker Serving Image Selection (huggingface/skills, 11k stars), Cloud Cost Optimization (wshobson/agents, 40k stars) and Agent Squad Python Guide (2FastLabs/agent-squad, 7.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Clean Workshop?

aws-samples (a GitHub organization, an official publisher) maintains it in aws-samples/sample-amazon-bedrock-agentcore-onboarding, which has 133 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on October 1, 2026.

Source: aws-samples/sample-amazon-bedrock-agentcore-onboarding on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.