/lynx-debug:lynx-tasm-codecfrom lynx-debug
Converts between template JSON and TASM binary using `agent-lynx tasm` CLI. Handles encode (JSON→.tasm) and decode (.tasm→JSON) with optional version pinning.
Ships in lynx-debug. 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.
None: SKILL.md is the whole skill.
用这个 skill 处理通过 CLI 执行的 TASM 编码/解码任务,不要改写成 Node API 方案,除非用户明确要求。
agent-lynx 的 tasm 子命令调用 @lynx-js/tasm。
当用户要做以下任一事项时,使用本 skill:
.tasm.tasm 解码回 JSON@lynx-js/tasm 版本执行转换agent-lynx tasm 命令如果用户没有直接提到 lynx-tasm,但 agent 在任务中发现以下问题,也应主动使用本 skill:
.tasm 文件,需要读懂其内容.tasm.tasm 产物的真实差异,先解码成 JSON 更合适@lynx-js/tasm 版本导致编码结果不同优先按下面顺序选择执行方式:
agent-lynx tasmagent-lynx tasm --codec-version <version>npm i -g不要默认建议全局安装,也不要把依赖写入项目。
agent-lynx tasm 支持两个子命令:
encode: JSON -> tasmdecode: tasm -> JSON本 skill 不要求单独安装 TASM,直接使用 agent-lynx tasm 执行:
agent-lynx tasm encode -i <input.json> -o <output.tasm>
agent-lynx tasm decode -i <input.tasm> -o <output.json>
始终显式传入输入输出参数 -i 和 -o。
如果用户指定版本,使用 --codec-version;只接受精确版本,不接受 latest 或范围:
agent-lynx tasm --codec-version <version> encode -i <input.json> -o <output.tasm>
agent-lynx tasm --codec-version <version> decode -i <input.tasm> -o <output.json>
用户明确要求全局命令时,安装 agent-lynx 后仍使用同一子命令:
agent-lynx tasm encode -i <input.json> -o <output.tasm>
agent-lynx tasm decode -i <input.tasm> -o <output.json>
按这个顺序执行:
encode 还是 decode如果输入或输出路径缺失,不要猜测文件名;先补齐路径再执行。
在执行前,先判断当前任务是 encode 还是 decode,再找对应类型的输入文件。
encodeencode 的输入必须是 JSON。优先按下面顺序找:
.json 文件执行前要确认:
decodedecode 的输入必须是 .js 或者 .bundle 文件。优先按下面顺序找:
.js 或者 .bundle 文件路径.js 或者 .bundle 产物.js 或者 .bundle 文件执行前要确认:
.js 或者 .bundle,不是其他中间产物.js 或者 .bundle 候选,优先选择最新生成、名称最匹配、或与当前问题最直接相关的那个统一使用 agent-lynx tasm,由 CLI 按需下载并缓存 TASM,不要推荐项目内安装。
使用独立 CLI 时,先用 command -v agent-lynx 检查入口。若未找到命令,将命令中的 agent-lynx 替换为 npm_config_registry=https://registry.npmjs.org pnpx agent-lynx,保留后面的子命令和参数。例如:
npm_config_registry=https://registry.npmjs.org pnpx agent-lynx tasm --help
默认方式:
agent-lynx tasm --help
全局安装,仅在用户明确要求时:
npm i -g agent-lynx --registry https://registry.npmjs.org
agent-lynx tasm --help
如果只是验证命令可用性,优先执行 agent-lynx tasm --help,不要先做全局安装。
--input 或 --output
说明命令参数不完整,补全 -i 和 -oencode 时报 JSON parse 失败
输入文件不是合法 JSON,先修正 JSON 再编码decode 或 encode 时报格式错误
通常是子命令和输入文件类型不匹配:encode 读 JSON,decode 读 .tasmagent-lynx tasm --codec-version <version>,不要用未固定版本的全局命令# 编码
agent-lynx tasm encode \
-i /abs/path/input.json \
-o /abs/path/output.tasm
# 解码
agent-lynx tasm decode \
-i /abs/path/output.tasm \
-o /abs/path/output.json
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub lynx-community/skills --plugin lynx-debug2 skills in this plugin
2 plugins in one repository ship this exact skill · first indexed Nov 14, 2026
Other plugins' skills for the same job