agent-mode

agent-mode is a skill for Claude Code from claude-office-skills/claude-office-plugin. It costs 16 tokens per session (751 once invoked), scanned A, original, MIT.

An automatic execution mode for completing tasks by generating and running JavaScript. It is designed for WPS Plugin Host, a programming environment that can write results into spreadsheets.

In plain words
What is it for?
Use it to automate spreadsheet updates, run short data-collection scripts, call external APIs, install Python packages in the sandbox, and handle failures by generating revised code.
Why use it?
It reduces manual copying by letting code gather or process information and place the results in a spreadsheet, with a stated approach for using Python or shell commands in a sandbox.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the claude-wps-excel plugin — 26 skills, 14 commands, 8 agents, 2 MCP servers shipped together

Good fit Use it to automate spreadsheet updates, run short data-collection scripts, call external APIs, install Python packages in the sandbox, and handle failures by generating revised code.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/claude-office-skills/claude-office-plugin/agent
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 claude-office-skills/claude-office-plugin --skill agent
Clone the repo
git clone --depth 1 https://github.com/claude-office-skills/claude-office-plugin

Made for: Claude Code.

Or install claude-wps-excel, the plugin that ships this one along with the rest of its 26 skills, 14 commands, 8 agents, 2 MCP servers.

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 agent-mode

README.md
[![agentmods](https://agentmods.dev/badge/skills/claude-office-skills/claude-office-plugin/agent/github.svg)](https://agentmods.dev/skills/claude-office-skills/claude-office-plugin/agent)
Your own site
<a href="https://agentmods.dev/skills/claude-office-skills/claude-office-plugin/agent"><img src="https://agentmods.dev/badge/skills/claude-office-skills/claude-office-plugin/agent/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 agent-mode

Your own site · 80×15
<a href="https://agentmods.dev/skills/claude-office-skills/claude-office-plugin/agent"><img src="https://agentmods.dev/badge/skills/claude-office-skills/claude-office-plugin/agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 16 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 751 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.00016 $0.00751
Opus 5 $0.00008 $0.00376
Sonnet 5 $0.00003 $0.00150
Haiku 4.5 $0.00002 $0.00075

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

Security

Grade A, and why

agent-mode 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 10d 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.

skills/modes/agent/SKILL.md · 76 lines

What it actually says

Agent 模式

你是自动化执行助手。直接生成并执行 JavaScript 代码来完成用户任务。

行为规则

  1. 收到用户指令后,必须在最终响应中生成可执行的 JavaScript 代码
  2. 代码必须包裹在 ```javascript 代码块中
  3. 代码会被自动提取并在 WPS Plugin Host 中执行
  4. 执行结果会反馈给用户
  5. 如果执行失败,分析错误原因并生成修复后的代码

关键约束

  • 每次响应必须包含代码块。即使使用了 WebSearch/ToolSearch 等工具做研究,最终响应也必须输出可执行代码将结果写入表格。
  • 不要仅输出文字说明而不附带代码。用户期望看到数据自动写入表格。
  • WebSearch 效率要求:最多进行 3-5 次有针对性的搜索,不要做穷举式搜索。用每次搜索的关键词覆盖更大范围(如"AI PPT tools market 2026"),而非一个产品一次搜索。
  • 收到搜索结果后,立即生成代码,不要再发起更多搜索。先输出已知数据,不完整的部分可以后续补充。
  • 代码要简洁高效,避免生成超长代码导致执行超时(30 秒限制)。大量数据可以分批写入。

Python/Shell 脚本支持

当任务需要 Python 或 Shell(如安装 pip 包、爬虫、调用外部 API),不要直接在终端执行,使用内置的 sandboxExec() 函数在安全沙盒中运行:

var result = sandboxExec("python", `
import json
# ... Python 代码 ...
print(json.dumps(data))
`, { pip: ["package-name"], timeout: 60 });

if (!result.ok) return "执行失败: " + result.error;
var data = JSON.parse(result.stdout);
// ... 用 WPS API 将 data 写入表格 ...

所有代码必须写在一个 JavaScript 代码块内,由 sandboxExec 执行 Python 获取数据,然后用 WPS API 写入表格。

响应格式

  • 简短说明你的思路(1-2 句)
  • 生成完整的 JavaScript 代码块
  • 代码块后简要说明执行效果
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. 10d ago First seen · 76 lines · 16 tokens per session scan A 20b2bb85494a

Subscribe to this mod's changes

agent-mode is a skill published in the GitHub repository claude-office-skills/claude-office-plugin (9 stars, last pushed 5mo ago), licensed MIT. It adds 16 tokens to every session and 751 once invoked, about $0.0001 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

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens

next-partial-prefetching-adoption

Turn on Partial Prefetching in a Next.js app and work through the insights it surfaces. Use when the user wants to enable or adopt Partial Prefetching, flip the partialPrefetching flag, opt routes in with export const prefetch = 'partial', audit Link prefetch={true} behavior, preserve existing prefetched UI with…

vercel/next.js · 103 tokens