Contract Rule Review for Openclaw

An automated assistant for reviewing local contract files by uploading them to AnyShare and performing rule-based auditing with AI.

anyshare-aishu
v1.0.0
May 11, 2026
0
617
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install as-contract-rule-review

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install as-contract-rule-review using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Contract Rule Review?

Contract Rule Review is a sophisticated automation tool designed for legal and procurement professionals. It streamlines the contract auditing process by bridging local document management with AnyShare's cloud capabilities. The skill automates the entire lifecycle of a contract review, from directory organization and file uploading to intelligent rule-based analysis and shareable report generation.

Built on the Openclaw Skills framework, this tool leverages the anyshare-asmcp MCP service to interact with personal document libraries. It ensures that every contract is audited against either standardized internal templates or user-defined custom rules, providing a consistent and rigorous review process that saves hours of manual labor while maintaining high compliance standards.

Contract Rule Review Use Cases

  • Automating the initial audit of procurement or service contracts against corporate legal standards.
  • Maintaining a structured, date-organized cloud archive of all reviewed legal documents and their respective audit reports.
  • Generating secure, shareable links for audited contracts to facilitate quick collaboration with stakeholders.
  • Standardizing the review process across a team using centralized or local markdown templates.

How Contract Rule Review Works

  1. Template Acquisition: The skill fetches a review template via API or fallback local markdown files.
  2. Directory Orchestration: It automatically builds a 4-level directory structure (Category/Date/Contract Name/Originals) in the AnyShare personal library.
  3. Secure Upload: Local contract files are uploaded to the specified AnyShare directory using authenticated stream protocols.
  4. Indexing & Processing: The document is moved to a temporary processing area where the system waits for the page index to reach 100% completion.
  5. AI Auditing: The smart_assistant tool is invoked to perform the rule-based review based on the acquired template.
  6. Finalization: An audit report is generated in Markdown format, saved alongside the original file, and a real-name shareable link is created for the user.

Contract Rule Review Setup

To deploy this skill within your environment, configure your MCP server settings in ~/.openclaw/workspace/config/mcporter.json:

{
  "mcpServers": {
    "anyshare-asmcp": {
      "type": "Streamable",
      "url": "https://anyshare.aishu.cn/asmcp/",
      "headers": {
        "Authorization": "Bearer <your_token_here>"
      }
    }
  }
}

Ensure you adjust the runtime timeout for long-running audit tasks in ~/.openclaw/config.toml:

[skills.entries.contract-rule-review]
env.MCPORTER_CALL_TIMEOUT = "600000"

Verify connectivity using the Openclaw Skills CLI:

mcporter call anyshare-asmcp.doc_lib_owned

Contract Rule Review Data Schema & Taxonomy

The skill enforces a strict hierarchical data taxonomy within the AnyShare Personal Document Library to ensure auditability:

Level Folder/File Name Description
1 Contract Review Root directory for all skill activities
2 YYYY-MM-DD Daily organization folder
3 [Contract Name] Specific container for a single review task
4 Original Contracts/ Sub-folder containing the source .docx file
4 Review Report.md The AI-generated audit findings

All files are managed via GNS (Global Name Service) identifiers for precise API targeting.

Contract Rule Review Advanced Features

  • Multi-Source Templating: Prioritizes API-driven internal templates with automated fallback to local markdown files.
  • Recursive Directory Checks: Uses folder_sub_objects to prevent duplicate directory creation and maintain clean file structures.
  • Real-time Index Polling: Features a smart polling mechanism that monitors document indexing status before triggering the AI review.
  • Extended Execution Support: Configurable environment variables allow for high-latency AI processing (up to 10 minutes per contract).
  • Secure Credential Injection: Integrates with Openclaw Skills authentication headers to handle sensitive tokens without hardcoding.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*