Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aws-samples avatar

Workspace

  • 35 installs
  • 186 repo stars
  • Updated August 4, 2026
  • aws-samples/sample-strands-agent-with-agentcore

Workspace is a Claude Code skill that gives an AI agent read and write access to a shared session workspace so files can pass between skills.

About

This skill gives an AI agent unified read and write access to files in the current session workspace. A developer adds it to a Strands agent so one skill's output (code-agent files, Word, Excel, images) can be read or handed to another skill. It abstracts path conventions and handles text and base64 binary content, with userId and sessionId injected automatically.

  • Provides workspace_list, workspace_read, and workspace_write over a shared session
  • Lets one skill pass a file to another within the same isolated session
  • Handles text and base64 binary files with automatic userId and sessionId injection

Workspace by the numbers

  • 35 all-time installs (skills.sh)
  • Ranked #8,710 of 16,546 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

workspace capabilities & compatibility

Capabilities
file management
From the docs

What workspace says it does

Read and write files in the shared session workspace. Use this to access files created by any skill
SKILL.md
Files written here are immediately available to all other skills in the session
SKILL.md
npx skills add https://github.com/aws-samples/sample-strands-agent-with-agentcore --skill workspace

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs35
repo stars186
Last updatedAugust 4, 2026
Repositoryaws-samples/sample-strands-agent-with-agentcore

What it does

Let an agent read and write session files so skills can share outputs like documents and images.

Who is it for?

Multi-skill agent sessions where one tool's output file must be read or reused by another tool.

When should I use this skill?

The agent needs to access files created by another skill or hand a file from one skill to another in the same session.

By the numbers

  • 3 core operations (workspace_list, workspace_read, workspace_write)
  • 5 documented path prefixes

Files

SKILL.mdMarkdownGitHub ↗

Workspace

Provides unified read/write access to all files in the current session. The userId and sessionId are injected automatically — you only specify the logical path.

Path Conventions

PrefixWhat it accesses
code-agent/<file>Files created by the code agent (auto-synced)
code-interpreter/<file>Files saved by code interpreter via output_filename
documents/powerpoint/<file>PowerPoint presentations
documents/word/<file>Word documents
documents/excel/<file>Excel spreadsheets
documents/image/<file>Images from other tools
Note: Code interpreter only saves to workspace when output_filename is set in execute_code. Files from execute_command or file_operations stay inside the sandbox.

Usage

See everything in the session:

workspace_list()
workspace_list("code-agent/")

Read a file the code agent created:

workspace_read("code-agent/calculator.png")   # binary → base64
workspace_read("code-agent/report.md")        # text → string

Pass a file from one skill to another:

result = workspace_read("documents/excel/data.xlsx")   # encoding: base64
workspace_write("code-agent/data.xlsx", result["content"], encoding="base64")

Notes

  • Text files return encoding: "text" with plain string content
  • Binary files (images, Office docs, PDF, etc.) return encoding: "base64"
  • workspace_write accepts both encodings — use "base64" for binary
  • Files written here are immediately available to all other skills in the session

UI Guidance (from tools-config)

Path conventions (userId/sessionId injected automatically):

  • code-agent/<file> — files from the code agent
  • documents/powerpoint/<file> — PowerPoint
  • documents/word/<file> — Word
  • documents/excel/<file> — Excel
  • documents/image/<file> — images

Binary vs text: images/PDFs/Office files are returned base64-encoded (encoding: "base64"); use the same encoding when writing them back.

Related skills

AI & Agent Buildingagentsautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.