← Back to Skills Marketplace
90
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install pretext-reporter-bao
Description
文本测量和Canvas布局报告工具 - 基于Pretext库,支持多语言文本测量、行布局计算、可视化报告生成
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install pretext-reporter-bao - After installation, invoke the skill by name or use
/pretext-reporter-bao - Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Frequently Asked Questions
What is Pretext Reporter Bao?
文本测量和Canvas布局报告工具 - 基于Pretext库,支持多语言文本测量、行布局计算、可视化报告生成. It is an AI Agent Skill for Claude Code / OpenClaw, with 90 downloads so far.
How do I install Pretext Reporter Bao?
Run "/install pretext-reporter-bao" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Pretext Reporter Bao free?
Yes, Pretext Reporter Bao is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Pretext Reporter Bao support?
Pretext Reporter Bao is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Pretext Reporter Bao?
It is built and maintained by BillionB (@baojun-billion); the current version is v0.1.0.
More Skills