Repository navigation
Add perp-dex-costs skill: pre-trade cost and funding check for perp DEXs 🤖🤖🤖 - #6458
dineroenlamesa wants to merge 3 commits into
Conversation
🚦 Submission status: ⏳ Awaiting automationRisk tier: Why this tier
Automated checks
Action needed
Review
Commands
Updated for |
There was a problem hiding this comment.
🟡 Changes recommended
The skill unconditionally asks for order size even for funding-rate and airdrop endpoints that do not require it; input collection should depend on the selected endpoint.
1 open issue
What changed in this PR
Adds a skill to the Copilot resource catalog for checking perpetual DEX trading costs, funding rates, and order-book depth through a read-only API.
Changes:
- Documents endpoint selection, required inputs, examples, and result reporting.
- Defines payment restrictions, data limitations, and referral disclosures.
- Adds the skill to the generated catalog.
| File | Description |
|---|---|
skills/perp-dex-costs/SKILL.md |
Defines the pre-trade analysis workflow and API usage safeguards. |
docs/README.skills.md |
Adds the skill’s description and installation command. |
Review effort: Balanced (dynamic)
There was a problem hiding this comment.
🔵 Needs a closer look
The leveraged-trading recommendations depend on third-party financial assumptions and live-data handling that require domain and service validation beyond repository review and direct API calls.
No open issues 🎉
1 resolved since last review
Review effort: Balanced (dynamic)
|
Thanks for contributing. This skill is built around the Dinero en la Mesa service you operate: it directs users to your endpoint, includes paid x402 calls and MCP setup, asks the API to count calls from Copilot, and returns your venue referral links. The upstream agent-kit README describes the same free-tools-to-Pro offering and referral path; its license also distinguishes MIT-licensed code from data governed by your service terms. Because the skill routes Copilot users into that commercial service and referral funnel, it is not suitable for this collection. |

Pull Request Checklist
npm startand verified thatREADME.mdis up to date.mainbranch for this pull request.Description
Adds
skills/perp-dex-costs/SKILL.md(a single file, no bundled scripts). Before a perpetual futures trade, Copilot calls a read-only HTTP API to find which perp DEX is cheapest right now for the order size (taker fees on both legs + slippage walked on the live order book), compare funding and order book depth across 25+ venues, and find the best delta-neutral funding pair net of opening and closing both legs.docs/README.skills.mdis updated withnpm run build.Why it is not something the model already does
The answer depends on live order books and current funding, which a model cannot know. The skill tells Copilot which endpoint answers which question, what to ask the user for, how to report the reading time, and to report errors instead of estimating from memory.
Validation
npm run skill:validate: all 464 skills valid, including this one.npm run build: onlydocs/README.skills.mdchanges (one row).best_venue?pair=BTC&size_usd=25000returned Lighter, 1.22 USD (0.49 bps) for the round trip, runners-up Variational 2.50 USD and Extended 13.67 USD, with the book time;delta_neutral?pair=ETH&size_usd_per_leg=10000&days=7returned long Grvt / short ApeX, 145.68 USD net after entry and exit costs.Requirements and limits
No account and no API key. Read-only GET requests; the skill never places orders, signs or pays. Four endpoints are paid per call (USDC on Base, x402); without payment they return HTTP 402 with their price, and the skill tells Copilot to report that and stop.
Affiliation
I publish this on behalf of Dinero en la Mesa, which operates the API. Venue results include account-opening referral links of ours; they never change the ranking, which is by cost only, and the skill presents them as optional.
Type of Contribution
Additional Notes
Not yet tested inside GitHub Copilot itself (box left unticked): the documented API calls were run directly and their results are above. Happy to adjust scope, wording or format.
By submitting this pull request, I confirm that my contribution abides by the Code of Conduct and will be licensed under the MIT License.