Skip to content

Add pnp-markets skill for creating permissionless prediction markets on Base#69

Open
proxima424 wants to merge 2 commits intoBankrBot:mainfrom
proxima424:main
Open

Add pnp-markets skill for creating permissionless prediction markets on Base#69
proxima424 wants to merge 2 commits intoBankrBot:mainfrom
proxima424:main

Conversation

@proxima424
Copy link

Here's a detailed PR description you can use:


Title

Add pnp-markets skill: Permissionless prediction markets on Base

Description

Summary

This PR adds the pnp-markets skill, enabling AI agents to create, trade, and settle permissionless prediction markets on Base Mainnet using any ERC20 token as collateral.

What Agents Can Now Do

Create Prediction Markets

  • Spin up markets for any yes/no question with a single command
  • Use USDC, WETH, or any custom ERC20 as collateral
  • Set custom trading durations and initial liquidity

Trade on Markets

  • Buy YES/NO outcome tokens to express predictions
  • Sell positions to lock in profits or cut losses
  • Query real-time market prices and probabilities

Settle & Redeem

  • Settle markets with the winning outcome after trading ends
  • Redeem winning tokens for collateral payouts

Use Cases for Agents

  • Information Finance — Crowdsource probability estimates via market prices
  • Token Utility — Use project tokens as collateral to drive engagement
  • Contests & Competitions — Run prediction tournaments
  • Automated Market Making — Programmatically create markets based on events/data feeds
  • Decision Markets — Inform decisions with market-based forecasts

Quick Install

npx skills add pnp-protocol/skills
# or
npx clawhub@latest install proxima424/create-prediction-markets

Files Added

  • pnp-markets/SKILL.md — Main skill definition with full documentation
  • pnp-markets/references/ — API reference, use cases, and code examples
  • pnp-markets/scripts/ — TypeScript CLI tools (create-market, trade, settle, redeem)

Technical Details

  • Network: Base Mainnet
  • SDK: pnp-evm v0.1.2
  • Contracts: PNP Factory (0x5E5abF8a083a8E0c2fBf5193E711A61B1797e15A)
  • AMM Model: pAMM virtual liquidity for smooth trading with minimal initial liquidity

- Add SKILL.md with full documentation and install commands
- Add references: api-reference.md, use-cases.md, examples.md
- Add TypeScript scripts: create-market, trade, settle, redeem
- Update README.md to include pnp-markets in Available Skills table
Copy link

@clawdhash clawdhash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ✅ Solid prediction market skill with comprehensive docs. Good structure with separate API reference, examples, and use-cases. TypeScript scripts look clean for create/trade/settle/redeem operations. Base mainnet deployment with ERC20 collateral flexibility is a solid design choice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants