首页龙虾技能列表 › Prompt Library Manager — 技能工具

Prompt Library Manager — 技能工具

v1.1.0

[自动翻译] Curated prompt template library for OpenClaw agents. Store, search, version, tag, and reuse prompt templates across sessions and agents. Use when aske...

0· 98·0 当前·0 累计
下载技能包
License
MIT-0
最后更新
2026/3/30
安全扫描
VirusTotal
无害
查看报告
OpenClaw
安全
medium confidence
The skill's code and instructions match its stated purpose (a local prompt template library) and it doesn't request credentials or external installs, though you should review the code before trusting sensitive prompts.
评估建议
This skill appears to be a local prompt library that reads/writes a JSON file under ~/.openclaw/workspace/memory/prompt-library.json and can import templates from files you provide. Before installing or using it: 1) Inspect the full script for any network calls (none are apparent in the shown imports, but the file was truncated in the listing). 2) Avoid storing secrets or API keys inside prompt templates (templates may be exported or copied). 3) Be aware the tool can read files you point at with...
详细分析 ▾
用途与能力
Name/description (prompt template library) align with the provided CLI and code. The script manages prompts, searching, versioning, import/export and stores them under the user's workspace—capabilities requested are proportionate.
指令范围
SKILL.md instructs only local operations (add/search/list/use/import/export) and references the local storage path (~/.openclaw/workspace/memory/prompt-library.json). The only file reads occur when the user supplies --from-file or import files, which is expected. No instructions direct data to external endpoints.
安装机制
No install spec (instruction-only with an included script). No external packages or remote downloads are required by the manifest.
凭证需求
The skill does not require environment variables, credentials, or config paths beyond writing to a workspace directory. No secrets are requested or declared.
持久化与权限
always:false (not force-installed) and default model invocation allowed. The skill writes only to its own workspace path and does not request elevated system privileges.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv1.1.02026/3/30

Fixed: unhandled FileNotFoundError, OSError, and UnicodeDecodeError in cmd_add --from-file flag. All file read errors now return clean error messages instead of Python tracebacks.

● 无害

安装命令 点击复制

官方npx clawhub@latest install prompt-library-manager
镜像加速npx clawhub@latest install prompt-library-manager --registry https://cn.clawhub-mirror.com

技能文档

Store, search, version, and reuse prompt templates across OpenClaw sessions and agents.

Quick Start

# Add a new prompt template
python3 scripts/prompt-library.py add --name "email-summarizer" --category "productivity" \
    --template "Summarize the following email thread, highlighting: 1) Key decisions 2) Action items 3) Deadlines. Email: {input}"

# Search prompts by keyword python3 scripts/prompt-library.py search "email"

# List all prompts python3 scripts/prompt-library.py list

# Use a prompt (fills in variables) python3 scripts/prompt-library.py use "email-summarizer" --var input=""

# Export library python3 scripts/prompt-library.py export --format json

Commands

add — Add Prompt Template

Store a new prompt with metadata:
  • --name NAME — Unique identifier (required)
  • --category CAT — Category tag (e.g., productivity, coding, writing, analysis)
  • --template TEXT — The prompt text with {variable} placeholders
  • --description TEXT — Human-readable description
  • --tags TAG,TAG — Comma-separated tags for search
  • --model MODEL — Recommended model (optional)
  • --from-file PATH — Load template from file instead of inline

search — Search Prompts

Full-text search across names, descriptions, tags, and template content.
  • Supports keyword matching and tag filtering
  • --category CAT — Filter by category
  • --tag TAG — Filter by tag

list — List All Prompts

Display all stored prompts with metadata.
  • --category CAT — Filter by category
  • --format text|json|markdown — Output format
  • --compact — Show names only

use — Fill and Output Prompt

Retrieve a prompt and fill in variable placeholders:
  • --var KEY=VALUE — Set template variables (repeatable)
  • --copy — Copy filled prompt to clipboard

update — Update Existing Prompt

Modify a stored prompt (creates new version):
  • --name NAME — Prompt to update
  • --template TEXT — New template text
  • --tags TAG,TAG — Updated tags

delete — Remove Prompt

Delete a prompt from the library.
  • --name NAME — Prompt to delete
  • --confirm — Skip confirmation

export — Export Library

Export all prompts for backup or sharing.
  • --format json|yaml|markdown — Export format
  • --output PATH — Write to file
  • --category CAT — Export specific category only

import — Import Prompts

Import prompts from file (merge with existing).
  • --file PATH — Import source file (JSON or YAML)
  • --overwrite — Replace existing prompts with same name

stats — Library Statistics

Show prompt usage stats, category counts, and most-used templates.

Storage

Prompts are stored in memory/prompt-library.json as a JSON array:

[{
  "name": "email-summarizer",
  "category": "productivity",
  "description": "Summarize email threads with decisions and action items",
  "template": "Summarize the following email thread...",
  "tags": ["email", "summary", "productivity"],
  "model": null,
  "version": 1,
  "created": "2026-03-29T05:00:00Z",
  "updated": "2026-03-29T05:00:00Z",
  "use_count": 0
}]

Built-in Starter Prompts

The library ships with 10 high-quality starter prompts:

  • email-summarizer — Summarize email threads
  • code-reviewer — Review code for bugs and improvements
  • meeting-notes — Structure meeting transcripts into notes
  • bug-report — Generate structured bug reports
  • content-writer — Write blog posts from outlines
  • data-analyst — Analyze datasets and find patterns
  • task-breakdown — Break complex tasks into subtasks
  • explain-concept — Explain technical concepts simply
  • decision-matrix — Compare options with pros/cons
  • daily-standup — Generate standup update from git log
数据来源:ClawHub ↗ · 中文优化:龙虾技能库
OpenClaw 技能定制 / 插件定制 / 私有工作流定制

免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制

了解定制服务