trade-analyzer
Skill3 starsChanged 6 years agoMITView on GitHub
Analyzes trade proposals when the user considers trading players, asks 'should I trade X for Y', evaluates a trade offer, or wants to find trade targets. Compares players' stats, evaluates H2H category impact, and considers roster fit. Triggers on: 'trade', 'swap', 'deal', 'give X for Y', 'trade target', 'should I accept', 'trade offer'.
In this repository8 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- category-strategistSkill
- draft-assistantSkill
- free-agent-finderSkill
- matchup-scoutSkill
- season-outlookSkill
- waiver-wire-scoutSkill
- weekly-prepSkill
The file
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 3 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
When the user asks about a trade or is evaluating a trade proposal, follow these steps:
- Very specific: line 11
Call get_scoring_categories to know all 14 H2H categories and their direction.
- Very specific: line 14
Call analyze_trade with the players being given and received (comma-separated names).
- Very specific: line 17
Call get_player_info for each player involved in the trade to get detailed season stats, injury status, and ownership trends.
- Very specific: line 20
Call get_my_roster to understand:
- Distinctive: line 26
If memory tools are available:
- Very specific: line 27
Call get_category_trends to see which categories have been consistently strong or weak
- Very specific: line 28
Call get_matchup_history to see if certain categories have been costing you matchups
- Distinctive: line 60
If the user completes a trade:
- Very specific: line 61
Call save_roster_move with action="TRADE_SEND" for each player given away
- Very specific: line 62
Call save_roster_move with action="TRADE_RECEIVE" for each player received
- Very specific: line 63
Update save_category_trend if the trade significantly changes category projections
≈ “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
Trade Analyzer
When the user asks about a trade or is evaluating a trade proposal, follow these steps:
Step 1: Understand the Categories
Call get_scoring_categories to know all 14 H2H categories and their direction. This is essential — a trade that looks bad in total points might be great for category balance.
Step 2: Run the Trade Analysis
Call analyze_trade with the players being given and received (comma-separated names). This gives the baseline stat comparison.
Step 3: Deep Player Evaluation
Call get_player_info for each player involved in the trade to get detailed season stats, injury status, and ownership trends.
Step 4: Assess Roster Fit
Call get_my_roster to understand:
- What positions are covered after the trade?
- Does the trade create a positional gap?
- Are there bench players who can fill in?
Step 5: Check Memory Context (if available)
If memory tools are available:
- Call
get_category_trendsto see which categories have been consistently strong or weak - Call
get_matchup_historyto see if certain categories have been costing you matchups - A trade that hurts a strong category but helps a weak one is often worth it — even if the "point value" goes down
Step 6: Category Impact Analysis
Build a category-by-category impact table:
| Category | Direction | Current Strength | Impact | Net Effect |
| HR | Higher wins | STRONG | Lose 5 HR, Gain 2 HR | -3 HR (slight decline) |
| SB | Higher wins | WEAK | Lose 0 SB, Gain 15 SB | +15 SB (big improvement) |
| ERA | Lower wins | AVERAGE | ... | ... |
For each category:
- Will this trade help, hurt, or be neutral?
- Is the affected category one you're already strong/weak in?
- Could this flip a category from losing to winning in typical matchups?
Critical reminders for reverse categories:
- B_SO (lower wins): A player with fewer strikeouts is BETTER
- ERA (lower wins): Lower ERA is BETTER
- WHIP (lower wins): Lower WHIP is BETTER
- L (lower wins): Fewer losses is BETTER
Step 7: Verdict
Give a clear recommendation:
- Accept / Decline / Counter-offer
- How many categories does this trade help vs hurt?
- What's the net category swing? (e.g., "You gain an edge in 3 categories but lose ground in 1")
- Is the positional fit workable?
- Any injury risks to flag?
Step 8: Save to Memory (if available)
If the user completes a trade:
- Call
save_roster_movewith action="TRADE_SEND" for each player given away - Call
save_roster_movewith action="TRADE_RECEIVE" for each player received - Update
save_category_trendif the trade significantly changes category projections
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.

