agentleFS
KelowsKelows/million/.claude/skills/tune-rules/SKILL.md

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

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
  1. Distinctive:

    Read CLAUDE.md rules first.

    line 9
  2. Distinctive:

    If the request is vague, ask one question with 2–3 concrete options.

    line 35
  3. Distinctive:

    Read the config back and confirm the values stuck (zod may clamp them).

    line 48
  4. Very specific:

    Never set EXECUTOR. Going live is /setup-million step 8, with the typed sentence.

    line 52
  5. Distinctive:

    No promises: "this should trade less" is fine, "this will be more profitable" is not.

    line 54

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.json

Field 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 sayUsually means
safer / fewer bad tradesraise minBuySol, require consensus (tradeSignals: "consensus"), lower positionSol, lower maxOpenPositions
more tradeslower minBuySol, tradeSignals: "all"
smaller / biggerpositionSol, maxTotalExposureSol, bankrollSol (paper only)
exitsexitMode, stopLossPct, takeProfitPct, trailStopPct
a stylea preset from STRATEGY_PRESETS (Swing Copy, Measured Mirror, Consensus Chorus, Launch Surf)
stricter tokenscrawler 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.json

Read the config back and confirm the values stuck (zod may clamp them).

Rules

  • Never set EXECUTOR. Going live is /setup-million step 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.