docs/.claude/skills/docs/SKILL.md
Search and retrieve sections from the PolyBot project documentation
npx skillsauth add igorder-dev/apex docsInstall 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.
When the user runs /docs {query}, find and return the relevant documentation sections.
Read the index: Read docs/llms.txt — this is a lightweight section-level index of all 12 project documents with line ranges and keyword tags.
Match the query: Identify the 1-3 most relevant sections based on:
[circuit breaker, FSM])Load targeted sections: For each matching section, use the Read tool with offset and limit parameters based on the line ranges in the index. For example, if the index says Service 4: Risk Manager (L576-644), read docs/04-technical-specification.md with offset: 576 and limit: 68.
Present results: Show the retrieved content with:
Use this to speed up common queries:
| Query Keywords | Go To |
|---------------|-------|
| architecture, system design, components | docs/04-technical-specification.md → Architecture Overview |
| ADR, decision, technology choice | docs/04-technical-specification.md → ADRs |
| data model, database, tables, schema, ER | docs/04-technical-specification.md → Data Model |
| market data, WebSocket, Gamma, orderbook | docs/04-technical-specification.md → Service 1 |
| orchestrator, bot lifecycle, health check | docs/04-technical-specification.md → Service 2 |
| execution, order, CLOB, rate limit, batch | docs/04-technical-specification.md → Service 3 |
| risk, circuit breaker, emergency stop, pre-trade | docs/04-technical-specification.md → Service 4 |
| wallet, EOA, ledger, rebalance, tier | docs/04-technical-specification.md → Service 5 |
| dashboard API, SSE, React | docs/04-technical-specification.md → Service 6 |
| binary arb, full-set parity, arbitrage algorithm | docs/04-technical-specification.md → Binary Arb Strategy |
| API endpoint, REST, request, response | docs/10-api-specification.md |
| Polymarket API, CLOB, authentication, HMAC | docs/10-api-specification.md → Polymarket API Integration |
| Redis, streams, pub/sub, cache | docs/10-api-specification.md → Inter-Service Communication |
| Pydantic model, type, contract | docs/10-api-specification.md → Pydantic Models |
| user story, acceptance criteria, requirement | docs/03-prd.md |
| roadmap, phase, milestone, timeline | docs/02-product-roadmap.md |
| test, coverage, fixture, pytest | docs/11-testing-strategy.md |
| Docker, Compose, VPS, deploy, Caddy | docs/09-infrastructure-spec.md |
| security, threat, auth, encryption, STRIDE | docs/08-security-spec.md |
| repo structure, git, CI/CD, code standard | docs/05-development-guidelines.md |
| governance, PR, release, contribution | docs/12-project-governance.md |
| build, test command, make, gotcha | docs/06-claude-md.md |
| agent role, slash command, sub-agent, MCP | docs/07-agents-md.md |
| market research, competitor, TAM | docs/01-product-research.md |
If the query doesn't match any section clearly:
mcp-local-rag is available — use query_documents for semantic search/docs "how does the circuit breaker work?" → Read tech spec Service 4: Risk Manager (L576-644)/docs "wallet architecture" → Read tech spec Service 5: Wallet Manager (L646-747) + roadmap Wallet Architecture (L21-87)/docs "FOK decimal precision" → Read CLAUDE.md Gotchas (L118-138) + tech spec Service 3: Execution Engine (L513-574)/docs "how to deploy" → Read infra spec Deployment Workflow (L1290-1386)/docs "dashboard API endpoints" → Read API spec Bot Management (L241-555) + System Endpoints (L115-239)tools
Conducts structured technology research and comparisons using web search and Context7 MCP. Use when evaluating technology options for the tech stack, comparing frameworks or libraries, or when the technical specification needs evidence-based technology choices.
development
Generates a complete project documentation pack from a product idea. Produces 12 structured markdown documents covering product research, roadmap, PRD, technical specification, development guidelines, CLAUDE.md, agent configs, security, infrastructure, API, testing, and governance. Use when the user wants to convert an idea into a full documentation pack, or when generating any individual document in the pack.
development
Performs constructive devil's advocate analysis on decisions, technology choices, and architectural approaches. Use when evaluating tradeoffs, challenging assumptions, or when a decision needs stress-testing before committing to it in documentation.
documentation
Fetch GitHub issues, spawn sub-agents to implement fixes and open PRs, then monitor and address PR review comments. Usage: /gh-issues [owner/repo] [--label bug] [--limit 5] [--milestone v1.0] [--assignee @me] [--fork user/repo] [--watch] [--interval 5] [--reviews-only] [--cron] [--dry-run] [--model glm-5] [--notify-channel -1002381931352]