[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7ETS2BC2R7R8093GTSP02QW":3,"skill-same:01M7ETS2BC2R7R8093GTSP02QW":53},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7ETS2BC2R7R8093GTSP02QW","trailmark-structural",null,"Runs full Trailmark structural analysis by building a graph, running `preanalysis()`, and reporting hotspots, taint, blast radius, privilege boundaries, attack surface, and version-gated Trailmark 0.4+\u002F0.5+ data such as proxy counts, subgraph edges, type\u002Freference summaries, and entrypoint attributes. Use when vivisect needs detailed structural data for a target. Triggers: structural analysis, blast radius, taint analysis, complexity hotspots, proxy nodes, type references.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Ftrailmark-structural\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: trailmark-structural\ndescription: \"Runs full Trailmark structural analysis by building a graph, running `preanalysis()`, and reporting hotspots, taint, blast radius, privilege boundaries, attack surface, and version-gated Trailmark 0.4+\u002F0.5+ data such as proxy counts, subgraph edges, type\u002Freference summaries, and entrypoint attributes. Use when vivisect needs detailed structural data for a target. Triggers: structural analysis, blast radius, taint analysis, complexity hotspots, proxy nodes, type references.\"\nallowed-tools: Bash Read Grep Glob\n---\n\n# Trailmark Structural Analysis\n\nBuilds a Trailmark graph and runs `engine.preanalysis()` to compute all\nfour pre-analysis passes. The core workflow is v0.2-safe; v0.4-only details\nare included only after checking method availability, and newer builds\nenrich the same output (0.5.0+ adds an `attributes` key to attack-surface\nentries and `proxy.external:*` nodes from `.trailmark\u002Flinks.toml`) without\nany workflow change.\n\n## When to Use\n\n- Vivisect Phase 1 needs full structural data (hotspots, taint, blast radius, privilege boundaries)\n- Detailed pre-analysis passes for a specific target scope\n- Generating complexity and taint data for audit prioritization\n- Inspecting proxy\u002Funresolved-call counts, subgraph edges, or type-reference\n  summaries when Trailmark 0.4.0+ is installed\n\n## When NOT to Use\n\n- Quick overview only (use `trailmark-summary` instead)\n- Ad-hoc code graph queries (use the main `trailmark` skill directly)\n- Target is a single small file where structural analysis adds no value\n\n## Rationalizations to Reject\n\n| Rationalization | Why It's Wrong | Required Action |\n|-----------------|----------------|-----------------|\n| \"Summary analysis is enough\" | Summary skips taint, blast radius, and privilege boundary data | Run full structural analysis when detailed data is needed |\n| \"One pass is sufficient\" | Passes cross-reference each other — taint without blast radius misses critical nodes | Run all four passes |\n| \"Tool isn't installed, I'll analyze manually\" | Manual analysis misses what tooling catches | Report \"trailmark is not installed\" and return |\n| \"Empty pass output means the pass failed\" | Some passes produce no data for some codebases (e.g., no privilege boundaries) | Return full output regardless |\n| \"A v0.4 field is always present\" | Users may still have Trailmark 0.2.x installed | Probe with `hasattr()` before querying v0.4-only methods |\n\n## Usage\n\nThe target directory is passed via the `args` parameter.\n\n## Execution\n\n**Step 1: Check that trailmark is available.**\n\n```bash\ntrailmark analyze --help 2>\u002Fdev\u002Fnull || \\\n  uv run trailmark analyze --help 2>\u002Fdev\u002Fnull\n```\n\nIf neither command works, report \"trailmark is not installed\"\nand return. Do NOT run `pip install`, `uv pip install`,\n`git clone`, or any install command. The user must install\ntrailmark themselves.\n\nOptionally record the version:\n\n```bash\ntrailmark --version 2>\u002Fdev\u002Fnull || uv run trailmark --version 2>\u002Fdev\u002Fnull || true\n```\n\nDo not fail if this command is missing; use API feature probes below.\n\n**Step 2: Detect languages with Trailmark's parse API.**\n\n```bash\npython3 - \"{args}\" \u003C\u003C'PY'\nimport json\nimport sys\n\ntry:\n    from trailmark.parse import detect_languages  # canonical location since 0.3.x\nexcept ModuleNotFoundError:\n    # v0.2.x predates trailmark.parse; the same function lives in query.api\n    from trailmark.query.api import detect_languages\n\nprint(json.dumps(detect_languages(sys.argv[1])))\nPY\n```\n\nIf the import fails, rerun the same snippet with `uv run --with trailmark python - \"{args}\"`.\nIf the result is `[]`, report \"Trailmark found no supported languages under\ntarget\" and return.\n\n**Step 3: Run the full structural analysis via `QueryEngine`.**\n\nRun this snippet with `python3`. If the import fails, rerun the same snippet\nunder `uv run --with trailmark python - \"{args}\"`.\n\n```bash\npython3 - \"{args}\" \u003C\u003C'PY'\nimport json\nimport sys\n\ntry:\n    from trailmark.parse import detect_languages  # canonical location since 0.3.x\nexcept ModuleNotFoundError:\n    # v0.2.x predates trailmark.parse; the same function lives in query.api\n    from trailmark.query.api import detect_languages\n\nfrom trailmark.query.api import QueryEngine\n\ntarget = sys.argv[1]\nlanguages = detect_languages(target)\nengine = QueryEngine.from_directory(target, language=\"auto\")\npreanalysis = engine.preanalysis()\n\ndef summarize_subgraph(name: str, limit: int = 25) -> dict[str, object]:\n    nodes = engine.subgraph(name)\n    summary = {\n        \"count\": len(nodes),\n        \"sample_ids\": [node[\"id\"] for node in nodes[:limit]],\n    }\n    if hasattr(engine, \"subgraph_edges\"):\n        summary[\"edge_count\"] = len(engine.subgraph_edges(name))\n    return summary\n\ngraph = json.loads(engine.to_json())\nnodes = graph.get(\"nodes\", {})\nproxy_nodes = [\n    node_id for node_id, node in nodes.items()\n    if node.get(\"kind\") == \"proxy\" or node.get(\"origin\") == \"proxy\"\n]\n\npayload = {\n    \"languages\": languages,\n    \"summary\": engine.summary(),\n    \"preanalysis\": preanalysis,\n    \"attack_surface\": engine.attack_surface()[:25],\n    \"hotspots\": engine.complexity_hotspots(10)[:25],\n    \"proxy_nodes\": proxy_nodes[:25],\n    \"subgraphs\": {\n        name: summarize_subgraph(name)\n        for name in engine.subgraph_names()\n    },\n}\n\nif hasattr(engine, \"type_references\"):\n    payload[\"type_reference_samples\"] = {\n        node_id: engine.type_references(node_id)[:10]\n        for node_id in list(nodes)[:25]\n    }\n\nprint(json.dumps(payload, indent=2))\nPY\n```\n\n**Step 4: Verify the output.**\n\nThe output should include:\n- `languages`\n- `summary`\n- `preanalysis`\n- `hotspots` (possibly empty)\n- `proxy_nodes` (empty on v0.2.x or when there are no unresolved calls; on\n  0.5.0+ may include `proxy.external:*` entries declared in\n  `.trailmark\u002Flinks.toml`)\n- `subgraphs` with counts and sample IDs\n\nOn Trailmark 0.5.0+, `attack_surface` entries may carry an `attributes`\nobject (e.g. `solidity_visibility`, `solidity_overridden_by`). Pass it\nthrough unchanged — downstream consumers use it to rank entrypoints.\n\nSome subgraphs may have zero nodes for some codebases (this is\nnormal). Return the full JSON payload regardless.\n","# Trailmark Structural Analysis\n\nBuilds a Trailmark graph and runs `engine.preanalysis()` to compute all\nfour pre-analysis passes. The core workflow is v0.2-safe; v0.4-only details\nare included only after checking method availability, and newer builds\nenrich the same output (0.5.0+ adds an `attributes` key to attack-surface\nentries and `proxy.external:*` nodes from `.trailmark\u002Flinks.toml`) without\nany workflow change.\n\n## When to Use\n\n- Vivisect Phase 1 needs full structural data (hotspots, taint, blast radius, privilege boundaries)\n- Detailed pre-analysis passes for a specific target scope\n- Generating complexity and taint data for audit prioritization\n- Inspecting proxy\u002Funresolved-call counts, subgraph edges, or type-reference\n  summaries when Trailmark 0.4.0+ is installed\n\n## When NOT to Use\n\n- Quick overview only (use `trailmark-summary` instead)\n- Ad-hoc code graph queries (use the main `trailmark` skill directly)\n- Target is a single small file where structural analysis adds no value\n\n## Rationalizations to Reject\n\n| Rationalization | Why It's Wrong | Required Action |\n|-----------------|----------------|-----------------|\n| \"Summary analysis is enough\" | Summary skips taint, blast radius, and privilege boundary data | Run full structural analysis when detailed data is needed |\n| \"One pass is sufficient\" | Passes cross-reference each other — taint without blast radius misses critical nodes | Run all four passes |\n| \"Tool isn't installed, I'll analyze manually\" | Manual analysis misses what tooling catches | Report \"trailmark is not installed\" and return |\n| \"Empty pass output means the pass failed\" | Some passes produce no data for some codebases (e.g., no privilege boundaries) | Return full output regardless |\n| \"A v0.4 field is always present\" | Users may still have Trailmark 0.2.x installed | Probe with `hasattr()` before querying v0.4-only methods |\n\n## Usage\n\nThe target directory is passed via the `args` parameter.\n\n## Execution\n\n**Step 1: Check that trailmark is available.**\n\n```bash\ntrailmark analyze --help 2>\u002Fdev\u002Fnull || \\\n  uv run trailmark analyze --help 2>\u002Fdev\u002Fnull\n```\n\nIf neither command works, report \"trailmark is not installed\"\nand return. Do NOT run `pip install`, `uv pip install`,\n`git clone`, or any install command. The user must install\ntrailmark themselves.\n\nOptionally record the version:\n\n```bash\ntrailmark --version 2>\u002Fdev\u002Fnull || uv run trailmark --version 2>\u002Fdev\u002Fnull || true\n```\n\nDo not fail if this command is missing; use API feature probes below.\n\n**Step 2: Detect languages with Trailmark's parse API.**\n\n```bash\npython3 - \"{args}\" \u003C\u003C'PY'\nimport json\nimport sys\n\ntry:\n    from trailmark.parse import detect_languages  # canonical location since 0.3.x\nexcept ModuleNotFoundError:\n    # v0.2.x predates trailmark.parse; the same function lives in query.api\n    from trailmark.query.api import detect_languages\n\nprint(json.dumps(detect_languages(sys.argv[1])))\nPY\n```\n\nIf the import fails, rerun the same snippet with `uv run --with trailmark python - \"{args}\"`.\nIf the result is `[]`, report \"Trailmark found no supported languages under\ntarget\" and return.\n\n**Step 3: Run the full structural analysis via `QueryEngine`.**\n\nRun this snippet with `python3`. If the import fails, rerun the same snippet\nunder `uv run --with trailmark python - \"{args}\"`.\n\n```bash\npython3 - \"{args}\" \u003C\u003C'PY'\nimport json\nimport sys\n\ntry:\n    from trailmark.parse import detect_languages  # canonical location since 0.3.x\nexcept ModuleNotFoundError:\n    # v0.2.x predates trailmark.parse; the same function lives in query.api\n    from trailmark.query.api import detect_languages\n\nfrom trailmark.query.api import QueryEngine\n\ntarget = sys.argv[1]\nlanguages = detect_languages(target)\nengine = QueryEngine.from_directory(target, language=\"auto\")\npreanalysis = engine.preanalysis()\n\ndef summarize_subgraph(name: str, limit: int = 25) -> dict[str, object]:\n    nodes = engine.subgraph(name)\n    summary = {\n        \"count\": len(nodes),\n        \"sample_ids\": [node[\"id\"] for node in nodes[:limit]],\n    }\n    if hasattr(engine, \"subgraph_edges\"):\n        summary[\"edge_count\"] = len(engine.subgraph_edges(name))\n    return summary\n\ngraph = json.loads(engine.to_json())\nnodes = graph.get(\"nodes\", {})\nproxy_nodes = [\n    node_id for node_id, node in nodes.items()\n    if node.get(\"kind\") == \"proxy\" or node.get(\"origin\") == \"proxy\"\n]\n\npayload = {\n    \"languages\": languages,\n    \"summary\": engine.summary(),\n    \"preanalysis\": preanalysis,\n    \"attack_surface\": engine.attack_surface()[:25],\n    \"hotspots\": engine.complexity_hotspots(10)[:25],\n    \"proxy_nodes\": proxy_nodes[:25],\n    \"subgraphs\": {\n        name: summarize_subgraph(name)\n        for name in engine.subgraph_names()\n    },\n}\n\nif hasattr(engine, \"type_references\"):\n    payload[\"type_reference_samples\"] = {\n        node_id: engine.type_references(node_id)[:10]\n        for node_id in list(nodes)[:25]\n    }\n\nprint(json.dumps(payload, indent=2))\nPY\n```\n\n**Step 4: Verify the output.**\n\nThe output should include:\n- `languages`\n- `summary`\n- `preanalysis`\n- `hotspots` (possibly empty)\n- `proxy_nodes` (empty on v0.2.x or when there are no unresolved calls; on\n  0.5.0+ may include `proxy.external:*` entries declared in\n  `.trailmark\u002Flinks.toml`)\n- `subgraphs` with counts and sample IDs\n\nOn Trailmark 0.5.0+, `attack_surface` entries may carry an `attributes`\nobject (e.g. `solidity_visibility`, `solidity_overridden_by`). Pass it\nthrough unchanged — downstream consumers use it to rank entrypoints.\n\nSome subgraphs may have zero nodes for some codebases (this is\nnormal). Return the full JSON payload regardless.\n",{"name":5,"description":7,"allowed-tools":24},"Bash Read Grep Glob","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","04-安全渗透\u002Ftrailmark-structural",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill trailmark-structural",{"tool":39,"command":40},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill trailmark-structural",{"tool":42,"command":43},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill trailmark-structural","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Ftrailmark-structural\u002FSKILL.md",true,[47],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"agents\u002Fopenai.yaml","REFERENCE","参考文档",256,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Ftrailmark-structural\u002Fagents\u002Fopenai.yaml",[54,62,67,74,81,88],{"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":61},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":63,"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":64,"categories":65,"keywords":66,"publishedAt":61},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":68,"name":69,"nameZh":6,"description":70,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":71,"categories":72,"keywords":73,"publishedAt":61},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":61},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":61},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":61},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]