[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77H9WYXKNP70ZV2SMSM5VPQ":3,"skill-same:01M77H9WYXKNP70ZV2SMSM5VPQ":50},{"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":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":6,"updatedAt":35,"install":36,"resources":49},"01M77H9WYXKNP70ZV2SMSM5VPQ","trajectory-garden",null,"One repeatable gardening pass over a trajectory corpus — the JSONL of per-turn Turn rows a fak trajectory.Recorder exports. Uses the `fak traj` toolkit (the data plane + the simhash reference vector-similarity primitive + the pluggable scorer seam) to find the trajectories worth a human's attention — near-duplicate queries the lexical ranker misses, cost outliers, and traces the kernel kept refusing — then PROPOSES prune candidates (it never deletes). The reference application of fak's trajectory observability primitives: proof that a. Use when this named workflow matches the task.","anthony-chaudhary\u002Ffak","anthony-chaudhary","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F18080164?v=4","01M77GSKCAEKV3JS07J40B94DY","Anthony Chaudhary","01M77GSKD26Z7F4FQQD4VA30VX",48,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fanthony-chaudhary\u002Ffak\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftrajectory-garden\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: trajectory-garden\ndescription: \"One repeatable gardening pass over a trajectory corpus — the JSONL of per-turn Turn rows a fak trajectory.Recorder exports. Uses the `fak traj` toolkit (the data plane + the simhash reference vector-similarity primitive + the pluggable scorer seam) to find the trajectories worth a human's attention — near-duplicate queries the lexical ranker misses, cost outliers, and traces the kernel kept refusing — then PROPOSES prune candidates (it never deletes). The reference application of fak's trajectory observability primitives: proof that a. Use when this named workflow matches the task.\"\nmetadata:\n  generated-by: fak project-assets sync\n  canonical: ..\u002F..\u002F..\u002F.claude\u002Fskills\u002Ftrajectory-garden\u002FSKILL.md\n---\n\n# trajectory-garden — find the bad\u002Fredundant trajectories, propose the prune, never delete\n\n> **What this does.** An agent that records its trajectories accumulates two kinds\n> of cruft: *redundant* work (the same question asked five different ways) and\n> *bad* trajectories (a loop the kernel kept refusing, a turn that burned a huge\n> context budget). Left ungardened, both rot a memory store — the redundancy\n> inflates retrieval cost, the bad trajectories poison few-shot recall. This pass\n> turns \"the memory feels messy\" into a **concrete, sourced work-list**: the exact\n> turns to look at, ranked worst-first, with a proposed prune you approve before\n> anything is removed.\n\nThe shape: **export\u002Flocate the corpus → score it with the reference scorers →\nread the findings worst-first → propose prunes (`fak traj gc`) → hand the operator\nthe prune list to approve.** Nothing here deletes a user's trajectory data — `fak`\nships the *observability*, the gardening *decision* stays with you.\n\nThis skill is also the **reference application** of fak's trajectory primitives\n(`internal\u002Fsimhash`, `internal\u002Ftrajectory`, `internal\u002Ftrajhook`, the `fak traj`\nverbs). If you want a *different* analysis — a semantic-embedding dedupe, a\nper-tool cost report, a regression detector over two corpora — fork the steps\nbelow and swap the scorer. That swap is the whole point: fak gives you the data\nand the seam, you write the policy.\n\n---\n\n## The one rule that overrides everything: PROPOSE, never delete\n\n`fak traj gc` emits prune *candidates*. This skill surfaces them and stops. The\noperator (or a downstream store with its own retention policy) decides what to\nactually remove. fak never deletes trajectory data, and neither does this pass —\na wrong auto-prune is unrecoverable, and the cost of a missed prune is just a\nslightly larger corpus. Always err toward keeping.\n\n---\n\n## What a \"corpus\" is\n\nA trajectory corpus is the JSONL a `trajectory.Recorder` exports — one\n`trajectory.Turn` per line (trace id, seq, query, tool, verdict, reason, taint,\ntoken\u002Fbyte cost, optional simhash embedding). Three ways one exists:\n\n1. **A live fak kernel** with recording enabled (`FAK_TRAJECTORY=1`, and\n   `FAK_TRAJECTORY_EMBED=1` to stamp query vectors): the recorder folds the\n   adjudication stream into Turn rows, exportable via the gateway \u002F a front door.\n2. **An offline run** that drove a `trajectory.Recorder` and called `ExportTo`.\n3. **The shipped demo** — `examples\u002Ftrajectory\u002Fsample-corpus.jsonl` — to dry-run\n   the verbs with no live kernel.\n\nIf no corpus exists yet, say so and point the operator at enabling\n`FAK_TRAJECTORY`; do not fabricate one.\n\n---\n\n## The pass, step by step\n\nRun from the repo root. Replace `CORPUS` with the corpus path (use the shipped\ndemo to rehearse).\n\n```bash\nCORPUS=examples\u002Ftrajectory\u002Fsample-corpus.jsonl\n\n# 1. Score the whole corpus with the three reference scorers, worst-first.\ngo run .\u002Fcmd\u002Ffak traj score --corpus \"$CORPUS\"\n\n# 2. Look up whether a specific NEW query is redundant with past work.\ngo run .\u002Fcmd\u002Ffak traj similar --corpus \"$CORPUS\" --query \"look up the refund policy\" --k 5\n\n# 3. Map the redundancy: cluster near-duplicate queries.\ngo run .\u002Fcmd\u002Ffak traj cluster --corpus \"$CORPUS\"\n\n# 4. Propose prune candidates (later near-duplicates). JSON for a downstream store.\ngo run .\u002Fcmd\u002Ffak traj gc --corpus \"$CORPUS\" --json\n```\n\n`score` is the headline. It runs three reference scorers and lists findings\nworst-first:\n\n| label             | what it flags                                              | act on it by |\n|-------------------|------------------------------------------------------------|--------------|\n| `duplicate_query` | a turn whose query near-duplicates an EARLIER one (simhash)| prune the later one, or cache the result |\n| `cost_outlier`    | a turn in the expensive tail of the token distribution     | investigate why it was so big; compress its inputs |\n| `high_deny_rate`  | a TRACE the kernel refused on ≥50% of turns                 | read the trace — a confused or adversarial loop |\n\n---\n\n## Read the findings, then decide\n\nFor each finding worth acting on:\n\n- **`duplicate_query`** → the later turn is redundant. If its result is cached,\n  the future ask is a free hit; if not, it is a prune candidate. `fak traj gc`\n  lists exactly these, each with the earlier turn it duplicates (`keep`) and the\n  cosine. Hand the operator the `prune` keys; do not remove them yourself.\n- **`cost_outlier`** → not cruft, a *signal*. A 9800-token turn is where the\n  context budget went. Surface it; the fix is usually upstream (compress the tool\n  output, page out the raw evidence) not a prune.\n- **`high_deny_rate`** → a trajectory the kernel kept refusing. Read the trace's\n  queries. A tight cluster of destructive variants (\"delete rows\" \u002F \"drop\n  records\" \u002F \"truncate\") is an agent fighting the policy floor — worth a human\n  look, never an auto-prune.\n\n---\n\n## Know the primitive's ceiling (and when to swap it out)\n\n`simhash` is a **reference** vector-similarity primitive: a deterministic,\ndependency-free hashing-trick sketch over word\u002Fchar n-grams. It is honest about\nits limits — near-duplicates that share most *words* score ~0.70–0.78, but two\nqueries that mean the same thing in *different vocabulary* (\"delete every row\" vs\n\"drop all records\") score only ~0.35, below the default 0.70 duplicate threshold.\nThat is the floor of a lexical-feature hash, and it is by design: fak does not\nship a learned semantic model.\n\nSo: if your corpus has lots of same-intent \u002F different-vocabulary redundancy that\nthe reference scorer misses, that is the signal to **swap in real embeddings** —\nbuild a `simhash.Index` (or your own `[]float32` vectors) from a sentence\nembedder and feed them through the same `fak traj` machinery, or register your own\n`trajhook.Scorer`. The seam is built for exactly this; the reference scorer is the\nfloor, not the ceiling.\n\n---\n\n## Extend it (the reason this skill exists)\n\nTo add a new analysis, register a `trajhook.Scorer` (per-turn, sees the whole\ncorpus) or `trajhook.CorpusScorer` (whole-corpus) — a pure function from\n`trajectory.Turn`(s) to `trajhook.Finding`s — and run it over the corpus. No core\nedit, no ABI change: this is the application-layer seam. The three reference\nscorers in `internal\u002Ftrajhook\u002Ftrajhook.go` (`DuplicateQuery`, `CostOutlier`,\n`DenyRate`) are the worked examples you copy.\n\n---\n\n## What to report\n\nA short operator note, not a wall:\n\n- corpus path + turn\u002Ftrace counts,\n- the worst 5–10 findings (label, where, why),\n- the prune candidates (count + the keys), framed as a **proposal to approve**,\n- one line on whether the reference embedder is discriminating well on this corpus\n  or it is time to swap in semantic vectors.\n\nStop there. The prune decision is the operator's.\n","# trajectory-garden — find the bad\u002Fredundant trajectories, propose the prune, never delete\n\n> **What this does.** An agent that records its trajectories accumulates two kinds\n> of cruft: *redundant* work (the same question asked five different ways) and\n> *bad* trajectories (a loop the kernel kept refusing, a turn that burned a huge\n> context budget). Left ungardened, both rot a memory store — the redundancy\n> inflates retrieval cost, the bad trajectories poison few-shot recall. This pass\n> turns \"the memory feels messy\" into a **concrete, sourced work-list**: the exact\n> turns to look at, ranked worst-first, with a proposed prune you approve before\n> anything is removed.\n\nThe shape: **export\u002Flocate the corpus → score it with the reference scorers →\nread the findings worst-first → propose prunes (`fak traj gc`) → hand the operator\nthe prune list to approve.** Nothing here deletes a user's trajectory data — `fak`\nships the *observability*, the gardening *decision* stays with you.\n\nThis skill is also the **reference application** of fak's trajectory primitives\n(`internal\u002Fsimhash`, `internal\u002Ftrajectory`, `internal\u002Ftrajhook`, the `fak traj`\nverbs). If you want a *different* analysis — a semantic-embedding dedupe, a\nper-tool cost report, a regression detector over two corpora — fork the steps\nbelow and swap the scorer. That swap is the whole point: fak gives you the data\nand the seam, you write the policy.\n\n---\n\n## The one rule that overrides everything: PROPOSE, never delete\n\n`fak traj gc` emits prune *candidates*. This skill surfaces them and stops. The\noperator (or a downstream store with its own retention policy) decides what to\nactually remove. fak never deletes trajectory data, and neither does this pass —\na wrong auto-prune is unrecoverable, and the cost of a missed prune is just a\nslightly larger corpus. Always err toward keeping.\n\n---\n\n## What a \"corpus\" is\n\nA trajectory corpus is the JSONL a `trajectory.Recorder` exports — one\n`trajectory.Turn` per line (trace id, seq, query, tool, verdict, reason, taint,\ntoken\u002Fbyte cost, optional simhash embedding). Three ways one exists:\n\n1. **A live fak kernel** with recording enabled (`FAK_TRAJECTORY=1`, and\n   `FAK_TRAJECTORY_EMBED=1` to stamp query vectors): the recorder folds the\n   adjudication stream into Turn rows, exportable via the gateway \u002F a front door.\n2. **An offline run** that drove a `trajectory.Recorder` and called `ExportTo`.\n3. **The shipped demo** — `examples\u002Ftrajectory\u002Fsample-corpus.jsonl` — to dry-run\n   the verbs with no live kernel.\n\nIf no corpus exists yet, say so and point the operator at enabling\n`FAK_TRAJECTORY`; do not fabricate one.\n\n---\n\n## The pass, step by step\n\nRun from the repo root. Replace `CORPUS` with the corpus path (use the shipped\ndemo to rehearse).\n\n```bash\nCORPUS=examples\u002Ftrajectory\u002Fsample-corpus.jsonl\n\n# 1. Score the whole corpus with the three reference scorers, worst-first.\ngo run .\u002Fcmd\u002Ffak traj score --corpus \"$CORPUS\"\n\n# 2. Look up whether a specific NEW query is redundant with past work.\ngo run .\u002Fcmd\u002Ffak traj similar --corpus \"$CORPUS\" --query \"look up the refund policy\" --k 5\n\n# 3. Map the redundancy: cluster near-duplicate queries.\ngo run .\u002Fcmd\u002Ffak traj cluster --corpus \"$CORPUS\"\n\n# 4. Propose prune candidates (later near-duplicates). JSON for a downstream store.\ngo run .\u002Fcmd\u002Ffak traj gc --corpus \"$CORPUS\" --json\n```\n\n`score` is the headline. It runs three reference scorers and lists findings\nworst-first:\n\n| label             | what it flags                                              | act on it by |\n|-------------------|------------------------------------------------------------|--------------|\n| `duplicate_query` | a turn whose query near-duplicates an EARLIER one (simhash)| prune the later one, or cache the result |\n| `cost_outlier`    | a turn in the expensive tail of the token distribution     | investigate why it was so big; compress its inputs |\n| `high_deny_rate`  | a TRACE the kernel refused on ≥50% of turns                 | read the trace — a confused or adversarial loop |\n\n---\n\n## Read the findings, then decide\n\nFor each finding worth acting on:\n\n- **`duplicate_query`** → the later turn is redundant. If its result is cached,\n  the future ask is a free hit; if not, it is a prune candidate. `fak traj gc`\n  lists exactly these, each with the earlier turn it duplicates (`keep`) and the\n  cosine. Hand the operator the `prune` keys; do not remove them yourself.\n- **`cost_outlier`** → not cruft, a *signal*. A 9800-token turn is where the\n  context budget went. Surface it; the fix is usually upstream (compress the tool\n  output, page out the raw evidence) not a prune.\n- **`high_deny_rate`** → a trajectory the kernel kept refusing. Read the trace's\n  queries. A tight cluster of destructive variants (\"delete rows\" \u002F \"drop\n  records\" \u002F \"truncate\") is an agent fighting the policy floor — worth a human\n  look, never an auto-prune.\n\n---\n\n## Know the primitive's ceiling (and when to swap it out)\n\n`simhash` is a **reference** vector-similarity primitive: a deterministic,\ndependency-free hashing-trick sketch over word\u002Fchar n-grams. It is honest about\nits limits — near-duplicates that share most *words* score ~0.70–0.78, but two\nqueries that mean the same thing in *different vocabulary* (\"delete every row\" vs\n\"drop all records\") score only ~0.35, below the default 0.70 duplicate threshold.\nThat is the floor of a lexical-feature hash, and it is by design: fak does not\nship a learned semantic model.\n\nSo: if your corpus has lots of same-intent \u002F different-vocabulary redundancy that\nthe reference scorer misses, that is the signal to **swap in real embeddings** —\nbuild a `simhash.Index` (or your own `[]float32` vectors) from a sentence\nembedder and feed them through the same `fak traj` machinery, or register your own\n`trajhook.Scorer`. The seam is built for exactly this; the reference scorer is the\nfloor, not the ceiling.\n\n---\n\n## Extend it (the reason this skill exists)\n\nTo add a new analysis, register a `trajhook.Scorer` (per-turn, sees the whole\ncorpus) or `trajhook.CorpusScorer` (whole-corpus) — a pure function from\n`trajectory.Turn`(s) to `trajhook.Finding`s — and run it over the corpus. No core\nedit, no ABI change: this is the application-layer seam. The three reference\nscorers in `internal\u002Ftrajhook\u002Ftrajhook.go` (`DuplicateQuery`, `CostOutlier`,\n`DenyRate`) are the worked examples you copy.\n\n---\n\n## What to report\n\nA short operator note, not a wall:\n\n- corpus path + turn\u002Ftrace counts,\n- the worst 5–10 findings (label, where, why),\n- the prune candidates (count + the keys), framed as a **proposal to approve**,\n- one line on whether the reference embedder is discriminating well on this corpus\n  or it is time to swap in semantic vectors.\n\nStop there. The prune decision is the operator's.\n",{"name":5,"metadata":24,"description":7},{"canonical":25,"generated-by":26},"..\u002F..\u002F..\u002F.claude\u002Fskills\u002Ftrajectory-garden\u002FSKILL.md","fak project-assets sync","main","f565b7b7db63e79649f3a02c08108132a86c5d05",".agents\u002Fskills\u002Ftrajectory-garden",16,"https:\u002F\u002Fgithub.com\u002Fanthony-chaudhary\u002Ffak","https:\u002F\u002Fanthony-chaudhary.github.io\u002Ffak\u002Fshowcase.html","https:\u002F\u002Fgithub.com\u002Fanthony-chaudhary","https:\u002F\u002Flinkedin.com\u002Fin\u002Fanthonychaudhary","2026-11-15 03:06:00",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add anthony-chaudhary\u002Ffak --skill trajectory-garden",{"tool":42,"command":43},"bunx","bunx skills add anthony-chaudhary\u002Ffak --skill trajectory-garden",{"tool":45,"command":46},"pnpm","pnpm dlx skills add anthony-chaudhary\u002Ffak --skill trajectory-garden","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fanthony-chaudhary\u002Ffak\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Ftrajectory-garden\u002FSKILL.md",true,[],[51,58,67,74,81,86],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":19},"01M78V4059KRP2T88YR6Z05MJQ","serve-receipt","On-demand research protocol + deterministic receipt for serving a Hugging Face model on a concrete GPU target — fan out research lanes (model facts\u002Ffiles, engine support matrix, serving recipes, KV\u002Fstate memory math), compute the tiered feasibility verdict with `fak serve-receipt` (never narrated math), and emit a witnessed launch receipt. Use when asked for an \"initial config\", \"serving receipt\", or \"how do I serve \u003Cmodel> on \u003CGPUs>\".","https:\u002F\u002Fgithub.com\u002Fanthony-chaudhary\u002Ffak\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fserve-receipt\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":62,"licenseFileUrl":63,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M77HRGKQV2CJ2K6ZFN4YQ32K","caveman","Ultra-compressed communication mode. Cuts output tokens 65% (measured) by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says \"caveman mode\", \"talk like caveman\", \"use caveman\", \"less tokens\", \"be brief\", or invokes \u002Fcaveman. Also auto-triggers when token efficiency is requested.","MIT","https:\u002F\u002Fgithub.com\u002Fanthony-chaudhary\u002Ffak\u002Fblob\u002Fmain\u002Finternal\u002Fsyspromptmmu\u002Fthird_party\u002Fcaveman\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fanthony-chaudhary\u002Ffak\u002Fblob\u002Fmain\u002Finternal\u002Fsyspromptmmu\u002Fthird_party\u002Fcaveman\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},"01M77HRAY3Y3BE7APN5PVJF7NV","quality-report","Score the repo quality and emit a report card.","https:\u002F\u002Fgithub.com\u002Fanthony-chaudhary\u002Ffak\u002Fblob\u002Fmain\u002Finternal\u002Fctxplans\u002Ftestdata\u002Frepo\u002F.claude\u002Fskills\u002Fquality-report\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},"01M77HR9807KHAX13DG9PW2K2Q","ctx-overlay","Compact the context window and prune the memory store when a session grows too long.","https:\u002F\u002Fgithub.com\u002Fanthony-chaudhary\u002Ffak\u002Fblob\u002Fmain\u002Finternal\u002Fctxplans\u002Ftestdata\u002Frepo\u002F.claude\u002Fskills\u002Fctx-overlay\u002FSKILL.md",[],[],{"skillNo":82,"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":83,"categories":84,"keywords":85,"publishedAt":19},"01M77HR7XQ9X8F2CY9Z4F2ZEZ3","https:\u002F\u002Fgithub.com\u002Fanthony-chaudhary\u002Ffak\u002Fblob\u002Fmain\u002Finternal\u002Fctxplanlint\u002Ftestdata\u002Frepo\u002F.claude\u002Fskills\u002Fquality-report\u002FSKILL.md",[],[],{"skillNo":87,"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":88,"categories":89,"keywords":90,"publishedAt":19},"01M77HR5BVKCTR1WNJGRBSDNX7","https:\u002F\u002Fgithub.com\u002Fanthony-chaudhary\u002Ffak\u002Fblob\u002Fmain\u002Finternal\u002Fctxplanlint\u002Ftestdata\u002Frepo\u002F.claude\u002Fskills\u002Fctx-overlay\u002FSKILL.md",[],[]]