agent-mode

Generate and execute JavaScript code to automate WPS Writer document editing and formatting.

3|Updated Feb 26, 2026
One-click install
npx skills add https://github.com/claude-office-skills/claude-wps-word-plugin --skill agent-mode-claude-office-skills
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-mode
Source: https://github.com/claude-office-skills/claude-wps-word-plugin/tree/main/skills/modes/agent
Command: npx skills add https://github.com/claude-office-skills/claude-wps-word-plugin --skill agent-mode-claude-office-skills

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Word document edits are time-consuming when done manually; this Skill automates these tasks by generating and executing code inside the WPS Writer plugin.

Core Features & Use Cases

  • Auto-generates deterministic JavaScript to manipulate the active document and apply formatting, styles, and content changes.
  • Supports context-aware operations by reading current document state, selection, and cursor position to plan edits.
  • Use Case: A user wants to reformat a long document, apply consistent heading styles, and insert boilerplate sections automatically.

Quick Start

Open a document and switch to Agent mode to automatically generate and execute code that edits the document.

Frequently Asked Questions about agent-mode

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate WPS Writer document formatting and editing?

Agent mode automates WPS Writer document editing by auto-generating deterministic JavaScript code blocks and executing them directly in the WPS Plugin Host to apply formatting, styles, and content changes hands-free.

How does auto code execution work for Word documents in WPS?

Auto code execution generates deterministic JavaScript blocks based on the current document state and cursor position, running them in the WPS Plugin Host to manipulate content and return results with built-in error handling and recovery.

Can I use JavaScript to manipulate the active WPS Writer document?

Yes, you can use JavaScript to manipulate the active WPS Writer document by switching to Agent mode, which automatically generates and executes JavaScript to apply formatting, styles, and boilerplate sections based on the current document context.

What is the best way to reformat a long document and apply consistent heading styles automatically?

The best way to apply consistent heading styles and insert boilerplate sections automatically is to switch to Agent mode in WPS Writer, which auto-generates and executes JavaScript to apply formatting changes across the active document.

Does WPS Writer Agent mode support error handling and recovery during document automation?

Yes, WPS Writer Agent mode supports error handling and recovery during document automation by executing deterministic JavaScript in the WPS Plugin Host and returning results with built-in error handling and recovery mechanisms.

Do I need programming knowledge to automate Word tasks in WPS Writer?

No, you do not need programming knowledge to automate Word tasks in WPS Writer because Agent mode auto-generates deterministic JavaScript code blocks and executes them in the WPS Plugin Host, enabling hands-free document editing and formatting.