tune-rules
Skill4 starsChanged 3 months agoMITView on GitHub
Change million's trading rules or token checks through conversation — safer, more trades, bigger or smaller, different exits, a preset — showing exactly what changes before saving. Use when the user wants the deck to behave differently ("make it safer", "it trades too much", "only follow consensus", "use 0.2 SOL per trade", "tighter stop").
- Sends data out
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- find-first-whalesSkill
- million-briefSkill
- setup-millionSkill
- watch-deckSkill
- why-not-boughtSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 4 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 9
Read CLAUDE.md rules first.
- Distinctive: line 35
If the request is vague, ask one question with 2–3 concrete options.
- Distinctive: line 48
Read the config back and confirm the values stuck (zod may clamp them).
- Very specific: line 52
Never set EXECUTOR. Going live is /setup-million step 8, with the typed sentence.
- Distinctive: line 54
No promises: "this should trade less" is fine, "this will be more profitable" is not.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Tune the rules
Read CLAUDE.md rules first. This skill never switches paper to live.
1. Read what's in force
curl -s localhost:3001/api/opportunities/config > /tmp/million-rules.json
curl -s localhost:3001/api/crawler | node -e 'let s="";process.stdin.on("data",d=>s+=d).on("end",()=>console.log(JSON.stringify(JSON.parse(s).config,null,1)))' > /tmp/million-crawler.jsonField meanings live in OpportunityConfigSchema and STRATEGY_PRESETS in
packages/shared/src/index.ts (read the comments there). Don't guess a field
name: check the schema.
2. Translate intent into fields
Common requests:
| They say | Usually means |
| safer / fewer bad trades | raise minBuySol, require consensus (tradeSignals: "consensus"), lower positionSol, lower maxOpenPositions |
| more trades | lower minBuySol, tradeSignals: "all" |
| smaller / bigger | positionSol, maxTotalExposureSol, bankrollSol (paper only) |
| exits | exitMode, stopLossPct, takeProfitPct, trailStopPct |
| a style | a preset from STRATEGY_PRESETS (Swing Copy, Measured Mirror, Consensus Chorus, Launch Surf) |
| stricter tokens | crawler thresholds (liquidity, holders…) |
If the request is vague, ask one question with 2–3 concrete options.
3. Show the change, then save
Show a short before → after list of only the fields that change, each with one line on the trade-off. Then save (the PUT replaces the whole object, so merge into the file you read):
curl -s -X PUT localhost:3001/api/opportunities/config -H 'Content-Type: application/json' -d @/tmp/million-rules.json
curl -s -X PUT localhost:3001/api/crawler/config -H 'Content-Type: application/json' -d @/tmp/million-crawler.jsonRead the config back and confirm the values stuck (zod may clamp them).
Rules
- Never set
EXECUTOR. Going live is/setup-millionstep 8, with the typed sentence. - Rule changes apply to new signals; open positions keep their exits.
- No promises: "this should trade less" is fine, "this will be more profitable" is not.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

