[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75D44TYC5YJXD0WPVV85394":3,"skill-same:01M75D44TYC5YJXD0WPVV85394":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M75D44TYC5YJXD0WPVV85394","diagramming-code",null,"Generates Mermaid diagrams from Trailmark code graphs. Produces call graphs, class hierarchies, module dependency maps, containment diagrams, complexity heatmaps, and attack surface data flow visualizations. Use when visualizing code architecture, drawing call graphs, generating class diagrams, creating dependency maps, producing complexity heatmaps, or visualizing data flow and attack surface paths as Mermaid diagrams.","agisota\u002Fold-one","agisota","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F121413592?v=4","01M75B4BRNT67EC1NDRT8QZEP2","01M75B4BS7QR9VP580MSCPTS3X",3,"MIT","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fdiagramming-code\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: diagramming-code\ndescription: >\n  Generates Mermaid diagrams from Trailmark code graphs. Produces call graphs,\n  class hierarchies, module dependency maps, containment diagrams, complexity\n  heatmaps, and attack surface data flow visualizations. Use when visualizing\n  code architecture, drawing call graphs, generating class diagrams, creating\n  dependency maps, producing complexity heatmaps, or visualizing data flow\n  and attack surface paths as Mermaid diagrams.\n---\n\n# Diagramming Code\n\nGenerates Mermaid diagrams from Trailmark's code graph. A pre-made script\nhandles Mermaid syntax generation; Claude selects the diagram type and\nparameters.\n\n## When to Use\n\n- Visualizing call paths between functions\n- Drawing class inheritance hierarchies\n- Mapping module import dependencies\n- Showing class structure with members\n- Highlighting complexity hotspots with color coding\n- Tracing data flow from entrypoints to sensitive functions\n\n## When NOT to Use\n\n- Querying the graph without visualization (use the `trailmark` skill)\n- Mutation testing triage (use the `genotoxic` skill)\n- Architecture diagrams not derived from code (draw by hand)\n\n## Prerequisites\n\n**trailmark** must be installed. If `uv run trailmark` fails, run:\n\n```bash\nuv pip install trailmark\n```\n\n**DO NOT** fall back to hand-writing Mermaid from source code reading. The\nscript uses Trailmark's parsed graph for accuracy. If installation fails,\nreport the error to the user.\n\n---\n\n## Quick Start\n\n```bash\nuv run {baseDir}\u002Fscripts\u002Fdiagram.py \\\n    --target {targetDir} --type call-graph \\\n    --focus main --depth 2\n```\n\nOutput is raw Mermaid text. Wrap in a fenced code block:\n\n````markdown\n```mermaid\nflowchart TB\n    ...\n```\n````\n\n---\n\n## Diagram Types\n\n```\n├─ \"Who calls what?\"               → --type call-graph\n├─ \"Class inheritance?\"             → --type class-hierarchy\n├─ \"Module dependencies?\"           → --type module-deps\n├─ \"Class members and structure?\"   → --type containment\n├─ \"Where is complexity highest?\"   → --type complexity\n└─ \"Path from input to function?\"   → --type data-flow\n```\n\nFor detailed examples of each type, see\n[references\u002Fdiagram-types.md](references\u002Fdiagram-types.md).\n\n---\n\n## Workflow\n\n```\nDiagram Progress:\n- [ ] Step 1: Verify trailmark is installed\n- [ ] Step 2: Identify diagram type from user request\n- [ ] Step 3: Determine focus node and parameters\n- [ ] Step 4: Run diagram.py script\n- [ ] Step 5: Verify output is non-empty and well-formed\n- [ ] Step 6: Embed diagram in response\n```\n\n**Step 1:** Run `uv run trailmark analyze --summary {targetDir}`. Install\nif it fails. Then run pre-analysis via the programmatic API:\n\n```python\nfrom trailmark.query.api import QueryEngine\n\nengine = QueryEngine.from_directory(\"{targetDir}\", language=\"{lang}\")\nengine.preanalysis()\n```\n\nPre-analysis enriches the graph with blast radius, taint propagation,\nand privilege boundary data used by `data-flow` diagrams.\n\n**Step 2:** Match the user's request to a `--type` using the decision tree\nabove.\n\n**Step 3:** For `call-graph` and `data-flow`, identify the focus function.\nDefault `--depth 2`. Use `--direction LR` for dependency flows.\n\n**Step 4:** Run the script and capture stdout.\n\n**Step 5:** Check: output starts with `flowchart` or `classDiagram`,\ncontains at least one node. If empty or malformed, consult\n[references\u002Fmermaid-syntax.md](references\u002Fmermaid-syntax.md).\n\n**Step 6:** Wrap output in ` ```mermaid ``` ` code fence.\n\n---\n\n## Script Reference\n\n```\nuv run {baseDir}\u002Fscripts\u002Fdiagram.py [OPTIONS]\n```\n\n| Argument | Short | Default | Description |\n|---|---|---|---|\n| `--target` | `-t` | required | Directory to analyze |\n| `--language` | `-l` | `python` | Source language |\n| `--type` | `-T` | required | Diagram type (see above) |\n| `--focus` | `-f` | none | Center diagram on this node |\n| `--depth` | `-d` | `2` | BFS traversal depth |\n| `--direction` | | `TB` | Layout: `TB` (top-bottom) or `LR` (left-right) |\n| `--threshold` | | `10` | Min complexity for `complexity` type |\n\n### Examples\n\n```bash\n# Call graph centered on a function\nuv run {baseDir}\u002Fscripts\u002Fdiagram.py -t src\u002F -T call-graph -f parse_file\n\n# Class hierarchy for a Rust project\nuv run {baseDir}\u002Fscripts\u002Fdiagram.py -t src\u002F -l rust -T class-hierarchy\n\n# Module dependency map, left-to-right\nuv run {baseDir}\u002Fscripts\u002Fdiagram.py -t src\u002F -T module-deps --direction LR\n\n# Class members\nuv run {baseDir}\u002Fscripts\u002Fdiagram.py -t src\u002F -T containment\n\n# Complexity heatmap (threshold 5)\nuv run {baseDir}\u002Fscripts\u002Fdiagram.py -t src\u002F -T complexity --threshold 5\n\n# Data flow from entrypoints to a specific function\nuv run {baseDir}\u002Fscripts\u002Fdiagram.py -t src\u002F -T data-flow -f execute_query\n```\n\n---\n\n## Customization\n\n**Direction:** Use `TB` (default) for hierarchical views, `LR` for\nleft-to-right flows like dependency chains.\n\n**Depth:** Increase `--depth` to see more of the call graph. Decrease to\nreduce clutter. The script warns if the diagram exceeds 100 nodes.\n\n**Focus:** Always use `--focus` for `call-graph` on non-trivial codebases.\nFor `data-flow`, omitting focus auto-targets the top 10 complexity hotspots.\n\n---\n\n## Supporting Documentation\n\n- **[references\u002Fdiagram-types.md](references\u002Fdiagram-types.md)** -\n  Detailed docs and Mermaid examples for each diagram type\n- **[references\u002Fmermaid-syntax.md](references\u002Fmermaid-syntax.md)** -\n  ID sanitization, escaping, style definitions, and common pitfalls\n","# Diagramming Code\n\nGenerates Mermaid diagrams from Trailmark's code graph. A pre-made script\nhandles Mermaid syntax generation; Claude selects the diagram type and\nparameters.\n\n## When to Use\n\n- Visualizing call paths between functions\n- Drawing class inheritance hierarchies\n- Mapping module import dependencies\n- Showing class structure with members\n- Highlighting complexity hotspots with color coding\n- Tracing data flow from entrypoints to sensitive functions\n\n## When NOT to Use\n\n- Querying the graph without visualization (use the `trailmark` skill)\n- Mutation testing triage (use the `genotoxic` skill)\n- Architecture diagrams not derived from code (draw by hand)\n\n## Prerequisites\n\n**trailmark** must be installed. If `uv run trailmark` fails, run:\n\n```bash\nuv pip install trailmark\n```\n\n**DO NOT** fall back to hand-writing Mermaid from source code reading. The\nscript uses Trailmark's parsed graph for accuracy. If installation fails,\nreport the error to the user.\n\n---\n\n## Quick Start\n\n```bash\nuv run {baseDir}\u002Fscripts\u002Fdiagram.py \\\n    --target {targetDir} --type call-graph \\\n    --focus main --depth 2\n```\n\nOutput is raw Mermaid text. Wrap in a fenced code block:\n\n````markdown\n```mermaid\nflowchart TB\n    ...\n```\n````\n\n---\n\n## Diagram Types\n\n```\n├─ \"Who calls what?\"               → --type call-graph\n├─ \"Class inheritance?\"             → --type class-hierarchy\n├─ \"Module dependencies?\"           → --type module-deps\n├─ \"Class members and structure?\"   → --type containment\n├─ \"Where is complexity highest?\"   → --type complexity\n└─ \"Path from input to function?\"   → --type data-flow\n```\n\nFor detailed examples of each type, see\n[references\u002Fdiagram-types.md](references\u002Fdiagram-types.md).\n\n---\n\n## Workflow\n\n```\nDiagram Progress:\n- [ ] Step 1: Verify trailmark is installed\n- [ ] Step 2: Identify diagram type from user request\n- [ ] Step 3: Determine focus node and parameters\n- [ ] Step 4: Run diagram.py script\n- [ ] Step 5: Verify output is non-empty and well-formed\n- [ ] Step 6: Embed diagram in response\n```\n\n**Step 1:** Run `uv run trailmark analyze --summary {targetDir}`. Install\nif it fails. Then run pre-analysis via the programmatic API:\n\n```python\nfrom trailmark.query.api import QueryEngine\n\nengine = QueryEngine.from_directory(\"{targetDir}\", language=\"{lang}\")\nengine.preanalysis()\n```\n\nPre-analysis enriches the graph with blast radius, taint propagation,\nand privilege boundary data used by `data-flow` diagrams.\n\n**Step 2:** Match the user's request to a `--type` using the decision tree\nabove.\n\n**Step 3:** For `call-graph` and `data-flow`, identify the focus function.\nDefault `--depth 2`. Use `--direction LR` for dependency flows.\n\n**Step 4:** Run the script and capture stdout.\n\n**Step 5:** Check: output starts with `flowchart` or `classDiagram`,\ncontains at least one node. If empty or malformed, consult\n[references\u002Fmermaid-syntax.md](references\u002Fmermaid-syntax.md).\n\n**Step 6:** Wrap output in ` ```mermaid ``` ` code fence.\n\n---\n\n## Script Reference\n\n```\nuv run {baseDir}\u002Fscripts\u002Fdiagram.py [OPTIONS]\n```\n\n| Argument | Short | Default | Description |\n|---|---|---|---|\n| `--target` | `-t` | required | Directory to analyze |\n| `--language` | `-l` | `python` | Source language |\n| `--type` | `-T` | required | Diagram type (see above) |\n| `--focus` | `-f` | none | Center diagram on this node |\n| `--depth` | `-d` | `2` | BFS traversal depth |\n| `--direction` | | `TB` | Layout: `TB` (top-bottom) or `LR` (left-right) |\n| `--threshold` | | `10` | Min complexity for `complexity` type |\n\n### Examples\n\n```bash\n# Call graph centered on a function\nuv run {baseDir}\u002Fscripts\u002Fdiagram.py -t src\u002F -T call-graph -f parse_file\n\n# Class hierarchy for a Rust project\nuv run {baseDir}\u002Fscripts\u002Fdiagram.py -t src\u002F -l rust -T class-hierarchy\n\n# Module dependency map, left-to-right\nuv run {baseDir}\u002Fscripts\u002Fdiagram.py -t src\u002F -T module-deps --direction LR\n\n# Class members\nuv run {baseDir}\u002Fscripts\u002Fdiagram.py -t src\u002F -T containment\n\n# Complexity heatmap (threshold 5)\nuv run {baseDir}\u002Fscripts\u002Fdiagram.py -t src\u002F -T complexity --threshold 5\n\n# Data flow from entrypoints to a specific function\nuv run {baseDir}\u002Fscripts\u002Fdiagram.py -t src\u002F -T data-flow -f execute_query\n```\n\n---\n\n## Customization\n\n**Direction:** Use `TB` (default) for hierarchical views, `LR` for\nleft-to-right flows like dependency chains.\n\n**Depth:** Increase `--depth` to see more of the call graph. Decrease to\nreduce clutter. The script warns if the diagram exceeds 100 nodes.\n\n**Focus:** Always use `--focus` for `call-graph` on non-trivial codebases.\nFor `data-flow`, omitting focus auto-targets the top 10 complexity hotspots.\n\n---\n\n## Supporting Documentation\n\n- **[references\u002Fdiagram-types.md](references\u002Fdiagram-types.md)** -\n  Detailed docs and Mermaid examples for each diagram type\n- **[references\u002Fmermaid-syntax.md](references\u002Fmermaid-syntax.md)** -\n  ID sanitization, escaping, style definitions, and common pitfalls\n",{"name":5,"description":7},"main","f37de8f681f0c0ca0e0ebab6e5fddf764ca7553d","skills\u002Fdiagramming-code",1,"https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one","https:\u002F\u002Fagisota.github.io\u002Fold-one\u002F","https:\u002F\u002Fgithub.com\u002Fagisota","pzd.world","2026-07-04 22:32:06",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add agisota\u002Fold-one --skill diagramming-code",{"tool":38,"command":39},"bunx","bunx skills add agisota\u002Fold-one --skill diagramming-code",{"tool":41,"command":42},"pnpm","pnpm dlx skills add agisota\u002Fold-one --skill diagramming-code","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fdiagramming-code\u002FSKILL.md",true,[46,52,56],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fdiagram-types.md","REFERENCE","参考文档",5186,"https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fdiagramming-code\u002Freferences\u002Fdiagram-types.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fmermaid-syntax.md",2947,"https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fdiagramming-code\u002Freferences\u002Fmermaid-syntax.md",{"path":57,"resourceType":58,"resourceTypeDesc":59,"sizeBytes":60,"sourceHtmlUrl":61},"scripts\u002Fdiagram.py","SCRIPT","脚本",389,"https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fdiagramming-code\u002Fscripts\u002Fdiagram.py",[63,70,77,86,93,100],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":18},"01M75KRGZWQWE9JDBS6RX42NWV","zoom-out","Tell the agent to zoom out and give broader context or a higher-level perspective. Use when you're unfamiliar with a section of code or need to understand how it fits into the bigger picture.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fzoom-out\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":18},"01M75KRCZHKE0ZYAQFFYHS0YNP","zeroize-audit","Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C\u002FC++\u002FRust code handling secrets, keys, passwords, or other sensitive data.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fzeroize-audit\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":81,"licenseFileUrl":82,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M75KR94KYQ30DTE1P9WNDAE0","yeet","Use only when the user explicitly asks to stage, commit, push, and open a GitHub pull request in one flow using the GitHub CLI (`gh`).","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fyeet\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fyeet\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":18},"01M75KR3H13YJ9QHMD49818FA1","yara-rule-authoring","Guides authoring of high-quality YARA-X detection rules for malware identification. Use when writing, reviewing, or optimizing YARA rules. Covers naming conventions, string selection, performance optimization, migration from legacy YARA, and false positive reduction. Triggers on: YARA, YARA-X, malware detection, threat hunting, IOC, signature, crx module, dex module.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fyara-rule-authoring\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":18},"01M75KQMPY8A4Y8XTDD2DT0M9T","x-twitter-growth","X\u002FTwitter growth engine for building audience, crafting viral content, and analyzing engagement. Use when the user wants to grow on X\u002FTwitter, write tweets or threads, analyze their X profile, research competitors on X, plan a posting strategy, or optimize engagement. Complements social-content (generic multi-platform) with X-specific depth: algorithm mechanics, thread engineering, reply strategy, profile optimization, and competitive intelligence via web search.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fx-twitter-growth\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":18},"01M75KQHNZ0ANZNJGZY6M8MDAK","x-api","X\u002FTwitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.","https:\u002F\u002Fgithub.com\u002Fagisota\u002Fold-one\u002Fblob\u002Fmain\u002Fskills\u002Fx-api\u002FSKILL.md",[],[]]