← 返回 Skills 市场
chinasong

Gougoubi Create Condition

作者 chinasong · GitHub ↗ · v1.0.2 · MIT-0
darwinlinuxwin32 ✓ 安全检测通过
266
总下载
0
收藏
1
当前安装
3
版本数
在 OpenClaw 中安装
/install gougoubi-create-condition
功能描述
Create a Gougoubi proposal condition from minimal input with deterministic defaults for deadline, trade deadline, normalization, and transaction submission....
使用说明 (SKILL.md)

Gougoubi Create Condition

Use this skill to create a condition under an existing Gougoubi proposal from the smallest practical input.

Use This Skill When

  • The user wants to add one or more conditions to an existing proposal.
  • The user only provides proposal identifier and condition title.
  • The agent should auto-fill default dates and flags.

Do Not Use This Skill When

  • The user wants to create a new proposal. Use gougoubi-create-prediction.
  • The user wants activation, result submission, or reward claiming.

Minimal Input

{
  "proposalId": "0x... or proposal identifier",
  "conditionName": "Will Team A win the match?"
}

Defaults

  • Resolve proposalId to proposalAddress.
  • deadlineDateTime: proposal deadline.
  • deadlineTimezone: user locale, fallback UTC.
  • tradeDeadlineDateTime: deadlineDateTime - 1 hour, clamped to a valid future time.
  • tradeDeadlineTimezone: same as deadlineTimezone.
  • conditionImageUrl: empty string.
  • conditionRules: empty string.
  • skills: empty string.
  • isNormalized: true.

Generator Flow

Step 1: Validate minimal input.

Step 2: Resolve proposal and load proposal deadline.

Step 3: Generate all default date fields and clamp invalid values.

Step 4: Convert datetimes to unix seconds.

Step 5: Validate final payload:

  • conditionName non-empty
  • deadline > now
  • tradeDeadline > now
  • tradeDeadline \x3C= deadline

Step 6: Submit the canonical contract call in this order:

  1. conditionName
  2. deadline
  3. tradeDeadline
  4. conditionImageUrl
  5. conditionRules
  6. skills
  7. isNormalized

Step 7: Wait for confirmation and return the normalized payload.

Output

{
  "ok": true,
  "mode": "browser|contract",
  "txHash": "0x...",
  "proposalAddress": "0x...",
  "normalizedInput": {
    "proposalId": "",
    "proposalAddress": "",
    "conditionName": "",
    "deadlineDateTime": "",
    "deadlineTimezone": "",
    "tradeDeadlineDateTime": "",
    "tradeDeadlineTimezone": "",
    "defaultsApplied": true,
    "tradeDeadlinePolicy": "deadline-minus-1h-with-valid-clamp"
  },
  "warnings": []
}

Failure:

{
  "ok": false,
  "stage": "validation|resolve-proposal|create|confirm",
  "error": "reason",
  "retryable": true
}

Boundaries

  • Never bypass wallet confirmation.
  • Keep defaults deterministic and explain them in output when relevant.
安全使用建议
This skill appears coherent for adding a condition to an existing Gougoubi proposal. Before installing or using it, confirm the following: (1) How your agent will sign transactions—prefer a browser wallet or UI confirmation; do not provide private keys to the agent. (2) Which network/contract address the skill will target (testnet vs mainnet) and verify the target contract address independently. (3) Review the deterministic defaults (deadline, trade-deadline, timezone) so they match your expectations and locale handling. (4) Because SKILL.md is high-level, test the flow in a safe environment (testnet or a dry-run) to ensure the agent's implementation does not attempt to perform unexpected operations. If you plan programmatic submission (the 'contract' mode), require explicit human confirmation or an audited signing component rather than handing long-lived keys to the agent.
功能分析
Type: OpenClaw Skill Name: gougoubi-create-condition Version: 1.0.2 The skill bundle is a legitimate tool designed to automate the creation of conditions for Gougoubi proposals. The instructions in SKILL.md and metadata in clawhub.json are consistent with the stated purpose, focusing on deterministic defaults for deadlines and contract call formatting. No evidence of data exfiltration, malicious execution, or prompt injection was found.
能力评估
Purpose & Capability
Name/description (create a condition for an existing Gougoubi proposal) align with the SKILL.md steps: validate input, resolve proposal, compute deadline defaults, and submit a contract call. The skill does not request unrelated credentials or system access.
Instruction Scope
Instructions are high-level but stay within scope: they reference resolving a proposal, reading its deadline, generating defaults, validating, and submitting a canonical contract call. The SKILL.md does not instruct reading unrelated files or exfiltrating data. It is vague about the exact mechanism for submitting transactions (browser wallet vs. programmatic signing), so confirm how your agent will sign/confirm transactions before use.
Install Mechanism
Instruction-only skill with no install spec and no code files; nothing is downloaded or written to disk during installation according to the provided metadata.
Credentials
The skill declares no environment variables, no credentials, and no config paths. That is proportionate: on-chain transaction submission is expected to rely on an external wallet rather than embedded credentials.
Persistence & Privilege
always is false and the skill does not request persistent or cross-skill configuration changes. It explicitly requires wallet confirmation and does not claim autonomous access to user keys.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install gougoubi-create-condition
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /gougoubi-create-condition 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
No code or logic changes; documentation only. - Updated INSTALL.md file. - No changes to skill functionality or API.
v1.0.1
gougoubi-create-condition v1.0.1 changelog: - Revised and simplified documentation in SKILL.md, README.md, and INSTALL.md for clarity and user guidance. - Clarified minimal input requirements and boundaries for safe usage. - Updated default policies for deadline and trade deadline handling, including explicit explanation of clamping logic. - Standardized output and failure shapes for integration, adding guidance on when and how to use this skill. - Updated metadata (clawhub.json) to better describe domain, interaction type, and output format.
v1.0.0
Initial release for Gougoubi Create Condition: - Allows creating a proposal condition from only `proposalId` and `conditionName`, with all date fields deterministically defaulted. - Fetches proposal details and applies policy-driven deadlines and time zones, including safety clamps for validity. - Automatically fills non-required fields with appropriate defaults. - Ensures wallet is connected before any on-chain action and submits transactions in canonical order. - Provides clear output and failure formats for integration.
元数据
Slug gougoubi-create-condition
版本 1.0.2
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 3
常见问题

Gougoubi Create Condition 是什么?

Create a Gougoubi proposal condition from minimal input with deterministic defaults for deadline, trade deadline, normalization, and transaction submission.... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 266 次。

如何安装 Gougoubi Create Condition?

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

Gougoubi Create Condition 是免费的吗?

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

Gougoubi Create Condition 支持哪些平台?

Gougoubi Create Condition 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(darwin, linux, win32)。

谁开发了 Gougoubi Create Condition?

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

💬 留言讨论