[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75YCJEW5C0RHP4QS09BDRGR":3,"skill-same:01M75YCJEW5C0RHP4QS09BDRGR":44},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M75YCJEW5C0RHP4QS09BDRGR","editing-game-logic",null,"Change a game rule or mechanic in this Catan card game — interview until the change is unambiguous, then record it in the rulebook before coding. Use when the user wants to add, change, or fix card effects, turn phases, costs, events, or win conditions.","stuckkk\u002Fcatan-card-game","stuckkk","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F86599637?v=4","01M75YCA56RR1N7QQF6BPEQNV7","JanH","01M75YCA5YSK6EV6SKVRHFGV5W",0,"MIT","https:\u002F\u002Fgithub.com\u002Fstuckkk\u002Fcatan-card-game\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fediting-game-logic\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: editing-game-logic\ndescription: Change a game rule or mechanic in this Catan card game — interview until the change is unambiguous, then record it in the rulebook before coding. Use when the user wants to add, change, or fix card effects, turn phases, costs, events, or win conditions.\n---\n\n# Editing Game Logic\n\n`GAME_LOGIC.md` is the **rulebook**: the single source of truth for how the game behaves. It is derived from the authoritative German rulebook `rules_german_original.pdf` (repo root, untracked — copyrighted; a scan without a text layer, so read its pages as images with the Read tool's `pages` parameter; cite as `DE p.N`). The English `rules.pdf` (read it with `pdftotext -layout rules.pdf -`) is only a translation aid: where the two disagree, the German one wins. Any rule that differs from or is missing in the PDF must be listed in `GAME_LOGIC.md` §12 *Deviations & Additions*; unimplemented rules\u002Fcards go in §13 *Not Yet Implemented*. A logic change is not \"edit the engine\" — it is \"agree the rule, write it in the rulebook, then make code match.\" Rushing to code a half-understood mechanic is the recurring failure here (see `.claude\u002FCLAUDE.md` §5).\n\nTwo steps, in order.\n\n## 1. Pin down the change\n\nInterview the user until you could hand the change to someone else and they would build it identically. Surface every fork with `AskUserQuestion` and your recommended option — never pick a mechanic silently. Use the `grilling` skill for the interview technique.\n\nThe change is only pinned down once you can state, and the user has confirmed, all of:\n\n- **Source** — what the German rulebook says about it (cite `DE p.N`; check the English `rules.pdf` too and point out any disagreement), and whether the change deviates from it.\n- **Effect** — exactly what happens, with numbers.\n- **Timing** — which `TurnPhase` it fires in and at what point.\n- **Edges** — resource caps (0–3 per region), empty decks, ties, hand limit, overflow, \"opponent has nothing.\"\n- **Interactions** — how it touches existing systems (production, events, advantage tokens, pending choices, stats computed from `playedCards`).\n- **Representation** — how `GameState` carries it (a one-shot discard, a permanent `playedCards` entry, a new field, a pending choice).\n\nCompletion criterion: zero open mechanic questions remain. If any answer is still \"probably,\" you are not done — ask.\n\n## 2. Record it in the rulebook\n\nWrite the agreed mechanic into `GAME_LOGIC.md` first, as the spec the code will follow. Then update every other doc that the change touches or now contradicts:\n\n- `docs\u002Fadr\u002F` — architectural decisions (e.g. the card-effect model).\n- `src\u002Fi18n\u002Fen.json` \u002F `de.json` — card name\u002Fdescription text shown to players.\n- `CONTEXT.md`, `.claude\u002FCLAUDE.md` — only if the change alters something they state.\n\nIf the agreed mechanic conflicts with what the rulebook already says, resolve the conflict **in the rulebook** — never leave the docs describing the old rule while the code does the new one. Call out the deviation to the user explicitly.\n\nCompletion criterion: a reader could implement the change from the docs alone, and no doc contradicts the agreed mechanic.\n\n---\n\nOnly now does implementation follow, and the code must match the rulebook. If implementation forces an unforeseen mechanic decision, return to step 1, then step 2 — do not encode it in the engine alone.\n","# Editing Game Logic\n\n`GAME_LOGIC.md` is the **rulebook**: the single source of truth for how the game behaves. It is derived from the authoritative German rulebook `rules_german_original.pdf` (repo root, untracked — copyrighted; a scan without a text layer, so read its pages as images with the Read tool's `pages` parameter; cite as `DE p.N`). The English `rules.pdf` (read it with `pdftotext -layout rules.pdf -`) is only a translation aid: where the two disagree, the German one wins. Any rule that differs from or is missing in the PDF must be listed in `GAME_LOGIC.md` §12 *Deviations & Additions*; unimplemented rules\u002Fcards go in §13 *Not Yet Implemented*. A logic change is not \"edit the engine\" — it is \"agree the rule, write it in the rulebook, then make code match.\" Rushing to code a half-understood mechanic is the recurring failure here (see `.claude\u002FCLAUDE.md` §5).\n\nTwo steps, in order.\n\n## 1. Pin down the change\n\nInterview the user until you could hand the change to someone else and they would build it identically. Surface every fork with `AskUserQuestion` and your recommended option — never pick a mechanic silently. Use the `grilling` skill for the interview technique.\n\nThe change is only pinned down once you can state, and the user has confirmed, all of:\n\n- **Source** — what the German rulebook says about it (cite `DE p.N`; check the English `rules.pdf` too and point out any disagreement), and whether the change deviates from it.\n- **Effect** — exactly what happens, with numbers.\n- **Timing** — which `TurnPhase` it fires in and at what point.\n- **Edges** — resource caps (0–3 per region), empty decks, ties, hand limit, overflow, \"opponent has nothing.\"\n- **Interactions** — how it touches existing systems (production, events, advantage tokens, pending choices, stats computed from `playedCards`).\n- **Representation** — how `GameState` carries it (a one-shot discard, a permanent `playedCards` entry, a new field, a pending choice).\n\nCompletion criterion: zero open mechanic questions remain. If any answer is still \"probably,\" you are not done — ask.\n\n## 2. Record it in the rulebook\n\nWrite the agreed mechanic into `GAME_LOGIC.md` first, as the spec the code will follow. Then update every other doc that the change touches or now contradicts:\n\n- `docs\u002Fadr\u002F` — architectural decisions (e.g. the card-effect model).\n- `src\u002Fi18n\u002Fen.json` \u002F `de.json` — card name\u002Fdescription text shown to players.\n- `CONTEXT.md`, `.claude\u002FCLAUDE.md` — only if the change alters something they state.\n\nIf the agreed mechanic conflicts with what the rulebook already says, resolve the conflict **in the rulebook** — never leave the docs describing the old rule while the code does the new one. Call out the deviation to the user explicitly.\n\nCompletion criterion: a reader could implement the change from the docs alone, and no doc contradicts the agreed mechanic.\n\n---\n\nOnly now does implementation follow, and the code must match the rulebook. If implementation forces an unforeseen mechanic decision, return to step 1, then step 2 — do not encode it in the engine alone.\n",{"name":5,"description":7},"main","971c75f32f85748fab37a47f4b938d781274cf0b",".claude\u002Fskills\u002Fediting-game-logic","https:\u002F\u002Fgithub.com\u002Fstuckkk\u002Fcatan-card-game","https:\u002F\u002Fgithub.com\u002Fstuckkk","2026-11-15 03:27:17",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add stuckkk\u002Fcatan-card-game --skill editing-game-logic",{"tool":36,"command":37},"bunx","bunx skills add stuckkk\u002Fcatan-card-game --skill editing-game-logic",{"tool":39,"command":40},"pnpm","pnpm dlx skills add stuckkk\u002Fcatan-card-game --skill editing-game-logic","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fstuckkk\u002Fcatan-card-game\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fediting-game-logic\u002FSKILL.md",true,[],[45,52,59,66,73,80],{"skillNo":46,"name":47,"nameZh":6,"description":48,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":49,"categories":50,"keywords":51,"publishedAt":19},"01M75YD7GR6MPNYEGM20J1B50Q","writing-great-skills","Reference for writing and editing skills well — the vocabulary and principles that make a skill predictable.","https:\u002F\u002Fgithub.com\u002Fstuckkk\u002Fcatan-card-game\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwriting-great-skills\u002FSKILL.md",[],[],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M75YD54WF179C1YF0T5581QW","teach","Teach the user a new skill or concept, within this workspace.","https:\u002F\u002Fgithub.com\u002Fstuckkk\u002Fcatan-card-game\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fteach\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M75YD30T1C24FGBE7D588SYA","tdd","Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions \"red-green-refactor\", or wants integration tests.","https:\u002F\u002Fgithub.com\u002Fstuckkk\u002Fcatan-card-game\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Ftdd\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M75YCZ2051FFP503KDS8JXQA","run-catan-card-game","Run, start, drive, simulate or screenshot the Catan card game. Build a game state (e.g. mid-game, an event card just revealed), steer it through the real rules engine headlessly, or load it into practice mode in headless Chromium and click through the UI. Use to verify a rule or UI change in the running app, not just in unit tests.","https:\u002F\u002Fgithub.com\u002Fstuckkk\u002Fcatan-card-game\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frun-catan-card-game\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M75YCW9AVPN00YCRHA6HMKEQ","improve-codebase-architecture","Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.","https:\u002F\u002Fgithub.com\u002Fstuckkk\u002Fcatan-card-game\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fimprove-codebase-architecture\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M75YCTZCVFN65CZKX7ETKZC1","handoff","Compact the current conversation into a handoff document for another agent to pick up.","https:\u002F\u002Fgithub.com\u002Fstuckkk\u002Fcatan-card-game\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fhandoff\u002FSKILL.md",[],[]]