formax-surface-reset-workflow
Use when changing REPL clear/reset/resume/surface behavior (onClearTerminal, transcriptSeq remount, Ink Static paths, Ctrl+O/Ctrl+E transitions). Enforces single-owner reset transaction and prevents black-screen/flicker/duplicate-row regressions.
适合你,如果需要在REPL中管理终端重置和恢复流程
/ 通过 npx 安装 校验哈希
npx oh-my-skill add yusifeng/formax/formax-surface-reset-workflow/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- yusifeng/formax/formax-surface-reset-workflow/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify yusifeng/formax/formax-surface-reset-workflow安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
192GitHub stars
~670上下文体积 · 单文件
索引托管
怎么用
商店整理自技能原文 · 版本 5a48573 · 表述以原文为准它做什么
装上后,Claude在处理终端清除、重置、恢复或界面切换时,会强制使用单一所有者的重置流程,避免出现黑屏、闪烁或重复行等显示问题。
什么时候触发
当你修改终端的清除、重置、恢复或界面切换相关代码时触发,例如涉及/resume、/clear命令或Ctrl+O/Ctrl+E切换等。
装好后可以这样说
技能会统一重置流程。
技能处理界面切换稳定性。
技能强制单一所有者。
技能原文 SKILL.md
Formax Surface Reset Workflow
Goal
Use this skill when changing REPL clear/reset/resume behavior or any transcript surface transition that can remount Static.
Read First
docs/contracts/transcript-surface-contract.mddocs/runbooks/repl-surface-debugging.mddocs/contracts/invariants.mdwhen ownership or sequencing is unclear
These docs are canonical. If stable surface behavior changes, update them before or with code.
Code Map
- Reset helpers / queue owner:
replaceTranscriptqueueTranscriptSurfaceReplaceresetTranscriptSurfacequeueTranscriptSurfaceResetsurfaceOpQueueRef- High-risk flows:
packages/core/src/features/repl/controller/ui/packages/core/src/features/repl/controller/session/packages/core/src/features/repl/useReplController.tspackages/core/src/screens/repl/packages/core/src/runtime/bootstrap/runLegacyCli.tsx- Call sites to watch:
onClearTerminalclearTerminalresetInkStaticOutputForStdouttranscriptSeqremount behavior inReplTranscript/ExpandedReplTranscript
Trigger Conditions
Use this skill whenever the change touches any of:
/resume,/clear, compact boundary transitions- Ctrl+O / Ctrl+E transcript view switches
onClearTerminal,clearTerminal, orresetInkStaticOutputForStdoutreplaceTranscript,queueTranscriptSurfaceReplace,resetTranscriptSurface,queueTranscriptSurfaceReset, orsurfaceOpQueueRef- files under
packages/core/src/features/repl/controller/ui/,packages/core/src/features/repl/controller/session/,packages/core/src/features/repl/useReplController.ts,packages/core/src/screens/repl/, orpackages/core/src/runtime/bootstrap/runLegacyCli.tsx
Minimal Workflow
- Identify the exact path (
/resume,/clear, Ctrl+O / Ctrl+E, compact boundary, etc.). - Route it through
replaceTranscript/resetTranscriptSurfaceinstead of local clear / remount sequencing. - Treat reset as one transaction, not scattered side effects.
- Add or extend regression tests for ordering and surface reset ownership.
- Run the minimum regression set below and at least one real surface smoke path.
Minimum Regression
bun run test -- packages/core/src/features/repl/controller/ui/surfaceReset.test.tsbun run test -- packages/core/src/features/repl/useReplController.test.tsx -t "resume|clear|compact"bun run test -- packages/core/src/screens/repl/surfaceSmoke.test.tsxbun run type-check- If change touches compact / expanded toggles broadly:
bun run test:surface-screen-model
Guardrails
- Keep one surface owner; do not add a second independent clear / remount path.
- Do not stack
replInstance.clear()and ANSI clear in legacy paths unless ownership is explicit and serialized. - Do not accept a Vitest-only fix without running a real surface smoke path.
References
docs/pitfalls/summary.mdsections covering/clear, compact + Ctrl+O, and resume black-screen regressionsdocs/pitfalls/repl-transcript-surface-handoff-pitfall.mddocs/pitfalls/repl-transcript-static-rootcause.md
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →
评论
登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。
…