[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C1NHSP07HXCZSCQVE5J5S9":3,"skill-same:01M7C1NHSP07HXCZSCQVE5J5S9":49},{"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":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M7C1NHSP07HXCZSCQVE5J5S9","dialogue-graph",null,"linyouxue\u002Fskill-repair-benchmark","linyouxue","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F216151464?v=4","01M7BJEVCXKD74KH6FG9CBVSQB","林宥学","01M7BJEVE02NP217V93BKZFC0J",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fdialogue-parser\u002Frepaired_skill\u002Fdialogue-graph\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"# Dialogue Script -> Graph Artifacts (JSON + DOT)\n\n## Purpose\nConvert a plain-text dialogue script into a validated dialogue graph representation (nodes + edges) and serialize it into verifier-checked artifacts (typically JSON and DOT text), using environment discovery and post-write schema\u002Fconsistency checks.\n\n## When to Use\nUse this when a task requires parsing a dialogue script format (often sectioned and\u002For choice-based) into a machine-validated graph schema and emitting artifacts that downstream tooling\u002Ftests verify (for example, a JSON graph and a .dot file).\n\n## Procedure\n- 1) Discover the contract and environment before coding anything irreversible.\n- Locate the repository entrypoint(s) and expected outputs by searching for any of: README\u002Fspec, tests, verify scripts, fixture examples, or schema definitions.\n- Identify (a) required artifact types (JSON, DOT, other), (b) exact key names (for example \"from\" vs \"source\"), (c) start-node rule (first section vs a sentinel name), and (d) terminal-node convention (whether a sentinel like \"End\" is allowed or must be materialized).\n- Execution anchor: run the available verification command (tests or a provided checker) to see explicit failures and expected formats.\n- 2) Parse the script into an internal, contract-shaped graph model.\n- Read the script as text; normalize line endings; ignore empty\u002Fcomment-only lines if the spec allows.\n- Discover sections (for example bracketed headers) rather than assuming a fixed start label; set start_id to the first section encountered unless the contract says otherwise.\n- For each section, classify content into node types required by the contract (for example \"line\" vs \"choice\") using only rules supported by the spec\u002Ftests; if ambiguous, choose a deterministic rule and record\u002Fraise a parse error when the contract requires strictness.\n- Extract fields (speaker\u002Ftext\u002Fchoice text\u002Ftargets) exactly as the contract names them; do not invent extra fields.\n- 3) Build edges with strict referential rules and deterministic ID handling.\n- Create node ids from section identifiers exactly as parsed (preserve case\u002Fspacing rules per contract).\n- Create edges only when the script indicates a transition (for example an arrow); store edge endpoints using the contract keys (\"from\"\u002F\"to\" or \"source\"\u002F\"target\").\n- Decision point: if an edge target is referenced but no section defines it:\n- If the contract explicitly allows a terminal\u002Fsentinel target, handle it exactly as required (either permit as an edge to a non-materialized sentinel, or materialize a terminal node). Do not guess.\n- Otherwise, fail validation (do not silently auto-create nodes).\n- 4) Serialize artifacts to verifier-visible files using discovered paths\u002Fnames.\n- Write JSON using the exact schema and key ordering only if required (otherwise any ordering).\n- Write DOT as plain text (no external graphviz install, no image generation). Keep it minimal: declare a directed\u002Fundirected graph per contract and emit node\u002Fedge statements using node ids safely escaped if needed by DOT syntax.\n- If output paths are not provided, discover the expected location from tests\u002Fspec; do not hard-code project-specific paths.\n- 5) Validate before finalizing (reload-and-assert).\n- Reload the written JSON from disk and assert:\n- Top-level object has required keys (for example nodes, edges) and correct types (lists\u002Fobjects).\n- Each node has required fields (at least id and type) and unique ids.\n- Each edge has required fields and references valid node ids, except only those terminal conventions explicitly allowed by the contract.\n- If reachability is required, compute reachability from start_id and assert all required nodes are reachable.\n- Read the DOT file back as text and sanity-check it matches the contract (for example starts with \"digraph\" if directed) and references known node ids\u002Fedges.\n\n## Constraints \u002F Pitfalls\n- Do not assume any specific library\u002Fmodule (for example a pre-existing Graph\u002FNode\u002FEdge package) exists; always discover what is available in the environment and implement with standard language features unless verified otherwise.\n- Do not assume a fixed start node label (for example \"[Start]\") or silently auto-create missing targets; derive start\u002Fterminal behavior from the observable contract (spec\u002Ftests) and enforce it with a post-write reload-and-assert check.",{},"main","cdcb6d230f3b15c3c33f8a2bdd16439f43602cbe","evaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fdialogue-parser\u002Frepaired_skill\u002Fdialogue-graph",1,"https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark","https:\u002F\u002Fgithub.com\u002Flinyouxue","2026-11-14 20:28:35",{"source":7,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add linyouxue\u002Fskill-repair-benchmark --skill dialogue-graph",{"tool":35,"command":36},"bunx","bunx skills add linyouxue\u002Fskill-repair-benchmark --skill dialogue-graph",{"tool":38,"command":39},"pnpm","pnpm dlx skills add linyouxue\u002Fskill-repair-benchmark --skill dialogue-graph","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fdialogue-parser\u002Frepaired_skill\u002Fdialogue-graph\u002FSKILL.md",true,[43],{"path":44,"resourceType":45,"resourceTypeDesc":46,"sizeBytes":47,"sourceHtmlUrl":48},"scripts\u002Fdialogue_graph.py","SCRIPT","脚本",5793,"https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FSkillrevise\u002Ftasks\u002Fdialogue-parser\u002Frepaired_skill\u002Fdialogue-graph\u002Fscripts\u002Fdialogue_graph.py",[50,57,64,71,76,81],{"skillNo":51,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":54,"categories":55,"keywords":56,"publishedAt":18},"01M7E1HGVRY73NBJ022CJG13X6","video-frame-extraction","Extract frames from video files and save them as images using OpenCV","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fvideo-frame-extraction\u002FSKILL.md",[],[],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":18},"01M7E1HAG5R7CJ9C8NYJS771MB","openai-vision","Analyze images and multi-frame sequences using OpenAI GPT vision models","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fopenai-vision\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":18},"01M7E1H7DADKB6QBWKC2KQ63SZ","image-ocr","Extract text content from images using Tesseract OCR via Python, including structured field extraction from receipts and forms","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fimage-ocr\u002FSKILL.md",[],[],{"skillNo":72,"name":52,"nameZh":6,"description":53,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":18},"01M7E1H0WBNT43TENGQY7AVZHD","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fvideo-frame-extraction\u002FSKILL.md",[],[],{"skillNo":77,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":18},"01M7E1GTC7D4N4Q2EF03875J9E","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fopenai-vision\u002FSKILL.md",[],[],{"skillNo":82,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M7E1GQ92CWFMGH53KSSE4WER","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fimage-ocr\u002FSKILL.md",[],[]]