Skip to content

xlang-ai/CUA-Gym / .claude/skills/mock_websites

mock_websites

Flagged

How to set up and manipulate mock web application state via HTTP APIs for CUA-Gym tasks. For setup-gen and reward-gen agents.

FileKindSize
REWARD_SKILL.mdmarkdown11.2 KB
SKILL.mdskill md13.2 KB
schemas/Canvas-LMS_mock.mdmarkdown15.0 KB
schemas/Expensify_mock.mdmarkdown29.5 KB
schemas/PACS-viewer_mock.mdmarkdown19.3 KB
schemas/SAP_mock.mdmarkdown10.0 KB
schemas/ServiceNow_mock.mdmarkdown19.7 KB
schemas/TradingView_mock.mdmarkdown24.1 KB
schemas/TurboTax_mock.mdmarkdown31.6 KB
schemas/Zendesk_mock.mdmarkdown19.6 KB
schemas/airtable_mock.mdmarkdown20.6 KB
schemas/amazon_mock.mdmarkdown14.4 KB
schemas/asana_mock.mdmarkdown5.1 KB
schemas/aws_console_mock.mdmarkdown4.9 KB
schemas/azure_mock.mdmarkdown29.9 KB
schemas/booking_com_mock.mdmarkdown14.7 KB
schemas/california_tax_mock.mdmarkdown19.7 KB
schemas/coinbase_mock.mdmarkdown15.4 KB
schemas/discord_mock.mdmarkdown7.1 KB
schemas/docusign_mock.mdmarkdown5.5 KB
schemas/ebay_mock.mdmarkdown12.9 KB
schemas/epic-health_mock.mdmarkdown28.8 KB
schemas/facebook_mock.mdmarkdown24.1 KB
schemas/github_mock.mdmarkdown4.9 KB
schemas/gitlab_mock.mdmarkdown4.5 KB
schemas/gmail_mock.mdmarkdown4.1 KB
schemas/google_calendar_mock.mdmarkdown10.2 KB
schemas/google_docs_mock.mdmarkdown9.1 KB
schemas/google_drive_mock.mdmarkdown6.4 KB
schemas/google_flights_mock.mdmarkdown15.4 KB
schemas/google_sheets_mock.mdmarkdown9.9 KB
schemas/hubspot_mock.mdmarkdown22.5 KB
schemas/instacart_mock.mdmarkdown21.7 KB
schemas/instagram_mock.mdmarkdown6.1 KB
schemas/jira_mock.mdmarkdown4.7 KB
schemas/linkedin_mock.mdmarkdown4.1 KB
schemas/lucidchart_mock.mdmarkdown17.8 KB
schemas/microsoft_teams_mock.mdmarkdown25.8 KB
schemas/miro_mock.mdmarkdown18.8 KB
schemas/monday_mock.mdmarkdown24.8 KB
schemas/multi_procedure_application_mock.mdmarkdown13.6 KB
schemas/notion_mock.mdmarkdown4.7 KB
schemas/outlook_web_mock.mdmarkdown22.6 KB
schemas/paypal_mock.mdmarkdown14.8 KB
schemas/pinterest_mock.mdmarkdown17.3 KB
schemas/postman_mock.mdmarkdown16.1 KB
schemas/premiere_pro_mock.mdmarkdown19.2 KB
schemas/quickbooks_mock.mdmarkdown21.0 KB
schemas/reddit_mock.mdmarkdown4.3 KB
schemas/robinhood_mock.mdmarkdown13.7 KB
schemas/salesforce_mock.mdmarkdown6.3 KB
schemas/shopify_admin_mock.mdmarkdown11.6 KB
schemas/slack_mock.mdmarkdown5.4 KB
schemas/stripe_dashboard_mock.mdmarkdown16.1 KB
schemas/trello_mock.mdmarkdown4.8 KB
schemas/twitter_mock.mdmarkdown4.7 KB
schemas/uber_eats_mock.mdmarkdown23.5 KB
schemas/usa-gov_mock.mdmarkdown25.1 KB
schemas/visa_portal_ds160_mock.mdmarkdown15.5 KB
schemas/visa_portal_mock.mdmarkdown23.7 KB
schemas/wandb_mock.mdmarkdown23.6 KB
schemas/wechat_mock.mdmarkdown16.0 KB
schemas/workday_mock.mdmarkdown18.7 KB
schemas/youtube_mock.mdmarkdown6.2 KB
schemas/zhihu_mock.mdmarkdown14.2 KB
schemas/zillow_mock.mdmarkdown16.4 KB
schemas/zoom_web_mock.mdmarkdown15.9 KB

