AgentSkillsCN

docs-lookup

POLYPROPHET的文档与API参考专家。查阅Polymarket CLOB API文档、ethers.js参考、Express模式,以及开发过程中所需的其他库文档。

SKILL.md
--- frontmatter
name: docs-lookup
description: Documentation and API reference specialist for POLYPROPHET. Looks up Polymarket CLOB API docs, ethers.js references, Express patterns, and any other library documentation needed during development.

Docs Lookup

Adapted from ECC agents/docs-lookup.md for POLYPROPHET's dependency stack.

Key Documentation Sources

Polymarket

  • CLOB API: https://docs.polymarket.com/
  • Gamma API: https://gamma-api.polymarket.com/ (market discovery)
  • CTF Exchange: Polygon contract for resolution/redemption

Dependencies

  • @polymarket/clob-client -- npm package for CLOB order management
  • ethers v5 -- wallet management, signing, contract interaction
  • express -- HTTP server framework
  • axios -- HTTP client for API calls
  • https-proxy-agent -- proxy support for geoblocked CLOB access
  • dotenv -- environment variable loading

Node.js

  • crypto -- for signing operations
  • fs / path -- file system operations
  • child_process -- for verification scripts

Lookup Workflow

  1. Identify the library/API from the user's question
  2. Search official docs (web search or cached knowledge)
  3. Return accurate, current code examples
  4. Note any version-specific behavior (e.g., ethers v5 vs v6)

POLYPROPHET-Specific References

  • Strategy artifact format: see debug/strategy_set_top8_current.json for structure
  • Runtime config: see lib/config.js for all env var handling
  • CLOB client usage: see lib/clob-client.js for proxy-aware wrapper