[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74HG904TP3KRC1KAV2FCACN":3,"skill-same:01M74HG904TP3KRC1KAV2FCACN":47},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M74HG904TP3KRC1KAV2FCACN","dialogue-graph",null,"A library for building, validating, visualizing, and serializing dialogue graphs. Use this when parsing scripts or creating branching narrative structures.","Raidriar7170\u002Fhermes-skilleval","Raidriar7170","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F118113656?v=4","01M74HF0DSG5XS53PVXERD6V51","Adrian Sun","01M74HF0EJJHQE5XJ0MV1MRFHX",29,"MIT","https:\u002F\u002Fgithub.com\u002FRaidriar7170\u002Fhermes-skilleval\u002Fblob\u002Fmain\u002Fartifacts\u002Fv0.3\u002Fskillsbench-pilot\u002Fv0.3-stage2-input-package-candidate-20260701T010000Z\u002Fcandidate-data\u002Fskill-sources\u002Fskillsbench__dialogue-graph\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: dialogue-graph\ndescription: A library for building, validating, visualizing, and serializing dialogue graphs. Use this when parsing scripts or creating branching narrative structures.\n---\n\n# Dialogue Graph Skill\n\nThis skill provides a `dialogue_graph` module to easily build valid dialogue trees\u002Fgraphs.\n\n## When to use\n\n*   **Script Parsers**: When converting text to data.\n*   **Dialogue Editors**: When building tools to edit conversation flow.\n*   **Game Logic**: When traversing a dialogue tree.\n*   **Visualization**: When generating visual diagrams of dialogue flows.\n\n## How to use\n\nImport the module:\n```python\nfrom dialogue_graph import Graph, Node, Edge\n```\n\n### 1. The `Graph` Class\nThe main container.\n\n```python\ngraph = Graph()\n```\n\n### 2. Adding Nodes\nDefine content nodes.\n\n```python\n# Regular line\ngraph.add_node(Node(id=\"Start\", speaker=\"Guard\", text=\"Halt!\", type=\"line\"))\n\n# Choice hub\ngraph.add_node(Node(id=\"Choices\", type=\"choice\"))\n```\n\n### 3. Adding Edges\nConnect nodes (transitions).\n\n```python\n# Simple transition\ngraph.add_edge(Edge(source=\"Start\", target=\"Choices\"))\n\n# Choice transition (with text)\ngraph.add_edge(Edge(source=\"Choices\", target=\"End\", text=\"1. Run away\"))\n```\n\n### 4. Export\nSerialize to JSON format for the engine.\n\n```python\ndata = graph.to_dict()\n# returns {\"nodes\": [...], \"edges\": [...]}\njson_str = graph.to_json()\n```\n\n### 5. Validation\nCheck for integrity.\n\n```python\nerrors = graph.validate()\n# Returns list of strings, e.g., [\"Edge 'Start'->'Unk' points to missing node 'Unk'\"]\n```\n\n### 6. Visualization\nGenerate a PNG\u002FSVG graph diagram.\n\n```python\n# Requires: pip install graphviz\n# Also requires Graphviz binary: https:\u002F\u002Fgraphviz.org\u002Fdownload\u002F\n\ngraph.visualize('dialogue_graph')  # Creates dialogue_graph.png\ngraph.visualize('output', format='svg')  # Creates output.svg\n```\n\nThe visualization includes:\n- **Diamond shapes** for choice nodes (light blue)\n- **Rounded boxes** for dialogue nodes (colored by speaker)\n- **Bold blue edges** for skill-check choices like `[Lie]`, `[Attack]`\n- **Gray edges** for regular choices\n- **Black edges** for simple transitions\n\n### 7. Loading from JSON\nLoad an existing dialogue graph.\n\n```python\n# From file\ngraph = Graph.from_file('dialogue.json')\n\n# From dict\ngraph = Graph.from_dict({'nodes': [...], 'edges': [...]})\n\n# From JSON string\ngraph = Graph.from_json(json_string)\n```\n","# Dialogue Graph Skill\n\nThis skill provides a `dialogue_graph` module to easily build valid dialogue trees\u002Fgraphs.\n\n## When to use\n\n*   **Script Parsers**: When converting text to data.\n*   **Dialogue Editors**: When building tools to edit conversation flow.\n*   **Game Logic**: When traversing a dialogue tree.\n*   **Visualization**: When generating visual diagrams of dialogue flows.\n\n## How to use\n\nImport the module:\n```python\nfrom dialogue_graph import Graph, Node, Edge\n```\n\n### 1. The `Graph` Class\nThe main container.\n\n```python\ngraph = Graph()\n```\n\n### 2. Adding Nodes\nDefine content nodes.\n\n```python\n# Regular line\ngraph.add_node(Node(id=\"Start\", speaker=\"Guard\", text=\"Halt!\", type=\"line\"))\n\n# Choice hub\ngraph.add_node(Node(id=\"Choices\", type=\"choice\"))\n```\n\n### 3. Adding Edges\nConnect nodes (transitions).\n\n```python\n# Simple transition\ngraph.add_edge(Edge(source=\"Start\", target=\"Choices\"))\n\n# Choice transition (with text)\ngraph.add_edge(Edge(source=\"Choices\", target=\"End\", text=\"1. Run away\"))\n```\n\n### 4. Export\nSerialize to JSON format for the engine.\n\n```python\ndata = graph.to_dict()\n# returns {\"nodes\": [...], \"edges\": [...]}\njson_str = graph.to_json()\n```\n\n### 5. Validation\nCheck for integrity.\n\n```python\nerrors = graph.validate()\n# Returns list of strings, e.g., [\"Edge 'Start'->'Unk' points to missing node 'Unk'\"]\n```\n\n### 6. Visualization\nGenerate a PNG\u002FSVG graph diagram.\n\n```python\n# Requires: pip install graphviz\n# Also requires Graphviz binary: https:\u002F\u002Fgraphviz.org\u002Fdownload\u002F\n\ngraph.visualize('dialogue_graph')  # Creates dialogue_graph.png\ngraph.visualize('output', format='svg')  # Creates output.svg\n```\n\nThe visualization includes:\n- **Diamond shapes** for choice nodes (light blue)\n- **Rounded boxes** for dialogue nodes (colored by speaker)\n- **Bold blue edges** for skill-check choices like `[Lie]`, `[Attack]`\n- **Gray edges** for regular choices\n- **Black edges** for simple transitions\n\n### 7. Loading from JSON\nLoad an existing dialogue graph.\n\n```python\n# From file\ngraph = Graph.from_file('dialogue.json')\n\n# From dict\ngraph = Graph.from_dict({'nodes': [...], 'edges': [...]})\n\n# From JSON string\ngraph = Graph.from_json(json_string)\n```\n",{"name":5,"description":7},"main","8f6a21e53c1363ee18ea6d6e3db1f4b3805ff552","artifacts\u002Fv0.3\u002Fskillsbench-pilot\u002Fv0.3-stage2-input-package-candidate-20260701T010000Z\u002Fcandidate-data\u002Fskill-sources\u002Fskillsbench__dialogue-graph",1,"https:\u002F\u002Fgithub.com\u002FRaidriar7170\u002Fhermes-skilleval","https:\u002F\u002Fgithub.com\u002FRaidriar7170","https:\u002F\u002Flinkedin.com\u002Fin\u002Fminghongsun","UCSD ECE M.S. '27 | LLM\u002FAgent algorithms, multimodal grounding, post-training & evaluation","2026-09-26 13:41:34",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Raidriar7170\u002Fhermes-skilleval --skill dialogue-graph",{"tool":39,"command":40},"bunx","bunx skills add Raidriar7170\u002Fhermes-skilleval --skill dialogue-graph",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Raidriar7170\u002Fhermes-skilleval --skill dialogue-graph","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FRaidriar7170\u002Fhermes-skilleval\u002Fblob\u002Fmain\u002Fartifacts\u002Fv0.3\u002Fskillsbench-pilot\u002Fv0.3-stage2-input-package-candidate-20260701T010000Z\u002Fcandidate-data\u002Fskill-sources\u002Fskillsbench__dialogue-graph\u002FSKILL.md",true,[],[48,54,61,68,75,82],{"skillNo":49,"name":50,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M74HPD1Y2K0FZDH27KCC8TN4","songwriting-and-ai-music","https:\u002F\u002Fgithub.com\u002FRaidriar7170\u002Fhermes-skilleval\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fcreative\u002Fsongwriting-and-ai-music\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M74HPANJ9S5FJF4ENQNGSKBH","test-driven-development","Use when implementing behavior that can be covered by automated tests.","https:\u002F\u002Fgithub.com\u002FRaidriar7170\u002Fhermes-skilleval\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fcoding\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M74HP9BHCYRS5NX8K8A2SKQD","systematic-debugging","Use when diagnosing failing tests, runtime errors, or unexpected behavior.","https:\u002F\u002Fgithub.com\u002FRaidriar7170\u002Fhermes-skilleval\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskills\u002Fcoding\u002Fsystematic-debugging\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M74HP77TN9ZZMXVVXFKDTHQ3","workflow-evidence-audit","Use when auditing validation workflow evidence before a maintainer review or diagnostic handoff.","https:\u002F\u002Fgithub.com\u002FRaidriar7170\u002Fhermes-skilleval\u002Fblob\u002Fmain\u002Fexamples\u002Fgithub-action\u002Fskills\u002Fworkflow-evidence-audit\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M74HP42HQ8KAJFT2HETRBPN6","release-note-review","Use when reviewing release notes for evidence boundaries, local validation summaries, and explicit non-goals.","https:\u002F\u002Fgithub.com\u002FRaidriar7170\u002Fhermes-skilleval\u002Fblob\u002Fmain\u002Fexamples\u002Fgithub-action\u002Fskills\u002Frelease-note-review\u002FSKILL.md",[],[],{"skillNo":83,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M74HP191NV4NH4C2NRZK2GY0","https:\u002F\u002Fgithub.com\u002FRaidriar7170\u002Fhermes-skilleval\u002Fblob\u002Fmain\u002Fdocs\u002Fdemo\u002Fexternal-skill-library-validation\u002Fsource\u002Fmarkdown-skills\u002Freview\u002Fworkflow-evidence-audit\u002FSKILL.md",[],[]]