mock_websites

Set up and manipulate mock web application state via HTTP APIs.

185|14|Updated Jan 6, 2026
One-click install
npx skills add https://github.com/xlang-ai/CUA-Gym --skill mock-websites
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mock_websites
Source: https://github.com/xlang-ai/CUA-Gym/tree/main/.claude/skills/mock_websites
Command: npx skills add https://github.com/xlang-ai/CUA-Gym --skill mock-websites

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, json, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill provides a framework to set up and manipulate mock web application state for CUA-Gym tasks, enabling the creation of initial and golden environments and the verification of reward functions.

Core Features & Use Cases

  • State Injection: Inject initial and current states into mock web applications via HTTP APIs.
  • Task Verification: Write reward scripts to verify task completion against mock web application state.
  • Use Case: For tasks like "write a professional greeting in #general" on a mock Slack app, the Skill allows you to programmatically verify the greeting's quality using a combination of direct checks and LLM-based judgment.

Quick Start

Use the mock_websites skill to create an initial state for a mock Slack application by setting up a new channel with the name "general".

Frequently Asked Questions about mock_websites

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

FAQPage Schema
How do I inject state into mock web applications for CUA-Gym tasks?

You can inject initial and current states into mock web applications by sending HTTP API requests using the requests and json libraries, establishing the required testing environment for task execution.

What is the best way to verify reward functions against mock web application state?

Verify reward functions by writing reward scripts that check task completion against the mock web application state, utilizing direct programmatic checks alongside LLM-based judgment for quality validation.

Can I set up a golden environment for a mock Slack app to test automated tasks?

Yes, you can create initial and golden environments for mock web applications like a mock Slack app, allowing you to programmatically verify actions such as writing a professional greeting in a specific channel.

Do I need the requests and json libraries to manipulate mock website state?

Yes, the requests and json libraries are required dependencies for handling HTTP web requests and parsing responses when setting up and manipulating mock web application state.

How does state injection work when creating initial states for CUA-Gym?

State injection works by programmatically sending HTTP API requests to configure the mock web application, such as setting up a new channel named general, establishing a baseline for task verification.