← 返回 Skills 市场
90
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install pretext-reporter-bao
功能描述
文本测量和Canvas布局报告工具 - 基于Pretext库,支持多语言文本测量、行布局计算、可视化报告生成
安全使用建议
The package appears to do what it claims: text measurement, layout, and report generation using the Pretext code that is bundled. Before installing: 1) Inspect SKILL.md and README raw content for invisible/control characters (the scanner flagged unicode-control-chars). 2) Verify the author/repository (package.json points to a GitHub URL) and confirm you trust that source. 3) If you want to avoid surprises, run the package in a sandbox or isolated environment and examine network activity during tests — this skill should not need network calls at runtime. 4) Note the repo includes large corpora/text files; check for any copyrighted or sensitive data you don't want bundled. 5) If you were following SKILL.md instructions to git-clone the upstream Pretext repo, know that the pretext/ sources are already vendored in the package; reconcile which source you prefer and prefer official upstream releases where possible.
功能分析
Type: OpenClaw Skill
Name: pretext-reporter-bao
Version: 0.1.0
The skill bundle is a comprehensive implementation of a text measurement and layout engine based on the Pretext library. While it includes powerful development and testing scripts in the `pretext/scripts/` directory that utilize browser automation (via `osascript` in `browser-automation.ts`) and local HTTP servers (`report-server.ts`), these are clearly intended for the library's internal accuracy validation and benchmarking. The core skill logic in `dist/index.js` and the associated documentation in `SKILL.md` are entirely consistent with the stated purpose of providing high-performance, multi-language text layout reports without evidence of malicious intent or prompt injection.
能力评估
Purpose & Capability
Name/description, SKILL.md API examples, and the bundled code (dist/ and pretext/) all align: the package implements text measurement, layout, flow layout, Markdown/JSON reporting and Canvas-report metadata. The SKILL.md states Pretext isn't on npm and instructs cloning from GitHub, yet the package already contains a full pretext/ subtree—this is a minor packaging inconsistency but not a security mismatch.
Instruction Scope
Runtime instructions only show use of the pretext APIs, measurement and report-generation functions, and local Canvas reporting. The SKILL.md does not instruct reading unrelated system files or exporting secrets. However, an automated scan detected unicode-control-chars inside SKILL.md (see scan_findings_in_context) which can be used to hide or obfuscate text; review the raw SKILL.md for unexpected invisible characters before trusting it.
Install Mechanism
This is instruction-only in the registry (no install spec), but the skill package includes built files and a vendored pretext/ directory. The SKILL.md suggests cloning GitHub, but you likely don't need to as sources are bundled—there's no remote binary download or extractor in the install spec, so install risk is low. Still, verify the bundled code origin if you rely on authenticity.
Credentials
The skill requires no environment variables, no credentials, and no config paths. That is proportionate to the described functionality (local measurement and reporting).
Persistence & Privilege
Skill flags are default (always: false, user-invocable true, autonomous invocation allowed). The skill does not request elevated or permanent platform privileges; nothing in the package modifies other skills or global agent config.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install pretext-reporter-bao - 安装完成后,直接呼叫该 Skill 的名称或使用
/pretext-reporter-bao触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release of pretext-reporter-bao.
- Provides high-performance, multi-language text measurement using Pretext library, supporting CJK, BIDI, emoji, and more.
- Calculates line layout with features like auto line-wrapping, fixed/variable width, shrink wrap, and detailed line info.
- Generates text layout reports in Markdown, JSON, and supports Canvas visual output (PNG export).
- No DOM dependency; uses pure arithmetic for measurement and layout.
- Includes APIs for text measurement, Canvas report generation, and flow layout.
- Suitable for virtual lists, dynamic UIs, Canvas/SVG rendering, editor development, and layout validation.
元数据
常见问题
Pretext Reporter Bao 是什么?
文本测量和Canvas布局报告工具 - 基于Pretext库,支持多语言文本测量、行布局计算、可视化报告生成. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 90 次。
如何安装 Pretext Reporter Bao?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install pretext-reporter-bao」即可一键安装,无需额外配置。
Pretext Reporter Bao 是免费的吗?
是的,Pretext Reporter Bao 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Pretext Reporter Bao 支持哪些平台?
Pretext Reporter Bao 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Pretext Reporter Bao?
由 BillionB(@baojun-billion)开发并维护,当前版本 v0.1.0。
推荐 Skills