← 返回 Skills 市场
string-utils
作者
jpengcheng523-netizen
· GitHub ↗
· v1.0.0
· MIT-0
127
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install jpeng-string-utils
功能描述
Provides string manipulation and transformation operations for working with text. Use when you need to transform, format, or manipulate strings.
使用说明 (SKILL.md)
String Utils
Provides string manipulation and transformation operations.
Usage
const str = require('./skills/string-utils');
// Case conversion
const camel = str.toCamelCase('hello world'); // helloWorld
const snake = str.toSnakeCase('helloWorld'); // hello_world
const kebab = str.toKebabCase('helloWorld'); // hello-world
// Trimming and padding
const trimmed = str.trim(' hello '); // 'hello'
const padded = str.padLeft('5', 3, '0'); // '005'
// Truncation
const short = str.truncate('hello world', 8); // 'hello...'
// Slug generation
const slug = str.slugify('Hello World!'); // 'hello-world'
// Escape/unescape
const escaped = str.escapeHtml('\x3Cdiv>'); // '<div>'
Features
- Case conversion (camelCase, snake_case, kebab-case, PascalCase, etc.)
- Trimming and padding
- Truncation with ellipsis
- Slug generation
- HTML escape/unescape
- URL encoding/decoding
- Template interpolation
- String similarity
安全使用建议
This skill appears to be a harmless string-manipulation library and requests no credentials or network access. Before installing or using it in production: 1) review and run the full index.js file locally — the provided excerpt ends with a truncated export (module.exports appears incomplete in the excerpt), which may cause runtime errors; 2) check that SKILL.md's require path matches how your agent will load the module (SKILL.md uses './skills/string-utils' while package.json/main points to index.js); 3) run the included test script (npm test or node -e "require('./index.js').main()") in a sandbox to confirm behavior; and 4) prefer a vetted package source (registry or repo with history) if you need production-grade reliability. These are quality and correctness issues rather than security red flags.
功能分析
Type: OpenClaw Skill
Name: jpeng-string-utils
Version: 1.0.0
The skill bundle provides a comprehensive set of standard string manipulation utilities (case conversion, padding, truncation, HTML escaping, etc.) in index.js. The code is well-documented, lacks external dependencies, and contains no evidence of data exfiltration, malicious execution, or prompt injection.
能力评估
Purpose & Capability
Name, description, and included code implement string transformations (case conversion, trimming, slugify, escape/unescape, similarity, etc.), which is proportionate to the stated purpose.
Instruction Scope
The SKILL.md usage examples and the code implement the same string APIs. The SKILL.md example uses require('./skills/string-utils') while package.json/main point to index.js — a path mismatch but not a security issue. The runtime instructions do not request files, env vars, network calls, or other system access beyond typical local module usage.
Install Mechanism
No install spec or external downloads are present; the skill is instruction/code-only and does not pull artifacts from external URLs or registries.
Credentials
The skill declares no required environment variables, credentials, or config paths and the code does not reference process.env or other secrets-related APIs.
Persistence & Privilege
always is false and the skill does not request persistent system-wide changes, nor does it modify other skills' configuration. Autonomous invocation is allowed (platform default) but not combined with other concerning factors.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install jpeng-string-utils - 安装完成后,直接呼叫该 Skill 的名称或使用
/jpeng-string-utils触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release of jpeng-string-utils.
- Provides utilities for string case conversion (camelCase, snake_case, kebab-case, etc.)
- Includes trimming, padding, and truncation with ellipsis.
- Supports slug generation and HTML escape/unescape.
- Adds URL encoding/decoding, template interpolation, and string similarity features.
元数据
常见问题
string-utils 是什么?
Provides string manipulation and transformation operations for working with text. Use when you need to transform, format, or manipulate strings. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 127 次。
如何安装 string-utils?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install jpeng-string-utils」即可一键安装,无需额外配置。
string-utils 是免费的吗?
是的,string-utils 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
string-utils 支持哪些平台?
string-utils 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 string-utils?
由 jpengcheng523-netizen(@jpengcheng523-netizen)开发并维护,当前版本 v1.0.0。
推荐 Skills