Gougoubi Create Condition
name: gougoubi-create-condition
by chinasong · published 2026-03-22
$ claw add gh:chinasong/chinasong-gougoubi-create-condition---
name: gougoubi-create-condition
description: Create a Gougoubi proposal condition from minimal input with deterministic defaults for deadline, trade deadline, normalization, and transaction submission. Use when users want to add conditions to an existing proposal.
metadata:
pattern: generator
interaction: single-turn
domain: gougoubi-pbft
outputs: structured-json
clawdbot:
emoji: "🧩"
os: ["darwin", "linux", "win32"]
---
# Gougoubi Create Condition
Use this skill to create a condition under an existing Gougoubi proposal from the smallest practical input.
Use This Skill When
Do Not Use This Skill When
Minimal Input
{
"proposalId": "0x... or proposal identifier",
"conditionName": "Will Team A win the match?"
}Defaults
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:
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
More tools from the same signal band
Order food/drinks (点餐) on an Android device paired as an OpenClaw node. Uses in-app menu and cart; add goods, view cart, submit order (demo, no real payment).
Sign plugins, rotate agent credentials without losing identity, and publicly attest to plugin behavior with verifiable claims and authenticated transfers.
The philosophical layer for AI agents. Maps behavior to Spinoza's 48 affects, calculates persistence scores, and generates geometric self-reports. Give your...