[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78FDSTTFFZ2M38E75C21N9G":3,"skill-same:01M78FDSTTFFZ2M38E75C21N9G":47},{"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":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M78FDSTTFFZ2M38E75C21N9G","cross-platform-terminal",null,"Behaviour of a terminal application across Linux, macOS and Windows — ConPTY, shell discovery, PATH lookup, path separators, and capability detection without sniffing.","poppyTM\u002Foride","poppyTM","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F339400917?v=4","01M78F6YNKFR5S5JQR27X9F09Z","Poppy Team","01M78F6YP8ZZTRES9X8Q2ZAD21",1,"MIT","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fcross-platform-terminal\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: cross-platform-terminal\ndescription: Behaviour of a terminal application across Linux, macOS and Windows — ConPTY, shell discovery, PATH lookup, path separators, and capability detection without sniffing.\n---\n\n# Cross-Platform Terminal\n\n## Purpose\n\nAn editor that works only on Linux is not the product. The differences that bite\nare small, unglamorous, and invisible until someone on Windows runs it.\n\n## Process and shell\n\n- Unix PTY and Windows ConPTY are different mechanisms behind one interface.\n- The shell is discovered, not assumed: `$SHELL`, then a search order per\n  platform. `\u002Fbin\u002Fsh` is not a fallback on Windows.\n- Argument separation is structural. Never build a command string that a shell\n  parses — that is an injection boundary and a quoting bug in one.\n- A program is executable if the platform says so: the execute bit on Unix, the\n  extension set on Windows. One check does not cover both.\n\n## Paths\n\n- Separators are normalised where they cross a boundary and nowhere else. A path\n  used as a key keeps its platform form, or two spellings of one file become two\n  entries.\n- Comparisons that matter (session identity, document identity) use the\n  canonical form, and canonicalisation must survive symlinks — on macOS `\u002Ftmp`\n  and `\u002Fvar` are symlinks, so a path can differ before and after.\n- Windows has path lengths, reserved names and UNC prefixes. Assume only what the\n  standard library guarantees.\n- A path from the user may contain any byte. It is never interpolated into a\n  command, and never assumed to be valid UTF-8.\n\n## Capability detection\n\nDetect by asking the terminal, not by guessing from environment variables.\n`TERM`, `TERM_PROGRAM`, `KITTY_WINDOW_ID` and friends are a heuristic that goes\nstale; the terminal protocols report capabilities directly. Where a heuristic is\nunavoidable, it is one function, tested, and it fails toward the conservative\nanswer.\n\n## Degradation\n\nEvery capability has a fallback that keeps the product usable:\n\n| Capability | Fallback |\n|---|---|\n| True colour | 256, then 16, then none |\n| Unicode box drawing | ASCII `+ - \\|` |\n| Mouse | Keyboard equivalents that remain complete |\n| Graphics protocol | A text placeholder with the image's dimensions |\n| Clipboard | The editor's internal register |\n\nA missing capability changes how something looks, never whether it can be done.\n\n## Verification\n\n- Tests must not write to the process environment to simulate a terminal. Inject\n  the capability. A test that mutates global state is a flaky test under\n  parallelism — this repository already has one, ledger item B16.\n- Path and argument construction is pure and tested without a filesystem.\n","# Cross-Platform Terminal\n\n## Purpose\n\nAn editor that works only on Linux is not the product. The differences that bite\nare small, unglamorous, and invisible until someone on Windows runs it.\n\n## Process and shell\n\n- Unix PTY and Windows ConPTY are different mechanisms behind one interface.\n- The shell is discovered, not assumed: `$SHELL`, then a search order per\n  platform. `\u002Fbin\u002Fsh` is not a fallback on Windows.\n- Argument separation is structural. Never build a command string that a shell\n  parses — that is an injection boundary and a quoting bug in one.\n- A program is executable if the platform says so: the execute bit on Unix, the\n  extension set on Windows. One check does not cover both.\n\n## Paths\n\n- Separators are normalised where they cross a boundary and nowhere else. A path\n  used as a key keeps its platform form, or two spellings of one file become two\n  entries.\n- Comparisons that matter (session identity, document identity) use the\n  canonical form, and canonicalisation must survive symlinks — on macOS `\u002Ftmp`\n  and `\u002Fvar` are symlinks, so a path can differ before and after.\n- Windows has path lengths, reserved names and UNC prefixes. Assume only what the\n  standard library guarantees.\n- A path from the user may contain any byte. It is never interpolated into a\n  command, and never assumed to be valid UTF-8.\n\n## Capability detection\n\nDetect by asking the terminal, not by guessing from environment variables.\n`TERM`, `TERM_PROGRAM`, `KITTY_WINDOW_ID` and friends are a heuristic that goes\nstale; the terminal protocols report capabilities directly. Where a heuristic is\nunavoidable, it is one function, tested, and it fails toward the conservative\nanswer.\n\n## Degradation\n\nEvery capability has a fallback that keeps the product usable:\n\n| Capability | Fallback |\n|---|---|\n| True colour | 256, then 16, then none |\n| Unicode box drawing | ASCII `+ - \\|` |\n| Mouse | Keyboard equivalents that remain complete |\n| Graphics protocol | A text placeholder with the image's dimensions |\n| Clipboard | The editor's internal register |\n\nA missing capability changes how something looks, never whether it can be done.\n\n## Verification\n\n- Tests must not write to the process environment to simulate a terminal. Inject\n  the capability. A test that mutates global state is a flaky test under\n  parallelism — this repository already has one, ledger item B16.\n- Path and argument construction is pure and tested without a filesystem.\n",{"name":5,"description":7},"main","1cd515630b8ceb57777d466bee4970fe7c2e30e0",".ai\u002Fskills\u002Fcross-platform-terminal",0,"https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride","https:\u002F\u002Fgithub.com\u002FpoppyTM","https:\u002F\u002Fpoppy.lat","Construímos linguagens de programação e ferramentas para quem lê código com o mesmo cuidado com que escreve.","2026-09-30 10:15:52",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add poppyTM\u002Foride --skill cross-platform-terminal",{"tool":39,"command":40},"bunx","bunx skills add poppyTM\u002Foride --skill cross-platform-terminal",{"tool":42,"command":43},"pnpm","pnpm dlx skills add poppyTM\u002Foride --skill cross-platform-terminal","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fcross-platform-terminal\u002FSKILL.md",true,[],[48,54,60,67,74,81],{"skillNo":49,"name":50,"nameZh":6,"description":6,"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},"01M78FHQN254KEH0DETXT5JM29","zoom-reflow","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fzoom-reflow\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M78FHP1880S695V8GQEE0RXK","wireframe-styleguide","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fwireframe-styleguide\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M78FHHYM6AN2H819FABW01DZ","visual-regression","Pixel-by-pixel snapshot testing, Playwright integration, dynamic content masking, deterministic font rendering, and cross-browser CI gates","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fvisual-regression\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":19},"01M78FHE53D8DD0QVRY5C37DA4","ui-implementation","Component-driven UI implementation, multi-state matrix (default, hover, focus-visible, active, disabled, loading, empty, error), DTCG design tokens, responsive layout contracts, and accessibility tree mapping.","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Fui-implementation\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M78FHBJ1KXFF734GFE509TBJ","tui-editor-engine","Text buffer and editing semantics for a terminal code editor — index conversion, transaction-first editing, multi-cursor invariants, undo grouping, and large-file behaviour.","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Ftui-editor-engine\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":6,"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},"01M78FH9X6CPJX1H61ZDWTTVW8","tree-sitter-context-indexing","https:\u002F\u002Fgithub.com\u002FpoppyTM\u002Foride\u002Fblob\u002Fmain\u002F.ai\u002Fskills\u002Ftree-sitter-context-indexing\u002FSKILL.md",[],[]]