agentleFS
garavitgabrielgaravitgabriel/espn-fantasy-claude-openclaw/skills/trade-analyzer/SKILL.md

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

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

    When the user asks about a trade or is evaluating a trade proposal, follow these steps:

    line 8
  2. Very specific:

    Call get_scoring_categories to know all 14 H2H categories and their direction.

    line 11
  3. Very specific:

    Call analyze_trade with the players being given and received (comma-separated names).

    line 14
  4. Very specific:

    Call get_player_info for each player involved in the trade to get detailed season stats, injury status, and ownership trends.

    line 17
  5. Very specific:

    Call get_my_roster to understand:

    line 20
  6. Distinctive:

    If memory tools are available:

    line 26
  7. Very specific:

    Call get_category_trends to see which categories have been consistently strong or weak

    line 27
  8. Very specific:

    Call get_matchup_history to see if certain categories have been costing you matchups

    line 28
  9. Distinctive:

    If the user completes a trade:

    line 60
  10. Very specific:

    Call save_roster_move with action="TRADE_SEND" for each player given away

    line 61
  11. Very specific:

    Call save_roster_move with action="TRADE_RECEIVE" for each player received

    line 62
  12. Very specific:

    Update save_category_trend if the trade significantly changes category projections

    line 63

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

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_trends to see which categories have been consistently strong or weak
  • Call get_matchup_history to 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:

CategoryDirectionCurrent StrengthImpactNet Effect
HRHigher winsSTRONGLose 5 HR, Gain 2 HR-3 HR (slight decline)
SBHigher winsWEAKLose 0 SB, Gain 15 SB+15 SB (big improvement)
ERALower winsAVERAGE......

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_move with action="TRADE_SEND" for each player given away
  • Call save_roster_move with action="TRADE_RECEIVE" for each player received
  • Update save_category_trend if the trade significantly changes category projections

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.