[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M70FQZJTSVJTDT6MBF4DW188":3,"skill-same:01M70FQZJTSVJTDT6MBF4DW188":50},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":21,"linkOnly":22,"markdownContent":23,"markdownBody":24,"frontMatter":25,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":29,"repositoryHtmlUrl":30,"repositoryHomepageUrl":31,"ownerHtmlUrl":32,"ownerBlogUrl":33,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M70FQZJTSVJTDT6MBF4DW188","find-related-sessions",null,"0bserver07\u002Fstaxtrace","0bserver07","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F2153691?v=4","01M70FQJ6N9V6HY96M6KDPX9JZ","Yad Konrad","01M70FQJ7SBVFGQ6TP4DMB7NPX",3,"MIT","https:\u002F\u002Fgithub.com\u002F0bserver07\u002Fstaxtrace\u002Fblob\u002Fmain\u002Frust\u002Fassets\u002Fskills\u002Ffind-related-sessions\u002FSKILL.md",[],[18,19,20],"sessions","find","find related sessions","2026-11-10 10:12:30",false,"---\nname: find-related-sessions\ndescription: Use when the user references a SPECIFIC FILE in a coding task — \"fix the bug in routes\u002Fcost.py\", \"what was that change to api.ts about\", \"refactor python-legacy: store\u002Fqueries.py\", or any request that names a path. Surfaces past sessions that read or wrote that file so the work is grounded in prior context (recent edits, why the file is shaped that way, half-finished refactors).\n---\n\n# Find sessions related to a specific file\n\n## Why this skill exists\n\nWhen the user mentions a specific file, prior work touching that file is the highest-signal context available. StackUnderflow's per-message tool index records which files each session read or wrote. One CLI call returns the recent sessions that touched the path — so you know what the last change was, why it was made, and whether the user's current request continues or contradicts it.\n\n## When this skill fires\n\nTrigger when the user's request includes a concrete file path (with extension or recognizable file shape), AND the request is non-trivial (modify, fix, explain-in-context, refactor):\n\n- \"Fix the bug in `routes\u002Fcost.py`\"\n- \"What was that change to `api.ts` about?\"\n- \"Why is `python-legacy: store\u002Fqueries.py` so long?\"\n- \"Refactor `src\u002Fcomponents\u002FDashboard.tsx`\"\n- \"Can you look at `tests\u002Ftest_aggregator.py`?\"\n\nDo NOT fire for:\n\n- Pure read requests with no follow-up (\"show me `foo.py`\")\n- File paths in error messages or stack traces (use only when the user is explicitly directing attention there)\n- Path-shaped strings that aren't real files (URLs, config keys)\n\n## Step 1: surface sessions touching the file\n\n```bash\nstackunderflow find-sessions-touching-file \u003Cpath> --format json --limit 5 --mode any\n```\n\nThe `\u003Cpath>` argument can be relative to the user's cwd or absolute — both work. The CLI normalizes against the project's session index.\n\n`--mode` filters by access type:\n- `any` (default) — sessions that read OR wrote the file\n- `read` — sessions that opened\u002Fgrepped the file\n- `write` — sessions that edited the file (highest signal for \"what changed and why\")\n\nFor most requests, `--mode any` is right. If the user says \"what changed in this file\", switch to `--mode write` to focus on edits.\n\nJSON shape (one entry per session):\n\n```json\n{\n  \"sessions\": [\n    {\"session_id\": \"...\", \"project_slug\": \"...\", \"project_path\": \"\u002Fabs\u002Fpath\",\n     \"provider\": \"claude\", \"first_ts\": \"...\", \"last_ts\": \"...\",\n     \"message_count\": 42, \"cost_usd\": 0.85, \"snippet\": \"first user message\"}\n  ]\n}\n```\n\n## Step 2: read the snippets, prioritize recency\n\nSessions come back newest-first. The `snippet` summarizes what each session was about. For a \"what changed\" question, the most recent session that wrote the file is usually the answer. For a \"why is this shaped this way\" question, scan the last several sessions for the design discussion.\n\n## Step 3: ground the work\n\n- If a recent session refactored or rewrote the file: don't redo work the user already accepted. Mention what was done; ask if the new request supersedes or extends it.\n- If the file was the subject of an unfinished change: pick up where that session left off.\n- If no sessions touched the file in the indexed window: just proceed with the task. (`sessions: []` is a valid result — `find-sessions-touching-file` is cheap to run speculatively.)\n\n## Showing the user vs. consuming internally\n\nDefault `--format json` is for agent consumption. When the user asks \"show me sessions that touched X\" or \"when was Y last edited\", use the human-readable form:\n\n```bash\nstackunderflow find-sessions-touching-file \u003Cpath> --mode write --limit 10\n```\n\nText output is sorted newest-first with timestamps and one-line snippets — readable as a changelog of who-touched-what.\n\n## Alternate path: MCP\n\nIf the StackUnderflow MCP server is connected, the equivalent is the `find_sessions_touching_file` tool with the same arguments. The CLI is the fallback because it's universally available.\n\n## Cost\n\nLocal SQLite query — no network, no LLM call. \u003C100 ms even on large stores. Run liberally.\n","# Find sessions related to a specific file\n\n## Why this skill exists\n\nWhen the user mentions a specific file, prior work touching that file is the highest-signal context available. StackUnderflow's per-message tool index records which files each session read or wrote. One CLI call returns the recent sessions that touched the path — so you know what the last change was, why it was made, and whether the user's current request continues or contradicts it.\n\n## When this skill fires\n\nTrigger when the user's request includes a concrete file path (with extension or recognizable file shape), AND the request is non-trivial (modify, fix, explain-in-context, refactor):\n\n- \"Fix the bug in `routes\u002Fcost.py`\"\n- \"What was that change to `api.ts` about?\"\n- \"Why is `python-legacy: store\u002Fqueries.py` so long?\"\n- \"Refactor `src\u002Fcomponents\u002FDashboard.tsx`\"\n- \"Can you look at `tests\u002Ftest_aggregator.py`?\"\n\nDo NOT fire for:\n\n- Pure read requests with no follow-up (\"show me `foo.py`\")\n- File paths in error messages or stack traces (use only when the user is explicitly directing attention there)\n- Path-shaped strings that aren't real files (URLs, config keys)\n\n## Step 1: surface sessions touching the file\n\n```bash\nstackunderflow find-sessions-touching-file \u003Cpath> --format json --limit 5 --mode any\n```\n\nThe `\u003Cpath>` argument can be relative to the user's cwd or absolute — both work. The CLI normalizes against the project's session index.\n\n`--mode` filters by access type:\n- `any` (default) — sessions that read OR wrote the file\n- `read` — sessions that opened\u002Fgrepped the file\n- `write` — sessions that edited the file (highest signal for \"what changed and why\")\n\nFor most requests, `--mode any` is right. If the user says \"what changed in this file\", switch to `--mode write` to focus on edits.\n\nJSON shape (one entry per session):\n\n```json\n{\n  \"sessions\": [\n    {\"session_id\": \"...\", \"project_slug\": \"...\", \"project_path\": \"\u002Fabs\u002Fpath\",\n     \"provider\": \"claude\", \"first_ts\": \"...\", \"last_ts\": \"...\",\n     \"message_count\": 42, \"cost_usd\": 0.85, \"snippet\": \"first user message\"}\n  ]\n}\n```\n\n## Step 2: read the snippets, prioritize recency\n\nSessions come back newest-first. The `snippet` summarizes what each session was about. For a \"what changed\" question, the most recent session that wrote the file is usually the answer. For a \"why is this shaped this way\" question, scan the last several sessions for the design discussion.\n\n## Step 3: ground the work\n\n- If a recent session refactored or rewrote the file: don't redo work the user already accepted. Mention what was done; ask if the new request supersedes or extends it.\n- If the file was the subject of an unfinished change: pick up where that session left off.\n- If no sessions touched the file in the indexed window: just proceed with the task. (`sessions: []` is a valid result — `find-sessions-touching-file` is cheap to run speculatively.)\n\n## Showing the user vs. consuming internally\n\nDefault `--format json` is for agent consumption. When the user asks \"show me sessions that touched X\" or \"when was Y last edited\", use the human-readable form:\n\n```bash\nstackunderflow find-sessions-touching-file \u003Cpath> --mode write --limit 10\n```\n\nText output is sorted newest-first with timestamps and one-line snippets — readable as a changelog of who-touched-what.\n\n## Alternate path: MCP\n\nIf the StackUnderflow MCP server is connected, the equivalent is the `find_sessions_touching_file` tool with the same arguments. The CLI is the fallback because it's universally available.\n\n## Cost\n\nLocal SQLite query — no network, no LLM call. \u003C100 ms even on large stores. Run liberally.\n",{},"main","46546e71e94f94900c93ce3eb2f933866509593b","rust\u002Fassets\u002Fskills\u002Ffind-related-sessions",1,"https:\u002F\u002Fgithub.com\u002F0bserver07\u002Fstaxtrace","https:\u002F\u002Fstaxtrace.com","https:\u002F\u002Fgithub.com\u002F0bserver07","yadkonrad.com","- Coding Agents & Agent Driven Systems. \r\n\r\n- Program Synthesis.\r\n\r\n- ML\u002FData Infra.\r\n- Off. Sec. Research.\r\n\r\nElsewhere:\r\n- Creative Writing \u002F Standup Comedian","2026-10-19 15:40:37",{"source":7,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add 0bserver07\u002Fstaxtrace --skill find-related-sessions",{"tool":42,"command":43},"bunx","bunx skills add 0bserver07\u002Fstaxtrace --skill find-related-sessions",{"tool":45,"command":46},"pnpm","pnpm dlx skills add 0bserver07\u002Fstaxtrace --skill find-related-sessions","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002F0bserver07\u002Fstaxtrace\u002Fblob\u002Fmain\u002Frust\u002Fassets\u002Fskills\u002Ffind-related-sessions\u002FSKILL.md",true,[],[51,78,85,94,106,119],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":21},"01M70FTPEZ2S6JAERG6642NW3P","staxtrace-memory","Search local coding-agent session history before acting. Use BEFORE an Edit or Write to a file, BEFORE a non-trivial Bash command (a build, migration, or destructive\u002Flong-running command), and whenever the user references a past decision (\"what did we decide about X\", \"why is this done this way\", \"didn't we agree to Y\"), a specific file, or \"what worked last time\" — cases where a prior session on this machine may already hold the decision, the failure mode, or the exact working command. Queries the local `stax memory` CLI (staxtrace) across every past Claude Code \u002F Codex \u002F Cursor session so you do not re-derive an answer, contradict an earlier choice, or repeat a known failure. Local and read-only; nothing leaves the machine.","https:\u002F\u002Fgithub.com\u002F0bserver07\u002Fstaxtrace\u002Fblob\u002Fmain\u002Fskills\u002Fstaxtrace-memory\u002FSKILL.md",[],[58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77],"staxtrace memory","memory","choice","re","time","decide","search","mode","decision","local","only","you","done","Bash","code","across","agent session","references","cli","command",{"skillNo":79,"name":80,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":21},"01M70FTJYHWW5Z48VXETHR77YM","handwritten","https:\u002F\u002Fgithub.com\u002F0bserver07\u002Fstaxtrace\u002Fblob\u002Fmain\u002Frust\u002Fparity\u002Fhomes\u002Fskills-installed\u002F.claude\u002Fskills\u002Fhandwritten\u002FSKILL.md",[],[80,84],"true",{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":91,"publishedAt":21},"01M70FTGPRBK787GK8TDD00ZVE","auto-undated","no stamp","https:\u002F\u002Fgithub.com\u002F0bserver07\u002Fstaxtrace\u002Fblob\u002Fmain\u002Frust\u002Fparity\u002Fhomes\u002Fskills-installed\u002F.claude\u002Fskills\u002Fauto-undated\u002FSKILL.md",[],[92,93,84],"auto","auto undated",{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":21},"01M70FTD81JPTDM2394ENGX3C3","auto-recent-thing","A recently generated skill.","https:\u002F\u002Fgithub.com\u002F0bserver07\u002Fstaxtrace\u002Fblob\u002Fmain\u002Frust\u002Fparity\u002Fhomes\u002Fskills-installed\u002F.claude\u002Fskills\u002Fauto-recent-thing\u002FSKILL.md",[],[92,101,102,103,18,84,104,105],"auto recent thing","generated skill","tool","generated","jan",{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":21},"01M70FT8X06DZE5WS5B808N2N3","auto-old-thing","An auto-generated skill from a previous run.","https:\u002F\u002Fgithub.com\u002F0bserver07\u002Fstaxtrace\u002Fblob\u002Fmain\u002Frust\u002Fparity\u002Fhomes\u002Fskills-installed\u002F.claude\u002Fskills\u002Fauto-old-thing\u002FSKILL.md",[],[92,113,102,114,18,84,115,104,116,105,117,118],"auto old thing","2026","proj","parity","auto-generated","run",{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":21},"01M70FT6RRH22GQ40N05JFYPVK","auto-hand-written","mine","https:\u002F\u002Fgithub.com\u002F0bserver07\u002Fstaxtrace\u002Fblob\u002Fmain\u002Frust\u002Fparity\u002Fhomes\u002Fskills-installed\u002F.claude\u002Fskills\u002Fauto-hand-written\u002FSKILL.md",[],[126,92,127,122],"auto hand written","hand"]