购够币条件创建
gougoubi-create-condition
by chinasong
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.
安装
claude skill add --url github.com/openclaw/skills/tree/main/skills/chinasong/gougoubi-create-condition文档
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
proposalIdtoproposalAddress. deadlineDateTime: proposal deadline.deadlineTimezone: user locale, fallbackUTC.tradeDeadlineDateTime:deadlineDateTime - 1 hour, clamped to a valid future time.tradeDeadlineTimezone: same asdeadlineTimezone.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:
conditionNamenon-emptydeadline > nowtradeDeadline > nowtradeDeadline <= deadline
Step 6: Submit the canonical contract call in this order:
conditionNamedeadlinetradeDeadlineconditionImageUrlconditionRulesskillsisNormalized
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.
相关 Skills
Claude API
by anthropic
Build, debug, and optimize Claude API / Anthropic SDK apps. Apps built with this skill should include prompt caching. Also handles migrating existing Claude API code between Claude model versions (4.5 → 4.6, 4.6 → 4.7, retired-model replacements). TRIGGER when: code imports `anthropic`/`@anthropic-ai/sdk`; user asks for the Claude API, Anthropic SDK, or Managed Agents; user adds/modifies/tunes a Claude feature (caching, thinking, compaction, tool use, batch, files, citations, memory) or model (Opus/Sonnet/Haiku) in a file; questions about prompt caching / cache hit rate in an Anthropic SDK project. SKIP: file imports `openai`/other-provider SDK, filename like `*-openai.py`/`*-generic.py`, provider-neutral code, general programming/ML.
并行代理
by axelhu
Use when facing 2 or more independent tasks that can be worked on without shared state - dispatches parallel subagents using sessions_spawn for concurrent investigation and execution, adapted for OpenClaw
高光制作器
by bwbernardweston18
>