{"data":{"slug":"discovered-2d33981b431893159108a853e73ecde37ef4eb4222ceb609","title":"Research","summary":"Generate a concise, checkable markdown answer-card file in the `research\/` directory to answer a question about a library, engine, or dependency API \u2014 or an option-matrix for techniques\/approaches or an ASCII mechanism-figure for how a technique works.","url":"https:\/\/skillshunter.net\/skills\/discovered-2d33981b431893159108a853e73ecde37ef4eb4222ceb609","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-2d33981b431893159108a853e73ecde37ef4eb4222ceb609","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-2d33981b431893159108a853e73ecde37ef4eb4222ceb609.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-2d33981b431893159108a853e73ecde37ef4eb4222ceb609\/download","category":{"slug":"data-research","name":"Data & Research"},"editor_note":"Before rendering, tag the card with 1\u20134 tags naming what the card is about (e.g., `tilemap`, `collision`, `asset-loading`). Use `hresearch tags` and `hresearch tag <dir> <tag>...` to apply tags. Ensure that all slots are filled with checkable content, such as `verdict`, `how`, `snippet`, `breaks`, or `source`, and avoid prose. Never write `card.json` or `.hresearch` by hand.","instructions":"---\ndescription: Answer a question about a library, engine or dependency API as an answer-card file in the current task's research\/ dir \u2014 slots, copied snippets and verbatim quotes with links, no prose \u2014 or which techniques\/approaches exist to do something, as an option-matrix, or how a technique or mechanism works, as an ASCII mechanism-figure. Use whenever I ask how to do something with an API or crate, which techniques\/approaches exist for a problem, or how a technique or mechanism works, with or without \/research.\nargument-hint: '<question in one sentence> [--seed <card>]'\nallowed-tools: Bash(hresearch:*), WebSearch, Read, Grep\n---\n\nAnswer $ARGUMENTS (or, when invoked by description rather than `\/research`, my\nlast message) as a fixed-shape markdown file, never prose \u2014 a concise,\ncheckable result. Research writes no code: the only files it writes are in\nthis task's `research\/` dir. Reading the project is fine, and an item may\nrefer to a part of it by `path:line`.\n\n## 0. Pick the shape\n\n`hresearch new \"<question verbatim>\"` decides the shape and reports it on\nstderr as `shape: <x> (from question)` \u2014 that is the shape this question is\nanswered in, and `hresearch render` refuses a card in any other shape. A\nquestion asking which techniques, approaches or options exist for a problem\n\u2014 a survey of alternatives (\"which techniques exist to \u2026\", \"what approaches\nare there for \u2026\") \u2014 is an **option-matrix**. A question asking how a\ntechnique, algorithm or mechanism works internally (\"how does a flow field\npathfinder move many agents\", \"how does X work\") is a **mechanism-figure**.\nAnything else \u2014 \"how do I use this API\", \"what does this function do\" \u2014 is an\n**answer-card**. Everything below step 0 is common to all three; where they\ndiffer it says which shape it's for.\n\nPass `--shape card|matrix|figure` on `new` only when the classifier's guess\nplainly contradicts what the question is actually asking (e.g. \"what options\ndoes this function take\" is an API question, not a survey \u2014 `--shape card`);\njudge the override against the same three definitions above, since that is\nwhat `render` will hold the answer to.\n\n1. `hresearch new \"<question verbatim>\"` first, once per question \u2014 never\n   render a later question into an earlier question's dir, and never pass a\n   dir this command did not just print in this task. Its stdout is the\n   sources dir \u2014 every other `hresearch` call in this run takes that path.\n   When the invocation carries `--seed <card>`, run\n   `hresearch new --seed <card> \"<question verbatim>\"` instead. Its stderr\n   names the near miss's sources: fetch the ones relevant to this question\n   with `hresearch fetch` as usual \u2014 `(cached)` means the stored copy was\n   used and no request was made, and a `fetch again` source is fetched like\n   any other.\n2. Search with `WebSearch`. Every page you intend to cite is fetched with\n   `hresearch fetch <dir> <url>` \u2014 never `WebFetch` for a page you'll cite,\n   because a cited quote or precedent has to be checkable against the stored\n   copy `fetch` makes. Read or `Grep` the stored `<id>.txt` files to find the\n   sentences and code you need.\n3. Prefer docs.rs (or the crate's own docs) for API facts, and a GitHub `blob`\n   link into the crate's `examples\/` or source for a card's snippet or a\n   matrix's precedent.\n\nA `render: shape: the question called for <x>, got <y>` error means the JSON\nyou sent is in the wrong shape for what this question was recorded as \u2014 fix\nthe JSON to answer in shape `<x>` and render again. Never re-run `new` to get\na different shape than the one it already picked; that is what `--shape` on\nthe original `new` call is for.\n\n## Tag it, before the reply\n\nEvery shape's last step is a one-line reply. Before it, once the file has\nrendered, tag the card so it can be found again by topic:\n\n```\nhresearch tags\nhresearch tag <dir> <tag>...\n```\n\nPick 1\u20134 tags naming what the card is *about* (`tilemap`, `collision`,\n`asset-loading`). Reuse a tag `hresearch tags` lists whenever one fits;\ncoin a new one only when none does. A tag is `[a-z0-9-]+`.\n\n## Answer-card\n\n4. Fill the slots the question needs, and leave the others out \u2014 a card holds\n   at least one, and a slot left out is simply not shown:\n   - **verdict** \u2014 up to 4 items, the answer itself.\n   - **how** \u2014 up to 10 numbered steps.\n   - **snippet** \u2014 one contiguous block of code or config. Copied verbatim\n     from a fetched example or source, never edited, not even a rename; or,\n     when the source states it in prose rather than as code \u2014 a `Cargo.toml`\n     entry, a feature list, a target table \u2014 written by you and marked\n     `\"composed\": true`. Name its language with `\"lang\"` when it is not Rust\n     (`\"lang\": \"toml\"`).\n   - **breaks** \u2014 the source's own sentences about a pitfall or caveat, not\n     your paraphrase of it.\n   - **source** \u2014 generated by the tool; you never write it.\n   Every item is one line. A claim with no fetched source backing it carries\n   no `src` and renders `[unsourced]` \u2014 never state it as if it were sourced.\n5. Render:\n   ```\n   hresearch render <dir> - <<'JSON'\n   { \"verdict\": [...], \"how\": [...], \"snippet\": {...}, \"breaks\": [...] }\n   JSON\n   ```\n   A `render:` error names the slot and the problem \u2014 fix the JSON (drop or\n   re-copy the offending text, mark it unsourced or composed, or leave the\n   slot out) and render again. Never write `card.json` or the `.hresearch` by\n   hand.\n6. Reply in the pane with exactly one line: the card's path. Nothing else \u2014\n   the card is the answer, not a summary of it.\n\n## Option-matrix\n\n4. Pick 2\u20136 techniques as columns \u2014 never more than 6; if more are genuinely\n   candidates, keep the strongest ones and drop the rest.\n5. Pick 1\u20136 **criteria** for this question \u2014 the ones the techniques\n   actually differ on and the choice turns on, each at most 8 words. They are\n   rows, chosen per question; nothing about a project fixes them. Every cell\n   must be filled for every column, in at most 8 words, never a sentence. One\n   more row is always there and is not in `criteria`:\n   - **precedent** \u2014 for each technique, `hresearch fetch` an example, crate\n     or repo that implements it and cite it as `{\"src\": k}`;\n     `{\"none\": true}` when no precedent was found. Never a `text` cell here.\n6. `verdict` names exactly one column \u2014 pick one, never \"it depends\".\n7. Render:\n   ```\n   hresearch render <dir> - <<'JSON'\n   { \"shape\": \"matrix\",\n     \"criteria\": [\"<criterion>\", \"<criterion>\"],\n     \"options\": [ {\"name\": \"...\", \"cells\": {\n         \"<criterion>\": {\"text\": \"...\", \"src\": 1},\n         \"<criterion>\": {\"text\": \"...\"},\n         \"precedent\": {\"src\": 2} } }, ... ],\n     \"verdict\": {\"option\": \"...\", \"text\": \"...\"} }\n   JSON\n   ```\n   A `render:` error names the cell and the problem (too many words, an\n   unknown criterion, a criterion named `precedent` or `verdict`, a verdict\n   naming no column, a precedent cell with no `src` or `none`) \u2014 fix the\n   JSON and render again. Never write `card.json` or the `.hresearch` by\n   hand.\n8. Reply in the pane with exactly one line: the matrix's path.\n\n## Mechanism-figure\n\n4. `hresearch fetch` the source that explains the mechanism \u2014 a paper,\n   article, docs page or reference implementation.\n5. Draw the mechanism as an ASCII figure: its stages left to right or top to\n   bottom, joined by arrows (`\u2500\u2500\u2500\u25ba`, `\u2192`, `\u2193`), each stage a small box or grid\n   showing the data it holds. Labels are at most 5 words each, never a\n   sentence \u2014 draw the mechanism, don't caption each piece of it. Enough\n   detail that someone could implement from the figure alone, at most 78\n   columns and 30 lines.\n6. Write one caption line (\u2264 16 words) with a `src` \u2014 the single sentence the\n   figure itself can't show.\n7. Render:\n   ```\n   hresearch render <dir> - <<'JSON'\n   { \"shape\": \"figure\",\n     \"figure\": \"line one\\nline two\\n...\",\n     \"caption\": {\"text\": \"...\", \"src\": 1} }\n   JSON\n   ```\n   `figure` may also be a JSON list of line strings. A `render:` error names\n   the line or the caption and the problem (a line too wide, a word run that\n   reads as prose, no drawing character anywhere, a caption with no `src` or\n   more than one line) \u2014 fix it and render again. Never hand-write the figure\n   around a rejection; redraw it. Never write `card.json` or the `.hresearch` by\n   hand.\n8. Reply in the pane with exactly one line: the figure's path. The figure is\n   a notes file, and a throwaway interactive visual (a plot, a live viewer) is\n   allowed alongside it but is never the default medium; the figure is the\n   answer.\n","use_cases":["Answer a question about a library, engine, or dependency API with an answer-card file","Generate an option-matrix to compare techniques or approaches for a problem","Create an ASCII mechanism-figure to explain how a technique or mechanism works"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/julianbieber\/hobby-tooling\/blob\/420f1f68d0f92201d2a7a51a0c463784e1e49405\/skills\/research\/skill.md","source_commit":"420f1f68d0f92201d2a7a51a0c463784e1e49405","license":null,"version":null,"listing_approved_at":"2026-11-30","created_at":"2026-11-29T11:13:28.000000Z","updated_at":"2026-11-30T06:52:26.000000Z","seo_title":"Research Skill - Generate Checkable Answer Cards for API Questions","seo_description":"Use the Research skill to answer API questions with concise markdown answer cards, option matrices, or ASCII mechanism figures. No prose, only checkable content.","seo_keywords":["research skill","api answer card","option matrix","mechanism figure","checkable markdown","hresearch tool"]}}