Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

Interaction categories [SPEC]

Cross-ref: 04-skills-overview.md (interaction surfaces, operator directives, and Pi Skills overview), 06-skill-definitions.md (Pi workflow definition format and trigger types)

Reader orientation: This document is the full inventory of interaction surfaces organized by domain: 68 typed API endpoints across 13 categories (Trading, Liquidity, Research, Strategy, Development, Infrastructure, Composite, Agent Capital Markets, Vault, Golem Operations, Protocol Fees, Real-time, and Development Testnet). It belongs to Section 19 (Agents & Skills). Each interaction maps to an archetype that handles the work. A Golem (mortal autonomous agent) exposes these endpoints to operators, dashboards, and other Golems. See prd2/shared/glossary.md for full term definitions.


Interaction surface categories

Golems expose structured interaction endpoints organized by domain. These are not Claude skills or slash commands. They are typed API surfaces that operators, chat bots, dashboards, and other golems use to interact with a running Pi session.

Each interaction maps to an archetype that handles the work. The interaction surface is thin: parse input, validate, delegate to archetype, format output.


1. Trading (6 interactions)

Token swaps, limit orders, and cross-chain operations.

InteractionArchetypePurpose
execute-swaptrade-executorExecute a token swap on any supported chain
batch-swaptrade-executorExecute multiple swaps in sequence
submit-limit-ordertrade-executorSubmit a UniswapX Dutch auction order
cross-chain-swapcross-chain-executorCross-chain swap or bridge via ERC-7683
bridge-tokenscross-chain-executorBridge tokens between chains (no swap)
plan-swaptrade-executorAdvisory swap planning with deep links

2. Liquidity (2 interactions)

LP position creation, management, and rebalancing.

InteractionArchetypePurpose
manage-liquidityliquidity-managerAdd/remove liquidity, collect fees
rebalance-positionliquidity-managerRebalance out-of-range LP position to new range

3. Research (11 interactions)

Data querying, pool analysis, portfolio tracking, and P&L reporting.

InteractionArchetypePurpose
analyze-poolpool-researcherPool deep-dive: TVL, volume, fees, tick data
compare-poolspool-researcherCompare pools across fee tiers and versions
research-tokentoken-analystToken due diligence: liquidity, risk, honeypot
scan-opportunitiesopportunity-scannerLP/arb/yield opportunity scanning
find-yieldopportunity-scannerLP yield scanning (focused version)
portfolio-reportportfolio-analystFull portfolio report across all chains
track-performanceportfolio-analystPerformance tracking with change indicators
account-balance(direct tool)Current token/LP balances across chains
balance-historypnl-analystHistorical balance changes over time
pnl-reportpnl-analystProfit and loss report
performance-dashboardpnl-analystRisk-adjusted metrics: Sharpe, drawdown, alpha

4. Strategy (4 interactions)

LP optimization, strategy comparison, and risk assessment.

InteractionArchetypePurpose
optimize-lplp-strategistOptimal LP strategy recommendation
lp-strategylp-strategistDeep-dive LP strategy comparison
assess-riskrisk-assessorIndependent risk assessment for any operation
hedge-illp-strategistHedge impermanent loss via options or perp shorts

5. Development (5 interactions)

V4 hook building, integration design, and auditing.

InteractionArchetypePurpose
build-hookhook-builderGenerate V4 hook: Solidity + tests + deploy
design-hookhook-builderDesign hook architecture (no code generation)
design-integrationintegration-architectIntegration architecture design
audit-integrationintegration-architectReview existing integration for issues
test-hookhook-builderDeploy and test hook on local testnet

6. Infrastructure (6 interactions)

Wallet setup, safety checks, session keys, approvals management.

InteractionArchetypePurpose
setup-walletwallet-provisionerProvision wallet with TEE keys, session keys
check-safety(direct tool)Check spending limits, circuit breakers, keys
halt-golem(direct)Emergency stop: revoke keys, trigger breakers
rotate-session-keyswallet-provisionerZero-downtime session key rotation
audit-approvalssafety-guardianScan and risk-score token approvals
revoke-approvalssafety-guardianBatch-revoke risky approvals, migrate to Permit2

