[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74K78THGJG583WA8GP7NJMT":3,"skill-same:01M74K78THGJG583WA8GP7NJMT":46},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M74K78THGJG583WA8GP7NJMT","propagate-ui-pattern",null,"Acauhi99\u002Fopencode-agent-system","Acauhi99","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F109399110?v=4","01M74JTV4VH2YAER6TABE78RKF","Acauhi","01M74JTV5CXNC5DEV2XR5SBFG3",1,"MIT","https:\u002F\u002Fgithub.com\u002FAcauhi99\u002Fopencode-agent-system\u002Fblob\u002Fmain\u002Fskills\u002Fpropagate-ui-pattern\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: propagate-ui-pattern\ndescription: When the user requests a UX-pattern change (keyboard, focus, dismiss, or feedback-display behavior) on a single instance of a recurring component family (Modal, Dialog, Drawer, Form, Card, Toast), grep for sibling instances, present them per-instance, and — when 3+ approved siblings would share the same inline implementation — propose extracting a shared hook\u002Fwrapper before applying. Also propagates the visual affordance (kbd hint, aria-keyshortcuts, footer hotkey line) alongside the behavior. Trigger phrases — \"add a hotkey to this modal\", \"Cmd+Enter should submit\", \"make X close on escape\", \"autofocus this input\", \"make sure all my modals do X\", \"every form should Y\", \"consolidate this pattern\", \"dedupe this across components\", \"show the hotkey hint\", \"add ⌘↵ badge\", \"make the shortcut discoverable\". Skip for: one-off visual tweaks scoped to a single component, new features (use add-feature), bug fixes (use fix-bug), changes the user has explicitly scoped to one component (\"only in this one\").\nlicense: MIT\ncompatibility: opencode\nmetadata:\n  source: \"Adapted from AgentSystemLabs\u002Fcore (MIT)\"\n  requires_codegraph: true\n---\n\n> **Tool mapping (OpenCode):** This skill uses:\n> - `question` tool for user prompts (not `AskUserQuestion`)\n> - `task` tool for subagents (not `Agent` or `Task` subagent syntax)\n> - `skill({ name: \"...\" })` to load other skills (not `Skill(skill=\"...\", args=\"...\")`)\n> - `codegraph_explore`, `codegraph_search`, `codegraph_context` for codebase exploration (preferred)\n> - `todowrite` for phase\u002Fprogress tracking\n> - `grep`, `glob`, `read`, `bash` as fallback when `.codegraph\u002F` not initialized\n>\n> **Context rule:** This skill supersedes any prior skill instructions. Follow ONLY these instructions now. Read the user's goal and any mode\u002Finclude\u002Fskip from the conversation context.\n\n# UX Consistency\n\nSingle-instance UX changes silently create drift. The user adds Cmd+Enter to one modal; six other modals stay inconsistent until someone notices months later. This skill catches the propagation question *before* the diff lands.\n\nRead `mode=`, `include=`, `skip=` from conversation context. Default to production if not specified.\n\n## The flow\n\n1. **Classify the change.** Is it a UX *pattern* (a behavior that users expect to be uniform across similar components) or a one-off (a tweak specific to this component's role)?\n2. **Identify the component family.** What's the recurring type — Modal, Dialog, Form, Drawer, Card, Toast, Popover?\n3. **Enumerate siblings.** Grep the codebase for other instances of that family.\n4. **Present the list with per-instance recommendations.** For each sibling, mark *propagate* \u002F *skip* \u002F *ask* and give a one-line reason.\n5. **Get per-instance approval.** Apply only to the ones the user confirms.\n\nDo not skip steps 3–5. The whole point of the skill is the sibling sweep — implementing the requested change without it defeats the purpose.\n\nUse `todowrite` to track progress through each step.\n\n## Step 1 — Is this a UX pattern?\n\n**Classify before enumerating.** Misclassifying a one-off as a pattern leaks role-specific behavior across the family (e.g. propagating a destructive-modal hotkey to benign modals); misclassifying a pattern as a one-off creates the silent drift this skill exists to prevent.\n\nPatterns to propagate by default:\n- Keyboard shortcuts on dismissable surfaces (Escape closes, Cmd\u002FCtrl+Enter submits)\n- Autofocus on the primary input when a modal\u002Fdialog opens\n- Click-outside-to-close on non-destructive overlays\n- Focus return to trigger element on close\n- Loading state placement (button vs. overlay)\n- Form submit-on-Enter for single-field forms\n\nLikely **one-offs** (don't propagate without asking):\n- A hotkey tied to that component's specific action (e.g. \"G then I\" for a Goto-Item picker)\n- Behavior tied to a unique business rule (\"require typing the project name to delete\")\n- Changes the user has already scoped (\"just in NewAgentDialog\")\n\nIf unsure, classify as pattern and let the per-instance gate filter false positives.\n\n## Step 2 — Find the family\n\nPick the import or component name that defines the family, not the file path. Prefer `codegraph_search` to find the component definition and `codegraph_callers` to enumerate consumers. If `.codegraph\u002F` not initialized, mention user can run `codegraph init -i`, then fall back to `grep` + `glob`:\n- If the project has a shared primitive (`\u003CModal>`, `\u003CDialog>` from a UI lib), grep for its consumers.\n- If components are ad-hoc (each file rolls its own dialog div), grep by structural marker — `role=\"dialog\"`, `position: fixed.*z-`, `onKeyDown.*Escape` — since there's no import to anchor on.\n\n**Zero siblings:** If grep returns no other instances, surface \"single instance, no propagation needed\" before applying — don't proceed silently. The user invoked this skill expecting a sweep; confirming the sweep ran (and was empty) keeps trust.\n\n**Ambiguous family:** If multiple plausible family roots exist (e.g. `\u003CModal>` + `\u003CDialog>` + `\u003CSheet>`, or hand-rolled dialog divs alongside the shared primitive), grep all of them and group results by root. Present the groups and let the user clarify scope via `question` tool before per-instance approval — don't pick a root and silently exclude the others.\n\n## Step 3 — Present, don't auto-apply\n\nOutput format:\n\n```\nFound N siblings of \u003CComponent>. Recommend per-instance:\n\n1. src\u002Fcomponents\u002Fviews\u002FNewAgentDialog.tsx     — APPLY (target of original request)\n2. src\u002Fcomponents\u002Fviews\u002FProjectDialog.tsx      — APPLY (same submit-form pattern, no destructive action)\n3. src\u002Fcomponents\u002Fviews\u002FDeleteConfirmModal.tsx — SKIP (destructive; submit-on-Enter is dangerous)\n4. src\u002Fcomponents\u002Fui\u002FModal.tsx                 — N\u002FA (the primitive itself, no submit handler)\n5. src\u002Fcomponents\u002Fviews\u002FProjectPicker.tsx      — ASK (unclear: it's a picker, not a form)\n\nApprove which? (e.g. \"1,2,5\" or \"all except 3\")\n```\n\nSame shape works for non-modal families. Example for `\u003CForm>`:\n\n```\nFound 4 \u003CForm> consumers. Recommend per-instance:\n\n1. src\u002Fcomponents\u002Fviews\u002FSignupForm.tsx       — APPLY (single-input email field; Enter to submit fits)\n2. src\u002Fcomponents\u002Fviews\u002FCommentForm.tsx      — APPLY (textarea + send; Cmd+Enter is the standard pairing)\n3. src\u002Fcomponents\u002Fviews\u002FSearchForm.tsx       — SKIP (Enter already triggers live search; binding submit would double-fire)\n4. src\u002Fcomponents\u002Fviews\u002FMultiStepForm.tsx    — ASK (Enter could mean \"next step\" or \"final submit\" — clarify with user)\n```\n\nSurface the asymmetry reasons explicitly — destructive vs. benign, form vs. picker, owns-its-state vs. controlled. Those are the cases where automatic propagation breaks UX.\n\nUse the `question` tool to present the list and get per-instance approval from the user.\n\n## Step 4 — Extract before applying (when 3+ siblings will share the same code)\n\nIf the approved list has **3 or more siblings** that would each get the same inline implementation (same `useEffect` keydown handler, same `onKeyDown` block, same focus-trap setup), stop and propose extraction *before* writing any of the per-site changes. Two or fewer → just inline it; the abstraction isn't worth its own seam yet.\n\n**Read all approved sites before designing the seam.** Note each site's ref shape, event source, and any local quirks (debounce, conditional skip, alt keybinding). The hook\u002Fwrapper signature must fit the *union* of these needs — not the first site you opened. Skipping this step bakes site-1's quirks into the abstraction and forces every other site into adapter code.\n\nPick the seam by what the behavior needs:\n\n- **Pure behavior, no markup** (keyboard shortcut, focus return, click-outside) → custom hook: `useSubmitOnCmdEnter(formRef, onSubmit)`, `useEscapeToClose(onClose)`.\n- **Behavior + wrapper element** (focus trap, scroll lock) → wrapper component or extend the shared primitive itself.\n- **Behavior tied to a specific primitive's lifecycle** (autofocus on Dialog open) → push into the primitive's props (`\u003CDialog autoFocusFirstInput>`).\n\nPresent the proposal in one block:\n\n```\n3 sites approved (NewAgentDialog, ProjectDialog, EditTagDialog) — same Cmd+Enter handler each.\nProposed seam: `useSubmitOnCmdEnter(formRef, onSubmit)` in src\u002Fhooks\u002F.\nEach call site loses ~6 lines; new hook is ~12 lines.\nProceed with extraction, or inline at each site? (e\u002Fi)\n```\n\nUse the `question` tool to present the extraction proposal. If the user picks extraction, write the hook\u002Fwrapper first, then migrate sites one-by-one, then verify the inline duplicates are gone (grep for the keydown literal). If the user picks inline, apply directly.\n\n## Step 5 — Apply (behavior + its visual affordance)\n\nA UX pattern usually has two halves: the **behavior** (the keydown handler, the focus call, the dismiss) and the **affordance** (the `\u003Ckbd>⌘↵\u003C\u002Fkbd>` hint in the button, the autofocus ring, the \"Esc to close\" footnote). When you propagate the behavior, propagate the affordance too — otherwise siblings have the feature but no one discovers it.\n\nBefore writing the diff, check the original site (or the most-polished sibling) for:\n\n- A `\u003Ckbd>` \u002F `\u003CShortcut>` \u002F hotkey-hint element inside the primary button\n- An aria-keyshortcuts attribute\n- A footer line like \"Press Esc to close\" or \"⌘K to search\"\n- A focus ring or visual cue tied to the behavior\n\nReplicate whichever exist. If none exist on any site, surface that as a one-line flag at the end (\"none of these modals show the hotkey to the user — worth adding?\") rather than fixing it unilaterally.\n\nApply changes (extracted seam + migrated sites, or inline edits) in one batch. For each ASK that the user approved, briefly confirm the variant fits (e.g. some modals may need a different keybinding because Enter already does something).\n\n## NEVER\n\n- **NEVER apply the requested change to siblings without asking**\n  **Instead:** Present the list, get per-instance approval, then apply.\n  **Why:** Sibling asymmetry is often intentional (destructive modals, role-specific dialogs). Auto-propagating turns a UX win into a regression that's hard to spot in review.\n\n- **NEVER skip the sibling sweep on the assumption \"the user only meant this one\"**\n  **Instead:** Run the grep anyway. If siblings exist, present them. The user can answer \"just this one\" in two seconds.\n  **Why:** The user usually doesn't know how many siblings exist — that's the whole reason this skill is needed. Trusting their initial scope is how drift happens.\n\n- **NEVER include the primitive (`\u003CModal>`, `\u003CDialog>` base component) in the apply list**\n  **Instead:** Mark it N\u002FA and apply only to consumers — unless the change genuinely belongs in the primitive (e.g. a focus trap that every consumer should inherit).\n  **Why:** Pushing consumer-specific behavior into the base component leaks role-specific logic into shared code and forces every other consumer to opt out.\n\n- **NEVER present the sibling list without per-instance reasons**\n  **Instead:** Each row gets APPLY\u002FSKIP\u002FASK plus a one-line reason.\n  **Why:** A bare list forces the user to re-derive the asymmetry analysis for every row. The reason column is the value the skill provides.\n\n- **NEVER expand scope to other UX changes you noticed during the sweep**\n  **Instead:** Mention them in one line at the end (\"noticed ProjectDialog also lacks autofocus — flag for later?\") and stop.\n  **Why:** The user invoked a specific change. Bundling other improvements turns a focused diff into a sprawling one and obscures the requested change in review.\n\n- **NEVER run this skill for changes the user has already scoped explicitly**\n  **Instead:** If the user said \"only in NewAgentDialog\" or \"just this modal\", skip the sweep and implement directly.\n  **Why:** Re-litigating an already-scoped decision wastes the user's time and trains them that the skill is noise.\n\n- **NEVER extract a shared hook\u002Fwrapper for 1–2 sites**\n  **Instead:** Inline at each site. Revisit extraction when a 3rd site joins.\n  **Why:** A hook used twice costs more in indirection than it saves in lines. The Rule of Three exists because abstractions designed from two examples usually mis-fit the third.\n\n- **NEVER inline the same handler at 3+ sites without proposing extraction**\n  **Instead:** Stop at Step 4, propose the seam, get user's e\u002Fi choice, then proceed.\n  **Why:** Silently fanning out duplicate behavior is the exact drift this skill was extended to prevent — finishing the propagation without the extraction question defeats half its purpose.\n\n- **NEVER propagate a behavior without its visual affordance**\n  **Instead:** Copy the `\u003Ckbd>` hint, aria-keyshortcuts, or footer line from the source site. If the source has no affordance either, flag it for the user rather than silently shipping the gap.\n  **Why:** A hotkey nobody can see is a hotkey nobody uses. The button label and the keyboard handler are halves of one pattern — splitting them ships the cost (extra code, extra surface) without the benefit (discoverability).\n\n- **NEVER design the seam from the first site alone**\n  **Instead:** Read all approved sites first; let the union of their needs shape the hook\u002Fwrapper signature.\n  **Why:** Seams designed from one example bake in that example's quirks (a specific ref shape, a specific event source) and force later sites into awkward adapter code or opt-outs.\n","> **Tool mapping (OpenCode):** This skill uses:\n> - `question` tool for user prompts (not `AskUserQuestion`)\n> - `task` tool for subagents (not `Agent` or `Task` subagent syntax)\n> - `skill({ name: \"...\" })` to load other skills (not `Skill(skill=\"...\", args=\"...\")`)\n> - `codegraph_explore`, `codegraph_search`, `codegraph_context` for codebase exploration (preferred)\n> - `todowrite` for phase\u002Fprogress tracking\n> - `grep`, `glob`, `read`, `bash` as fallback when `.codegraph\u002F` not initialized\n>\n> **Context rule:** This skill supersedes any prior skill instructions. Follow ONLY these instructions now. Read the user's goal and any mode\u002Finclude\u002Fskip from the conversation context.\n\n# UX Consistency\n\nSingle-instance UX changes silently create drift. The user adds Cmd+Enter to one modal; six other modals stay inconsistent until someone notices months later. This skill catches the propagation question *before* the diff lands.\n\nRead `mode=`, `include=`, `skip=` from conversation context. Default to production if not specified.\n\n## The flow\n\n1. **Classify the change.** Is it a UX *pattern* (a behavior that users expect to be uniform across similar components) or a one-off (a tweak specific to this component's role)?\n2. **Identify the component family.** What's the recurring type — Modal, Dialog, Form, Drawer, Card, Toast, Popover?\n3. **Enumerate siblings.** Grep the codebase for other instances of that family.\n4. **Present the list with per-instance recommendations.** For each sibling, mark *propagate* \u002F *skip* \u002F *ask* and give a one-line reason.\n5. **Get per-instance approval.** Apply only to the ones the user confirms.\n\nDo not skip steps 3–5. The whole point of the skill is the sibling sweep — implementing the requested change without it defeats the purpose.\n\nUse `todowrite` to track progress through each step.\n\n## Step 1 — Is this a UX pattern?\n\n**Classify before enumerating.** Misclassifying a one-off as a pattern leaks role-specific behavior across the family (e.g. propagating a destructive-modal hotkey to benign modals); misclassifying a pattern as a one-off creates the silent drift this skill exists to prevent.\n\nPatterns to propagate by default:\n- Keyboard shortcuts on dismissable surfaces (Escape closes, Cmd\u002FCtrl+Enter submits)\n- Autofocus on the primary input when a modal\u002Fdialog opens\n- Click-outside-to-close on non-destructive overlays\n- Focus return to trigger element on close\n- Loading state placement (button vs. overlay)\n- Form submit-on-Enter for single-field forms\n\nLikely **one-offs** (don't propagate without asking):\n- A hotkey tied to that component's specific action (e.g. \"G then I\" for a Goto-Item picker)\n- Behavior tied to a unique business rule (\"require typing the project name to delete\")\n- Changes the user has already scoped (\"just in NewAgentDialog\")\n\nIf unsure, classify as pattern and let the per-instance gate filter false positives.\n\n## Step 2 — Find the family\n\nPick the import or component name that defines the family, not the file path. Prefer `codegraph_search` to find the component definition and `codegraph_callers` to enumerate consumers. If `.codegraph\u002F` not initialized, mention user can run `codegraph init -i`, then fall back to `grep` + `glob`:\n- If the project has a shared primitive (`\u003CModal>`, `\u003CDialog>` from a UI lib), grep for its consumers.\n- If components are ad-hoc (each file rolls its own dialog div), grep by structural marker — `role=\"dialog\"`, `position: fixed.*z-`, `onKeyDown.*Escape` — since there's no import to anchor on.\n\n**Zero siblings:** If grep returns no other instances, surface \"single instance, no propagation needed\" before applying — don't proceed silently. The user invoked this skill expecting a sweep; confirming the sweep ran (and was empty) keeps trust.\n\n**Ambiguous family:** If multiple plausible family roots exist (e.g. `\u003CModal>` + `\u003CDialog>` + `\u003CSheet>`, or hand-rolled dialog divs alongside the shared primitive), grep all of them and group results by root. Present the groups and let the user clarify scope via `question` tool before per-instance approval — don't pick a root and silently exclude the others.\n\n## Step 3 — Present, don't auto-apply\n\nOutput format:\n\n```\nFound N siblings of \u003CComponent>. Recommend per-instance:\n\n1. src\u002Fcomponents\u002Fviews\u002FNewAgentDialog.tsx     — APPLY (target of original request)\n2. src\u002Fcomponents\u002Fviews\u002FProjectDialog.tsx      — APPLY (same submit-form pattern, no destructive action)\n3. src\u002Fcomponents\u002Fviews\u002FDeleteConfirmModal.tsx — SKIP (destructive; submit-on-Enter is dangerous)\n4. src\u002Fcomponents\u002Fui\u002FModal.tsx                 — N\u002FA (the primitive itself, no submit handler)\n5. src\u002Fcomponents\u002Fviews\u002FProjectPicker.tsx      — ASK (unclear: it's a picker, not a form)\n\nApprove which? (e.g. \"1,2,5\" or \"all except 3\")\n```\n\nSame shape works for non-modal families. Example for `\u003CForm>`:\n\n```\nFound 4 \u003CForm> consumers. Recommend per-instance:\n\n1. src\u002Fcomponents\u002Fviews\u002FSignupForm.tsx       — APPLY (single-input email field; Enter to submit fits)\n2. src\u002Fcomponents\u002Fviews\u002FCommentForm.tsx      — APPLY (textarea + send; Cmd+Enter is the standard pairing)\n3. src\u002Fcomponents\u002Fviews\u002FSearchForm.tsx       — SKIP (Enter already triggers live search; binding submit would double-fire)\n4. src\u002Fcomponents\u002Fviews\u002FMultiStepForm.tsx    — ASK (Enter could mean \"next step\" or \"final submit\" — clarify with user)\n```\n\nSurface the asymmetry reasons explicitly — destructive vs. benign, form vs. picker, owns-its-state vs. controlled. Those are the cases where automatic propagation breaks UX.\n\nUse the `question` tool to present the list and get per-instance approval from the user.\n\n## Step 4 — Extract before applying (when 3+ siblings will share the same code)\n\nIf the approved list has **3 or more siblings** that would each get the same inline implementation (same `useEffect` keydown handler, same `onKeyDown` block, same focus-trap setup), stop and propose extraction *before* writing any of the per-site changes. Two or fewer → just inline it; the abstraction isn't worth its own seam yet.\n\n**Read all approved sites before designing the seam.** Note each site's ref shape, event source, and any local quirks (debounce, conditional skip, alt keybinding). The hook\u002Fwrapper signature must fit the *union* of these needs — not the first site you opened. Skipping this step bakes site-1's quirks into the abstraction and forces every other site into adapter code.\n\nPick the seam by what the behavior needs:\n\n- **Pure behavior, no markup** (keyboard shortcut, focus return, click-outside) → custom hook: `useSubmitOnCmdEnter(formRef, onSubmit)`, `useEscapeToClose(onClose)`.\n- **Behavior + wrapper element** (focus trap, scroll lock) → wrapper component or extend the shared primitive itself.\n- **Behavior tied to a specific primitive's lifecycle** (autofocus on Dialog open) → push into the primitive's props (`\u003CDialog autoFocusFirstInput>`).\n\nPresent the proposal in one block:\n\n```\n3 sites approved (NewAgentDialog, ProjectDialog, EditTagDialog) — same Cmd+Enter handler each.\nProposed seam: `useSubmitOnCmdEnter(formRef, onSubmit)` in src\u002Fhooks\u002F.\nEach call site loses ~6 lines; new hook is ~12 lines.\nProceed with extraction, or inline at each site? (e\u002Fi)\n```\n\nUse the `question` tool to present the extraction proposal. If the user picks extraction, write the hook\u002Fwrapper first, then migrate sites one-by-one, then verify the inline duplicates are gone (grep for the keydown literal). If the user picks inline, apply directly.\n\n## Step 5 — Apply (behavior + its visual affordance)\n\nA UX pattern usually has two halves: the **behavior** (the keydown handler, the focus call, the dismiss) and the **affordance** (the `\u003Ckbd>⌘↵\u003C\u002Fkbd>` hint in the button, the autofocus ring, the \"Esc to close\" footnote). When you propagate the behavior, propagate the affordance too — otherwise siblings have the feature but no one discovers it.\n\nBefore writing the diff, check the original site (or the most-polished sibling) for:\n\n- A `\u003Ckbd>` \u002F `\u003CShortcut>` \u002F hotkey-hint element inside the primary button\n- An aria-keyshortcuts attribute\n- A footer line like \"Press Esc to close\" or \"⌘K to search\"\n- A focus ring or visual cue tied to the behavior\n\nReplicate whichever exist. If none exist on any site, surface that as a one-line flag at the end (\"none of these modals show the hotkey to the user — worth adding?\") rather than fixing it unilaterally.\n\nApply changes (extracted seam + migrated sites, or inline edits) in one batch. For each ASK that the user approved, briefly confirm the variant fits (e.g. some modals may need a different keybinding because Enter already does something).\n\n## NEVER\n\n- **NEVER apply the requested change to siblings without asking**\n  **Instead:** Present the list, get per-instance approval, then apply.\n  **Why:** Sibling asymmetry is often intentional (destructive modals, role-specific dialogs). Auto-propagating turns a UX win into a regression that's hard to spot in review.\n\n- **NEVER skip the sibling sweep on the assumption \"the user only meant this one\"**\n  **Instead:** Run the grep anyway. If siblings exist, present them. The user can answer \"just this one\" in two seconds.\n  **Why:** The user usually doesn't know how many siblings exist — that's the whole reason this skill is needed. Trusting their initial scope is how drift happens.\n\n- **NEVER include the primitive (`\u003CModal>`, `\u003CDialog>` base component) in the apply list**\n  **Instead:** Mark it N\u002FA and apply only to consumers — unless the change genuinely belongs in the primitive (e.g. a focus trap that every consumer should inherit).\n  **Why:** Pushing consumer-specific behavior into the base component leaks role-specific logic into shared code and forces every other consumer to opt out.\n\n- **NEVER present the sibling list without per-instance reasons**\n  **Instead:** Each row gets APPLY\u002FSKIP\u002FASK plus a one-line reason.\n  **Why:** A bare list forces the user to re-derive the asymmetry analysis for every row. The reason column is the value the skill provides.\n\n- **NEVER expand scope to other UX changes you noticed during the sweep**\n  **Instead:** Mention them in one line at the end (\"noticed ProjectDialog also lacks autofocus — flag for later?\") and stop.\n  **Why:** The user invoked a specific change. Bundling other improvements turns a focused diff into a sprawling one and obscures the requested change in review.\n\n- **NEVER run this skill for changes the user has already scoped explicitly**\n  **Instead:** If the user said \"only in NewAgentDialog\" or \"just this modal\", skip the sweep and implement directly.\n  **Why:** Re-litigating an already-scoped decision wastes the user's time and trains them that the skill is noise.\n\n- **NEVER extract a shared hook\u002Fwrapper for 1–2 sites**\n  **Instead:** Inline at each site. Revisit extraction when a 3rd site joins.\n  **Why:** A hook used twice costs more in indirection than it saves in lines. The Rule of Three exists because abstractions designed from two examples usually mis-fit the third.\n\n- **NEVER inline the same handler at 3+ sites without proposing extraction**\n  **Instead:** Stop at Step 4, propose the seam, get user's e\u002Fi choice, then proceed.\n  **Why:** Silently fanning out duplicate behavior is the exact drift this skill was extended to prevent — finishing the propagation without the extraction question defeats half its purpose.\n\n- **NEVER propagate a behavior without its visual affordance**\n  **Instead:** Copy the `\u003Ckbd>` hint, aria-keyshortcuts, or footer line from the source site. If the source has no affordance either, flag it for the user rather than silently shipping the gap.\n  **Why:** A hotkey nobody can see is a hotkey nobody uses. The button label and the keyboard handler are halves of one pattern — splitting them ships the cost (extra code, extra surface) without the benefit (discoverability).\n\n- **NEVER design the seam from the first site alone**\n  **Instead:** Read all approved sites first; let the union of their needs shape the hook\u002Fwrapper signature.\n  **Why:** Seams designed from one example bake in that example's quirks (a specific ref shape, a specific event source) and force later sites into awkward adapter code or opt-outs.\n",{},"main","a40966cd3b7323e693a9fd665ab9c720d8bf9634","skills\u002Fpropagate-ui-pattern",0,"https:\u002F\u002Fgithub.com\u002FAcauhi99\u002Fopencode-agent-system","https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@acauhi\u002Fopencode-agent-system","https:\u002F\u002Fgithub.com\u002FAcauhi99","@github Backend Engineer","2026-07-07 22:24:45",{"source":7,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add Acauhi99\u002Fopencode-agent-system --skill propagate-ui-pattern",{"tool":38,"command":39},"bunx","bunx skills add Acauhi99\u002Fopencode-agent-system --skill propagate-ui-pattern",{"tool":41,"command":42},"pnpm","pnpm dlx skills add Acauhi99\u002Fopencode-agent-system --skill propagate-ui-pattern","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FAcauhi99\u002Fopencode-agent-system\u002Fblob\u002Fmain\u002Fskills\u002Fpropagate-ui-pattern\u002FSKILL.md",true,[],[47,53,59,66,72,79],{"skillNo":48,"name":49,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":18},"01M74KEHKFCSF2H23R44MR5DN8","write-tests","https:\u002F\u002Fgithub.com\u002FAcauhi99\u002Fopencode-agent-system\u002Fblob\u002Fmain\u002Fskills\u002Fwrite-tests\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":18},"01M74KEEXZW2185BZ3VJCM7AF6","update-changelog","https:\u002F\u002Fgithub.com\u002FAcauhi99\u002Fopencode-agent-system\u002Fblob\u002Fmain\u002Fskills\u002Fupdate-changelog\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":18},"01M74KDVH470SS6WPS8WK3VSW3","triage","Move issues and external PRs through a state machine of triage roles — categorise, verify, grill if needed, and write agent-ready briefs.","https:\u002F\u002Fgithub.com\u002FAcauhi99\u002Fopencode-agent-system\u002Fblob\u002Fmain\u002Fskills\u002Ftriage\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M74KDKGNY0MQXQ0ZHAGYSJJ4","to-prd","https:\u002F\u002Fgithub.com\u002FAcauhi99\u002Fopencode-agent-system\u002Fblob\u002Fmain\u002Fskills\u002Fto-prd\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M74KD9YN0K59GWMWDT5YHBKY","to-issues","Break a plan, spec, or PRD into independently-grabbable issues on the project issue tracker using tracer-bullet vertical slices.","https:\u002F\u002Fgithub.com\u002FAcauhi99\u002Fopencode-agent-system\u002Fblob\u002Fmain\u002Fskills\u002Fto-issues\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":18},"01M74KD14VJAJZ8E4ENN0KP9GV","testing-plan","https:\u002F\u002Fgithub.com\u002FAcauhi99\u002Fopencode-agent-system\u002Fblob\u002Fmain\u002Fskills\u002Ftesting-plan\u002FSKILL.md",[],[]]