Token导航 LogoToken导航

Agent Skill · 研究检索

betterprompt(betterprompt 命令行)

用于辅助提示词、系统指令、Agent 行为约束和工作流模板的整理。它适合让 Agent 规范任务边界、统一输出格式、拆分操作步骤或优化提示词可复用性。使用时需要保留真实业务约束,不要把示例当硬规则;涉及自动执行、外部工具或高风险操作时,应在提示词中明确确认步骤、权限边界和失败处理方式。

betterprompt 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为操作浏览器;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 66,577。

总安装 261周安装 11GitHub Stars 3下载 92核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:betterprompt(betterprompt 命令行)
来源仓库:https://github.com/betterpromptme/betterprompt
仓库路径:skills/betterprompt
安装命令:
npx skills add https://github.com/betterpromptme/betterprompt --skill betterprompt
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/betterpromptme/betterprompt --skill betterprompt

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

BetterPrompt CLI 工具,用于发现、安装和执行来自 betterprompt.me 的可复用提示词技能。支持文本、图像、视频等多种输出类型的版本化管理。可通过 npm、bun、yarn 或 curl 二进制方式全局安装使用。使用前应确认是否允许执行外部命令或访问互联网资源。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/betterprompt

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/betterpromptme/betterprompt --skill betterprom…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要操作浏览器,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

betterprompt 怎么安装?

在终端执行 npx skills add https://github.com/betterpromptme/betterprompt --skill betterprompt。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

betterprompt 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

betterprompt 需要什么权限?

权限级别是操作浏览器。该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

betterprompt 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

betterprompt 用的人多吗?

公开数据是累计安装 261 次,近一周安装 11 次,下载 92 次,GitHub 3 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

betterprompt 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
betterprompt

betterprompt 命令行 · 本页

2613操作浏览器未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

BetterPrompt CLI

BetterPrompt CLI (betterprompt / bp) lets you discover, install, and run reusable AI prompt skills from the registry at betterprompt.me. Skills are versioned prompts that generate text, image, or video outputs. Both binary names work interchangeably; prefer betterprompt over bp.

Installation

npm install -g betterprompt@latest
# or
bun install -g betterprompt@latest
# or
yarn global add betterprompt@latest
# or
pnpm add -g betterprompt@latest
# Binary release (macOS / Linux, no Node.js required)
curl -fsSL https://raw.githubusercontent.com/BetterPromptme/betterprompt/main/install.sh | bash

Verify installation:

betterprompt --version
betterprompt --help

Configuration

Authenticate via browser:

betterprompt login

Manage settings:

betterprompt config get           # show all config
betterprompt config get <key>     # get a specific key (apiKey | apiBaseUrl)
betterprompt config set <key> <value>
betterprompt config unset <key>   # remove a config value

Diagnostics and identity:

betterprompt doctor [--fix] [--json]   # check setup; --fix to auto-fix issues
betterprompt whoami [--json]           # show current user
betterprompt credits [--json]          # show credit balance

Skill Discovery

Search the registry:

betterprompt skill search "<query>"                      # full-text search
betterprompt skill search "<query>" --type text          # filter by output type: text | image | video
betterprompt skill search "<query>" --author <name>      # filter by author
betterprompt skill search "<query>" --json               # machine-readable JSON output

Inspect a skill before installing:

betterprompt skill info <skill-slug>                     # show details, inputs, output type
betterprompt skill info <skill-slug> --json

Output Generation

Run a skill to generate output:

betterprompt generate <skillVersionId> [input flags] [--model <model>] [--options <json>] [--json]

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

# Key-value pairs (repeatable)
betterprompt generate <skillVersionId> --input key=value --input key2=value2

# Image via URL
betterprompt generate <skillVersionId> --image-input-url <url>

# Image via base64
betterprompt generate <skillVersionId> --image-input-base64 <base64string>

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

# Stdin pipe
echo "input text" | betterprompt generate <skillVersionId> --stdin

Flags:

--model <model>       override the default model for this skill
--options <json>      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 <run-id>             # fetch outputs (returns immediately if ready)
betterprompt outputs <run-id> --sync      # wait for completion, then return
betterprompt outputs <run-id> --remote    # force fetch from remote (bypass local cache)
betterprompt outputs get <run-id>         # same as above (explicit subcommand form)

List past outputs:

betterprompt outputs list                            # list recent outputs
betterprompt outputs list --limit <n>               # cap results (default: 20)
betterprompt outputs list --since <ISO-date>        # filter by date (ISO 8601 or unix timestamp in ms)
betterprompt outputs list --status <status>         # filter by status (queued|running|succeeded|failed)
betterprompt outputs list --remote                  # fetch list from remote API

Output types:

TypeValue
TEXT"text"
IMAGE"image"
ERROR"error"
VIDEO"video"

Skill Management

Install a skill:

betterprompt skill install <skill-slug>                  # install globally (default)
betterprompt skill install <skill-slug> --project        # install in current project
betterprompt skill install <skill-slug> --overwrite      # overwrite an existing installed skill

