[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CRA75A82PF2TP25S67MX5Y":3,"skill-same:01M6CRA75A82PF2TP25S67MX5Y":66},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":6,"ownerHtmlUrl":51,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":52,"install":53,"resources":65},"01M6CRA75A82PF2TP25S67MX5Y","fo-gen",null,"Generate one screen from its approved implementation plan through the fo-gen-run workflow (foundation → api-tdd → component-tdd → page-tdd → integration, TDD with recorded evidence), resume a stopped run, or apply a delta plan to an existing screen. Use after fo-plan is approved; follow with fo-verify.","ohmyhotelco\u002Fhare-cc-plugins","ohmyhotelco","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F258133233?v=4","01M6CR4HP2N9F9ZWNX1KRHQ2W1","01M6CR4HSJC5J80RVQMD5K9QRN",2,"MIT","https:\u002F\u002Fgithub.com\u002Fohmyhotelco\u002Fhare-cc-plugins\u002Fblob\u002Fmain\u002Ffrontend-ohmyhotel-plugin\u002Fskills\u002Ffo-gen\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"fo gen","app","id","with","-app","apply","run workflow","stage","Existing","implementation plan","true","resume","api","foundation","Bash","workflow","use","page","delta","evidence","2026-11-10 10:12:30",false,"---\nname: fo-gen\ndescription: Generate one screen from its approved implementation plan through the fo-gen-run workflow (foundation → api-tdd → component-tdd → page-tdd → integration, TDD with recorded evidence), resume a stopped run, or apply a delta plan to an existing screen. Use after fo-plan is approved; follow with fo-verify.\nargument-hint: \"--app \u003Cname> --screen \u003Cid> [--resume] [--delta] [--from \u003Cstage>]\"\nuser-invocable: true\nallowed-tools: Read, Write, Edit, Glob, Grep, Bash, Workflow, Agent\n---\n\n# fo-gen — generate a screen\n\nThe workflow `frontend-ohmyhotel-plugin:fo-gen-run` runs the five stages in order and stops at the first\nfailure; this skill owns everything around it: preconditions, the lock, the state file, the stage\nlist, the report and the tracker. `--delta` applies a delta plan with one agent instead.\n\nConventions: `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Ffo-shared\u002FSKILL.md`.\n\n## Step 0 — Config, arguments, plan\n\nRead the config (missing → `fo-init`), resolve `--app`\u002F`--screen`, derive `screenDir`, `planFile`,\n`stateFile` (`.claude\u002Ffrontend-ohmyhotel\u002F\u003Capp>\u002F\u003Cscreen>\u002Fgeneration-state.json`), `specDir`.\n\nRead the plan and `\u003Cgates.evidenceDir>\u002F\u003Capp>\u002Fprogress.json`:\n\n- no plan → `fo-plan` first\n- plan not approved (`progress.json` `plan.approved` false) → stop; generation builds on an approved\n  plan, otherwise the approval step means nothing\n- without `--delta`: `plan.spec.contentHash` ≠ the manifest row's 12-hex content hash → the spec moved\n  since planning; point at `fo-plan` (delta) and stop. Under delta legacy tracking, likewise when the\n  plan's `legacy.commit` ≠ the commit in `\u003CscreenDir>\u002Fanalysis.json` — the V2 answer key moved since planning\n- with `--delta`: the plan is expected to lag the spec. Check instead that `delta-plan.json`\n  `spec.fromContentHash` matches the plan's `spec.contentHash` and `spec.toContentHash` matches the\n  manifest row (12-hex prefixes); when the delta carries `legacy`, its `fromCommit` must equal the plan's\n  `legacy.commit` and its `toCommit` the analysis commit; a mismatch means the delta was planned against a\n  different pair → `fo-plan` again\n- `openApprovals[]` with `status: pending` → list them; continue (they block nothing here) and carry\n  them into the report so they are not forgotten\n- `sourceHashStatus` not `computed` → warn: a later delta cannot compare those entries\n\n`--delta` requires `\u003CscreenDir>\u002Fdelta-plan.json`; `--resume` requires an existing `stateFile`;\n`--from \u003Cstage>` names the stage to restart at (defaults to the first stage not `done`).\n\n## Step 1 — Harness preflight\n\nOnce per app, before the first generation, check the repo can run what the stages run; report\nwhat is missing and stop if anything on the first line is absent:\n\n- `node_modules` present, `npx vitest --version`, `npx tsc --version`, `npx react-router --version`\n- `npx playwright --version` and browsers (`fo-e2e` needs them later; report only)\n- the design-system package installed (`node_modules\u002F\u003CdesignSystem.package>`) — absent → stop: the\n  component stage would guess every import\n- `\u003CappDir>\u002Froot.tsx` present — absent → stop: the app shell is Phase 0 work, not a screen's\n\n## Step 2 — Lock and state\n\nTake `.claude\u002Ffrontend-ohmyhotel\u002F\u003Capp>\u002F\u003Cscreen>\u002Fgen.lock`. Create or read `stateFile`:\n\n```json\n{ \"app\": \"www\", \"screen\": \"01-main-page\", \"planVersion\": 1, \"startedAt\": \"…\",\n  \"phases\": { \"foundation\": { \"status\": \"pending\" }, \"api-tdd\": { \"status\": \"pending\" },\n              \"component-tdd\": { \"status\": \"pending\" }, \"page-tdd\": { \"status\": \"pending\" },\n              \"integration\": { \"status\": \"pending\" } } }\n```\n\nBuild `stages[]` from `plan.buildOrder`: `enabled` = the stage has files (or test files); on\n`--resume` set `resumeFrom` to the first stage whose status is not `done` (or `--from`). A `done`\nstage is trusted on resume — the documented path to `--resume` is \"fix the cause, then resume\", so\nthe screen hash will have moved and must not be the reason to redo finished stages. The hash recorded\nper stage is informational (`fo-progress` shows it); `fo-verify` is the check that the whole screen\nstill holds together after the fix.\n\n## Step 3 — Run\n\nCall the `Workflow` tool with `name: \"frontend-ohmyhotel-plugin:fo-gen-run\"` and\n`args: { app, screen, planFile, stateFile, specDir, config, stages, resumeFrom, effort? }` (`effort`\nis optional per-stage overrides `{ foundation, tdd, integration }`; omit to inherit the session effort). Tell the user which\nstages will run and that the result arrives as a task notification; then wait for it. Do not end the\nturn after announcing the run, do not poll, do not start agents of your own while it runs.\n\n`--delta` instead starts one `Agent` with `subagent_type: frontend-ohmyhotel-plugin:delta-modifier`\nand the inputs its file lists, and waits for its completion notification the same way.\n\n## Step 4 — After the run\n\nFrom the workflow result (`ok`, `stoppedAt`, `stages[]`) and `stateFile`:\n\n- record `treeHash` (`fo-screen-hash --app \u003Capp> --screen \u003Cscreen>`) on every stage that finished\n  `done` in this run\n- on `--delta` success: `fo-plan-hash --plan \u003CplanFile> --spec-dir \u003CspecDir> --write` (the tracker's\n  `delta` key is removed in the next bullet)\n- record in the tracker: `fo-progress-set --app \u003Capp> --screen \u003Cscreen> --set gen --json '{\"status\":\"done|partial\",\"stoppedAt\":…,\"resumeFrom\":…,\"planVersion\":…,\"finishedAt\":…}'`\n  — `partial` whenever the run stopped before integration, whatever stage it stopped at (`fo-progress`\n  then offers `--resume`); on `--delta` success also `--unset delta`\n- fill block 5 of `\u003CScreen>.spec.md` with the evidence paths that now exist (the gate rows stay `—`\n  until `fo-verify` and the later gates run)\n\nRelease the lock.\n\n## Step 5 — Report and next\n\nIn the user's language: a stage table (status, files written, runs recorded, mutation checks), the\nfirst failure with its evidence when there is one, pending approvals carried from the plan, the\nmachine-translated i18n review file when integration wrote one, and the suggested commit\n(`feat(\u003Cscreen>): generate from plan v\u003Cn>` — the user commits). Next command:\n\n- all stages done → `\u002Ffrontend-ohmyhotel-plugin:fo-verify --app \u003Capp> --screen \u003Cscreen>`\n- stopped at a stage → fix the cause (the evidence names it) and `\u002Ffrontend-ohmyhotel-plugin:fo-gen … --resume`\n- a stage failed inside a file another stage owns → `\u002Ffrontend-ohmyhotel-plugin:fo-fix` once review\n  exists, or `--resume --from \u003Cthat stage>` after a manual fix\n\nDone when the workflow (or the delta agent) has returned, the state, tracker and spec block are\nupdated, the lock is released and the next command is named. A run that stopped at a stage is\nreported as stopped, with the stage and its evidence, not as done.\n","# fo-gen — generate a screen\n\nThe workflow `frontend-ohmyhotel-plugin:fo-gen-run` runs the five stages in order and stops at the first\nfailure; this skill owns everything around it: preconditions, the lock, the state file, the stage\nlist, the report and the tracker. `--delta` applies a delta plan with one agent instead.\n\nConventions: `${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Ffo-shared\u002FSKILL.md`.\n\n## Step 0 — Config, arguments, plan\n\nRead the config (missing → `fo-init`), resolve `--app`\u002F`--screen`, derive `screenDir`, `planFile`,\n`stateFile` (`.claude\u002Ffrontend-ohmyhotel\u002F\u003Capp>\u002F\u003Cscreen>\u002Fgeneration-state.json`), `specDir`.\n\nRead the plan and `\u003Cgates.evidenceDir>\u002F\u003Capp>\u002Fprogress.json`:\n\n- no plan → `fo-plan` first\n- plan not approved (`progress.json` `plan.approved` false) → stop; generation builds on an approved\n  plan, otherwise the approval step means nothing\n- without `--delta`: `plan.spec.contentHash` ≠ the manifest row's 12-hex content hash → the spec moved\n  since planning; point at `fo-plan` (delta) and stop. Under delta legacy tracking, likewise when the\n  plan's `legacy.commit` ≠ the commit in `\u003CscreenDir>\u002Fanalysis.json` — the V2 answer key moved since planning\n- with `--delta`: the plan is expected to lag the spec. Check instead that `delta-plan.json`\n  `spec.fromContentHash` matches the plan's `spec.contentHash` and `spec.toContentHash` matches the\n  manifest row (12-hex prefixes); when the delta carries `legacy`, its `fromCommit` must equal the plan's\n  `legacy.commit` and its `toCommit` the analysis commit; a mismatch means the delta was planned against a\n  different pair → `fo-plan` again\n- `openApprovals[]` with `status: pending` → list them; continue (they block nothing here) and carry\n  them into the report so they are not forgotten\n- `sourceHashStatus` not `computed` → warn: a later delta cannot compare those entries\n\n`--delta` requires `\u003CscreenDir>\u002Fdelta-plan.json`; `--resume` requires an existing `stateFile`;\n`--from \u003Cstage>` names the stage to restart at (defaults to the first stage not `done`).\n\n## Step 1 — Harness preflight\n\nOnce per app, before the first generation, check the repo can run what the stages run; report\nwhat is missing and stop if anything on the first line is absent:\n\n- `node_modules` present, `npx vitest --version`, `npx tsc --version`, `npx react-router --version`\n- `npx playwright --version` and browsers (`fo-e2e` needs them later; report only)\n- the design-system package installed (`node_modules\u002F\u003CdesignSystem.package>`) — absent → stop: the\n  component stage would guess every import\n- `\u003CappDir>\u002Froot.tsx` present — absent → stop: the app shell is Phase 0 work, not a screen's\n\n## Step 2 — Lock and state\n\nTake `.claude\u002Ffrontend-ohmyhotel\u002F\u003Capp>\u002F\u003Cscreen>\u002Fgen.lock`. Create or read `stateFile`:\n\n```json\n{ \"app\": \"www\", \"screen\": \"01-main-page\", \"planVersion\": 1, \"startedAt\": \"…\",\n  \"phases\": { \"foundation\": { \"status\": \"pending\" }, \"api-tdd\": { \"status\": \"pending\" },\n              \"component-tdd\": { \"status\": \"pending\" }, \"page-tdd\": { \"status\": \"pending\" },\n              \"integration\": { \"status\": \"pending\" } } }\n```\n\nBuild `stages[]` from `plan.buildOrder`: `enabled` = the stage has files (or test files); on\n`--resume` set `resumeFrom` to the first stage whose status is not `done` (or `--from`). A `done`\nstage is trusted on resume — the documented path to `--resume` is \"fix the cause, then resume\", so\nthe screen hash will have moved and must not be the reason to redo finished stages. The hash recorded\nper stage is informational (`fo-progress` shows it); `fo-verify` is the check that the whole screen\nstill holds together after the fix.\n\n## Step 3 — Run\n\nCall the `Workflow` tool with `name: \"frontend-ohmyhotel-plugin:fo-gen-run\"` and\n`args: { app, screen, planFile, stateFile, specDir, config, stages, resumeFrom, effort? }` (`effort`\nis optional per-stage overrides `{ foundation, tdd, integration }`; omit to inherit the session effort). Tell the user which\nstages will run and that the result arrives as a task notification; then wait for it. Do not end the\nturn after announcing the run, do not poll, do not start agents of your own while it runs.\n\n`--delta` instead starts one `Agent` with `subagent_type: frontend-ohmyhotel-plugin:delta-modifier`\nand the inputs its file lists, and waits for its completion notification the same way.\n\n## Step 4 — After the run\n\nFrom the workflow result (`ok`, `stoppedAt`, `stages[]`) and `stateFile`:\n\n- record `treeHash` (`fo-screen-hash --app \u003Capp> --screen \u003Cscreen>`) on every stage that finished\n  `done` in this run\n- on `--delta` success: `fo-plan-hash --plan \u003CplanFile> --spec-dir \u003CspecDir> --write` (the tracker's\n  `delta` key is removed in the next bullet)\n- record in the tracker: `fo-progress-set --app \u003Capp> --screen \u003Cscreen> --set gen --json '{\"status\":\"done|partial\",\"stoppedAt\":…,\"resumeFrom\":…,\"planVersion\":…,\"finishedAt\":…}'`\n  — `partial` whenever the run stopped before integration, whatever stage it stopped at (`fo-progress`\n  then offers `--resume`); on `--delta` success also `--unset delta`\n- fill block 5 of `\u003CScreen>.spec.md` with the evidence paths that now exist (the gate rows stay `—`\n  until `fo-verify` and the later gates run)\n\nRelease the lock.\n\n## Step 5 — Report and next\n\nIn the user's language: a stage table (status, files written, runs recorded, mutation checks), the\nfirst failure with its evidence when there is one, pending approvals carried from the plan, the\nmachine-translated i18n review file when integration wrote one, and the suggested commit\n(`feat(\u003Cscreen>): generate from plan v\u003Cn>` — the user commits). Next command:\n\n- all stages done → `\u002Ffrontend-ohmyhotel-plugin:fo-verify --app \u003Capp> --screen \u003Cscreen>`\n- stopped at a stage → fix the cause (the evidence names it) and `\u002Ffrontend-ohmyhotel-plugin:fo-gen … --resume`\n- a stage failed inside a file another stage owns → `\u002Ffrontend-ohmyhotel-plugin:fo-fix` once review\n  exists, or `--resume --from \u003Cthat stage>` after a manual fix\n\nDone when the workflow (or the delta agent) has returned, the state, tracker and spec block are\nupdated, the lock is released and the next command is named. A run that stopped at a stage is\nreported as stopped, with the stage and its evidence, not as done.\n",{"name":5,"description":7,"allowed-tools":43,"argument-hint":44,"user-invocable":45},"Read, Write, Edit, Glob, Grep, Bash, Workflow, Agent","--app \u003Cname> --screen \u003Cid> [--resume] [--delta] [--from \u003Cstage>]",true,"main","64e41a7f9c83f3469e662235cfcba152764ceb92","frontend-ohmyhotel-plugin\u002Fskills\u002Ffo-gen",0,"https:\u002F\u002Fgithub.com\u002Fohmyhotelco\u002Fhare-cc-plugins","https:\u002F\u002Fgithub.com\u002Fohmyhotelco","2026-11-13 16:34:32",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":45},[55,58,61],{"tool":56,"command":57},"npx","npx skills add ohmyhotelco\u002Fhare-cc-plugins --skill fo-gen",{"tool":59,"command":60},"bunx","bunx skills add ohmyhotelco\u002Fhare-cc-plugins --skill fo-gen",{"tool":62,"command":63},"pnpm","pnpm dlx skills add ohmyhotelco\u002Fhare-cc-plugins --skill fo-gen","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fohmyhotelco\u002Fhare-cc-plugins\u002Fblob\u002Fmain\u002Ffrontend-ohmyhotel-plugin\u002Fskills\u002Ffo-gen\u002FSKILL.md",[],[67,92,110,128,148,166],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":38},"01M6M5QVXQNQMJBP1JZP9T440T","hp-shared","Shared conventions for every homepage-plugin agent and skill — stack, code conventions, state-file writes, check commands and how to report them. Preloaded into agents through their `skills:` frontmatter; not meant to be invoked by hand.","https:\u002F\u002Fgithub.com\u002Fohmyhotelco\u002Fhare-cc-plugins\u002Fblob\u002Fmain\u002Fhomepage-plugin\u002Fskills\u002Fhp-shared\u002FSKILL.md",[],[74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91],"shared","hp shared","state","stack","plugin","how","for","report","code conventions","commands","how to","conventions","false","frontmatter","file","code","hand","check",{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":38},"01M6M5PZTN1M0G4AHJV08VF1HV","fe-shared","Shared conventions for every frontend-react-plugin agent and skill — code conventions, state files and locks, accepted deviations, design principles, build working directory, router-mode command matrix, TypeScript check. Preloaded into agents through their `skills:` frontmatter; not meant to be invoked by hand.","https:\u002F\u002Fgithub.com\u002Fohmyhotelco\u002Fhare-cc-plugins\u002Fblob\u002Fmain\u002Ffrontend-react-plugin\u002Fskills\u002Ffe-shared\u002FSKILL.md",[],[74,99,80,100,82,101,102,103,104,86,89,90,105,91,106,76,78,107,108,109],"fe shared","mode","frontend","design","design principles","files","react","router","principles","command","build",{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":38},"01M6M5GAW7ZZ3580DVCMH51SFQ","be-spring-shared","Shared conventions for every backend-springboot-plugin agent and skill — tech stack, CQRS architecture, naming, coding standards, TDD, commit and build rules, state files. Preloaded into agents through their `skills:` frontmatter; not meant to be invoked by hand.","https:\u002F\u002Fgithub.com\u002Fohmyhotelco\u002Fhare-cc-plugins\u002Fblob\u002Fmain\u002Fbackend-springboot-plugin\u002Fskills\u002Fbe-spring-shared\u002FSKILL.md",[],[74,117,118,104,86,119,120,90,77,121,87,122,123,124,80,125,126,76,78,127],"spring","be spring shared","commit","architecture","coding standards","coding","standards","tech","Rules","cqrs","naming",{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":38},"01M6FNV58QMW8K71SA9FGTXMF4","pp-translate","Use after directly editing the working language spec to sync changes to other supported languages.","https:\u002F\u002Fgithub.com\u002Fohmyhotelco\u002Fhare-cc-plugins\u002Fblob\u002Fmain\u002Fplanning-plugin\u002Fskills\u002Fpp-translate\u002FSKILL.md",[],[135,136,137,138,139,140,141,142,143,144,145,34,88,146,28,147],"pp","pp translate","translate","feature","name","editing","read","spec","write","edit","sync","language","changes",{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":38},"01M6FNV0PGRKR2MW0AEPS6XP0Q","pp-sync-stitch","Use when wireframes were manually edited on the Stitch website and need to be re-fetched to the local project.","https:\u002F\u002Fgithub.com\u002Fohmyhotelco\u002Fhare-cc-plugins\u002Fblob\u002Fmain\u002Fplanning-plugin\u002Fskills\u002Fpp-sync-stitch\u002FSKILL.md",[],[155,135,156,145,157,158,138,159,160,161,162,34,32,20,163,164,165,139,141,28],"pp sync stitch","stitch","projects","get","project","re","local","MCP","wireframes","website","screen",{"skillNo":167,"name":168,"nameZh":6,"description":169,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":170,"categories":171,"keywords":172,"publishedAt":38},"01M6FNTWW2KHS9XRAR72X33G0B","pp-sync-notion","Use when a specification needs to be published or re-synced to Notion after finalization or manual edits.","https:\u002F\u002Fgithub.com\u002Fohmyhotelco\u002Fhare-cc-plugins\u002Fblob\u002Fmain\u002Fplanning-plugin\u002Fskills\u002Fpp-sync-notion\u002FSKILL.md",[],[135,173,145,174,138,160,175,176,162,34,177,139,141,143,144,178,28],"notion","pp sync notion","search","manual","specification","grep"]