/lynx:lynx-recorder-fixturefrom lynx
Inspect, decode, edit, and re-encode Lynx Recorder/TestBench fixture files. Modify mock responses, Action List, Callback, or Config sections for replay troubleshooting.
Ships in lynx. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Recorder output and TestBench fixtures are Lynx engine recording and replay files. They store host-to-engine operations, JS-to-native calls and callback results, and environment settings such as screen dimensions and JSB configuration. Editing a fixture changes the inputs the engine receives during replay.
The tool requires Python 3 and uses only the standard library. decode, summary, and roundtrip accept a local file or HTTP(S) URL; encode accepts a local decoded JSON file.
SKILL_DIR="<directory containing this SKILL.md>"
SOURCE="./recording.json"
# Start with a summary to identify the sections to inspect.
python3 "$SKILL_DIR/scripts/fixture_tool.py" summary "$SOURCE"
# Decode when you need to inspect or edit the contents.
python3 "$SKILL_DIR/scripts/fixture_tool.py" decode "$SOURCE" -o decoded.json
# After editing decoded.json as requested, write a new encoded file.
python3 "$SKILL_DIR/scripts/fixture_tool.py" encode decoded.json -o edited.fixture
For analysis requests, report your findings. After editing, report the generated file's absolute path and summarize the changes. roundtrip SOURCE --workdir DIR reads and decodes the fixture into decoded.json in an existing directory; it does not automatically edit, re-encode, or upload it.
A recorder file's .json extension does not imply plain JSON: the usual format is base64(zlib(JSON)). Validate by decoding, not by checking a prefix. If the file is already readable JSON, inspect or edit it directly, then use encode to produce the replay file. See file format for encoding details.
| Section | Container | Purpose | Reference |
|---|---|---|---|
Action List | array | Initialization, template loading, taps, custom events, and data updates | Action list |
Invoked Method Data | array | Native methods called by JS and their arguments | Calls and callbacks |
Callback | object | Mock response data | Calls and callbacks |
Config | object | Screen dimensions and JSB settings | File format |
Component List | array | Registered native components | File format |
SharedData / Scripts / Debug Info | object/array | Shared data, scripts, and debugging information | Calls and callbacks |
Read the reference relevant to the requested change. See synthetic fixture snippets for structural examples; module names, API names, and response schemas depend on the host app.
Find the target call in Invoked Method Data by Module Name, Method Name, and Params.args. Read its Params.callback, then edit the corresponding Callback[id].Params.returnValue.
For example, if the target call has callback ID "31" and its response contains data.list and data.hasMore:
import json
from pathlib import Path
path = Path('decoded.json')
fx = json.loads(path.read_text(encoding='utf-8'))
response = fx['Callback']['31']['Params']['returnValue']
response['data']['list'] = []
response['data']['hasMore'] = False
path.write_text(json.dumps(fx, ensure_ascii=False, indent=2), encoding='utf-8')
Preserve the response's field names, types, and callback associations. Synchronous return values belong to the call entry's own Params.returnValue, separate from asynchronous Callback results.
Config.screenWidth/screenHeight. When changing the overall device model, check whether updateViewPort.ratio and the screen fields in setGlobalProps also need adjustment.Action List, preserving RecordMillisecond order and the ordering of calls and callbacks.Params.global_props in setGlobalProps.source in loadTemplate / LoadComponentWithCallback is a compiled template encoded as base64; normally preserve it. The templateData wrapper varies by action; see the action list.Scripts and content in Debug Info require another base64/zlib decoding step.When the user requests rendering validation, serve the encoded file at a device-accessible HTTP(S) URL to a Lynx Explorer build that supports TestBench replay. Use agent-lynx open to open sslocal://arkview?url=<URL-encoded fixture URL>. Uploading to a particular storage service is not a prerequisite for editing a file.
The CLI is normally on PATH. If it is not installed, use the public package:
pnpx agent-lynx <command> [options]
See replay validation for connection, URL encoding, replay, and troubleshooting steps.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub lynx-community/skills --plugin lynx15 skills in this plugin
/agent-lynxagent-lynx is Lynx for your agent, providing a CLI and a set of sub-skills for your Lynx tasks: lynx-devtool: Android/iOS/Desktop DevTool/CDP/App/connector debugging, DOM/CSS/ReactLynx, UI snapshots/ref actions, annotated screenshots, sources, runtime/console logs and reload/open; lynx-trace-record/lynx-trace-analysis: performance trace capture/export/validation & analysis; lynx-recorder/lynx-recorder-fixture: Recorder/Testbench capture/replay diagnosis & fixture editing; lynx-tasm-codec: native TASM (template.js) encode/decode/compare;/lynx-api-docsAuthoritative Lynx engine references for generating, reviewing, migrating, or debugging Lynx TSX/TTML pages, CSS, layouts, selectors, and elements. Use for Lynx-specific styling and Web-to-Lynx differences; always retrieve the relevant installed docs before changing code./lynx-check-css-supportQuery @lynx-js/css-defines compat_data to check Lynx CSS property and nested feature/value support by rendering backend and Lynx version, or check whether a newer dataset version exists. Use when asked whether CSS is supported in Lynx or ReactLynx, which backends support it, when support was added, whether a style change is compatible, whether the bundled data is current, or when inspecting the raw definition JSON./lynx-debug-info-remappingRemap the function_id:pc_index to the original source code position by provided debug info json file./lynx-devtoolDebug live Lynx apps, pages, and devices with the agent-lynx CLI or Node.js connector. Use for client/session discovery, UI snapshots and @eN ref actions, annotated screenshots, DOM/CSS or ReactLynx inspection, JS evaluation, console logs, and CDP/App commands on Android, iOS, or Desktop./lynx-recorderRecord Lynx page interactions into a TestBench replay file using agent-lynx. Use when asked to start or stop a recording, capture page interactions for replay, or troubleshoot recording capture. For inspecting or editing an existing fixture, use lynx-recorder-fixture.Other plugins' skills for the same job