← Back to Skills Marketplace
139
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install pretext-layout
Description
Integrate, debug, or prototype @chenglou/pretext for browser-based multiline text measurement and manual line layout. Use when replacing DOM height probes, b...
Usage Guidance
This skill appears to be a documentation + demo scaffold for the @chenglou/pretext library and is coherent with that goal. Before installing or using it: (1) confirm you actually want a browser-based integration (it intentionally does not promise Node-only support), (2) if you run the scaffold you'll need to install @chenglou/pretext via npm and serve the generated files from a dev server, (3) review the third-party package (@chenglou/pretext) from npm if you care about supply-chain risk, and (4) the included Python script only writes two local files (index.html and demo.mjs) — run it in a disposable directory if you want to be cautious. There are no credential requests or hidden network calls in the provided files.
Capability Analysis
Type: OpenClaw Skill
Name: pretext-layout
Version: 1.0.0
The pretext-layout skill is a legitimate utility designed to help developers integrate the @chenglou/pretext library for browser-based text measurement. It contains documentation and a Python scaffolding script (scripts/scaffold_browser_demo.py) that generates boilerplate HTML and JavaScript files for local prototyping. No evidence of data exfiltration, malicious execution, or harmful prompt injection was found.
Capability Assessment
Purpose & Capability
Name and description match the contents: guidance about using @chenglou/pretext in browser contexts, usage patterns, caveats, and a small demo scaffold. The declared required binaries (bash, node, npm, python3) are reasonable for running demos or developer tooling and do not conflict with the stated purpose.
Instruction Scope
SKILL.md instructions focus on preparing and measuring text in browser runtimes and explicitly warn about server-side constraints. They do not instruct reading unrelated files, exporting secrets, or calling external endpoints. The only filesystem action is the scaffold script (writes index.html and demo.mjs) which is aligned with the declared 'scripts' usage.
Install Mechanism
There is no install spec (instruction-only), so nothing is downloaded or executed by the platform. The included scaffold references a typical /node_modules path for @chenglou/pretext; the skill does not automatically fetch remote archives or run installers, which keeps installation risk low.
Credentials
The skill requests no environment variables, secrets, or config paths. The absence of credentials is proportional to a library-integration helper. The only operational requirements are developer binaries (node/npm/python3) needed to run the scaffold/demo locally.
Persistence & Privilege
The skill is not always-on, does not request elevated persistence, and does not modify other skills or system-wide settings. It is user-invocable and can be invoked autonomously per platform defaults, which is expected for a utility skill.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install pretext-layout - After installation, invoke the skill by name or use
/pretext-layout - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
- Initial release of pretext-layout (v1.0.0).
- Provides integration, prototyping, and debugging guidance for @chenglou/pretext in browser-based multiline text measurement and layout.
- Includes workflow steps, decision guide, and core implementation rules for accurate text measurement and layout caching.
- Offers a scaffolding script for minimal browser demos and references for key integration patterns, usage, and caveats.
- Clarifies runtime, caching, and environment requirements, with emphasis on browser support.
Metadata
Frequently Asked Questions
What is pretext-layout?
Integrate, debug, or prototype @chenglou/pretext for browser-based multiline text measurement and manual line layout. Use when replacing DOM height probes, b... It is an AI Agent Skill for Claude Code / OpenClaw, with 139 downloads so far.
How do I install pretext-layout?
Run "/install pretext-layout" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is pretext-layout free?
Yes, pretext-layout is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does pretext-layout support?
pretext-layout is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created pretext-layout?
It is built and maintained by royhk920 (@royhk920); the current version is v1.0.0.
More Skills