schemas/google_sheets_mock.md

View on GitHub
# google_sheets_mock Schema

**Deploy order**: 18 (alphabetical among all *_mock dirs)
**Go Endpoint**: `GET /go?sid=<sid>` → `{initial_state, current_state, state_diff}`
**Inject**: `POST /post?sid=<sid>` with body `{"action":"set","state":{...}}`
**Reset**: `POST /post?sid=<sid>` with body `{"action":"reset"}`
**State read**: `GET /state?sid=<sid>` → `{stored_state, has_custom_state, sid}`

## State Schema

| Key | Type | Description |
|-----|------|-------------|
| `id` | string | Unique workbook identifier (e.g., `"workbook_1"`) |
| `title` | string | Workbook display name |
| `sheets` | array | Array of `Sheet` objects (see below) |
| `activeSheetId` | string | ID of currently active sheet |
| `selectedCell` | string\|null | Currently selected cell (e.g., `"A1"`, `"B5"`) |
| `selectionRange` | array\|null | Array of cell IDs in multi-cell selection |
| `clipboard` | object\|null | Clipboard data: `{type, data, range, sourceSheetId}` |
| `isDragging` | boolean | Whether drag-select is in progress |
| `undoStack` | array | Stack of undo history entries (max 100) |
| `redoStack` | array | Stack of redo history entries |
| `namedRanges` | array | Each: `{name, sheetId, range}` |
| `conditionalFormats` | array | Conditional formatting rules |
| `charts` | array | Embedded chart definitions |
| `showGridlines` | boolean | Toggle grid visibility |
| `showFormulas` | boolean | Toggle formula display vs. computed values |
| `zoom` | number | Zoom level percentage (e.g., 100) |

### Sheet

| Field | Type | Description |
|-------|------|-------------|
| `id` | string | Unique sheet ID (e.g., `"sheet_1"`) |
| `name` | string | Sheet tab name (e.g., `"Sales Data"`) |
| `data` | object | Map of cell ID → `CellData`; keys are Excel-style (e.g., `"A1"`, `"B5"`) |
| `rowCount` | number | Total rows (e.g., 100) |
| `colCount` | number | Total columns (e.g., 26 = A–Z) |
| `frozenRows` | number? | Number of frozen header rows |
| `frozenCols` | number? | Number of frozen header columns |
| `tabColor` | string\|null? | Sheet tab hex color (e.g., `"#1A73E8"`) |
| `isHidden` | boolean? | Whether sheet is hidden |
| `columnWidths` | object? | Custom widths: `{colIndex: width}` |
| `rowHeights` | object? | Custom heights: `{rowIndex: height}` |
| `filterRange` | string\|null? | Range with active filter (e.g., `"A1:F10"`) |
| `filterCriteria` | object? | Column-specific filter states: `{colKey: FilterCriteria}` |
| `sortColumn` | string\|null? | Column letter currently sorted by |
| `sortDirection` | string\|null? | `"asc"\|"desc"\|null` |

### CellData (values in `sheet.data` map)

