[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72S9RJM13F8VD87DXHYD403":3,"skill-same:01M72S9RJM13F8VD87DXHYD403":48},{"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":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":47},"01M72S9RJM13F8VD87DXHYD403","fsharp-io-globbing",null,"File discovery, fnmatch-style glob matching, and generation-currency diffing in compiled F#.","EHotwagner\u002FFS-Skia-UI","EHotwagner","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1645484?v=4","01M72S7CTBDPQDQHQJKKHY87K9","01M72S7CVFD0JN82RVX21NFEVC",2,"MIT","https:\u002F\u002Fgithub.com\u002FEHotwagner\u002FFS-Skia-UI\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ffsharp-io-globbing\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: fsharp-io-globbing\ndescription: File discovery, fnmatch-style glob matching, and generation-currency diffing in compiled F#.\ncompatibility: F# governance library (build\u002FGovernance) under net10.0; build-tooling scope only.\nmetadata:\n  author: fs-skia-ui\n  source: docs\u002Freports\u002F2026-05-31-1714-foundations-fsharp-capabilities-and-libraries.md\n---\n\n# fsharp-io-globbing\n\nCookbook for file discovery and glob matching ported from the Bash\u002FPython scripts. Owns **C13** (file\ndiscovery \u002F skill globbing) and **C14** (whitelist glob matching with `fnmatch` semantics). Verdicts\ncome from the capability report (`metadata.source`) §6.\n\n## When to use\n\n- Discovering skills: `.agents\u002Fskills\u002F*\u002FSKILL.md`, `src\u002F*\u002Fskill\u002FSKILL.md`,\n  `template\u002Ffragments\u002F*\u002Fskill\u002FSKILL.md`.\n- Matching files against `audit-patterns.yml` whitelist globs (`docs\u002F**`, `**\u002F*.md`).\n- Reading\u002Fwriting readiness artifacts; generation-currency checks (the diff itself lives in\n  [[fsharp-code-generation]] via DiffPlex).\n\n## Library verdicts\n\n- **Skill discovery (C13) → `Fake.IO.Globbing` 6.1.4** (FAKE family, already in-tree via the build\n  front-end), or `System.IO.Directory.EnumerateFiles`. **Prefer Fake.IO.Globbing** for one IO idiom\n  across the build.\n- **Whitelist glob matching (C14) → `Microsoft.Extensions.FileSystemGlobbing.Matcher` 10.0.8**\n  (first-party). Native `*` \u002F `**` include\u002Fexclude semantics.\n- **Generation-currency diff → DiffPlex** (regenerate to temp\u002Fstring, diff, fail if stale). See\n  [[fsharp-code-generation]].\n\n## Parity caution (the live risk)\n\n.NET glob semantics differ from Python `fnmatch` at the edges — a single `*` crossing directory\nseparators, a leading `**\u002F`, trailing-slash behaviour. **Golden-test every `audit-patterns.yml`\nwhitelist entry against the Python before cutover.** One of the two most likely silent divergences in\nthe port (the other is the two `tasks.deps.yml` YAML shapes, see [[fsharp-parsing]]).\n\n## API walkthrough + runnable examples\n\n### C13 — skill discovery (`Fake.IO.Globbing`)\n\n`!!` builds an include pattern; `++` adds includes; `--` excludes. The result is an\n`IGlobbingPattern` enumerating as a `seq\u003Cstring>`; sort before rendering for reproducible golden diffs.\n\n```fsharp\nopen Fake.IO.Globbing.Operators\n\n\u002F\u002F\u002F Discover the three skill source locations the Python scanned, as a stable\n\u002F\u002F\u002F sorted list (deterministic for golden diffs).\nlet discoverSkills () =\n    !! \".agents\u002Fskills\u002F*\u002FSKILL.md\"\n    ++ \"src\u002F*\u002Fskill\u002FSKILL.md\"\n    ++ \"template\u002Ffragments\u002F*\u002Fskill\u002FSKILL.md\"\n    |> Seq.sort\n    |> Seq.toList\n```\n\n### C14 — whitelist matching (`Microsoft.Extensions.FileSystemGlobbing`)\n\n`Matcher().AddInclude(glob)` accumulates `*`\u002F`**` include patterns; `.Match(files)` returns a\n`PatternMatchingResult` whose `HasMatches` and `Files` (each with a `.Path`) drive the whitelist\ndecision. `AddExclude` for negative patterns.\n\n```fsharp\nopen Microsoft.Extensions.FileSystemGlobbing\n\n\u002F\u002F\u002F Apply the audit-patterns.yml whitelist globs to a candidate file set.\nlet whitelisted (globs: string list) (files: string list) =\n    let matcher = Matcher()\n\n    for glob in globs do\n        matcher.AddInclude glob |> ignore\n\n    let result = matcher.Match(files)\n    result.HasMatches, [ for m in result.Files -> m.Path ]\n```\n\n### C13 fallback — BCL enumeration when one idiom is overkill\n\nFor a single directory the BCL is enough; still sort for determinism.\n\n```fsharp\nopen System.IO\n\nlet enumerateMarkdown (root: string) =\n    Directory.EnumerateFiles(root, \"*.md\", SearchOption.AllDirectories)\n    |> Seq.sort\n    |> Seq.toList\n```\n\n## Library API + runnable example\n\nDiscovery and glob matching now ship as the real `Globbing` module in the **`FS.Skia.UI.SkillSupport`**\npackage — its `.fsi` surface lives at `src\u002FSkillSupport\u002FGlobbing.fsi`. `FS.Skia.UI.Build` consumes the\nsame code via ProjectReference, so the governance build matches through exactly these functions:\n\n- `Globbing.isMatch: string -> string -> bool` — `isMatch glob path`; fnmatch-parity `*`\u002F`**` matching.\n- `Globbing.discover: string -> string list -> string list` — enumerate files under a root matching the\n  given include globs, returned as a stable sorted list (deterministic for golden diffs).\n- `Globbing.currencyDiff: string -> string -> string list` — per-line drift between the on-disk copy and\n  a fresh regeneration; empty list means current.\n\n```fsharp\nopen FS.Skia.UI.SkillSupport\n\n\u002F\u002F Whitelist-style glob check (C14).\nlet ok = Globbing.isMatch \"**\u002F*.md\" \"docs\u002Freports\u002Freport.md\"   \u002F\u002F true\n\n\u002F\u002F Discover the skill sources under the repo root (C13), stably sorted.\nlet skills = Globbing.discover \".\" [ \".agents\u002Fskills\u002F*\u002FSKILL.md\"; \"src\u002F*\u002Fskill\u002FSKILL.md\" ]\n\n\u002F\u002F Generation-currency drift: empty when the committed copy is up to date.\nlet drift = Globbing.currencyDiff onDiskText regeneratedText\nif not (List.isEmpty drift) then failwithf \"stale: %A\" drift\n```\n\n## Cautions\n\n- **.NET glob vs Python `fnmatch` drift** — the live risk (see Parity caution above): golden-test\n  every whitelist entry against the Python before cutover.\n- **Determinism.** Enumerate with a **stable sort** before rendering, for reproducible golden diffs.\n- **Keep true OS-glue in Bash** — `fake.sh`\u002F`fake.cmd` launchers and container entrypoints; no payoff\n  to F#-ifying a three-line launcher.\n- **Build-tooling scope only.** Lives under `build\u002FGovernance`; ships nowhere; no FCS.\n\n## Consuming stages\n\nStage 4 (skill discovery + audit-patterns whitelist matching), Stage 2 (generation-currency checks\nover the discovered files). See the plan in `metadata.source`.\n\n## Persistent problems\n\nWhen a problem outlasts reasonable in-repo attempts, extensive external research is\n**mandatory** — consult **official online docs first** (the F#\u002F.NET docs and the driven\nlibrary's own documentation\u002FAPI reference), then community sources (forums, Reddit, Q&A\nsites, issue trackers and changelogs). Record the findings and resolving links in the\nfeature's `specs\u002F\u003Cfeature>\u002Ffeedback\u002F` folder and, for durable lessons, in this skill's\n**Sources** line. Offline, the mandate degrades to recording \"research blocked — \u003Cwhy>\"\nrather than hard-failing the phase.\n\n## Sources \u002F links\n\n- Fake.IO.Globbing: \u003Chttps:\u002F\u002Ffake.build\u002Freference\u002Ffake-io-globbing-operators.html>\n- Microsoft.Extensions.FileSystemGlobbing: \u003Chttps:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fapi\u002Fmicrosoft.extensions.filesystemglobbing.matcher>\n- Capability report: `docs\u002Freports\u002F2026-05-31-1714-foundations-fsharp-capabilities-and-libraries.md` §6.\n\n## Related\n\n[[fsharp-parsing]] (parses the discovered files), [[fsharp-shell-process]] (diff file matching),\n[[fsharp-code-generation]] (currency-check diffing via DiffPlex).\n","# fsharp-io-globbing\n\nCookbook for file discovery and glob matching ported from the Bash\u002FPython scripts. Owns **C13** (file\ndiscovery \u002F skill globbing) and **C14** (whitelist glob matching with `fnmatch` semantics). Verdicts\ncome from the capability report (`metadata.source`) §6.\n\n## When to use\n\n- Discovering skills: `.agents\u002Fskills\u002F*\u002FSKILL.md`, `src\u002F*\u002Fskill\u002FSKILL.md`,\n  `template\u002Ffragments\u002F*\u002Fskill\u002FSKILL.md`.\n- Matching files against `audit-patterns.yml` whitelist globs (`docs\u002F**`, `**\u002F*.md`).\n- Reading\u002Fwriting readiness artifacts; generation-currency checks (the diff itself lives in\n  [[fsharp-code-generation]] via DiffPlex).\n\n## Library verdicts\n\n- **Skill discovery (C13) → `Fake.IO.Globbing` 6.1.4** (FAKE family, already in-tree via the build\n  front-end), or `System.IO.Directory.EnumerateFiles`. **Prefer Fake.IO.Globbing** for one IO idiom\n  across the build.\n- **Whitelist glob matching (C14) → `Microsoft.Extensions.FileSystemGlobbing.Matcher` 10.0.8**\n  (first-party). Native `*` \u002F `**` include\u002Fexclude semantics.\n- **Generation-currency diff → DiffPlex** (regenerate to temp\u002Fstring, diff, fail if stale). See\n  [[fsharp-code-generation]].\n\n## Parity caution (the live risk)\n\n.NET glob semantics differ from Python `fnmatch` at the edges — a single `*` crossing directory\nseparators, a leading `**\u002F`, trailing-slash behaviour. **Golden-test every `audit-patterns.yml`\nwhitelist entry against the Python before cutover.** One of the two most likely silent divergences in\nthe port (the other is the two `tasks.deps.yml` YAML shapes, see [[fsharp-parsing]]).\n\n## API walkthrough + runnable examples\n\n### C13 — skill discovery (`Fake.IO.Globbing`)\n\n`!!` builds an include pattern; `++` adds includes; `--` excludes. The result is an\n`IGlobbingPattern` enumerating as a `seq\u003Cstring>`; sort before rendering for reproducible golden diffs.\n\n```fsharp\nopen Fake.IO.Globbing.Operators\n\n\u002F\u002F\u002F Discover the three skill source locations the Python scanned, as a stable\n\u002F\u002F\u002F sorted list (deterministic for golden diffs).\nlet discoverSkills () =\n    !! \".agents\u002Fskills\u002F*\u002FSKILL.md\"\n    ++ \"src\u002F*\u002Fskill\u002FSKILL.md\"\n    ++ \"template\u002Ffragments\u002F*\u002Fskill\u002FSKILL.md\"\n    |> Seq.sort\n    |> Seq.toList\n```\n\n### C14 — whitelist matching (`Microsoft.Extensions.FileSystemGlobbing`)\n\n`Matcher().AddInclude(glob)` accumulates `*`\u002F`**` include patterns; `.Match(files)` returns a\n`PatternMatchingResult` whose `HasMatches` and `Files` (each with a `.Path`) drive the whitelist\ndecision. `AddExclude` for negative patterns.\n\n```fsharp\nopen Microsoft.Extensions.FileSystemGlobbing\n\n\u002F\u002F\u002F Apply the audit-patterns.yml whitelist globs to a candidate file set.\nlet whitelisted (globs: string list) (files: string list) =\n    let matcher = Matcher()\n\n    for glob in globs do\n        matcher.AddInclude glob |> ignore\n\n    let result = matcher.Match(files)\n    result.HasMatches, [ for m in result.Files -> m.Path ]\n```\n\n### C13 fallback — BCL enumeration when one idiom is overkill\n\nFor a single directory the BCL is enough; still sort for determinism.\n\n```fsharp\nopen System.IO\n\nlet enumerateMarkdown (root: string) =\n    Directory.EnumerateFiles(root, \"*.md\", SearchOption.AllDirectories)\n    |> Seq.sort\n    |> Seq.toList\n```\n\n## Library API + runnable example\n\nDiscovery and glob matching now ship as the real `Globbing` module in the **`FS.Skia.UI.SkillSupport`**\npackage — its `.fsi` surface lives at `src\u002FSkillSupport\u002FGlobbing.fsi`. `FS.Skia.UI.Build` consumes the\nsame code via ProjectReference, so the governance build matches through exactly these functions:\n\n- `Globbing.isMatch: string -> string -> bool` — `isMatch glob path`; fnmatch-parity `*`\u002F`**` matching.\n- `Globbing.discover: string -> string list -> string list` — enumerate files under a root matching the\n  given include globs, returned as a stable sorted list (deterministic for golden diffs).\n- `Globbing.currencyDiff: string -> string -> string list` — per-line drift between the on-disk copy and\n  a fresh regeneration; empty list means current.\n\n```fsharp\nopen FS.Skia.UI.SkillSupport\n\n\u002F\u002F Whitelist-style glob check (C14).\nlet ok = Globbing.isMatch \"**\u002F*.md\" \"docs\u002Freports\u002Freport.md\"   \u002F\u002F true\n\n\u002F\u002F Discover the skill sources under the repo root (C13), stably sorted.\nlet skills = Globbing.discover \".\" [ \".agents\u002Fskills\u002F*\u002FSKILL.md\"; \"src\u002F*\u002Fskill\u002FSKILL.md\" ]\n\n\u002F\u002F Generation-currency drift: empty when the committed copy is up to date.\nlet drift = Globbing.currencyDiff onDiskText regeneratedText\nif not (List.isEmpty drift) then failwithf \"stale: %A\" drift\n```\n\n## Cautions\n\n- **.NET glob vs Python `fnmatch` drift** — the live risk (see Parity caution above): golden-test\n  every whitelist entry against the Python before cutover.\n- **Determinism.** Enumerate with a **stable sort** before rendering, for reproducible golden diffs.\n- **Keep true OS-glue in Bash** — `fake.sh`\u002F`fake.cmd` launchers and container entrypoints; no payoff\n  to F#-ifying a three-line launcher.\n- **Build-tooling scope only.** Lives under `build\u002FGovernance`; ships nowhere; no FCS.\n\n## Consuming stages\n\nStage 4 (skill discovery + audit-patterns whitelist matching), Stage 2 (generation-currency checks\nover the discovered files). See the plan in `metadata.source`.\n\n## Persistent problems\n\nWhen a problem outlasts reasonable in-repo attempts, extensive external research is\n**mandatory** — consult **official online docs first** (the F#\u002F.NET docs and the driven\nlibrary's own documentation\u002FAPI reference), then community sources (forums, Reddit, Q&A\nsites, issue trackers and changelogs). Record the findings and resolving links in the\nfeature's `specs\u002F\u003Cfeature>\u002Ffeedback\u002F` folder and, for durable lessons, in this skill's\n**Sources** line. Offline, the mandate degrades to recording \"research blocked — \u003Cwhy>\"\nrather than hard-failing the phase.\n\n## Sources \u002F links\n\n- Fake.IO.Globbing: \u003Chttps:\u002F\u002Ffake.build\u002Freference\u002Ffake-io-globbing-operators.html>\n- Microsoft.Extensions.FileSystemGlobbing: \u003Chttps:\u002F\u002Flearn.microsoft.com\u002Fdotnet\u002Fapi\u002Fmicrosoft.extensions.filesystemglobbing.matcher>\n- Capability report: `docs\u002Freports\u002F2026-05-31-1714-foundations-fsharp-capabilities-and-libraries.md` §6.\n\n## Related\n\n[[fsharp-parsing]] (parses the discovered files), [[fsharp-shell-process]] (diff file matching),\n[[fsharp-code-generation]] (currency-check diffing via DiffPlex).\n",{"name":5,"metadata":23,"description":7,"compatibility":26},{"author":24,"source":25},"fs-skia-ui","docs\u002Freports\u002F2026-05-31-1714-foundations-fsharp-capabilities-and-libraries.md","F# governance library (build\u002FGovernance) under net10.0; build-tooling scope only.","main","f943406829a9218b2882e09eb88d4ddb539c5e72",".agents\u002Fskills\u002Ffsharp-io-globbing",0,"https:\u002F\u002Fgithub.com\u002FEHotwagner\u002FFS-Skia-UI","https:\u002F\u002Fgithub.com\u002FEHotwagner","2026-06-16 16:16:52",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":46},[36,39,42],{"tool":37,"command":38},"npx","npx skills add EHotwagner\u002FFS-Skia-UI --skill fsharp-io-globbing",{"tool":40,"command":41},"bunx","bunx skills add EHotwagner\u002FFS-Skia-UI --skill fsharp-io-globbing",{"tool":43,"command":44},"pnpm","pnpm dlx skills add EHotwagner\u002FFS-Skia-UI --skill fsharp-io-globbing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FEHotwagner\u002FFS-Skia-UI\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ffsharp-io-globbing\u002FSKILL.md",true,[],[49,56,63,70,77,84],{"skillNo":50,"name":51,"nameZh":6,"description":52,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":53,"categories":54,"keywords":55,"publishedAt":18},"01M72SGYR4T02T1HTS175E0V86","fs-skia-ui-widgets","Generated product guidance for Skia-rendered FS.Skia.UI Controls, rich text, chart controls, graph controls, DataGrid, and custom wrappers.","https:\u002F\u002Fgithub.com\u002FEHotwagner\u002FFS-Skia-UI\u002Fblob\u002Fmain\u002Ftemplate\u002Fproduct-skills\u002Ffs-skia-ui-widgets\u002FSKILL.md",[],[],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":60,"categories":61,"keywords":62,"publishedAt":18},"01M72SGVZJR1B117QK7TCC6E0J","fs-skia-testing","Assert generated-product expectations and evidence in a governed FS.Skia.UI product.","https:\u002F\u002Fgithub.com\u002FEHotwagner\u002FFS-Skia-UI\u002Fblob\u002Fmain\u002Ftemplate\u002Fproduct-skills\u002Ffs-skia-testing\u002FSKILL.md",[],[],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M72SGTC5HZYEVVVZT4X51AZ3","fs-skia-skiaviewer","Wire a generated FS.Skia.UI product to the desktop viewer host.","https:\u002F\u002Fgithub.com\u002FEHotwagner\u002FFS-Skia-UI\u002Fblob\u002Fmain\u002Ftemplate\u002Fproduct-skills\u002Ffs-skia-skiaviewer\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":18},"01M72SGS47RPYPC9JTC39CC6EF","fs-skia-scene","Build pure scene descriptions in a generated FS.Skia.UI product.","https:\u002F\u002Fgithub.com\u002FEHotwagner\u002FFS-Skia-UI\u002Fblob\u002Fmain\u002Ftemplate\u002Fproduct-skills\u002Ffs-skia-scene\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":18},"01M72SGQF4G76C4NGSF69KZRRF","fs-skia-keyboard-input","Map keyboard input to product commands in a generated FS.Skia.UI product.","https:\u002F\u002Fgithub.com\u002FEHotwagner\u002FFS-Skia-UI\u002Fblob\u002Fmain\u002Ftemplate\u002Fproduct-skills\u002Ffs-skia-keyboard-input\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":18},"01M72SGNJP3PMSS2VRP98G7Z42","fs-skia-elmish","Drive a generated FS.Skia.UI product through the pure Elmish adapter.","https:\u002F\u002Fgithub.com\u002FEHotwagner\u002FFS-Skia-UI\u002Fblob\u002Fmain\u002Ftemplate\u002Fproduct-skills\u002Ffs-skia-elmish\u002FSKILL.md",[],[]]