update-strategy-docs

Update Polymarket Strategy Documentation

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "update-strategy-docs" with this command: npx skills add unarmedpuppy/polyjuiced/unarmedpuppy-polyjuiced-update-strategy-docs

Update Polymarket Strategy Documentation

Synchronize strategy documentation with actual code implementation after changes.

When to Use

Call this skill after modifying:

  • src/strategies/gabagool.py

  • Strategy logic

  • src/client/polymarket.py

  • Order execution

  • src/monitoring/order_book.py

  • Opportunity detection

  • src/config.py

  • Strategy configuration

  • Any file affecting the arbitrage/directional/near-resolution trading flow

Documentation Files to Update

File Purpose

docs/STRATEGY_ARCHITECTURE.md

Code flow diagrams, implementation status, discrepancies

docs/strategy-rules.md

Trading rules, entry/exit conditions, configuration reference

Update Checklist

  1. Verify Code Flow Diagram

Read the actual code path and compare to the diagram in docs/STRATEGY_ARCHITECTURE.md :

Check opportunity detection flow

grep -n "on_opportunity|_queue_opportunity|_process_opportunities" src/strategies/gabagool.py

Check order execution flow

grep -n "execute_dual_leg_order|place_order_sync" src/client/polymarket.py

Update the ASCII diagram if the flow has changed:

Opportunity Detection → Queue → Execution → Persistence

  1. Update Implementation Status

In docs/STRATEGY_ARCHITECTURE.md , update the Implementation Status section:

Implementation Status

PhaseDescriptionStatus
1Dynamic pricing with zero slippageCOMPLETE
2Strategy-owned persistenceNOT STARTED
...

Mark phases as:

  • COMPLETE

  • Fully implemented and tested

  • IN PROGRESS

  • Partially implemented

  • NOT STARTED

  • Planned but not implemented

  1. Check for Discrepancies

Compare docs/strategy-rules.md rules against actual code:

Example: Check slippage policy

grep -n "slippage|limit_price|price_d" src/client/polymarket.py

Example: Check position sizing

grep -n "num_pairs|yes_amount|no_amount" src/strategies/gabagool.py

Document any gaps in the Discrepancies section:

  • IMPLEMENTED

  • Code matches documentation

  • GAP

  • Documentation describes feature not yet implemented

  • CRITICAL GAP

  • Implementation differs from documented behavior

  1. Update Configuration Reference

If config options changed, update both files:

Check actual config options

grep -n "GABAGOOL_" src/config.py

Update the Configuration Reference section in docs/strategy-rules.md .

  1. Update Changelog

Add entry to docs/strategy-rules.md changelog:

Change Log

DateChange
YYYY-MM-DDDescription of what changed

Example Update Session

After fixing a pricing bug:

1. Verify the fix in code

grep -n "limit_price|price_d" src/client/polymarket.py

2. Update docs/STRATEGY_ARCHITECTURE.md

- Update code flow diagram to show price passthrough

- Mark Phase 1 as COMPLETE

- Update discrepancies section

3. Update docs/strategy-rules.md

- Update Risk Management > Slippage Protection

- Add changelog entry for zero slippage policy

Verification

After updating documentation:

  • Re-read both docs files to ensure consistency

  • Verify ASCII diagrams match actual code paths

  • Check that all config options mentioned exist in src/config.py

  • Ensure changelog is in reverse chronological order

Quick Reference

Files to update

docs/STRATEGY_ARCHITECTURE.md docs/strategy-rules.md

Files to reference (actual implementation)

src/strategies/gabagool.py src/client/polymarket.py src/monitoring/order_book.py src/config.py

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

user-activity

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

deploy-bot

No summary provided by upstream source.

Repository SourceNeeds Review
General

test_skill

import json import tkinter as tk from tkinter import messagebox, simpledialog

Archived SourceRecently Updated
General

neo

Browse websites, read web pages, interact with web apps, call website APIs, and automate web tasks. Use Neo when: user asks to check a website, read a web page, post on social media (Twitter/X), interact with any web app, look up information on a specific site, scrape data from websites, automate browser tasks, or when you need to call any website's API. Keywords: website, web page, browse, URL, http, API, twitter, tweet, post, scrape, web app, open site, check site, read page, social media, online service.

Archived SourceRecently Updated