COMM-PANION AI TEAM PACK INSTRUCTIONS — Beta 0.1.44 · Template Version 1.2 PURPOSE Use COMM-PANION_TEAM_PACK_REFERENCE.team.json for the authoritative JSON schema AND COMM-PANION_BETA_0_1_44_CARD_RENDERER.js for authoritative player-card artwork. Both are included in the download kit. INSTRUCTIONS TO THE AI 1. Preserve the reference pack's JSON structure, field names and value types. Do not redesign the schema or omit existing player fields. 2. Replace the fictional team/player data with the requested real team. Research current information from reliable public sources and state the date checked in statsSources/notes. Do not guess missing facts. 3. Use the current squad numbers and include enough first-team players for match preparation. Populate each player's position, nationality and age so the full top information strip renders correctly on every card. Age is REQUIRED in all default outputs and should be the player's current age at the check date (or match date if the user specifies one). Set startingXI to the most recent verified starting XI unless the user specifically asks for a predicted XI. For club display names, omit unnecessary football-club affixes: use "Chelsea" rather than "Chelsea FC" and "Bournemouth" rather than "AFC Bournemouth" unless the affix is needed to avoid ambiguity. 4. COUNTRY / LIBRARY METADATA: - Club packs: set leagueCountry to the country of the league and countryCode to an ISO-style two-letter code where possible (England may use GB-ENG for the England flag). - International packs: set countryCode to the team country. - This metadata drives the country flag shown in Team Library. 5. For CLUB packs: - leagueGoals = goals in the domestic league only. - cupGoals = all current-season non-league club goals that the user wants shown alongside league goals (domestic cups and continental competition goals). - goals = leagueGoals + cupGoals. - If a player has no goals, leagueGoals and cupGoals remain numeric 0. COMM-PANION displays 0, not a blank. - If cupGoals > 0, the card display convention is leagueGoals+cupGoals, e.g. 1+2. - assists should follow the requested/current league-stat convention. yellowCards MUST contain league yellow cards only (exclude cup/non-league cautions). Store dismissals separately in redCards. 6. MANDATORY ARTWORK RULE: Generate EVERY embedded player image by executing generateTeamBuilderCard(player, team) from COMM-PANION_BETA_0_1_44_CARD_RENDERER.js in a Canvas-capable browser environment. Do not approximate or redraw cards with Pillow, SVG, CSS, image generation, or an independent implementation. This is the unmodified card-drawing logic extracted from COMM-PANION Beta 0.1.44, cross-checked against the supplied Bristol Rovers reference team pack. The current player-card specification is a 244 x 250 canvas, circular squad-number badge, exact text coordinates and geometry from that renderer. The top information strip MUST show position on the left, nationality/club code in the centre, and age on the right. Preserve the unmodified font weights, number font, text baselines and name spacing from the supplied renderer; do not apply extra-bold or artificial text strokes. The goals box uses the team's secondary colour; the assists box uses the team's primary colour; the disciplinary box uses the accent colour. Its display is yellowCards alone when redCards is 0, or yellowCards+redCards when redCards is greater than 0 (for example 4+1). The yellow number is contrast-safe yellow, the + is neutral contrast text, and the red-card number is contrast-safe red. 7. cardTheme fields remain: primary, secondary, text, accent, triangleBackground, triangleText. The legacy triangleBackground/triangleText property names are retained for compatibility, but they style the CIRCULAR number badge. 8. Each player's cardKey must be unique and must match the corresponding value used in startingXI. 9. Every player needs an image field containing a valid data:image/png;base64,... card generated by the supplied renderer (await generateTeamBuilderCard(player, team)). Map the reference JSON cardTheme colours to renderer team parameters: primary, secondary, text, accent, triangleBackground and triangleText; set team.statsMode for club/international rendering. The reference JSON includes image values as examples, NOT as reusable images for a different player. If you cannot execute the exact renderer, clearly state that the artwork cannot be certified as exact, and do not present approximations as compliant. 10. PERSONAL NOTES RULE: For every newly researched player set bio = "" and commentaryNotes = "". These constitute the user's personal My Notes content. Never prefill them with clubs, biographical research, history, previous clubs or any other source material unless the user explicitly requests it. If updating an existing pack, retain its existing user-entered notes verbatim unless the user asks to clear them. Use dedicated structured fields, such as previousClubs, for verified factual data when appropriate. Do not alter COMM-PANION's schemaVersion unless a newer official reference template explicitly says to do so. 11. FORMATION ORDER: when building startingXI, keep right-sided players on the right of the COMM-PANION pitch and left-sided players on the left. Do not mirror RB/LB, RWB/LWB, RW/LW or right/left centre-backs. 3-4-2-1 is a supported formation. 12. Return a downloadable .team.json file. Before finishing, validate that it is valid JSON and that every startingXI cardKey exists in players. QUALITY CHECK BEFORE DELIVERY - Valid JSON - Correct shortened team display name, manager, formation and squad numbers - position, nationality and age populated for every player so the top card strip is complete - countryCode / leagueCountry populated for Team Library flag display - Left/right formation roles checked and not mirrored - Unique cardKey for every player - 11 valid startingXI keys - Current-season leagueGoals and cupGoals separated correctly - Zero goals represented as 0 - Cup/non-league goals capable of rendering as X+Y - Assists populated consistently - yellowCards is league-only; redCards is separate and both are populated consistently - Every player card generated with the bundled Beta 0.1.44 renderer, not approximated - Every player bio and commentaryNotes empty for new packs (or existing user notes preserved when revising a pack) - Current COMM-PANION card colours and typography retained - image present for every player as an embedded PNG generated by the official canvas renderer - Sources/check date recorded SUGGESTED USER PROMPT "Using the attached COMM-PANION reference team pack, exact Beta 0.1.44 card renderer and AI instructions as the authoritative template, build me an up-to-date team pack for [TEAM]. Research the current squad, squad numbers, manager, most recent verified starting XI and current-season player statistics. Keep the COMM-PANION schema and card specification exactly as supplied. Return an import-ready .team.json file."