venue-polling
v1.0.0Use this skill when the user wants to poll gym venue availability, inspect or modify the `venue_polling.py` order-signing flow, or run the bundled signature...
Venue Polling
Overview
This skill packages the local venue polling and order-signing workflow for the gym mini-program APIs. Use it when the task involves polling listAreaLease, attempting createOrder, or debugging the RSA-based request signature logic used by the booking flow.
Workflow
- Start by reading
scripts/venue_polling.pyto understand the current polling settings, request headers, and signing logic. - If the task is signature debugging rather than live polling, use:
scripts/signature_replay_test.pyto compare local signatures with a captured requestscripts/public_key_verify_test.pyto verify candidate sign strings against a captured signature
- If the user wants code changes, modify the bundled scripts instead of rewriting the workflow from scratch.
- If you need request or reverse-engineering context, read:
references/create-order-analysis.mdreferences/captured-create-order.txtreferences/captured-list-area-lease.txt
Notes
scripts/venue_polling.pyexpects a localrsa_private_key.pemfile in the working directory when run directly.- The current bundled workflow uses custom
X-Ca-*headers and RSA signing, but the exact upstream signing preimage may still differ from the mini-program runtime. - Prefer the replay and verification helpers before assuming a signature-format fix.
Version tags
latest
