{"id":96186,"plugin_id":"plugin_asdk_app_6ae705dfbb0c8191bdc42114c83d96ac","kind":"skill","collection_source":"plugin_package","comparison_source":null,"observed_at":"2026-11-14T01:34:51.217Z","digest":"36af5fc3a7275d2fb6cd0d0fef0d539a3dde1ad82f93a38dd2f74732ab43fb26","against":null,"payload":{"description":"Use when an FPL manager wants the best starting XI, formation, bench order, captain and vice-captain, or a squad-strength assessment using their existing team.","included_files":[],"name":"team-optimizer","skill_md_contents":"---\nname: team-optimizer\ndescription: Use when an FPL manager wants the best starting XI, formation, bench order, captain and vice-captain, or a squad-strength assessment using their existing team.\n---\n\n# Team Optimizer\n\nOptimize the manager's actual squad for the requested Gameweek. First solve the lineup problem within the players the manager owns; do not silently turn a lineup request into a speculative rebuild of the whole 15-player squad.\n\n## Mandatory rules check\n\nBefore proposing a lineup, read `../../references/fpl-2026-27-rules.md`. Confirm the requested season and use official FPL position classifications for that season. In 2026/27, 11 player positions were reclassified, so never rely on a player's previous-season position or their perceived real-life role. If the requested season is not 2026/27, verify its official current position list and formation rules first.\n\nA legal FPL starting XI has one goalkeeper, at least three defenders and at least one forward; with 11 players this also requires at least two midfielders. The squad itself should contain 2 goalkeepers, 5 defenders, 5 midfielders and 3 forwards, and normally no more than three players from any one PL club. Do not confuse squad composition with the formation of the starting XI.\n\nApply current automatic-substitution rules: goalkeeper replacement is handled separately; outfield bench order matters; an outfield substitute cannot be used if it would leave an illegal formation. In a Double Gameweek, any minutes played in any scheduled fixture means the player counts as having appeared and is not eligible to be replaced automatically.\n\n## Data gathering\n\n1. Obtain the manager team ID and target Gameweek. Ask for the team ID when it is missing.\n2. Call `get_team_picks` for the actual squad, starting XI, bench, captaincy and any transfer information returned for that Gameweek.\n3. Use `search_player_market` to inspect predictions or stats for squad members where picks does not provide enough information. Search by player name or position as supported.\n4. Use `get_player_fixtures` for players whose fixture context could materially change the lineup decision.\n5. Use `get_manager` when manager-level details help interpret the current squad or transfer state.\n6. Confirm the current Gameweek fixture schedule and whether any club has a blank or double fixture. Do not infer it from memory or a stale fixture list.\n\n## Optimization rules\n\n- Prioritize expected starting-XI output using comparable, same-Gameweek server predictions. Verify whether Double Gameweek outputs already combine both matches before summing or adjusting them.\n- Build a legal XI first. Check positional classification and formation constraints before optimizing projected points.\n- Optimize the starting XI first, then outfield bench order, reserve goalkeeper, captain and vice-captain. Respect the official autosub mechanism, not just the raw expected points rank. Consider whether the first outfield substitute could create an illegal formation and therefore be skipped.\n- For a Double Gameweek, treat a player as having appeared if they play any minutes in either fixture. Do not expect an automatic substitute to replace them if they miss the other fixture.\n- Use fixture context as a tiebreaker or material adjustment, not as a substitute for player-level evidence.\n- Use the season's scoring table and defensive-contribution thresholds from the shared reference. For 2026/27, defenders reach the DC threshold at 10 combined clearances, blocks, interceptions and tackles; midfielders/forwards at 12 combined defensive actions including recoveries. Apply the revised 2026/27 BPS rules when discussing bonus potential.\n- Do not assume that a low-scoring player should be benched if relevant prediction or minutes evidence says otherwise.\n- Distinguish a **best XI from the current squad** from a **transfer-based squad improvement**. For transfers, use the Transfer Advisor workflow. A full-market rebuild requires a sufficiently complete player pool and reliable prices/budget; the available name-search tool does not establish exhaustive market coverage.\n- Do not claim to have checked club limits, budget, price changes, injuries, availability, or a confirmed fixture unless those values are returned or supplied.\n\n## Response format\n\nShow:\n\n1. **Starting XI:** grouped by current FPL position, with a legal formation.\n2. **Bench order:** first outfield substitute, remaining outfield substitutes, and reserve goalkeeper, with any autosub caveat.\n3. **Captain and vice-captain:** with concise evidence.\n4. **Key calls:** explain close start/bench decisions.\n5. **Rules and limitations:** confirm formation legality and disclose missing predictions, minutes, prices, fixtures or player fields that affect certainty.\n\nDo not claim to save or submit the lineup. The connected MCP tools are read-only analysis tools.\n"},"changes":[],"summary":"First saved snapshot. No earlier version is available for comparison.","summary_kind":"deterministic","summary_metadata":{}}