[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6H1FHACTY6K2AGVTYWHQCN1":3,"skill-same:01M6H1FHACTY6K2AGVTYWHQCN1":65},{"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":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":49,"ownerDescription":6,"updatedAt":50,"install":51,"resources":64},"01M6H1FHACTY6K2AGVTYWHQCN1","hyalo",null,"Use the hyalo CLI instead of read\u002Fedit\u002Fgrep\u002Fwrite when working with markdown (.md) files that have YAML frontmatter. This skill MUST be consulted whenever pi is working with markdown documentation directories, knowledgebases, wikis, notes, Obsidian-compatible collections, Zettelkasten systems, iteration plans, or any collection of .md files with frontmatter. Trigger this skill when: searching or filtering markdown files by content, tags, or properties; reading or modifying YAML frontmatter; managing tags or metadata across documents; toggling task checkboxes in markdown; getting an overview of a documentation directory; querying document properties or status fields; bulk-updating metadata across many markdown files; or when you find yourself repeatedly using read\u002Fedit\u002Fgrep\u002Fwrite on .md files. Even if the user does not mention \"hyalo\" by name, use this skill whenever the task involves structured markdown documents with frontmatter.\nFor pi sessions, ALWAYS use `--format text` for compact, LLM-friendly output.","ractive\u002Fhyalo","ractive","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F783861?v=4","01M6H1E120XG8G9XFCVZZAF62C","Jean-Pierre Bergamin","01M6H1E169A4CHQA1DPW0CKZJM",29,"MIT","https:\u002F\u002Fgithub.com\u002Fractive\u002Fhyalo\u002Fblob\u002Fmain\u002Fcrates\u002Fhyalo-cli\u002Ftemplates\u002Fpi\u002Fskills\u002Fhyalo\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"filtering","for","directories","reading","you","collections","iteration","files","use","directory","pi","edit","write","read","text","notes","documents","status","sessions","2026-11-10 10:12:30",false,"---\nname: hyalo\nuser_invocable: false\ndescription: >\n  Use the hyalo CLI instead of read\u002Fedit\u002Fgrep\u002Fwrite when working with markdown (.md) files\n  that have YAML frontmatter. This skill MUST be consulted whenever pi is working with\n  markdown documentation directories, knowledgebases, wikis, notes, Obsidian-compatible\n  collections, Zettelkasten systems, iteration plans, or any collection of .md files with\n  frontmatter. Trigger this skill when: searching or filtering markdown files by content,\n  tags, or properties; reading or modifying YAML frontmatter; managing tags or metadata\n  across documents; toggling task checkboxes in markdown; getting an overview of a\n  documentation directory; querying document properties or status fields; bulk-updating\n  metadata across many markdown files; or when you find yourself repeatedly using\n  read\u002Fedit\u002Fgrep\u002Fwrite on .md files. Even if the user does not mention \"hyalo\" by name, use this\n  skill whenever the task involves structured markdown documents with frontmatter.\n\n  For pi sessions, ALWAYS use `--format text` for compact, LLM-friendly output.\n---\n\n# Hyalo CLI — Prime Tool for Markdown Knowledgebases in pi\n\nRanked queries return `score` and up to three body `matches` with `line`, `section`,\nand `text`; text output displays that context directly. Snippets rank by distinct query\ntokens then line number and share stemming, OR and CJK rules with scoring. Quoted\nphrases must fit on one line. `--section` scopes snippets; frontmatter is excluded,\nso title-only hits can have an empty array. Indexed queries read snippet text only\nfor final results after `--limit`.\n\nHyalo is a fast CLI for querying and mutating YAML frontmatter, tags, tasks, and structure\nin directories of markdown files. If the hyalo pi extension is installed\n(`.pi\u002Fextensions\u002Fhyalo.ts`), prefer its **typed tools** for the common operations —\nthey take structured parameters, so there is no flag spelling or quoting to get wrong:\n\n| Operation | Typed tool | Example parameters |\n|-----------|------------|--------------------|\n| Search\u002Ffilter | **hyalo_find** | `property: [\"status=planned\", \"type=iteration\"]`, `query: \"rust\"`, `tag: \"feature\"`, `taskStatus: \"todo\"`, `countOnly: true`, `limit: 10` |\n| Read a file\u002Fsection | **hyalo_read** | `file: \"iterations\u002Fiter-1-x.md\"`, `section: \"Scope\"` |\n| Set one property | **hyalo_set** | `file: \"note.md\"`, `property: \"status=done\"`, `tag: \"shipped\"` |\n| Toggle tasks | **hyalo_task** | `file: \"plan.md\"`, `mode: \"all\"` \u002F `mode: \"section\"`, `section: \"Tasks\"` \u002F `mode: \"line\"`, `lines: [5, 7]` |\n\nUse the generic **hyalo** tool (subcommand + args) only for operations the typed tools\ndon't cover: summary, lint, mv, links, views, types, backlinks, --jq filters, bulk\nmutations (`--glob`, `--where-property`), etc.\n\n`--glob` is how you address sequence-keyed documents (iterations, decisions, ...): the\nnumber may be zero-padded and the file archived in a subdirectory, so prefer the\nrecursive form — `find --glob '**\u002Fiteration-02-*.md'` reaches both\n`iterations\u002Fiteration-2-*.md` and `iterations\u002Fdone\u002Fiteration-02-links.md`.\n(`--file` is exact; `--glob` is the only globbing flag.)\n\nIts killer features are combined filtering (e.g.\n`hyalo find -e \"regex\" --property status!=done --tag feature`) which you can't easily\nreplicate with read\u002Fedit\u002Fgrep\u002Fwrite, and bulk mutations (`hyalo set --where-property`) that replace\nmultiple read + edit calls.\n\n**For pi sessions, ALWAYS use `--format text` for compact, LLM-friendly output.**\n\n## Read the CLI's own help before guessing a flag\n\n`hyalo -h` lists every command grouped by intent (read \u002F write \u002F config), one line each,\nnaming the capability families behind them. `hyalo \u003Ccmd> -h` is one screen for one command;\n`hyalo \u003Ccmd> --help` is the full syntax reference — property operators, sort keys,\n`--fields` values, output shapes, and a cookbook. Both are generated from the binary you\nare running, so unlike any copy in this file they cannot go stale. Reach for `-h` first and\n`--help` for detail; do not fall back to `grep` because a filter looked unavailable.\n\n```bash\nhyalo -h                 # every command, grouped, with composed examples\nhyalo find -h            # filters and output flags on one screen\nhyalo find --help        # every operator, sort key, field name and recipe\n```\n\nAn empty result set is also self-documenting: `find` that matches nothing echoes the\nfilters it applied and hints at the next step (a did-you-mean over the values the property\nactually has, and the same query with its most selective filter dropped).\n\n## Core Philosophy for pi\n\n- **Use hyalo first**: Before using read\u002Fedit\u002Fgrep\u002Fwrite on .md files, check if hyalo can do it\n- **Read `-h` before guessing**: `hyalo \u003Ccmd> -h` for the short page, `--help` for full syntax\n- **Batch operations**: Use hyalo's bulk mutation features instead of individual edits\n- **Snapshot indexes**: For vaults >500 files, use `hyalo create-index` + `--index` for speed\n- **Follow hints**: hyalo outputs drill-down suggestions (`-> hyalo ...`) — use them\n- **Schema validation**: Use `hyalo lint --strict` to catch frontmatter issues early\n\n## Quick Start in pi\n\n```bash\n# 1. Check hyalo is installed and configured\nbash: which hyalo\nbash: hyalo --version\n\n# 2. Get overview of knowledgebase\nbash: hyalo summary --format text\n\n# 3. Search for files with BM25 full-text search\nbash: hyalo find \"iteration\" --property status=planned --tag iteration --format text\n\n# 4. Read a specific file's content or section\nbash: hyalo read iterations\u002Fiteration-66-spec-refresh-drift-fixes.md --section \"Scope\" --format text\n\n# 5. Update frontmatter properties\nbash: hyalo set iterations\u002Fiteration-66-spec-refresh-drift-fixes.md --property status=in-progress --format text\n```\n\n## BM25 Full-Text Search\n\nThe positional argument to `find` triggers BM25 ranked full-text search with automatic\nstemming (\"running\" matches \"run\", \"runner\", etc.). Results sorted by relevance score.\n\n```bash\nhyalo find \"rust\"                        # single term, stemmed\nhyalo find \"rust programming\"            # AND: both terms required (implicit)\nhyalo find \"rust OR golang\"              # OR: either term matches\nhyalo find \"rust -java\"                  # NOT: exclude documents with \"java\"\nhyalo find '\\\"error handling\\\"'          # Phrase: exact consecutive match (after stemming)\nhyalo find '\\\"error handling\\\"~3'        # Slop: at most 3 extra words between (max 64)\nhyalo find \"rust OR golang -obsolete\"    # Mixed: either rust or golang, not obsolete\nhyalo find -- '(bm25 OR stemming) -tantivy' # Groups; OR binds tighter than implicit AND\nhyalo find 'conf*' --title iteration    # Prefix over stems, scoped by title\n```\n\n`a b OR c` means a AND (b OR c). `prefix*` matches dictionary stems (capped at 256).\nThere are no field terms: `title:x` or `foo:bar` is a plain word; select structure with\n`--title`, `--section`, `--tag`, `--glob`. Zero results carry a\n`suggestions` key; `hyalo terms [PREFIX]` lists the stemmed dictionary.\nAccents fold (`résumé` = `resume`) and identifiers index whole plus parts (`getUserName`\nis found by `user`). Title, headings and tags\u002Faliases outweigh body; close terms rank higher.\n\nFind the paragraph: `hyalo find 'query' --granularity section --limit 5` returns one hit per\nmatching section (`section: {heading, level, line_start, line_end, path}`); follow its read\nhint. See the distribution: `hyalo find --tag X --facet property:status --facet dir` adds\n`facets` (file counts over the full match set, before `--limit`).\n\nFor literal pattern matching (not stemmed), use regex: `hyalo find -e \"exact_string\"`.\n\n## Property & Tag Filtering\n\nFilters combine freely — content search + property conditions + tag + section + task status\nin a single call:\n\n```bash\nhyalo find \"error handling\" --property status!=completed --tag iteration --section \"Tasks\" --task todo --format text\n```\n\nProperty filters support: `K=V` (eq), `K!=V` (neq), `K>=V`\u002F`K\u003C=V`\u002F`K>V`\u002F`K\u003CV` (comparison),\n`K` (existence), `!K` (absence), `K~=pattern` or `K~=\u002Fpattern\u002Fflags` (regex match):\n\n```bash\nhyalo find --property '!status'           # files missing the status property\nhyalo find --property 'title~=draft'      # title contains \"draft\"\nhyalo find --property 'title~=\u002F^Draft\u002Fi'  # case-insensitive regex on title\n```\n\n`K` may be a **dot-path** into nested frontmatter. A literal dotted key in a flat map is\ntried first; otherwise the path is walked. Maps descend by key, and sequences descend too:\na numeric segment pins one element, any other segment auto-descends into *every* element and\ncollects the hits — so the usual list semantics apply (`=`\u002F`~=` match when any element\nmatches, `!=` when none does):\n\n```bash\nhyalo find --property contact.email=team@example.com   # contact: {email: ...}\nhyalo find --property contacts.email=ada@example.com   # contacts: [{name, email}, ...] — any element\nhyalo find --property contacts.0.email=ada@example.com # first element only\nhyalo find --property '!contacts.phone'                # no element has a phone\n```\n\n## Schema & Lint Integration\n\nHyalo supports frontmatter schema validation. Define schemas in `.hyalo.toml` then run:\n\n```bash\n# Strict linting (errors on schema violations)\nhyalo lint --strict --format text\n\n# Auto-fix lint violations\nhyalo lint --fix --dry-run --format text  # preview\nhyalo lint --fix --format text           # apply\n\n# Manage lint rules\nhyalo lint-rules list --format text\nhyalo lint-rules set MD013 --enabled false --format text  # disable line-length rule\n```\n\n## Snapshot Index for Performance\n\nFor vaults >500 files, create a snapshot index to avoid repeated disk scans:\n\n```bash\n# Create index (one scan, reused by all queries)\nhyalo create-index\n\n# Use --index on all subsequent commands\nhyalo find --property status=in-progress --index --format text\nhyalo summary --index --format text\n\n# Mutations also work with --index (patches index after each write)\nhyalo set note.md --property status=completed --index --format text\n\n# Drop when done\nhyalo drop-index\n```\n\nRe-running `create-index` reuses unchanged files (`--force` rebuilds). An `--index` read of a\ndrifted snapshot re-scans the drifted files in memory and notes it; it never writes the file.\n\n## File Movement with Link Rewriting\n\n**Always use `hyalo mv`** — never system `mv` or `git mv`. It rewrites all `[[wikilinks]]` and\n`[markdown](links)` across the vault that pointed to the old path.\n\n```bash\nhyalo mv backlog\u002Fmy-item.md --to backlog\u002Fdone\u002Fmy-item.md --dry-run --format text  # preview\nhyalo mv backlog\u002Fmy-item.md --to backlog\u002Fdone\u002Fmy-item.md --format text           # execute\n```\n\n## Broken Link Detection & Repair\n\n`HYALO006` lints file targets; `HYALO008` lints heading anchors. Both default to\nwarnings and are promoted by `lint --strict` unless severity is explicitly configured.\nExplicit hidden paths can resolve without joining document discovery.\n`links fix` previews unique numbered-heading fragment proposals separately from target\nrepairs, with deferral reasons for ambiguous or unsupported destinations. Ordinary\n`links fix --apply` writes safe target and anchor repairs together. `--apply-fuzzy`\nadditionally enables eligible fuzzy file-target repairs; broader fuzzy anchor guesses\nremain advisory. Broken counts describe the pre-apply scan.\n\n```bash\n# Detect broken links with proposed fixes\nhyalo links fix --format text\n\n# Apply fixes\nhyalo links fix --apply --format text\n```\n\n## Saved Views for Common Queries\n\nSave frequently-used filter combinations as named views:\n\n```bash\n# Create views for common queries\nhyalo views set stale-in-progress --property status=in-progress --fields tasks\nhyalo views set orphans --orphan --fields backlinks\nhyalo views set missing-status --property '!status'\n\n# Use views\nhyalo find --view stale-in-progress --format text\nhyalo find --view orphans --limit 5 --format text\n```\n\n## Task Management\n\n```bash\n# Toggle task checkboxes\nhyalo task toggle note.md --line 5,7 --format text\nhyalo task toggle note.md --section \"Tasks\" --all --format text\n\n# Read tasks with status\nhyalo read note.md --section \"Tasks\" --format text\n```\n\n## Type Schema Management\n\n```bash\n# List defined types\nhyalo types list --format text\n\n# Create\u002Fupdate iteration type schema\nhyalo types set iteration --required title,date,status,branch,tags --format text\nhyalo types set iteration --property-values \"status=planned,in-progress,completed\" --format text\nhyalo types set iteration --filename-template \"iterations\u002Fiteration-{n}-{slug}.md\" --format text\n```\n\n## When to Use hyalo vs Built-in pi Tools\n\n| Task | Tool | Example |\n|------|------|---------|\n| Search\u002Ffilter markdown files | **hyalo** | `hyalo find \"rust\" --property type=iteration --format text` |\n| Read frontmatter properties | **hyalo** | `hyalo find --property status=planned --format text` |\n| Update frontmatter | **hyalo** | `hyalo set note.md --property status=completed --format text` |\n| Toggle task checkboxes | **hyalo** | `hyalo task toggle note.md --line 5 --format text` |\n| Move\u002Frename markdown files | **hyalo** | `hyalo mv old.md --to new.md --format text` |\n| Fix broken links | **hyalo** | `hyalo links fix --apply --format text` |\n| Rewrite body prose | **edit** | `edit` tool for paragraph changes |\n| Create new markdown files | **write** | `write` tool for new files |\n| Complex text transformations | **edit** | `edit` tool for regex replacements |\n\nThe typed Pi tools use the generated Hyalo API runtime shipped with this package.\nThey always request JSON without hints and preserve typed envelopes and errors;\nuse the generic `hyalo` tool when text output, `--jq`, or an unsupported command\nis required.\n\nUser jq compilation and evaluation each run in a child with a 3-second deadline;\nsource\u002Finput\u002Foutput limits are 64 KiB \u002F 64 MiB \u002F 10 MiB (at most 1,000,000 values).\nCompilation failure precedes writes; evaluation failure retains committed effects.\nLinux caps worker address space at 512 MiB. macOS\u002FWindows have no hard memory cap;\nintermediate allocations can still exhaust host memory before termination.\n\n## Setup Checklist for New Projects\n\n1. **Install hyalo**: Ensure `hyalo` is on PATH (`which hyalo`). Use the\n   published `cargo install hyalo-cli` route or, on a supported Node.js platform,\n   `npm install --global @ractive-ch\u002Fhyalo`.\n2. **Configure vault**: Create `.hyalo.toml` with `dir = \"knowledgebase\"`\n3. **Add to AGENTS.md**: Include: \"Use `hyalo` CLI for all markdown knowledgebase operations. Always use `--format text` for compact output.\"\n4. **Create views**: Set up common views (`stale-in-progress`, `orphans`, etc.)\n5. **Define schemas**: Create type schemas for consistent frontmatter\n\n## Advanced Patterns for pi\n\n### Bulk Status Updates\n```bash\n# Preview a native filtered update; rerun without --dry-run after review\nhyalo set --glob 'iterations\u002F*.md' --where-property status=planned \\\n  --property status=deferred --dry-run --format text\n```\n\n### Health Dashboard\n```bash\n# Generate KB health report\nhyalo summary --format text\nhyalo lint --strict --format text\nhyalo links fix --format text\n```\n\n### Orphan Analysis\n```bash\n# Find orphans with context\nhyalo find --orphan --fields properties,links --format text \\\n  | grep -v \"SEED.md\\|decision-log.md\\|development-roadmap.md\"  # exclude expected orphans\n```\n\n## Common Pitfalls & Solutions\n\n1. **Using the generic tool for common operations**: prefer hyalo_find\u002Fhyalo_read\u002Fhyalo_set\u002Fhyalo_task — no flag spelling or quoting to get wrong\n2. **Missing `--format text`**: Output is verbose JSON — always use `--format text` in pi (the extension injects it automatically; only needed via bash)\n3. **Not using `--index` for large vaults**: Queries are slow — create index for >500 files\n4. **Using system `mv` instead of `hyalo mv`**: Breaks links — always use `hyalo mv`\n5. **Ignoring hints**: hyalo suggests next commands — follow them\n6. **Not validating schemas**: Run `hyalo lint --strict` regularly\n7. **Guessing flags instead of reading `-h`**: every command's short help fits on one screen; `--help` has the full syntax\n\n## Integration with pi Extension\n\nIf the hyalo extension is installed (`.pi\u002Fextensions\u002Fhyalo.ts`), use the typed tools first:\n```json\n{\"tool\": \"hyalo_find\", \"property\": [\"status=planned\"], \"tag\": \"iteration\"}\n```\nFor anything they don't cover, use the generic `hyalo` tool:\n```json\n{\n  \"subcommand\": \"find\",\n  \"args\": [\"iteration\", \"--property\", \"status=planned\", \"--format\", \"text\"],\n  \"formatText\": true\n}\n```\n\nOtherwise, use via `bash` tool:\n```bash\nhyalo find \"iteration\" --property status=planned --format text\n```\n","# Hyalo CLI — Prime Tool for Markdown Knowledgebases in pi\n\nRanked queries return `score` and up to three body `matches` with `line`, `section`,\nand `text`; text output displays that context directly. Snippets rank by distinct query\ntokens then line number and share stemming, OR and CJK rules with scoring. Quoted\nphrases must fit on one line. `--section` scopes snippets; frontmatter is excluded,\nso title-only hits can have an empty array. Indexed queries read snippet text only\nfor final results after `--limit`.\n\nHyalo is a fast CLI for querying and mutating YAML frontmatter, tags, tasks, and structure\nin directories of markdown files. If the hyalo pi extension is installed\n(`.pi\u002Fextensions\u002Fhyalo.ts`), prefer its **typed tools** for the common operations —\nthey take structured parameters, so there is no flag spelling or quoting to get wrong:\n\n| Operation | Typed tool | Example parameters |\n|-----------|------------|--------------------|\n| Search\u002Ffilter | **hyalo_find** | `property: [\"status=planned\", \"type=iteration\"]`, `query: \"rust\"`, `tag: \"feature\"`, `taskStatus: \"todo\"`, `countOnly: true`, `limit: 10` |\n| Read a file\u002Fsection | **hyalo_read** | `file: \"iterations\u002Fiter-1-x.md\"`, `section: \"Scope\"` |\n| Set one property | **hyalo_set** | `file: \"note.md\"`, `property: \"status=done\"`, `tag: \"shipped\"` |\n| Toggle tasks | **hyalo_task** | `file: \"plan.md\"`, `mode: \"all\"` \u002F `mode: \"section\"`, `section: \"Tasks\"` \u002F `mode: \"line\"`, `lines: [5, 7]` |\n\nUse the generic **hyalo** tool (subcommand + args) only for operations the typed tools\ndon't cover: summary, lint, mv, links, views, types, backlinks, --jq filters, bulk\nmutations (`--glob`, `--where-property`), etc.\n\n`--glob` is how you address sequence-keyed documents (iterations, decisions, ...): the\nnumber may be zero-padded and the file archived in a subdirectory, so prefer the\nrecursive form — `find --glob '**\u002Fiteration-02-*.md'` reaches both\n`iterations\u002Fiteration-2-*.md` and `iterations\u002Fdone\u002Fiteration-02-links.md`.\n(`--file` is exact; `--glob` is the only globbing flag.)\n\nIts killer features are combined filtering (e.g.\n`hyalo find -e \"regex\" --property status!=done --tag feature`) which you can't easily\nreplicate with read\u002Fedit\u002Fgrep\u002Fwrite, and bulk mutations (`hyalo set --where-property`) that replace\nmultiple read + edit calls.\n\n**For pi sessions, ALWAYS use `--format text` for compact, LLM-friendly output.**\n\n## Read the CLI's own help before guessing a flag\n\n`hyalo -h` lists every command grouped by intent (read \u002F write \u002F config), one line each,\nnaming the capability families behind them. `hyalo \u003Ccmd> -h` is one screen for one command;\n`hyalo \u003Ccmd> --help` is the full syntax reference — property operators, sort keys,\n`--fields` values, output shapes, and a cookbook. Both are generated from the binary you\nare running, so unlike any copy in this file they cannot go stale. Reach for `-h` first and\n`--help` for detail; do not fall back to `grep` because a filter looked unavailable.\n\n```bash\nhyalo -h                 # every command, grouped, with composed examples\nhyalo find -h            # filters and output flags on one screen\nhyalo find --help        # every operator, sort key, field name and recipe\n```\n\nAn empty result set is also self-documenting: `find` that matches nothing echoes the\nfilters it applied and hints at the next step (a did-you-mean over the values the property\nactually has, and the same query with its most selective filter dropped).\n\n## Core Philosophy for pi\n\n- **Use hyalo first**: Before using read\u002Fedit\u002Fgrep\u002Fwrite on .md files, check if hyalo can do it\n- **Read `-h` before guessing**: `hyalo \u003Ccmd> -h` for the short page, `--help` for full syntax\n- **Batch operations**: Use hyalo's bulk mutation features instead of individual edits\n- **Snapshot indexes**: For vaults >500 files, use `hyalo create-index` + `--index` for speed\n- **Follow hints**: hyalo outputs drill-down suggestions (`-> hyalo ...`) — use them\n- **Schema validation**: Use `hyalo lint --strict` to catch frontmatter issues early\n\n## Quick Start in pi\n\n```bash\n# 1. Check hyalo is installed and configured\nbash: which hyalo\nbash: hyalo --version\n\n# 2. Get overview of knowledgebase\nbash: hyalo summary --format text\n\n# 3. Search for files with BM25 full-text search\nbash: hyalo find \"iteration\" --property status=planned --tag iteration --format text\n\n# 4. Read a specific file's content or section\nbash: hyalo read iterations\u002Fiteration-66-spec-refresh-drift-fixes.md --section \"Scope\" --format text\n\n# 5. Update frontmatter properties\nbash: hyalo set iterations\u002Fiteration-66-spec-refresh-drift-fixes.md --property status=in-progress --format text\n```\n\n## BM25 Full-Text Search\n\nThe positional argument to `find` triggers BM25 ranked full-text search with automatic\nstemming (\"running\" matches \"run\", \"runner\", etc.). Results sorted by relevance score.\n\n```bash\nhyalo find \"rust\"                        # single term, stemmed\nhyalo find \"rust programming\"            # AND: both terms required (implicit)\nhyalo find \"rust OR golang\"              # OR: either term matches\nhyalo find \"rust -java\"                  # NOT: exclude documents with \"java\"\nhyalo find '\\\"error handling\\\"'          # Phrase: exact consecutive match (after stemming)\nhyalo find '\\\"error handling\\\"~3'        # Slop: at most 3 extra words between (max 64)\nhyalo find \"rust OR golang -obsolete\"    # Mixed: either rust or golang, not obsolete\nhyalo find -- '(bm25 OR stemming) -tantivy' # Groups; OR binds tighter than implicit AND\nhyalo find 'conf*' --title iteration    # Prefix over stems, scoped by title\n```\n\n`a b OR c` means a AND (b OR c). `prefix*` matches dictionary stems (capped at 256).\nThere are no field terms: `title:x` or `foo:bar` is a plain word; select structure with\n`--title`, `--section`, `--tag`, `--glob`. Zero results carry a\n`suggestions` key; `hyalo terms [PREFIX]` lists the stemmed dictionary.\nAccents fold (`résumé` = `resume`) and identifiers index whole plus parts (`getUserName`\nis found by `user`). Title, headings and tags\u002Faliases outweigh body; close terms rank higher.\n\nFind the paragraph: `hyalo find 'query' --granularity section --limit 5` returns one hit per\nmatching section (`section: {heading, level, line_start, line_end, path}`); follow its read\nhint. See the distribution: `hyalo find --tag X --facet property:status --facet dir` adds\n`facets` (file counts over the full match set, before `--limit`).\n\nFor literal pattern matching (not stemmed), use regex: `hyalo find -e \"exact_string\"`.\n\n## Property & Tag Filtering\n\nFilters combine freely — content search + property conditions + tag + section + task status\nin a single call:\n\n```bash\nhyalo find \"error handling\" --property status!=completed --tag iteration --section \"Tasks\" --task todo --format text\n```\n\nProperty filters support: `K=V` (eq), `K!=V` (neq), `K>=V`\u002F`K\u003C=V`\u002F`K>V`\u002F`K\u003CV` (comparison),\n`K` (existence), `!K` (absence), `K~=pattern` or `K~=\u002Fpattern\u002Fflags` (regex match):\n\n```bash\nhyalo find --property '!status'           # files missing the status property\nhyalo find --property 'title~=draft'      # title contains \"draft\"\nhyalo find --property 'title~=\u002F^Draft\u002Fi'  # case-insensitive regex on title\n```\n\n`K` may be a **dot-path** into nested frontmatter. A literal dotted key in a flat map is\ntried first; otherwise the path is walked. Maps descend by key, and sequences descend too:\na numeric segment pins one element, any other segment auto-descends into *every* element and\ncollects the hits — so the usual list semantics apply (`=`\u002F`~=` match when any element\nmatches, `!=` when none does):\n\n```bash\nhyalo find --property contact.email=team@example.com   # contact: {email: ...}\nhyalo find --property contacts.email=ada@example.com   # contacts: [{name, email}, ...] — any element\nhyalo find --property contacts.0.email=ada@example.com # first element only\nhyalo find --property '!contacts.phone'                # no element has a phone\n```\n\n## Schema & Lint Integration\n\nHyalo supports frontmatter schema validation. Define schemas in `.hyalo.toml` then run:\n\n```bash\n# Strict linting (errors on schema violations)\nhyalo lint --strict --format text\n\n# Auto-fix lint violations\nhyalo lint --fix --dry-run --format text  # preview\nhyalo lint --fix --format text           # apply\n\n# Manage lint rules\nhyalo lint-rules list --format text\nhyalo lint-rules set MD013 --enabled false --format text  # disable line-length rule\n```\n\n## Snapshot Index for Performance\n\nFor vaults >500 files, create a snapshot index to avoid repeated disk scans:\n\n```bash\n# Create index (one scan, reused by all queries)\nhyalo create-index\n\n# Use --index on all subsequent commands\nhyalo find --property status=in-progress --index --format text\nhyalo summary --index --format text\n\n# Mutations also work with --index (patches index after each write)\nhyalo set note.md --property status=completed --index --format text\n\n# Drop when done\nhyalo drop-index\n```\n\nRe-running `create-index` reuses unchanged files (`--force` rebuilds). An `--index` read of a\ndrifted snapshot re-scans the drifted files in memory and notes it; it never writes the file.\n\n## File Movement with Link Rewriting\n\n**Always use `hyalo mv`** — never system `mv` or `git mv`. It rewrites all `[[wikilinks]]` and\n`[markdown](links)` across the vault that pointed to the old path.\n\n```bash\nhyalo mv backlog\u002Fmy-item.md --to backlog\u002Fdone\u002Fmy-item.md --dry-run --format text  # preview\nhyalo mv backlog\u002Fmy-item.md --to backlog\u002Fdone\u002Fmy-item.md --format text           # execute\n```\n\n## Broken Link Detection & Repair\n\n`HYALO006` lints file targets; `HYALO008` lints heading anchors. Both default to\nwarnings and are promoted by `lint --strict` unless severity is explicitly configured.\nExplicit hidden paths can resolve without joining document discovery.\n`links fix` previews unique numbered-heading fragment proposals separately from target\nrepairs, with deferral reasons for ambiguous or unsupported destinations. Ordinary\n`links fix --apply` writes safe target and anchor repairs together. `--apply-fuzzy`\nadditionally enables eligible fuzzy file-target repairs; broader fuzzy anchor guesses\nremain advisory. Broken counts describe the pre-apply scan.\n\n```bash\n# Detect broken links with proposed fixes\nhyalo links fix --format text\n\n# Apply fixes\nhyalo links fix --apply --format text\n```\n\n## Saved Views for Common Queries\n\nSave frequently-used filter combinations as named views:\n\n```bash\n# Create views for common queries\nhyalo views set stale-in-progress --property status=in-progress --fields tasks\nhyalo views set orphans --orphan --fields backlinks\nhyalo views set missing-status --property '!status'\n\n# Use views\nhyalo find --view stale-in-progress --format text\nhyalo find --view orphans --limit 5 --format text\n```\n\n## Task Management\n\n```bash\n# Toggle task checkboxes\nhyalo task toggle note.md --line 5,7 --format text\nhyalo task toggle note.md --section \"Tasks\" --all --format text\n\n# Read tasks with status\nhyalo read note.md --section \"Tasks\" --format text\n```\n\n## Type Schema Management\n\n```bash\n# List defined types\nhyalo types list --format text\n\n# Create\u002Fupdate iteration type schema\nhyalo types set iteration --required title,date,status,branch,tags --format text\nhyalo types set iteration --property-values \"status=planned,in-progress,completed\" --format text\nhyalo types set iteration --filename-template \"iterations\u002Fiteration-{n}-{slug}.md\" --format text\n```\n\n## When to Use hyalo vs Built-in pi Tools\n\n| Task | Tool | Example |\n|------|------|---------|\n| Search\u002Ffilter markdown files | **hyalo** | `hyalo find \"rust\" --property type=iteration --format text` |\n| Read frontmatter properties | **hyalo** | `hyalo find --property status=planned --format text` |\n| Update frontmatter | **hyalo** | `hyalo set note.md --property status=completed --format text` |\n| Toggle task checkboxes | **hyalo** | `hyalo task toggle note.md --line 5 --format text` |\n| Move\u002Frename markdown files | **hyalo** | `hyalo mv old.md --to new.md --format text` |\n| Fix broken links | **hyalo** | `hyalo links fix --apply --format text` |\n| Rewrite body prose | **edit** | `edit` tool for paragraph changes |\n| Create new markdown files | **write** | `write` tool for new files |\n| Complex text transformations | **edit** | `edit` tool for regex replacements |\n\nThe typed Pi tools use the generated Hyalo API runtime shipped with this package.\nThey always request JSON without hints and preserve typed envelopes and errors;\nuse the generic `hyalo` tool when text output, `--jq`, or an unsupported command\nis required.\n\nUser jq compilation and evaluation each run in a child with a 3-second deadline;\nsource\u002Finput\u002Foutput limits are 64 KiB \u002F 64 MiB \u002F 10 MiB (at most 1,000,000 values).\nCompilation failure precedes writes; evaluation failure retains committed effects.\nLinux caps worker address space at 512 MiB. macOS\u002FWindows have no hard memory cap;\nintermediate allocations can still exhaust host memory before termination.\n\n## Setup Checklist for New Projects\n\n1. **Install hyalo**: Ensure `hyalo` is on PATH (`which hyalo`). Use the\n   published `cargo install hyalo-cli` route or, on a supported Node.js platform,\n   `npm install --global @ractive-ch\u002Fhyalo`.\n2. **Configure vault**: Create `.hyalo.toml` with `dir = \"knowledgebase\"`\n3. **Add to AGENTS.md**: Include: \"Use `hyalo` CLI for all markdown knowledgebase operations. Always use `--format text` for compact output.\"\n4. **Create views**: Set up common views (`stale-in-progress`, `orphans`, etc.)\n5. **Define schemas**: Create type schemas for consistent frontmatter\n\n## Advanced Patterns for pi\n\n### Bulk Status Updates\n```bash\n# Preview a native filtered update; rerun without --dry-run after review\nhyalo set --glob 'iterations\u002F*.md' --where-property status=planned \\\n  --property status=deferred --dry-run --format text\n```\n\n### Health Dashboard\n```bash\n# Generate KB health report\nhyalo summary --format text\nhyalo lint --strict --format text\nhyalo links fix --format text\n```\n\n### Orphan Analysis\n```bash\n# Find orphans with context\nhyalo find --orphan --fields properties,links --format text \\\n  | grep -v \"SEED.md\\|decision-log.md\\|development-roadmap.md\"  # exclude expected orphans\n```\n\n## Common Pitfalls & Solutions\n\n1. **Using the generic tool for common operations**: prefer hyalo_find\u002Fhyalo_read\u002Fhyalo_set\u002Fhyalo_task — no flag spelling or quoting to get wrong\n2. **Missing `--format text`**: Output is verbose JSON — always use `--format text` in pi (the extension injects it automatically; only needed via bash)\n3. **Not using `--index` for large vaults**: Queries are slow — create index for >500 files\n4. **Using system `mv` instead of `hyalo mv`**: Breaks links — always use `hyalo mv`\n5. **Ignoring hints**: hyalo suggests next commands — follow them\n6. **Not validating schemas**: Run `hyalo lint --strict` regularly\n7. **Guessing flags instead of reading `-h`**: every command's short help fits on one screen; `--help` has the full syntax\n\n## Integration with pi Extension\n\nIf the hyalo extension is installed (`.pi\u002Fextensions\u002Fhyalo.ts`), use the typed tools first:\n```json\n{\"tool\": \"hyalo_find\", \"property\": [\"status=planned\"], \"tag\": \"iteration\"}\n```\nFor anything they don't cover, use the generic `hyalo` tool:\n```json\n{\n  \"subcommand\": \"find\",\n  \"args\": [\"iteration\", \"--property\", \"status=planned\", \"--format\", \"text\"],\n  \"formatText\": true\n}\n```\n\nOtherwise, use via `bash` tool:\n```bash\nhyalo find \"iteration\" --property status=planned --format text\n```\n",{"name":5,"description":7,"user_invocable":39},"main","e6ec4173f18cc4a0ed1e36eb19ef6ebdc19b8f02","crates\u002Fhyalo-cli\u002Ftemplates\u002Fpi\u002Fskills\u002Fhyalo",2,"https:\u002F\u002Fgithub.com\u002Fractive\u002Fhyalo","https:\u002F\u002Fgithub.com\u002Fractive","https:\u002F\u002Fractive.ch","2026-11-13 19:09:46",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add ractive\u002Fhyalo --skill hyalo",{"tool":57,"command":58},"bunx","bunx skills add ractive\u002Fhyalo --skill hyalo",{"tool":60,"command":61},"pnpm","pnpm dlx skills add ractive\u002Fhyalo --skill hyalo","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fractive\u002Fhyalo\u002Fblob\u002Fmain\u002Fcrates\u002Fhyalo-cli\u002Ftemplates\u002Fpi\u002Fskills\u002Fhyalo\u002FSKILL.md",true,[],[66,82,98,111,128,142],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":38},"01M6H1GJ8EK138Y9VRGMD0ZXWC","hyalo-tidy","Audit or tidy a Hyalo knowledgebase for broken links, orphan documents, stale content, and inconsistent metadata.","https:\u002F\u002Fgithub.com\u002Fractive\u002Fhyalo\u002Fblob\u002Fmain\u002Fplugins\u002Fhyalo\u002Fskills\u002Fhyalo-tidy\u002FSKILL.md",[],[5,73,74,20,75,76,77,78,79,80,81,35],"hyalo tidy","tidy","links","orphan","stale","broken","audit","metadata","content",{"skillNo":83,"name":5,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":38},"01M6H1GNEXF2BA4DDAB7FSGGFE","Search and edit structured markdown knowledgebases with the Hyalo CLI: frontmatter, tags, tasks, links, and document structure.","https:\u002F\u002Fgithub.com\u002Fractive\u002Fhyalo\u002Fblob\u002Fmain\u002Fplugins\u002Fhyalo\u002Fskills\u002Fhyalo\u002FSKILL.md",[],[5,88,89,90,91,30,92,93,94,95,96,75,97],"cli","tasks","search","markdown","document","structure","structured","tags","with","frontmatter",{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":38},"01M6H1GEPA24F7PF5RQFHX3GXY","hyalo-skills","Validate and maintain Agent Skills collections using Hyalo's skills profile, including Codex and Claude skill directories.","https:\u002F\u002Fgithub.com\u002Fractive\u002Fhyalo\u002Fblob\u002Fmain\u002Fplugins\u002Fhyalo\u002Fskills\u002Fhyalo-skills\u002FSKILL.md",[],[105,5,21,106,24,107,108,109,110],"hyalo skills","maintain","codex","validate","profile","claude skill",{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":38},"01M6H1G8ZJJYJW7T7TN9S1VXKZ","hyalo-okf","Maintain Open Knowledge Format vaults with Hyalo's OKF index, log, and conformance commands.","https:\u002F\u002Fgithub.com\u002Fractive\u002Fhyalo\u002Fblob\u002Fmain\u002Fplugins\u002Fhyalo\u002Fskills\u002Fhyalo-okf\u002FSKILL.md",[],[5,118,119,120,121,122,123,124,106,125,126,96,127],"hyalo okf","okf","index","open","knowledge","format","log","vaults","commands","conformance",{"skillNo":129,"name":130,"nameZh":6,"description":131,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":132,"categories":133,"keywords":134,"publishedAt":38},"01M6H1G5SPS4RN422EWZYP5VJX","hyalo-madr","Maintain Markdown Architecture Decision Records with Hyalo's MADR profile and table-of-contents commands.","https:\u002F\u002Fgithub.com\u002Fractive\u002Fhyalo\u002Fblob\u002Fmain\u002Fplugins\u002Fhyalo\u002Fskills\u002Fhyalo-madr\u002FSKILL.md",[],[135,5,136,91,137,138,109,106,126,139,96,140,141],"hyalo madr","architecture decision records","table","decision","records","architecture decision","architecture",{"skillNo":143,"name":144,"nameZh":6,"description":145,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":146,"categories":147,"keywords":148,"publishedAt":38},"01M6H1G17683QH3EZT06SX075Q","hyalo-changelog","Maintain Keep a Changelog files with Hyalo's changelog profile and add\u002Frelease commands.","https:\u002F\u002Fgithub.com\u002Fractive\u002Fhyalo\u002Fblob\u002Fmain\u002Fplugins\u002Fhyalo\u002Fskills\u002Fhyalo-changelog\u002FSKILL.md",[],[149,5,150,106,126,151,26,109,96,152,153],"changelog","hyalo changelog","add","release","keep"]