xuanshu-workspace-execution

xuanshu-workspace-execution is a skill for Claude Code, Codex from bammt/XuanShu-Agent. It costs 30 tokens per session (477 once invoked), scanned A, original, Apache-2.0.

A platform skill for running code and creating files inside an isolated application workspace. It also explains how selected skills and their supporting files are made available to that workspace.

In plain words
What is it for?
Use it when a bound skill contains scripts or needs to create deliverable files. It provides workspace paths and a mapping for importing the correct skill resources.
Why use it?
It prevents scripts and resources from being loaded from the wrong skill package or outside the permitted workspace.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when a bound skill contains scripts or needs to create deliverable files. It provides workspace paths and a mapping for importing the correct skill resources.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/bammt/xuanshu-agent/xuanshu-workspace-execution
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add bammt/XuanShu-Agent --skill xuanshu-workspace-execution
Clone the repo
git clone --depth 1 https://github.com/bammt/XuanShu-Agent

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for xuanshu-workspace-execution

README.md
[![agentmods](https://agentmods.dev/badge/skills/bammt/xuanshu-agent/xuanshu-workspace-execution/github.svg)](https://agentmods.dev/skills/bammt/xuanshu-agent/xuanshu-workspace-execution)
Your own site
<a href="https://agentmods.dev/skills/bammt/xuanshu-agent/xuanshu-workspace-execution"><img src="https://agentmods.dev/badge/skills/bammt/xuanshu-agent/xuanshu-workspace-execution/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for xuanshu-workspace-execution

Your own site · 80×15
<a href="https://agentmods.dev/skills/bammt/xuanshu-agent/xuanshu-workspace-execution"><img src="https://agentmods.dev/badge/skills/bammt/xuanshu-agent/xuanshu-workspace-execution.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 477 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00030 $0.00477
Opus 5 $0.00015 $0.00238
Sonnet 5 $0.00006 $0.00095
Haiku 4.5 $0.00003 $0.00048

Measured 11d ago against content hash 4e221ee8b77a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

xuanshu-workspace-execution scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

src/xuanshu_platform/builtin_resources/skills/xuanshu-workspace-execution/SKILL.md · 46 lines

What it actually says

Application workspace execution

The application has a persistent isolated workspace exposed as $XUANSHU_WORKSPACE. User uploads and all deliverable files belong there.

Complete bound Skill packages are copied into $XUANSHU_SKILLS_DIR. The package roots selected for the current Agent are listed in $XUANSHU_SKILL_ROOTS. Do not import a top-level scripts or references package: several bound Skills can contain directories with those same names. $XUANSHU_SKILL_MAP is a JSON object mapping each selected Skill's unique Python namespace to its complete package root.

Import code through the unique namespace, for example:

from xuanshu_skills.skill_3_official_doc_writer import SKILL_ROOT
from xuanshu_skills.skill_3_official_doc_writer.scripts.generator import build

rules = (SKILL_ROOT / "references" / "format.md").read_text(encoding="utf-8")

Read the actual namespace names from $XUANSHU_SKILL_MAP; never guess them. Each namespace exposes SKILL_ROOT, so references/, assets/, templates, and other non-Python resources remain tied to the correct Skill without any extra copy. Relative paths in a Skill are resolved from that SKILL_ROOT.

Use execute_skill_script when starting an existing script from its package directory is convenient. It is an optional helper: execute_python and execute_command may also write new code, call Skill modules, install dependencies, configure fonts, or combine several resources when the task requires it. Dependencies are installed into the application's private $PIP_TARGET under $XUANSHU_RUNTIME_DIR, which is injected consistently on every execution.

Before finishing, check the tool result and report only the user-facing result. The platform publishes files from $XUANSHU_WORKSPACE separately, so never print host filesystem paths or construct Markdown links to local files.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 46 lines · 30 tokens per session scan A 4e221ee8b77a

Subscribe to this mod's changes

xuanshu-workspace-execution is a skill published in the GitHub repository bammt/XuanShu-Agent (2 stars, last pushed 7d ago), licensed Apache-2.0. It adds 30 tokens to every session and 477 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

deepseek-harness

Use when building AI agent applications with a plugin-based architecture — Web UI, CLI, Python SDK, Cordis plugin system, multi-model orchestration. DeepSeek Harness (dsh): open-source agent harness by DeepSeek AI where everything is a plugin, powered by Cordis for spatiotemporal composability.

znlgis/opengis-skills · 68 tokens

deepseek-harness

Use this skill whenever the user wants to call DeepSeek V4-Pro / V4-Flash (or its legacy aliases deepseek-chat / deepseek-reasoner), or you see code that imports from openai import OpenAI with baseurl="https://api.deepseek.com". This skill teaches you the 10 protocol contract rules required to avoid the 16 documented…

HenryZ838978/deepseek-harness · 144 tokens

web-ui-motion

Build polished front-end UI together with a signature motion effect in a single self-contained HTML file, combining SVG.js / SVG filters and the Canvas 2D API. Use when the user asks to build a web page, landing page, dashboard, or component that has a special visual effect, animation, particle system, fluid/water…

creativedswork/dscode · 152 tokens

openspec-propose

Create a complete OpenSpec proposal with design, specs, prototype, and tasks. Use when the user wants a change ready for implementation.

creativedswork/dscode · 32 tokens

prototype-workflow

Generate and lifecycle-manage HTML prototypes for UI exploration and OpenSpec changes. Use when creating, validating, completing, or archiving a UI prototype.

creativedswork/dscode · 34 tokens

html-output

Produce rich, self-contained, single-file HTML as the default output format instead of Markdown — for specs, plans, code reviews, PR write-ups, reports, explainers, design explorations, slide decks, SVG diagrams, and small interactive editors with copy-as-prompt/JSON export. USE WHEN the user asks to "make an HTML…

creativedswork/dscode · 146 tokens