Imported from jamonholmgren/poikas (
.agents/skills/poikas-season-maintenance/SKILL.md). Install upstream withnpx skills add jamonholmgren/poikas --skill poikas-season-maintenance. Copyright stays with the author.
Poikas season maintenance
Keep the site’s team data accurate without inventing missing game details.
Data locations
- Current and recent season data:
src/data/poikas.ts - Older manually tracked seasons:
src/data/poikas-previous.ts - MVIA season aggregates:
src/data/historical/hockey_stats_rec.jsonandsrc/data/historical/hockey_stats_c.json - Rendering and derived stats:
src/data/load.ts,src/pages/LeaguePage.ts, andsrc/pages/HomePage.ts
Update workflow
- Inspect the applicable season, player names, existing tests, and the working tree before editing.
- Treat user-supplied game reports as the source for score, shots, Sisu Cup, goalie, notable events, and explicitly listed player stats. Use canonical full player names from
poikasData.players. - Do not infer unreported assists, penalties, goalies, or individual stats. Leave unknown fields absent; a short notable can state that details are incomplete when useful.
- For current schedules and arena-reported aggregate stats, verify against the official MVIA EZFacility team or league page. Add every confirmed future game, including its time in
notablewhen no better time field exists. - A season with
playoffs: "pending"is treated as current. When a new current Rec or CC season begins, replacependingon the completed season with the appropriate result (for example,champions,eliminated, oreliminated-championship) before adding the new one. - Use the arena aggregate JSON for completed-season player and goalie totals when available.
Cis the arena’s label for the site’sCCleague. Ensure arena player and goalie names match the site’s canonical player names soload.tscan attach the totals. Do not assign a goalie to a game merely to fill a gap when only aggregate arena goalie data is known. - Add or update focused tests in
src/pages/pages.test.tswhen the rendered current season, known game result, or aggregate career total changes.
Validation and handoff
Run bun test. For a local smoke test, run bun start and check the current season and home routes at http://localhost:5151.
Review git diff --check and the staged diff. After successful validation, commit the completed in-scope changes with a concise message and push them to the configured upstream branch. Report the commit and test result.