← 返回 Skills 市场
zhaoelaine80-boop

Description: Turn vague product ideas into AI-ready specs. Bilingual requirement closure checker for non-technical builders.把模糊的产品想法变成 AI Coding 能读懂的需求文档。面向没有产品背景的创作者,通过五步追问完成需求闭环。

作者 zhaoelaine80-boop · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
66
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install logic-bridge-protocol
功能描述
Validates vague product requirements and user stories against five closure rules (actor, scenario, goal, actionable path). Returns structured follow-up quest...
使用说明 (SKILL.md)

Logic Bridge Protocol

Purpose

Turn fuzzy natural-language requests into reviewable, structured output. The companion script protocol.py performs a lightweight closure check inspired by first-principles and pyramid-style thinking: if the text is too thin, the skill returns specific follow-up questions; if it passes, it returns JSON tasks suitable for a file editor or coding agent.

When to use

  • The user pastes a one-line idea, half-baked user story, or “make a button” request.
  • You need a gate before writing code or large docs.
  • You want a repeatable JSON contract for downstream tools (e.g. FileEditor, task runners).

Dependencies

  • Python 3.10+
  • Pydantic v2 (pip install pydantic or uv pip install pydantic)

How to run

From the skill folder:

python3 protocol.py

To call the API in code or from a REPL:

from protocol import logic_bridge_protocol

result = logic_bridge_protocol({
    "raw_text": "As a store manager, on the inventory page I need to export CSV when stock is low so I can reorder."
})
print(result)

Input

Field Type Required Description
raw_text string yes Raw requirement or user story text

Output (JSON)

Failure — status: "error"

  • message: short summary for the agent.
  • follow_up_questions: list of concrete gaps (actor, scenario, goal, path, or length).

Success — status: "ok"

  • message: confirmation string.
  • file_editor_tasks: list of tasks with:
    • intent: write | patch | review
    • target_path: suggested file path (default brief: docs/logic_bridge_task.md)
    • instructions: what to write in natural language, including a sha256 digest of the normalized input for traceability.

Rules the checker enforces

  1. Minimum substance — not just a couple of words.
  2. Actor — who benefits or performs the action (supports EN/ZH cues).
  3. Scenario — where/when in the product this applies.
  4. Problem / goal — pain or intended outcome.
  5. Actionable path — steps or navigation, not only intent.

Limitations

  • Heuristic only; it can false-negative on poetic or highly implicit writing.
  • Tune regexes in protocol.py for your domain (e.g. B2B, internal tools).

Examples

Too vague

Input: {"raw_text": "add a feature"}
→ Error with follow-ups asking for actor, scenario, goal, and steps.

Stronger story

Input: {"raw_text": "As a support agent, when I open a ticket I want to paste logs and save them so the engineer sees them. I click Attach, choose file, then Save."}
→ Success with a docs/logic_bridge_task.md write task and sha256 note.

Testing

A self-contained test suite ships with the skill:

python3 test_protocol.py
# 12/12 tests passed

Coverage: empty input, missing keys, wrong types, vague one-liners, partially-complete stories (EN + ZH), fully-closed stories, hash determinism.

Publishing to ClawHub

Zip the folder that contains SKILL.md, protocol.py, requirements.txt, and test_protocol.py (same directory level), or use the ClawHub CLI per current docs. Ensure only text-based files are included; total bundle must respect registry limits.

