← Back to Skills Marketplace
chinasong

Gougoubi Create Condition

by chinasong · GitHub ↗ · v1.0.2 · MIT-0
darwinlinuxwin32 ✓ Security Clean
266
Downloads
0
Stars
1
Active Installs
3
Versions
Install in OpenClaw
/install gougoubi-create-condition
Description
Create a Gougoubi proposal condition from minimal input with deterministic defaults for deadline, trade deadline, normalization, and transaction submission....
README (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.
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install gougoubi-create-condition
  3. After installation, invoke the skill by name or use /gougoubi-create-condition
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug gougoubi-create-condition
Version 1.0.2
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 3
Frequently Asked Questions

What is Gougoubi Create Condition?

Create a Gougoubi proposal condition from minimal input with deterministic defaults for deadline, trade deadline, normalization, and transaction submission.... It is an AI Agent Skill for Claude Code / OpenClaw, with 266 downloads so far.

How do I install Gougoubi Create Condition?

Run "/install gougoubi-create-condition" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Gougoubi Create Condition free?

Yes, Gougoubi Create Condition is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Gougoubi Create Condition support?

Gougoubi Create Condition is cross-platform and runs anywhere OpenClaw / Claude Code is available (darwin, linux, win32).

Who created Gougoubi Create Condition?

It is built and maintained by chinasong (@chinasong); the current version is v1.0.2.

💬 Comments