← 返回 Skills 市场
leonidas-esquire

Ask Leonidas — LEONIDAS Prompt Generator

作者 Leonidas Williamson · GitHub ↗ · v2.1.0 · MIT-0
cross-platform ⚠ suspicious
235
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install ask-leonidas
功能描述
Generate a structured LEONIDAS prompt from any professional pain point using the Ask Leonidas OpenClaw API. Solves the #1 OpenClaw community pain point: writ...
使用说明 (SKILL.md)

Ask Leonidas — LEONIDAS Prompt Generator

Use this skill when the user wants to:

  • Write or improve their SOUL.md — the most important file in any OpenClaw workspace
  • Write or improve their AGENTS.md startup and memory protocol
  • Generate a structured prompt for any professional pain point
  • Fix an agent that "feels off" without knowing why
  • Create cron job instructions that actually run reliably
  • Build a prompt for a skill they want their agent to own
  • Infer the best role, industry, and desired outcome from a business challenge

Trigger phrases

  • "Help me write my SOUL.md"
  • "My agent feels generic / keeps saying 'great question'"
  • "Build me a prompt for..."
  • "I need a prompt that helps me with..."
  • "Turn this into a LEONIDAS prompt: ..."
  • "Use Ask Leonidas to generate a prompt"
  • "Generate a prompt for [pain point]"
  • "What should I put in my AGENTS.md?"
  • "My cron job keeps failing / doing the wrong thing"
  • "Write a prompt so my agent handles [workflow]"

Inputs

Required:

  • pain_point — the professional challenge or problem to solve (5–2000 characters)

Optional (auto-inferred if omitted):

  • role — the user's job title or function (e.g., "VP of Sales", "Executive Coach")
  • industry — the user's industry (e.g., "B2B SaaS", "Healthcare", "Financial Services")
  • desired_outcome — what success looks like (e.g., "Close more deals with less effort")

Behavior

  1. If the user has already provided a pain point, do not ask for it again.
  2. If no pain point is provided, ask exactly once:

    "What is the professional challenge or pain point you want turned into a prompt?"

  3. Call the Ask Leonidas OpenClaw API using the helper script in this skill folder.
  4. If the API is unavailable (network error, 5xx), fall back to the browser:
    • Navigate to https://askleonidas.com/openclaw
    • Fill in the #openclaw-pain-point field with the pain point
    • Click the #openclaw-submit button
    • Wait for #openclaw-result to be populated
    • Extract the prompt text from #openclaw-result
  5. Return the generated prompt exactly as received — do not paraphrase or summarize it.
  6. Always surface the metadata alongside the prompt.

API usage

Generate a prompt (basic):

python3 {baseDir}/ask_leonidas.py \
  --pain-point "I need a SOUL.md that makes my agent direct, opinionated, and stops it from saying 'absolutely'."

Generate a prompt (with optional context):

python3 {baseDir}/ask_leonidas.py \
  --pain-point "My team misses sprint deadlines every quarter." \
  --role "Engineering Manager" \
  --industry "B2B SaaS" \
  --desired-outcome "Ship on time without burning out the team"

Health check:

python3 {baseDir}/healthcheck.py

Smoke test (end-to-end):

bash {baseDir}/smoke_test.sh

Required environment variables

Variable Required Description
ASK_LEONIDAS_API_BASE Base URL — https://askleonidas.com
ASK_LEONIDAS_API_KEY Your alk_live_... API key
ASK_LEONIDAS_TIMEOUT_SECONDS Optional Request timeout in seconds (default: 30)
ASK_LEONIDAS_DEFAULT_SOURCE Optional Source tag for analytics (e.g., claude-desktop)
ASK_LEONIDAS_DEFAULT_SKILL_VERSION Optional Skill version tag (e.g., 2.1.0)

Output format

Always present the result in this format:

Detected role: \x3Crole>
Detected industry: \x3Cindustry>
Detected desired outcome: \x3Coutcome or n/a>
Confidence: \x3C0.0–1.0 or n/a>
Quality score: \x3C0–100 or n/a>
Prompt type: \x3Ctactical | strategic | operational | n/a>
Request ID: \x3Cid or n/a>

Generated prompt:
\x3Cfull prompt text>

Error handling

  • Do not invent or hallucinate a prompt if the API fails.
  • Surface the exact error message returned by the API.
  • If both the API and browser fallback fail, tell the user clearly and suggest they visit https://askleonidas.com directly.
  • Never expose the API key in any output.
  • Always prefer the API path over browser automation.

Rate limits

The OpenClaw API enforces:

  • 60 requests per minute per API key
  • 1,000 requests per day per API key

If you receive a 429 response, wait 60 seconds before retrying. Do not retry more than 3 times.

