[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74DZ2YENZCYCCMCEVDP6EQ8":3,"skill-same:01M74DZ2YENZCYCCMCEVDP6EQ8":46},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M74DZ2YENZCYCCMCEVDP6EQ8","gsd-reapply-patches",null,"Reapply local modifications after a GSD update","tamarillo-ai\u002Ftheta","tamarillo-ai","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F264659913?v=4","01M732W8TW61PS979NJ2W4Z6XZ","tamarillo.ai","01M732W8VRBBGT4F0Q3B2HNGTQ",15,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Ftamarillo-ai\u002Ftheta\u002Fblob\u002Fmain\u002Ftest\u002Fcast-fixtures\u002Fcodex-cli\u002Fregression\u002Fdexo\u002F.codex\u002Fskills\u002Fgsd-reapply-patches\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: \"gsd-reapply-patches\"\ndescription: \"Reapply local modifications after a GSD update\"\nmetadata:\n  short-description: \"Reapply local modifications after a GSD update\"\n---\n\n\u003Ccodex_skill_adapter>\n## A. Skill Invocation\n- This skill is invoked by mentioning `$gsd-reapply-patches`.\n- Treat all user text after `$gsd-reapply-patches` as `{{GSD_ARGS}}`.\n- If no arguments are present, treat `{{GSD_ARGS}}` as empty.\n\n## B. AskUserQuestion → request_user_input Mapping\nGSD workflows use `AskUserQuestion` (Claude Code syntax). Translate to Codex `request_user_input`:\n\nParameter mapping:\n- `header` → `header`\n- `question` → `question`\n- Options formatted as `\"Label\" — description` → `{label: \"Label\", description: \"description\"}`\n- Generate `id` from header: lowercase, replace spaces with underscores\n\nBatched calls:\n- `AskUserQuestion([q1, q2])` → single `request_user_input` with multiple entries in `questions[]`\n\nMulti-select workaround:\n- Codex has no `multiSelect`. Use sequential single-selects, or present a numbered freeform list asking the user to enter comma-separated numbers.\n\nExecute mode fallback:\n- When `request_user_input` is rejected (Execute mode), present a plain-text numbered list and pick a reasonable default.\n\n## C. Task() → spawn_agent Mapping\nGSD workflows use `Task(...)` (Claude Code syntax). Translate to Codex collaboration tools:\n\nDirect mapping:\n- `Task(subagent_type=\"X\", prompt=\"Y\")` → `spawn_agent(agent_type=\"X\", message=\"Y\")`\n- `Task(model=\"...\")` → omit (Codex uses per-role config, not inline model selection)\n- `fork_context: false` by default — GSD agents load their own context via `\u003Cfiles_to_read>` blocks\n\nParallel fan-out:\n- Spawn multiple agents → collect agent IDs → `wait(ids)` for all to complete\n\nResult parsing:\n- Look for structured markers in agent output: `CHECKPOINT`, `PLAN COMPLETE`, `SUMMARY`, etc.\n- `close_agent(id)` after collecting results from each agent\n\u003C\u002Fcodex_skill_adapter>\n\n\u003Cpurpose>\nAfter a GSD update wipes and reinstalls files, this command merges user's previously saved local modifications back into the new version. Uses intelligent comparison to handle cases where the upstream file also changed.\n\u003C\u002Fpurpose>\n\n\u003Cprocess>\n\n## Step 1: Detect backed-up patches\n\nCheck for local patches directory:\n\n```bash\n# Global install — detect runtime config directory\nif [ -d \"$HOME\u002F.config\u002Fopencode\u002Fgsd-local-patches\" ]; then\n  PATCHES_DIR=\"$HOME\u002F.config\u002Fopencode\u002Fgsd-local-patches\"\nelif [ -d \"$HOME\u002F.opencode\u002Fgsd-local-patches\" ]; then\n  PATCHES_DIR=\"$HOME\u002F.opencode\u002Fgsd-local-patches\"\nelif [ -d \"$HOME\u002F.gemini\u002Fgsd-local-patches\" ]; then\n  PATCHES_DIR=\"$HOME\u002F.gemini\u002Fgsd-local-patches\"\nelse\n  PATCHES_DIR=\"C:\u002FUsers\u002FCasa\u002FDocuments\u002FGitHub\u002Fghd-plataform\u002F.codex\u002Fgsd-local-patches\"\nfi\n# Local install fallback — check all runtime directories\nif [ ! -d \"$PATCHES_DIR\" ]; then\n  for dir in .config\u002Fopencode .opencode .gemini .claude; do\n    if [ -d \".\u002F$dir\u002Fgsd-local-patches\" ]; then\n      PATCHES_DIR=\".\u002F$dir\u002Fgsd-local-patches\"\n      break\n    fi\n  done\nfi\n```\n\nRead `backup-meta.json` from the patches directory.\n\n**If no patches found:**\n```\nNo local patches found. Nothing to reapply.\n\nLocal patches are automatically saved when you run $gsd-update\nafter modifying any GSD workflow, command, or agent files.\n```\nExit.\n\n## Step 2: Show patch summary\n\n```\n## Local Patches to Reapply\n\n**Backed up from:** v{from_version}\n**Current version:** {read VERSION file}\n**Files modified:** {count}\n\n| # | File | Status |\n|---|------|--------|\n| 1 | {file_path} | Pending |\n| 2 | {file_path} | Pending |\n```\n\n## Step 3: Merge each file\n\nFor each file in `backup-meta.json`:\n\n1. **Read the backed-up version** (user's modified copy from `gsd-local-patches\u002F`)\n2. **Read the newly installed version** (current file after update)\n3. **Compare and merge:**\n\n   - If the new file is identical to the backed-up file: skip (modification was incorporated upstream)\n   - If the new file differs: identify the user's modifications and apply them to the new version\n\n   **Merge strategy:**\n   - Read both versions fully\n   - Identify sections the user added or modified (look for additions, not just differences from path replacement)\n   - Apply user's additions\u002Fmodifications to the new version\n   - If a section the user modified was also changed upstream: flag as conflict, show both versions, ask user which to keep\n\n4. **Write merged result** to the installed location\n5. **Report status:**\n   - `Merged` — user modifications applied cleanly\n   - `Skipped` — modification already in upstream\n   - `Conflict` — user chose resolution\n\n## Step 4: Update manifest\n\nAfter reapplying, regenerate the file manifest so future updates correctly detect these as user modifications:\n\n```bash\n# The manifest will be regenerated on next $gsd-update\n# For now, just note which files were modified\n```\n\n## Step 5: Cleanup option\n\nAsk user:\n- \"Keep patch backups for reference?\" → preserve `gsd-local-patches\u002F`\n- \"Clean up patch backups?\" → remove `gsd-local-patches\u002F` directory\n\n## Step 6: Report\n\n```\n## Patches Reapplied\n\n| # | File | Status |\n|---|------|--------|\n| 1 | {file_path} | ✓ Merged |\n| 2 | {file_path} | ○ Skipped (already upstream) |\n| 3 | {file_path} | ⚠ Conflict resolved |\n\n{count} file(s) updated. Your local modifications are active again.\n```\n\n\u003C\u002Fprocess>\n\n\u003Csuccess_criteria>\n- [ ] All backed-up patches processed\n- [ ] User modifications merged into new version\n- [ ] Conflicts resolved with user input\n- [ ] Status reported for each file\n\u003C\u002Fsuccess_criteria>\n","\u003Ccodex_skill_adapter>\n## A. Skill Invocation\n- This skill is invoked by mentioning `$gsd-reapply-patches`.\n- Treat all user text after `$gsd-reapply-patches` as `{{GSD_ARGS}}`.\n- If no arguments are present, treat `{{GSD_ARGS}}` as empty.\n\n## B. AskUserQuestion → request_user_input Mapping\nGSD workflows use `AskUserQuestion` (Claude Code syntax). Translate to Codex `request_user_input`:\n\nParameter mapping:\n- `header` → `header`\n- `question` → `question`\n- Options formatted as `\"Label\" — description` → `{label: \"Label\", description: \"description\"}`\n- Generate `id` from header: lowercase, replace spaces with underscores\n\nBatched calls:\n- `AskUserQuestion([q1, q2])` → single `request_user_input` with multiple entries in `questions[]`\n\nMulti-select workaround:\n- Codex has no `multiSelect`. Use sequential single-selects, or present a numbered freeform list asking the user to enter comma-separated numbers.\n\nExecute mode fallback:\n- When `request_user_input` is rejected (Execute mode), present a plain-text numbered list and pick a reasonable default.\n\n## C. Task() → spawn_agent Mapping\nGSD workflows use `Task(...)` (Claude Code syntax). Translate to Codex collaboration tools:\n\nDirect mapping:\n- `Task(subagent_type=\"X\", prompt=\"Y\")` → `spawn_agent(agent_type=\"X\", message=\"Y\")`\n- `Task(model=\"...\")` → omit (Codex uses per-role config, not inline model selection)\n- `fork_context: false` by default — GSD agents load their own context via `\u003Cfiles_to_read>` blocks\n\nParallel fan-out:\n- Spawn multiple agents → collect agent IDs → `wait(ids)` for all to complete\n\nResult parsing:\n- Look for structured markers in agent output: `CHECKPOINT`, `PLAN COMPLETE`, `SUMMARY`, etc.\n- `close_agent(id)` after collecting results from each agent\n\u003C\u002Fcodex_skill_adapter>\n\n\u003Cpurpose>\nAfter a GSD update wipes and reinstalls files, this command merges user's previously saved local modifications back into the new version. Uses intelligent comparison to handle cases where the upstream file also changed.\n\u003C\u002Fpurpose>\n\n\u003Cprocess>\n\n## Step 1: Detect backed-up patches\n\nCheck for local patches directory:\n\n```bash\n# Global install — detect runtime config directory\nif [ -d \"$HOME\u002F.config\u002Fopencode\u002Fgsd-local-patches\" ]; then\n  PATCHES_DIR=\"$HOME\u002F.config\u002Fopencode\u002Fgsd-local-patches\"\nelif [ -d \"$HOME\u002F.opencode\u002Fgsd-local-patches\" ]; then\n  PATCHES_DIR=\"$HOME\u002F.opencode\u002Fgsd-local-patches\"\nelif [ -d \"$HOME\u002F.gemini\u002Fgsd-local-patches\" ]; then\n  PATCHES_DIR=\"$HOME\u002F.gemini\u002Fgsd-local-patches\"\nelse\n  PATCHES_DIR=\"C:\u002FUsers\u002FCasa\u002FDocuments\u002FGitHub\u002Fghd-plataform\u002F.codex\u002Fgsd-local-patches\"\nfi\n# Local install fallback — check all runtime directories\nif [ ! -d \"$PATCHES_DIR\" ]; then\n  for dir in .config\u002Fopencode .opencode .gemini .claude; do\n    if [ -d \".\u002F$dir\u002Fgsd-local-patches\" ]; then\n      PATCHES_DIR=\".\u002F$dir\u002Fgsd-local-patches\"\n      break\n    fi\n  done\nfi\n```\n\nRead `backup-meta.json` from the patches directory.\n\n**If no patches found:**\n```\nNo local patches found. Nothing to reapply.\n\nLocal patches are automatically saved when you run $gsd-update\nafter modifying any GSD workflow, command, or agent files.\n```\nExit.\n\n## Step 2: Show patch summary\n\n```\n## Local Patches to Reapply\n\n**Backed up from:** v{from_version}\n**Current version:** {read VERSION file}\n**Files modified:** {count}\n\n| # | File | Status |\n|---|------|--------|\n| 1 | {file_path} | Pending |\n| 2 | {file_path} | Pending |\n```\n\n## Step 3: Merge each file\n\nFor each file in `backup-meta.json`:\n\n1. **Read the backed-up version** (user's modified copy from `gsd-local-patches\u002F`)\n2. **Read the newly installed version** (current file after update)\n3. **Compare and merge:**\n\n   - If the new file is identical to the backed-up file: skip (modification was incorporated upstream)\n   - If the new file differs: identify the user's modifications and apply them to the new version\n\n   **Merge strategy:**\n   - Read both versions fully\n   - Identify sections the user added or modified (look for additions, not just differences from path replacement)\n   - Apply user's additions\u002Fmodifications to the new version\n   - If a section the user modified was also changed upstream: flag as conflict, show both versions, ask user which to keep\n\n4. **Write merged result** to the installed location\n5. **Report status:**\n   - `Merged` — user modifications applied cleanly\n   - `Skipped` — modification already in upstream\n   - `Conflict` — user chose resolution\n\n## Step 4: Update manifest\n\nAfter reapplying, regenerate the file manifest so future updates correctly detect these as user modifications:\n\n```bash\n# The manifest will be regenerated on next $gsd-update\n# For now, just note which files were modified\n```\n\n## Step 5: Cleanup option\n\nAsk user:\n- \"Keep patch backups for reference?\" → preserve `gsd-local-patches\u002F`\n- \"Clean up patch backups?\" → remove `gsd-local-patches\u002F` directory\n\n## Step 6: Report\n\n```\n## Patches Reapplied\n\n| # | File | Status |\n|---|------|--------|\n| 1 | {file_path} | ✓ Merged |\n| 2 | {file_path} | ○ Skipped (already upstream) |\n| 3 | {file_path} | ⚠ Conflict resolved |\n\n{count} file(s) updated. Your local modifications are active again.\n```\n\n\u003C\u002Fprocess>\n\n\u003Csuccess_criteria>\n- [ ] All backed-up patches processed\n- [ ] User modifications merged into new version\n- [ ] Conflicts resolved with user input\n- [ ] Status reported for each file\n\u003C\u002Fsuccess_criteria>\n",{"name":5,"metadata":24,"description":7},{"short-description":7},"main","08c084f718b2b842cd53622ce0b1a1fb2888ccef","test\u002Fcast-fixtures\u002Fcodex-cli\u002Fregression\u002Fdexo\u002F.codex\u002Fskills\u002Fgsd-reapply-patches",1,"https:\u002F\u002Fgithub.com\u002Ftamarillo-ai\u002Ftheta","https:\u002F\u002Fgithub.com\u002Ftamarillo-ai","2026-07-15 23:48:12",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add tamarillo-ai\u002Ftheta --skill gsd-reapply-patches",{"tool":38,"command":39},"bunx","bunx skills add tamarillo-ai\u002Ftheta --skill gsd-reapply-patches",{"tool":41,"command":42},"pnpm","pnpm dlx skills add tamarillo-ai\u002Ftheta --skill gsd-reapply-patches","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftamarillo-ai\u002Ftheta\u002Fblob\u002Fmain\u002Ftest\u002Fcast-fixtures\u002Fcodex-cli\u002Fregression\u002Fdexo\u002F.codex\u002Fskills\u002Fgsd-reapply-patches\u002FSKILL.md",true,[],[47,54,61,69,76,83],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M74FCAJ0RRFRJRQES26329E7","deploy-app","Deploy the application to staging or production environments.","https:\u002F\u002Fgithub.com\u002Ftamarillo-ai\u002Ftheta\u002Fblob\u002Fmain\u002Ftest\u002Fcast-fixtures\u002Fcursor\u002Fskills\u002Fbasic\u002F.cursor\u002Fskills\u002Fdeploy-app\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M74FC8GPJGCS0KTGKS1CJZZS","deploy","Deploy the application to environments.","https:\u002F\u002Fgithub.com\u002Ftamarillo-ai\u002Ftheta\u002Fblob\u002Fmain\u002Ftest\u002Fcast-fixtures\u002Fcursor\u002Fcombined\u002Ffull-config\u002F.cursor\u002Fskills\u002Fdeploy\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":65,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M74FC5RT3VTNZEK1F7NX5380","building-native-ui","Complete guide for building beautiful apps with Expo Router. Covers fundamentals, styling, components, navigation, animations, patterns, and native tabs.","MIT","https:\u002F\u002Fgithub.com\u002Ftamarillo-ai\u002Ftheta\u002Fblob\u002Fmain\u002Ftest\u002Fcast-fixtures\u002Fcopilot\u002Fskills\u002Fwith-references\u002F.github\u002Fskills\u002Fbuilding-native-ui\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M74FC1ZGP5R44HPGWWSW6P3B","create-section","Use when creating a new section for the AI Workshop presentation. Guides through title slide setup, layout choices, and content gathering. Activates when user wants to add a new topic section to the slideshow.","https:\u002F\u002Fgithub.com\u002Ftamarillo-ai\u002Ftheta\u002Fblob\u002Fmain\u002Ftest\u002Fcast-fixtures\u002Fcopilot\u002Fskills\u002Fbasic\u002F.github\u002Fskills\u002Fcreate-section\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M74FBZXSZ7GVP0HCGNR1BVNH","ship-checker","Run a full pre-ship review for this repo. Use when asked if a change is ready to deploy, publish, or ship.","https:\u002F\u002Fgithub.com\u002Ftamarillo-ai\u002Ftheta\u002Fblob\u002Fmain\u002Ftest\u002Fcast-fixtures\u002Fcopilot\u002Fcombined\u002Feverything\u002F.github\u002Fskills\u002Fship-checker\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M74FBY4N2E3ZERWBRM4S3DE6","lint-check","Run repository linters and report failures.","https:\u002F\u002Fgithub.com\u002Ftamarillo-ai\u002Ftheta\u002Fblob\u002Fmain\u002Ftest\u002Fcast-fixtures\u002Fcodex-cli\u002Fskills\u002Fagents-path\u002F.agents\u002Fskills\u002Flint-check\u002FSKILL.md",[],[]]