7. Composite (5 interactions)

Multi-archetype orchestration for end-to-end workflows.

InteractionArchetypes involvedPurpose
research-and-tradetoken-analyst, pool-researcher, risk-assessor, trade-executorResearch token, assess risk, trade if approved
full-lp-workflowopportunity-scanner, lp-strategist, trade-executor, liquidity-managerFind opportunity, design strategy, enter position
cross-chain-arbitrageopportunity-scanner, risk-assessor, cross-chain-executorFind and execute cross-chain arbitrage
self-funding-setupwallet-provisioner, identity-verifier, treasury-managerFull golem setup: wallet + identity + treasury
launch-token-fulltoken-deployer, liquidity-manager, safety-guardianFull token launch: create + CCA + pool + lock

8. Agent capital markets (9 interactions)

Self-funding agent economy: treasury, tokens, identity, services, competitions.

InteractionArchetypePurpose
manage-treasurytreasury-managerAutonomous treasury management
deploy-agent-tokentoken-deployerCreate agent token + V4 pool + hooks
verify-agentidentity-verifierVerify ERC-8004 identity and reputation
configure-x402agent-service-brokerSet up x402 micropayment endpoints
revenue-reporttreasury-managerUnified revenue dashboard across streams
monitor-competitionopportunity-scannerTrack competitive intelligence
discover-competitionscompetition-participantFind active hackathons and competitions
agent-otc-tradeagent-service-brokerAgent-to-agent OTC trading
agent-market-makeragent-service-brokerAgent market-making services

9. Vault (7 interactions)

Vault deposit, management, strategy, am-AMM, yield discovery.

InteractionArchetypePurpose
deposit-vaultvault-managerDeposit into a vault with identity verification
manage-vaultvault-managerFull vault operations: deposit/withdraw/rebalance
vault-strategyvault-strategistStrategy analysis and research-backed recommendations
bid-amammvault-auctioneerBid for am-AMM management rights
improve-strategystrategy-optimizerSelf-improvement: Bayesian parameter tuning
discover-yieldyield-scoutMulti-source yield discovery
monitor-correlationrisk-assessorMonitor cross-asset correlation for risk

10. Golem operations (4 interactions)

Golem lifecycle management.

InteractionArchetypePurpose
start-golemgolem-instanceStart a golem instance from config
stop-golemgolem-instanceGraceful shutdown, wait for tick completion
golem-statusheartbeat-monitorQuery health, phase, vitality, mortality metrics
deploy-golemgolem-instanceFull provisioning: wallet + identity + config + boot

11. Protocol fees (3 interactions)

TokenJar monitoring, Firepit burn economics, fee claiming.

InteractionArchetypePurpose
seek-protocol-feesprotocol-fee-seekerMonitor and execute TokenJar burns
monitor-tokenjarprotocol-fee-seekerReal-time TokenJar balance monitoring
analyze-burn-economicsprotocol-fee-seekerAnalyze profitability of burn-and-claim

12. Real-time (2 interactions)

Streaming market and position monitoring.

InteractionArchetypePurpose
monitor-marketsmarket-monitorSubscribe to price/volume/TVL streams
monitor-positionsposition-monitorTrack LP positions, range, IL, fees

13. Development testnet (4 interactions)

Local testnet setup and testing utilities.

InteractionArchetypePurpose
setup-local-testnethook-builderSpin up Anvil with full Uniswap stack
create-test-poolhook-builderCreate pool with custom parameters
time-travel(direct tool)Advance EVM time for testing
setup-dcatrade-executorConfigure DCA strategy on testnet

Summary

CategoryCount
Trading6
Liquidity2
Research11
Strategy4
Development5
Infrastructure6
Composite5
Agent capital markets9
Vault7
Golem operations4
Protocol fees3
Real-time2
Development testnet4
Total68