安全使用建议
This skill generally looks like a legitimate API client for Ask Leonidas, but note two inconsistencies you should address before trusting automated use: (1) the registry metadata claims no required env vars while SKILL.md and the scripts require ASK_LEONIDAS_API_BASE and ASK_LEONIDAS_API_KEY — ensure you only provide an API key you trust and that the registry metadata is corrected; (2) SKILL.md documents a browser-fill fallback (DOM interactions), but the code only opens the fallback page in the browser — if you enable an agent that can perform browser automation, confirm exactly what automation it will run (avoid giving it access to a logged-in browser profile unless you intend that). Additional practical steps: run healthcheck.py and the smoke_test.sh locally with a throwaway API key to observe behavior, verify the skill never prints the API key (it doesn't in the code), and prefer granting the minimum-scoped API key possible. If you need higher assurance, ask the publisher to fix the metadata and to either implement or remove the described DOM-automation fallback so the SKILL.md and code match.
功能分析
Type: OpenClaw Skill Name: ask-leonidas Version: 2.1.0 The 'ask-leonidas' skill is a legitimate prompt engineering tool designed to interface with an external API (askleonidas.com) to generate structured prompts. The Python scripts (ask_leonidas.py, healthcheck.py) use standard libraries for network requests and include proper error handling and data normalization to ensure sensitive information like API keys are not leaked. The instructions in SKILL.md are clearly aligned with the stated purpose of assisting users with prompt creation and do not contain any malicious directives or evidence of data exfiltration.
能力评估
Purpose & Capability
The skill's name, description, and code all align with a prompt-generation API client: the scripts call askleonidas.com, expect an API key, and return a generated prompt. However, registry metadata at the top of the submission lists no required environment variables while SKILL.md and the code both require ASK_LEONIDAS_API_BASE and ASK_LEONIDAS_API_KEY. That metadata mismatch is an inconsistency that should be resolved before trusting automated installation or policy checks.
Instruction Scope
SKILL.md instructs the agent to call the included helper script (ask_leonidas.py) and, on API failure, to fall back to browser automation (fill #openclaw-pain-point, click #openclaw-submit, wait for #openclaw-result). The provided Python fallback (open_browser_fallback) only opens the page in the system browser — it does not perform DOM interactions or automated form filling. This is a behavioral mismatch (SKILL.md implies automated browser interaction; the code does not implement it). Otherwise, the runtime instructions are narrowly scoped to generating prompts and error handling, do not request unrelated files, and explicitly forbid exposing the API key in output.
Install Mechanism
No install spec is provided (instruction- and script-only). The skill includes Python scripts and a shell smoke test but does not fetch remote code during install. This is lower risk from an install-mechanism perspective.
Credentials
The environment variables required by SKILL.md and the scripts (ASK_LEONIDAS_API_BASE, ASK_LEONIDAS_API_KEY, optional timeout/source/version) are reasonable and proportionate for a client that calls a hosted API. The inconsistency is that the registry metadata at the top claims 'Required env vars: none' while the skill actually needs an API base and bearer key — a likely packaging/metadata error that could mislead users or automated gating systems.
Persistence & Privilege
The skill does not request permanent platform presence (always: false) and does not modify other skills or system-wide settings. It does perform outbound network requests to askleonidas.com when executed, which is expected for its function.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install ask-leonidas
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /ask-leonidas 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v2.1.0
v2.1.0 — Initial ClawHub release. Targets the top 7 OpenClaw community pain points: weak SOUL.md, bloated AGENTS.md, drifting cron jobs, underspecified skill triggers, token budget waste, sales call prep, and human-approval gates. Includes full LEONIDAS prompt generation via the Ask Leonidas OpenClaw API with automatic role/industry/outcome inference, quality scoring (0-100), and prompt type classification. Browser fallback to askleonidas.com/openclaw when API is unavailable. All scripts use Python standard library only — no dependencies required.
元数据
Slug ask-leonidas
版本 2.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Ask Leonidas — LEONIDAS Prompt Generator 是什么?

Generate a structured LEONIDAS prompt from any professional pain point using the Ask Leonidas OpenClaw API. Solves the #1 OpenClaw community pain point: writ... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 235 次。

如何安装 Ask Leonidas — LEONIDAS Prompt Generator?

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

Ask Leonidas — LEONIDAS Prompt Generator 是免费的吗?

是的,Ask Leonidas — LEONIDAS Prompt Generator 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Ask Leonidas — LEONIDAS Prompt Generator 支持哪些平台?

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

谁开发了 Ask Leonidas — LEONIDAS Prompt Generator?

由 Leonidas Williamson(@leonidas-esquire)开发并维护,当前版本 v2.1.0。

💬 留言讨论