| Field | Type | Description |
|-------|------|-------------|
| `value` | string | Raw input value (e.g., `"45200"`, `"=C2*1.15"`) |
| `formula` | string | Formula or raw value string |
| `computed` | string\|number? | Evaluated result of formula |
| `style` | object? | Cell formatting: `{bold, italic, underline, strikethrough, align, verticalAlign, color, bg, fontSize, fontFamily, textWrap, textRotation, borders}` |
| `format` | string? | Number format: `"text"\|"number"\|"currency"\|"percent"\|"date"\|"scientific"\|"time"` |
| `note` | string\|null? | Cell comment/note |
| `hyperlink` | string\|null? | URL for hyperlink |
| `validation` | object\|null? | Data validation: `{type, criteria, showWarning, helpText}` |
| `mergedWith` | string\|null? | ID of merge anchor cell |
| `isMergeAnchor` | boolean? | Whether this cell is a merge anchor |
| `mergeSpan` | object\|null? | `{rows, cols}` span of merged area |

### CellStyle

| Field | Type | Description |
|-------|------|-------------|
| `bold` | boolean? | Font weight bold |
| `italic` | boolean? | Font style italic |
| `underline` | boolean? | Text underline |
| `strikethrough` | boolean? | Text strikethrough |
| `align` | string? | `"left"\|"center"\|"right"` |
| `verticalAlign` | string? | `"top"\|"middle"\|"bottom"` |
| `color` | string? | Text color hex (e.g., `"#0F9D58"`) |
| `bg` | string? | Background color hex (e.g., `"#F3F3F3"`) |
| `fontSize` | number? | Font size in pt |
| `fontFamily` | string? | Font name |
| `textWrap` | string? | `"overflow"\|"wrap"\|"clip"` |
| `textRotation` | number? | Rotation angle in degrees |
| `borders` | object? | `{top, right, bottom, left}` each: `{style, width, color}` or null |

### FilterCriteria

| Field | Type | Description |
|-------|------|-------------|
| `visibleValues` | array | Values currently visible |
| `hiddenValues` | array | Values hidden by filter |
| `condition` | string\|null | Condition expression (e.g., `">100"`) |
| `conditionValue` | string\|null | Value for condition |

### Chart

| Field | Type | Description |
|-------|------|-------------|
| `id` | string | Chart ID |
| `type` | string | `"bar"\|"line"\|"pie"\|"scatter"\|"area"` |
| `title` | string | Chart title |
| `dataRange` | string | Data range (e.g., `"A1:C10"`) |
| `sheetId` | string | Sheet containing this chart |
| `position` | object | `{row, col}` position in sheet |
| `size` | object | `{width, height}` dimensions |

### ConditionalFormatRule

| Field | Type | Description |
|-------|------|-------------|
| `id` | string | Rule ID |
| `range` | string | Target range (e.g., `"A1:F10"`) |
| `sheetId` | string | Sheet this rule applies to |
| `condition` | object | `{type, value}` where type is `"greaterThan"\|"lessThan"\|"equalTo"\|"textContains"\|"isEmpty"\|"isNotEmpty"\|"customFormula"` |
| `format` | object | CellStyle to apply when condition is met |

### UndoEntry

| Field | Type | Description |
|-------|------|-------------|
| `action` | string | Description (e.g., `"Edit cell A1"`) |
| `sheetId` | string | Modified sheet ID |
| `cellChanges` | object | `{cellId: {before: CellData\|null, after: CellData\|null}}` |
| `timestamp` | number | Unix timestamp |

### Default sheets
- `sheet_1`: "Sales Data" — 9 product rows + summary formulas (SUM, AVERAGE, MAX, MIN, COUNT), frozen row 1
- `sheet_2`: "Summary" — Category breakdown with revenue percentages, tab color `"#1A73E8"`
- `sheet_3`: "Notes" — Documentation (Data Source, Review Date, Status Criteria, Next Steps)

### Default workbook
- ID: `"workbook_1"`, Title: `"Q4 2024 Sales Report"`

### Cell reference format
- Column-Row notation: `A1`, `B5`, `AA100`
- Ranges: `A1:C5` (start:end)
- Columns A–Z (indices 0–25), rows 1-indexed

## Minimal Inject Example