List installed skills:

betterprompt skill list                                  # list global skills
betterprompt skill list --project                        # list project skills

Update skills:

betterprompt skill update <skill-slug>                   # update one skill
betterprompt skill update <skill-slug> --force           # re-install even if already at latest version
betterprompt skill update --all                          # update all installed skills

Remove a skill:

betterprompt skill uninstall <skill-slug>

Global Flags

These flags work on most commands:

--project       scope to the current project (vs global)
--global        scope to global install
--dir <path>    use an explicit working directory
--registry <url> override API registry endpoint
--json          structured JSON output (machine-readable)
--quiet         reduce non-essential output
--verbose       enable verbose output
--no-color      disable ANSI colors
--yes           answer yes to all confirmations
-h, --help      show help for any command
-V, --version   show CLI version

Top-Level Search

A convenience alias for betterprompt skill search:

betterprompt search "<query>"                            # full-text search
betterprompt search "<query>" --type text                # filter by output type: text | image | video
betterprompt search "<query>" --author <name>            # filter by author
betterprompt search "<query>" --json                     # machine-readable JSON output

Resources

Show available models and resources:

betterprompt resources                                   # show available models and resources
betterprompt resources --models-only                     # output only the models list
betterprompt resources --remote                          # fetch from remote API
betterprompt resources --sync                            # sync resources locally
betterprompt resources --json                            # machine-readable JSON output

Note: --remote and --sync are mutually exclusive.

CLI Maintenance

betterprompt update [--json]                             # check for CLI updates and install
betterprompt reset [--yes] [--json]                      # reset ~/.betterprompt directory (prompts for confirmation)

OpenClaw Agent Integration

Execution Pipeline

Run these steps in order and stop when the user's goal is satisfied:

  1. Search — betterprompt skill search...
  2. Inspect — betterprompt skill info <slug> --json
  3. Fetch resources — betterprompt 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. Execute only after required inputs are present

Do not skip any steps. If any step fails due to transient error, retry once.

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.

If the user only wants discovery (e.g. "search prompts", "show me skills"), stop after Search and return immediately. If a later step is blocked (missing input, API failure, user pause), return the best available result from completed steps without waiting for the full pipeline.

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.

PlatformMethodKey Details
DiscordEmbed with image.urlBare URLs may not unfurl reliably; always use embeds
SlackBlock Kit image blockimage_url + alt_text (required); URL unfurling depends on workspace settings
TelegramsendPhoto Bot API methodsendMessage with a URL does not render images; URL in photo param
Microsoft TeamsAdaptive Card Image element"type": "Image", "url": "…"; bare URLs render as links, not images; HTTPS required
WhatsAppMessages 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
PlatformFormattingLists / TablesCode Blocks
DiscordMarkdown (bold, italic, headers, links)Numbered/bulleted lists; no native tables — use code block alignment``` `lang ``` fenced blocks
Slackmrkdwn (*bold*, _italic_, `<url\text>`)Bulleted with •; numbered manually; no native tables — use Section blocks or code``` ` ``` blocks (no language hint)
TelegramMarkdownV2 or HTML (<b>, <i>, <a>, <code>)Manual numbered/bulleted; no native tables — use <pre> aligned columns<pre> or ``` ` ```
Microsoft TeamsSubset of HTML + Adaptive CardsAdaptive Card FactSet for key-value; TextBlock with markdown for lists<pre><code> or Adaptive Card CodeBlock
WhatsAppLimited: *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 <title> + <short 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 (> <sample 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 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

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 <run-id> --sync as follow-up
  • If blocked by CLI version, upgrade CLI then rerun full pipeline

Claude Code Agent Integration

Run all betterprompt commands via the Bash tool. Use --json where possible for structured output.

Discovery Workflow

betterprompt skill search "<user task>" --json        # find candidates
betterprompt skill info <skill-slug> --json           # inspect inputs, output type, skillVersionId

Generation Workflow

  1. Read betterprompt skill info <skill-slug> --json output to confirm: skillVersionId, required inputs, output type
  2. Build the generate command from the skill's input contract:
betterprompt generate <skillVersionId> --input key=value --json
  1. Capture runId from the JSON response for async output retrieval:
betterprompt outputs <run-id> --sync --json

Review Workflow

betterprompt outputs <run-id> --json                  # fetch by run id
betterprompt outputs list --json                      # list past outputs

Rules

  • Always call betterprompt skill info before betterprompt generate — never guess skillVersionId or input names
  • Use --json for all commands where structured parsing is needed
  • For --input-payload or --options, build JSON via a variable or temp file; never concatenate raw user input into shell strings
  • On error, retry once if the failure looks transient; otherwise surface the error message directly
  • Do not generate output or retry more than once without confirming the user still wants to proceed

平台分布

Codex

37.64%
按下载量换算35

Claude

28.88%
按下载量换算27

Cursor

19.27%
按下载量换算18

Gemini CLI

8.39%
按下载量换算8

安全审计

Gen Agent Trust Hub

可疑

Socket

可疑

Snyk

未通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills