skills/afp-product-builder/SKILL.md
Build valid AFP products by composing on-chain PredictionProductV1, extended metadata DAG, and API-backed resolution rules. Use when creating or validating AFP product JSON for Forecastathon, selecting public data sources, or preparing IPFS pinning and registration.
npx skillsauth add autonity/afp-sdk afp-product-builderInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill to produce a complete, valid product specification for the Forecastathon competition, including extended metadata that can be pinned to IPFS as a DAG-CBOR encoded DAG.
0x72EeD9f7286292f119089F56e3068a3A931FCD49,
collateralAsset 0xDEfAaC81a079533Bf2fb004c613cc2870cF0A5b5.0x06CaDDDf6CC08048596aE051c8ce644725219C73,
collateralAsset 0xAE2C6c29F6403fDf5A31e74CC8bFd1D75a3CcB8d.Use camelCase field names inside product:
Extended metadata fields are outcome_space, outcome_point, oracle_config,
and oracle_fallback. These are pinned on IPFS and referenced by CID.
Time series (scalar):
Event (binary or ternary):
Template variables in conditions must resolve against outcome_point fields.
Example: {outcome} for events, {observation.release_date} for time series.
Manual resolution:
API-backed resolution:
For time series, history_api_spec (OutcomeSpaceTimeSeries) should use
spec_variant: "underlying-history" when you include it.
Extended metadata must be pinned as a DAG-CBOR DAG, not a single JSON blob. The AFP SDK handles this automatically by encoding and pinning each component and the root DAG:
import afp
app = afp.AFP(
rpc_url=AUTONITY_RPC_URL,
authenticator=afp.PrivateKeyAuthenticator(PRIVATE_KEY),
ipfs_api_url=IPFS_API_URL,
ipfs_api_key=IPFS_API_KEY,
)
product_api = app.Product()
spec = product_api.validate(product_dict)
pinned = product_api.pin(spec) # builds and pins DAG-CBOR
If you build the DAG manually, ensure you store it as dag-cbor (e.g.,
ipfs dag put default store codec) and include schema CIDs for each component.
Product.validate or Product.validate_json to enforce schemas.Product.dump_json for canonical JSON output.import afp
product_api = afp.AFP(...).Product()
spec = product_api.validate(product_dict)
pinned = product_api.pin(spec)
product_json = product_api.dump_json(pinned)
extendedMetadata CID filled in.development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.
development
Maintainer workflow for OpenClaw releases, prereleases, changelog release notes, and publish validation. Use when Codex needs to prepare or verify stable or beta release steps, align version naming, assemble release notes, check release auth requirements, or validate publish-time commands and artifacts.
development
Run, watch, debug, and extend OpenClaw QA testing with qa-lab and qa-channel. Use when Codex needs to execute the repo-backed QA suite, inspect live QA artifacts, debug failing scenarios, add new QA scenarios, or explain the OpenClaw QA workflow. Prefer the live OpenAI lane with regular openai/gpt-5.4 in fast mode; do not use gpt-5.4-pro or gpt-5.4-mini unless the user explicitly overrides that policy.
development
End-to-end Parallels smoke, upgrade, and rerun workflow for OpenClaw across macOS, Windows, and Linux guests. Use when Codex needs to run, rerun, debug, or interpret VM-based install, onboarding, gateway smoke tests, latest-release-to-main upgrade checks, fresh snapshot retests, or optional Discord roundtrip verification under Parallels.