← 返回 Skills 市场
mikeqle

BetterPrompt

作者 mikeqle · GitHub ↗ · v1.0.3 · MIT-0
cross-platform ✓ 安全检测通过
167
总下载
0
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install betterprompt
功能描述
Discover, install, and run reusable AI prompt skills from the BetterPrompt registry via the CLI (betterprompt / bp). Use when a user needs to find a prompt s...
使用说明 (SKILL.md)

BetterPrompt Skill

This skill uses the BetterPrompt CLI (open-source by BetterPrompt.me) to:

  • Generate AI output (text, images, video)
  • Install and manage BetterPrompt skills
  • Search and discover BetterPrompt skills

Supports OpenClaw and popular agents.

CLI Installation

npm install -g betterprompt@latest
# or
bun install -g betterprompt@latest
# or
yarn global add betterprompt@latest
# or
pnpm add -g betterprompt@latest

Authentication

Authenticate via browser:

betterprompt login

Skill Discovery

betterprompt skill search "\x3Cquery>"
betterprompt skill info \x3Cskill-slug>

Output Generation

A skill is essentially a prompt with instructions. Run the following command to generate output:

betterprompt generate \x3Cskill-slug> [input flags] [--model \x3Cmodel>] [--options \x3Cjson>] [--json]

Input methods (use the one that matches the skill's input contract):

# Key-value pairs (repeatable)
betterprompt generate \x3Cskill-slug> --input key=value --input key2=value2

# Image via URL
betterprompt generate \x3Cskill-slug> --image-input-url \x3Curl>

# Image via local file (auto-compressed)
betterprompt generate \x3Cskill-slug> --image-input-path \x3Cpath>

# JSON payload (all inputs as a single JSON object)
betterprompt generate \x3Cskill-slug> --input-payload '{"key": "value"}'

# Stdin pipe
echo "input text" | betterprompt generate \x3Cskill-slug> --stdin

Flags:

--model \x3Cmodel>       override the default model for this skill
--options \x3Cjson>      pass provider-specific model options as JSON
--json                output structured JSON (includes run-id, status, outputs)

The --json response includes a runId field used to retrieve outputs later.

Output Review

Retrieve outputs for a specific run:

betterprompt outputs \x3Crun-id>

List past outputs:

betterprompt outputs list

Output types:

Type Value
TEXT "text"
IMAGE "image"
ERROR "error"
VIDEO "video"

Skill Management

Install, uninstall, list, and update prompt skills:

betterprompt skill install \x3Cskill-slug> --agent \x3Cname>
betterprompt skill uninstall \x3Cskill-slug> --agent \x3Cname>
betterprompt skill list
betterprompt skill update \x3Cskill-slug>

Global Flags

These flags work on most commands:

--project       scope to the current project (vs global)
--global        scope to global install
--dir \x3Cpath>    use an explicit working directory
--json          structured JSON output (machine-readable)
--quiet         reduce non-essential output
-h, --help      show help for any command
-V, --version   show CLI version

Resources

Fetch available models and their supported options (e.g., aspect ratio, resolution, reasoning effort):

betterprompt resources --models-only

Agent Instructions

Skill Installation

The --agent flag specifies which agent to install/uninstall a prompt skill into. Use your own agent name if you know it (e.g., --agent openclaw for OpenClaw, --agent claude for Claude). If you don't know which agent you are, ask the human.

  • Install supports multiple agents: --agent claude --agent cursor
  • Uninstall accepts one agent or --agent "*" to remove from all

Supported agents: agents, openclaw, cursor, claude, windsurf, antigravity.

Execution Pipeline

Run these steps in order. Early steps can be skipped if the user's goal is already satisfied (e.g., discovery only stops after Search).

Always use --json flag on every command for machine-readable output.

  1. Searchbetterprompt skill search "\x3Cquery>" --json
  2. Inspectbetterprompt skill info \x3Cslug> --json
  3. Fetch resourcesbetterprompt resources --models-only --json
  4. Validate from skillmd
  5. Present execution choices:
  • required inputs in the skill.md
  • default model
  • default model's options
  • other supported models
  1. Executebetterprompt generate \x3Cskill-slug> [input flags] --json
  2. Poll if neededbetterprompt outputs \x3Crun-id> --sync --json

After a successful generation, always ask the human if they want to install the skill for future use (see Skill Installation). Do not skip this step.

If any step fails due to transient error, retry once. If a step is blocked (missing input, API failure, user pause), return the best available result from completed steps without waiting for the full pipeline.

Skill Selection Rubric

When multiple skills match, prefer higher score on:

  1. Intent match to user request
  2. Input contract clarity in skillmd
  3. Output predictability/repeatability
  4. Fewer ambiguous runtime options

If tied, pick the skill with clearer skillmd run instructions.

Failure and Timeout Handling

  • Show key error directly; provide one corrective action
  • Retry once if safe and likely to succeed
  • If timeout returns a runId, report it and offer betterprompt outputs \x3Crun-id> --sync as follow-up
  • If blocked by CLI version, upgrade CLI then rerun full pipeline

OpenClaw Instructions

Post-Install Session Reset

After installing a skill with betterprompt skill install, suggest the human reset their session so the newly installed skill is loaded by OpenClaw.

Channel Display Rules

All content returned to users must render natively in their channel platform. Never send raw URLs, raw JSON, or unformatted dumps. The rules below apply to every content type the agent presents: search results, skill details, generation outputs, and resources.

Platform-Specific Image Rendering

Never send an image URL as plain text — always use the platform's native image mechanism so the image displays inline in the chat. The URL must be publicly accessible over HTTPS.

Platform Method Key Details
Discord Embed with image.url Bare URLs may not unfurl reliably; always use embeds
Slack Block Kit image block image_url + alt_text (required); URL unfurling depends on workspace settings
Telegram sendPhoto Bot API method sendMessage with a URL does not render images; URL in photo param
Microsoft Teams Adaptive Card Image element "type": "Image", "url": "…"; bare URLs render as links, not images; HTTPS required
WhatsApp Messages API with "type": "image" image.link; PNG/JPG only, max 5 MB, valid SSL + Content-Type headers required
  • If the URL is behind auth or ephemeral, download the image first and upload it as a direct attachment
  • If multiple image URLs are returned, send each as a separate image message
Platform-Specific Text & Rich Content
Platform Formatting Lists / Tables Code Blocks
Discord Markdown (bold, italic, headers, links) Numbered/bulleted lists; no native tables — use code block alignment ```lang fenced blocks
Slack mrkdwn (*bold*, _italic_, \x3Curl|text>) Bulleted with ; numbered manually; no native tables — use Section blocks or code ``` blocks (no language hint)
Telegram MarkdownV2 or HTML (\x3Cb>, \x3Ci>, \x3Ca>, \x3Ccode>) Manual numbered/bulleted; no native tables — use \x3Cpre> aligned columns \x3Cpre> or ```
Microsoft Teams Subset of HTML + Adaptive Cards Adaptive Card FactSet for key-value; TextBlock with markdown for lists \x3Cpre>\x3Ccode> or Adaptive Card CodeBlock
WhatsApp Limited: *bold*, _italic_, ~strike~, ```mono``` Manual numbered/bulleted only; no rich formatting for tables ``` blocks (no language hint)
Search Results (item list)

Present each skill as one message — do not split a single skill across multiple messages:

  • Number items (1., 2., …) with \x3Ctitle> + \x3Cshort description> in the same message
  • If sample output is an image URL → render inline using platform image method (see table above) with numbered caption
  • If sample output is text → quote block (> \x3Csample text> or platform equivalent)
  • If no sample output → include "No sample output available." in the item message
Skill Details (info) / Execution Choices

When presenting skill info from betterprompt skill info:

  • Title + description as a header or bold line

  • Required inputs

    • List of text inputs: name, description, is required. E.g:

      Inputs:
      
      - story_theme (required): The story theme
      - character_role (required): The character role
      
    • List of image inputs: name, description, is required. E.g:

      ** Exactly 1 ** image(s)
      
      - image 1 (required): The character reference image
      
  • Default model and their available options E.g:

    - Default model: gemini-3.1-flash-image-preview (default)
    - Available options: aspectRatio: 1:1 (default) / 16:9 / 9:16, resolution: 1024x1024 / 2048x2048
    
  • Other supported models as a model list. E.g: gpt-image-1, dall-e-3, ...

  • Sample output rendered inline (image or quoted text per platform rules)

  • Keep it to one message; use the platform's rich formatting (embeds, cards, blocks) to structure sections visually

Generation Output

After a successful run, return exactly:

  1. Exact result — same content BetterPrompt returned, formatted for readability only
  2. One next step — exactly one actionable suggestion

Fidelity rules:

  • Text: light formatting only (line breaks, short intro); preserve all content verbatim
  • Images: render inline per platform image rules above
  • Never invent, summarize away, or alter output content
  • Do not include skill IDs, prompt version IDs, raw JSON, or internal logs unless explicitly asked
Resources

When presenting results from betterprompt resources --models-only:

  • Models list: formatted as a numbered list or compact table showing model name and provider
  • Resource details: key-value pairs using the platform's native structured format (Discord embed fields, Slack section blocks, Teams FactSet, Telegram bold key + value)
  • Keep it scannable — one message, no walls of text
安全使用建议
This skill is internally consistent and simply instructs the agent to use the BetterPrompt CLI. Before installing: 1) Review the npm package (betterprompt) source and published author to ensure it matches the project's homepage; 2) Prefer project-scoped installs over global (-g) or use a container/VM for isolation; 3) Be aware the CLI's browser login will produce tokens/cookies stored locally — treat them like credentials; 4) Inspect individual prompt skills (skillmd) before installing them into your agent, since installed prompt skills can run arbitrary prompts and may ask for local file inputs or send data to external endpoints; 5) Pin a specific CLI version rather than always using @latest to reduce supply-chain risk.
功能分析
Type: OpenClaw Skill Name: betterprompt Version: 1.0.3 The 'betterprompt' skill bundle is a legitimate integration for the BetterPrompt.me service, allowing AI agents to search, install, and execute prompt-based skills. The SKILL.md file provides extensive, well-structured instructions for the agent on how to handle CLI commands, manage multi-platform output formatting (Discord, Slack, etc.), and interact with the user safely (e.g., asking for permission before installation). No evidence of data exfiltration, malicious execution, or harmful prompt injection was found.
能力评估
Purpose & Capability
Name/description describe discovering and running BetterPrompt prompt skills. The SKILL.md instructs the agent to use the BetterPrompt CLI, manage skills, search, generate outputs, and install into agents — all consistent with the stated purpose. No unrelated credentials, binaries, or config paths are requested.
Instruction Scope
Runtime instructions are narrowly scoped to running the BetterPrompt CLI commands (search, info, generate, outputs, skill install/uninstall) and handling CLI output. The guide references local image file paths and an explicit working directory flag (--dir), which are relevant for providing image inputs and project-scoped installs. There are no instructions to read arbitrary system files or unrelated environment variables.
Install Mechanism
Install spec uses the npm package 'betterprompt' (creates binaries betterprompt, bp). This is expected for a CLI integration, but npm installs execute third-party code and are a moderate-risk install mechanism — review the package source, version, and provenance before globally installing.
Credentials
The skill declares no required environment variables or credentials. Authentication is performed via the CLI's browser login flow (expected). No unrelated secrets or cross-service credentials are requested.
Persistence & Privilege
The skill does not request always:true and does not demand elevated platform privileges. The CLI can install prompt skills into agents (via --agent) which is appropriate for its purpose; this is scoped to the agent skill-management workflow rather than modifying unrelated system-wide settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install betterprompt
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /betterprompt 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.3
- Added support for image input via local file path with `--image-input-path <path>` (auto-compressed) during output generation. - No other changes detected.
v1.0.2
betterprompt 1.0.2 – Adds agent-aware skill installation/uninstallation and improves execution pipeline clarity. - Adds explicit `--agent` flag for skill install/uninstall; supports multi-agent workflows - Updates instructions for always using `--json` for machine-readable outputs - Refines execution pipeline: mandates polling with `--sync` and prompts for skill install after use - Adds post-install session reset advice for OpenClaw users - Clarifies when steps can be skipped or retried for robust error/timeout handling - General formatting and organization improvements for easier use
v1.0.1
Version 1.0.1 - Added OpenClaw integration metadata with homepage, emoji, and CLI requirements. - Updated installation instructions to include metadata for Node package managers. - Removed the `--registry` and `--no-color`, `--yes`, and `--verbose` global flags from documentation. - No functional or behavioral changes in implementation.
v1.0.0
Initial release of betterprompt skill for discovering and running AI prompt skills via the CLI. - Search, install, and manage BetterPrompt skills directly from the command line - Generate AI outputs (text, images, video) using reusable skills and configurable input methods - Supports authentication, registry management, and output retrieval, including past runs - Compatible with OpenClaw and Claude Code agents - Includes detailed channel-specific formatting and content delivery instructions for platforms like Discord, Slack, Telegram, Teams, and WhatsApp
元数据
Slug betterprompt
版本 1.0.3
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 4
常见问题

BetterPrompt 是什么?

Discover, install, and run reusable AI prompt skills from the BetterPrompt registry via the CLI (betterprompt / bp). Use when a user needs to find a prompt s... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 167 次。

如何安装 BetterPrompt?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install betterprompt」即可一键安装,无需额外配置。

BetterPrompt 是免费的吗?

是的,BetterPrompt 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

BetterPrompt 支持哪些平台?

BetterPrompt 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 BetterPrompt?

由 mikeqle(@mikeqle)开发并维护,当前版本 v1.0.3。

💬 留言讨论