安全使用建议
This skill appears to be a local Python utility that validates and expands product requirements; it doesn't exfiltrate data or request credentials. Before installing: (1) ensure you run it in a safe environment (it takes arbitrary text inputs); (2) install pydantic from the official PyPI source or within a virtual environment; (3) run the included test suite (python3 test_protocol.py) to confirm behavior in your environment. Remember that 'benign' here means coherent with its purpose — always avoid feeding sensitive secrets into third-party tools.
功能分析
Type: OpenClaw Skill Name: logic-bridge-protocol Version: 1.0.0 The logic-bridge-protocol skill is a utility designed to validate natural-language requirements against structured 'closure rules' (Actor, Scenario, Goal, Path). The implementation in `protocol.py` uses Pydantic for validation and basic regex heuristics to identify missing components in user stories, returning either follow-up questions or a structured task for a file editor. There is no evidence of data exfiltration, malicious execution, or prompt injection; the code is well-documented and includes a comprehensive test suite (`test_protocol.py`).
能力标签
cryptocan-make-purchases
能力评估
Purpose & Capability
Name/description (turn vague product ideas into structured specs) matches the included code and SKILL.md. Required binaries (python3/python) and dependency (pydantic) are appropriate for a Python-based text-checker; no unrelated services or credentials are requested.
Instruction Scope
SKILL.md instructs running protocol.py or calling logic_bridge_protocol(payload). The runtime instructions and code operate purely on the provided text, return JSON, and only provide follow-up questions or tasks; they do not read arbitrary files, access environment variables, or send data to external endpoints.
Install Mechanism
No install spec in registry; dependencies are standard Python packages (pydantic) listed in requirements.txt and documented in SKILL.md. There are no downloads from untrusted URLs or archive extraction steps.
Credentials
No environment variables, credentials, or config paths are requested. The code does not access os.environ or other secret sources. The single dependency (pydantic) is reasonable for input validation.
Persistence & Privilege
always is false and the skill does not request persistent/system-wide changes. It does not modify other skills or system configuration and does not store credentials.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install logic-bridge-protocol
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /logic-bridge-protocol 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
v1.0.0 — Initial release - Bilingual (ZH/EN): follow-up questions match the language of the input - 5-principle closure check: actor, scenario, goal, actionable path, substance - Returns structured JSON tasks for downstream agents when requirements pass - 12/12 tests passing
元数据
Slug logic-bridge-protocol
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Description: Turn vague product ideas into AI-ready specs. Bilingual requirement closure checker for non-technical builders.把模糊的产品想法变成 AI Coding 能读懂的需求文档。面向没有产品背景的创作者,通过五步追问完成需求闭环。 是什么?

Validates vague product requirements and user stories against five closure rules (actor, scenario, goal, actionable path). Returns structured follow-up quest... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 66 次。

如何安装 Description: Turn vague product ideas into AI-ready specs. Bilingual requirement closure checker for non-technical builders.把模糊的产品想法变成 AI Coding 能读懂的需求文档。面向没有产品背景的创作者,通过五步追问完成需求闭环。?

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

Description: Turn vague product ideas into AI-ready specs. Bilingual requirement closure checker for non-technical builders.把模糊的产品想法变成 AI Coding 能读懂的需求文档。面向没有产品背景的创作者,通过五步追问完成需求闭环。 是免费的吗?

是的,Description: Turn vague product ideas into AI-ready specs. Bilingual requirement closure checker for non-technical builders.把模糊的产品想法变成 AI Coding 能读懂的需求文档。面向没有产品背景的创作者,通过五步追问完成需求闭环。 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Description: Turn vague product ideas into AI-ready specs. Bilingual requirement closure checker for non-technical builders.把模糊的产品想法变成 AI Coding 能读懂的需求文档。面向没有产品背景的创作者,通过五步追问完成需求闭环。 支持哪些平台?

Description: Turn vague product ideas into AI-ready specs. Bilingual requirement closure checker for non-technical builders.把模糊的产品想法变成 AI Coding 能读懂的需求文档。面向没有产品背景的创作者,通过五步追问完成需求闭环。 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Description: Turn vague product ideas into AI-ready specs. Bilingual requirement closure checker for non-technical builders.把模糊的产品想法变成 AI Coding 能读懂的需求文档。面向没有产品背景的创作者,通过五步追问完成需求闭环。?

由 zhaoelaine80-boop(@zhaoelaine80-boop)开发并维护,当前版本 v1.0.0。

💬 留言讨论