qclaw-rules

Enforce mandatory system rules for file creation, Windows encoding, browser automation, MCP tools, and Chinese PDF generation.

Updated May 4, 2026
One-click install
npx skills add https://github.com/234194027-cpu/xianclaw --skill qclaw-rules-234194027-cpu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: qclaw-rules
Source: https://github.com/234194027-cpu/xianclaw/tree/main/resources/openclaw/config/skills/qclaw-rules
Command: npx skills add https://github.com/234194027-cpu/xianclaw --skill qclaw-rules-234194027-cpu

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents inconsistent or unsafe agent behavior by enforcing mandatory, system-level rules that must be applied before any task execution, especially in high-risk areas like file generation, Windows encoding, browser automation, MCP tool use, and PDF creation.

Core Features & Use Cases

  • System-wide mandatory enforcement: Guarantees the QClaw base rules are always loaded with the highest priority and cannot be skipped when building or operating agent workflows.
  • Deterministic workflow guards: Provides explicit, pre-defined execution flows for browser automation (via xbrowser), Windows encoding handling (UTF-8 enforcement and re-decoding on garbling), user info persistence via USER.md, MCP tool discovery (via mcporter), and PDF encoding/font requirements.
  • Correctness-first safety checks: Treats violations as system errors and requires explicit user confirmation for any permitted deviation.

Quick Start

Ask your AI agent to perform a task that involves writing files, handling Windows command output, using browser automation, calling MCP tools, or generating a Chinese PDF, and it will automatically apply the mandatory rules from qclaw-rules before proceeding.

Frequently Asked Questions about qclaw-rules

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

FAQPage Schema
How do I enforce mandatory system rules for browser automation and file exports in AI workflows?

Enforcing mandatory system rules for browser automation and file exports requires loading a governance layer that applies deterministic execution flows and compliance checks before any task proceeds, preventing inconsistent agent behavior.

Why does Windows PowerShell output encoding garble when automated by an AI agent?

Windows PowerShell output encoding garbles when automated because default character sets conflict with system expectations, requiring UTF-8 enforcement and automatic re-decoding rules to correct the garbled text output.

How do I generate a Chinese PDF correctly without missing characters or font errors?

Generating a Chinese PDF correctly requires enforcing specific encoding and font requirements to prevent missing characters, applying mandatory compliance checks that validate font availability before the file creation step.

What is the best way to standardize MCP tool discovery and invocation across different tasks?

Standardizing MCP tool discovery and invocation is best handled by applying deterministic workflow guards that route tool calls through a mandatory compliance layer, ensuring consistent discovery and safe execution.

Does this workflow governance approach require manual confirmation for every rule violation?

Workflow governance treats rule violations as system errors and requires explicit user confirmation for any permitted deviation, enforcing a correctness-first safety check that actively corrects behavior rather than simply failing.

Can I skip system-level safety checks when generating simple text exports?

Skipping system-level safety checks for simple text exports is not permitted because the governance rules are mandatory and always-on with the highest priority, applying compliance constraints to all file creation tasks.