```json
{
  "type": "chrome_open_url",
  "parameters": {
    "url": "https://cua-gym-google-sheets.xlang.ai/?sid=task001",
    "inject_state": true,
    "state_content": {
      "action": "set",
      "state": {
        "id": "workbook_1",
        "title": "Budget Tracker",
        "activeSheetId": "sheet_1",
        "selectedCell": "A1",
        "selectionRange": null,
        "clipboard": null,
        "isDragging": false,
        "undoStack": [],
        "redoStack": [],
        "namedRanges": [],
        "conditionalFormats": [],
        "charts": [],
        "showGridlines": true,
        "showFormulas": false,
        "zoom": 100,
        "sheets": [
          {
            "id": "sheet_1",
            "name": "Monthly Budget",
            "rowCount": 100,
            "colCount": 26,
            "frozenRows": 1,
            "frozenCols": 0,
            "tabColor": null,
            "isHidden": false,
            "columnWidths": {"0": 140, "1": 120, "2": 100},
            "data": {
              "A1": {"value": "Category", "formula": "Category", "style": {"bold": true, "bg": "#E8EAED", "align": "center"}},
              "B1": {"value": "Budget", "formula": "Budget", "style": {"bold": true, "bg": "#E8EAED", "align": "center"}},
              "C1": {"value": "Actual", "formula": "Actual", "style": {"bold": true, "bg": "#E8EAED", "align": "center"}},
              "A2": {"value": "Rent", "formula": "Rent"},
              "B2": {"value": "2000", "formula": "2000", "format": "currency"},
              "C2": {"value": "2000", "formula": "2000", "format": "currency"},
              "A3": {"value": "Utilities", "formula": "Utilities"},
              "B3": {"value": "300", "formula": "300", "format": "currency"},
              "C3": {"value": "275", "formula": "275", "format": "currency"}
            }
          }
        ]
      }
    }
  }
}
```

## Observable State Changes (for LLM evaluation)

| User Action | State Field Changed |
|-------------|---------------------|
| Edit cell value | `sheets[i].data[cellId].value`, `.formula`, `.computed` updated |
| Format cell (bold, color, etc.) | `sheets[i].data[cellId].style` updated |
| Set number format | `sheets[i].data[cellId].format` updated |
| Select cell | `selectedCell` updated; `selectionRange` may update |
| Select range | `selectionRange` updated |
| Add new sheet | `sheets` array grows; `activeSheetId` updated |
| Switch sheet | `activeSheetId` updated |
| Rename sheet | `sheets[i].name` updated |
| Delete sheet | `sheets` array shrinks |
| Duplicate sheet | `sheets` array grows (copy with new ID) |
| Set sheet tab color | `sheets[i].tabColor` updated |
| Insert row/column | `sheets[i].data` keys shift; `rowCount` or `colCount` updated |
| Delete row/column | `sheets[i].data` keys shift; `rowCount` or `colCount` updated |
| Resize column | `sheets[i].columnWidths[colIndex]` updated |
| Sort by column | `sheets[i].sortColumn`, `.sortDirection` updated; data reordered |
| Apply filter | `sheets[i].filterRange` set; `filterCriteria` populated |
| Freeze panes | `sheets[i].frozenRows` / `.frozenCols` updated |
| Merge cells | Anchor cell gets `isMergeAnchor: true`, `mergeSpan`; other cells get `mergedWith` |
| Copy/cut cells | `clipboard` populated |
| Paste cells | Target `sheets[i].data` cells updated; clipboard may clear (cut) |
| Undo | `undoStack` shrinks; `redoStack` grows; `sheets[i].data` reverted |
| Redo | `redoStack` shrinks; `undoStack` grows; `sheets[i].data` reapplied |
| Toggle gridlines | `showGridlines` toggled |
| Toggle formula view | `showFormulas` toggled |
| Change zoom | `zoom` updated |
| Add cell note | `sheets[i].data[cellId].note` set |
| Clear cell contents | `sheets[i].data[cellId]` value/formula cleared |
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall