Generate draw.io diagrams from natural language — 11 presets (UML, SysML/MBSE, BPMN, network, C4…), 36 tools: codebase/CI/infra-to-diagram, image→editable diagram, mind maps, build-up animation, exec-view compression, click-through runbooks, PR diff bot. Vision self-check, 10,000+ shapes. Exports PNG/SVG/PDF/JPG.
This report presents the forensic synthetic code analysis of Agents365-ai/drawio-skill, a Python project with 5,770 GitHub stars. SynthScan v2.0 examined 16,677 lines of code across 93 source files, recording 132 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 12.7 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 132 distinct pattern matches across 10 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_prdiff.py | 93 | def test_non_drawio_files_ignored(self): | STRING |
| LOW | tests/test_prdiff.py | 106 | def test_sections_statuses_and_links(self): | STRING |
| LOW | tests/test_prdiff.py | 146 | def test_build_entry_exports_base_head_diff_pngs(self): | CODE |
| LOW⚡ | tests/test_tubemap.py | 48 | def test_horizontal_needs_no_bend(self): | CODE |
| LOW⚡ | tests/test_tubemap.py | 51 | def test_vertical_needs_no_bend(self): | CODE |
| LOW⚡ | tests/test_tubemap.py | 54 | def test_exact_diagonal_needs_no_bend(self): | CODE |
| LOW⚡ | tests/test_tubemap.py | 58 | def test_wide_delta_goes_diagonal_then_horizontal(self): | CODE |
| LOW⚡ | tests/test_tubemap.py | 62 | def test_tall_delta_goes_diagonal_then_vertical(self): | CODE |
| LOW⚡ | tests/test_tubemap.py | 66 | def test_bend_lands_on_the_target_axis(self): | CODE |
| LOW⚡ | tests/test_tubemap.py | 77 | def test_counts_and_wellformed(self): | CODE |
| LOW⚡ | tests/test_tubemap.py | 83 | def test_interchange_marker_distinct(self): | CODE |
| LOW⚡ | tests/test_tubemap.py | 89 | def test_line_colour_and_palette_fallback(self): | CODE |
| LOW⚡ | tests/test_tubemap.py | 99 | def test_unknown_station_id_errors(self): | CODE |
| LOW | tests/test_buildup.py | 60 | def test_classify_leaves_and_edges(self): | CODE |
| LOW | tests/test_buildup.py | 70 | def test_bounding_box_from_full_diagram(self): | CODE |
| LOW⚡ | tests/test_buildup.py | 86 | def test_sources_precede_targets(self): | CODE |
| LOW⚡ | tests/test_buildup.py | 95 | def test_cycle_falls_back_to_document_order(self): | CODE |
| LOW⚡ | tests/test_buildup.py | 99 | def test_edge_step_is_at_or_after_both_endpoints(self): | CODE |
| LOW | tests/test_buildup.py | 116 | def test_build_html_self_contained(self): | CODE |
| LOW | tests/test_buildup.py | 132 | def test_full_run_produces_one_frame_per_node(self): | CODE |
| LOW | tests/test_skill_metadata.py | 15 | def test_declared_versions_match(self): | CODE |
| LOW | tests/test_derasterize.py | 41 | def test_positioned_nodes_and_shapes(self): | CODE |
| LOW | tests/test_derasterize.py | 62 | def test_default_shape_size_and_fill(self): | CODE |
| LOW | tests/test_derasterize.py | 74 | def test_edge_dashed_and_no_arrow(self): | CODE |
| LOW | tests/test_derasterize.py | 103 | def test_missing_position_autoplace(self): | CODE |
| LOW⚡ | tests/test_scripts.py | 84 | def test_families_group_variants(self): | CODE |
| LOW⚡ | tests/test_scripts.py | 92 | def test_search_matches_brand(self): | CODE |
| LOW⚡ | tests/test_scripts.py | 98 | def test_search_does_not_return_variant_brands(self): | CODE |
| LOW⚡ | tests/test_scripts.py | 183 | def test_node_link_wraps_userobject(self): | CODE |
| LOW⚡ | tests/test_scripts.py | 191 | def test_edge_style_passthrough(self): | CODE |
| LOW⚡ | tests/test_scripts.py | 199 | def test_label_newline_becomes_entity(self): | CODE |
| LOW⚡ | tests/test_scripts.py | 205 | def test_escapes_special_chars(self): | CODE |
| LOW⚡ | tests/test_scripts.py | 420 | def test_edge_crossing_strict_fails(self): | CODE |
| LOW⚡ | tests/test_scripts.py | 429 | def test_edge_through_vertex_warns(self): | CODE |
| LOW⚡ | tests/test_scripts.py | 433 | def test_autorouted_edge_not_checked(self): | CODE |
| LOW⚡ | tests/test_scripts.py | 1099 | def test_set_style_replaces_colours_once(self): | CODE |
| LOW⚡ | tests/test_scripts.py | 1107 | def test_load_metrics_csv_and_json(self): | CODE |
| LOW⚡ | tests/test_scripts.py | 1116 | def test_recolors_matched_nodes(self): | CODE |
| LOW | tests/test_scripts.py | 128 | def test_roundtrip_cjk_and_percent(self): | CODE |
| LOW | tests/test_scripts.py | 134 | def test_viewer_and_editor_urls(self): | CODE |
| LOW | tests/test_scripts.py | 148 | def test_palette_from_design_file(self): | CODE |
| LOW | tests/test_scripts.py | 163 | def test_grouped_nodes_coloured(self): | CODE |
| LOW | tests/test_scripts.py | 169 | def test_mono_disables_colour(self): | CODE |
| LOW | tests/test_scripts.py | 312 | def test_userobject_wrapper_resolves(self): | CODE |
| LOW | tests/test_scripts.py | 351 | def test_abs_rect_resolves_container_offset(self): | CODE |
| LOW | tests/test_scripts.py | 361 | def test_endpoint_honours_exit_point(self): | CODE |
| LOW | tests/test_scripts.py | 456 | def test_pyclasses_inheritance(self): | CODE |
| LOW | tests/test_scripts.py | 497 | def test_tfimports_edge_and_icons(self): | CODE |
| LOW | tests/test_scripts.py | 561 | def test_composeimports_edges(self): | CODE |
| LOW | tests/test_scripts.py | 611 | def test_dockerimports_group_by_project(self): | CODE |
| LOW | tests/test_scripts.py | 713 | def test_timelapse_sample_indices(self): | CODE |
| LOW | tests/test_scripts.py | 723 | def test_timelapse_build_html_self_contained(self): | CODE |
| LOW | tests/test_scripts.py | 751 | def test_explain_groups_shapes_relations(self): | CODE |
| LOW | tests/test_scripts.py | 834 | def test_svgflow_animates_only_edges(self): | CODE |
| LOW | tests/test_scripts.py | 846 | def test_svgflow_reverse_flips_offset(self): | CODE |
| LOW | tests/test_scripts.py | 894 | def test_sqlerd_tables_and_fks(self): | CODE |
| LOW | tests/test_scripts.py | 973 | def test_openapiimports_operations_and_schemas(self): | CODE |
| LOW | tests/test_scripts.py | 1008 | def test_openapiimports_no_schemas(self): | CODE |
| LOW | tests/test_scripts.py | 1052 | def test_build_html_self_contained(self): | CODE |
| LOW | tests/test_scripts.py | 1160 | def test_extract_and_apply_roundtrip(self): | CODE |
| 19 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/test_buildup.py | 0 | run a script as a subprocess; return completedprocess. | STRING |
| HIGH | tests/test_derasterize.py | 0 | run a script as a subprocess; return completedprocess. | STRING |
| HIGH | tests/test_scripts.py | 0 | run a script as a subprocess; return completedprocess. | STRING |
| HIGH | tests/test_compress.py | 0 | run a script as a subprocess; return completedprocess. | STRING |
| HIGH | skills/drawio-skill/scripts/pyclasses.py | 0 | drop edges implied by a longer path, via graphviz `tred`. | STRING |
| HIGH | skills/drawio-skill/scripts/jsimports.py | 0 | drop edges implied by a longer path, via graphviz `tred`. | STRING |
| HIGH | skills/drawio-skill/scripts/tfimports.py | 0 | drop edges implied by a longer path, via graphviz `tred`. | STRING |
| HIGH | skills/drawio-skill/scripts/rustimports.py | 0 | drop edges implied by a longer path, via graphviz `tred`. | STRING |
| HIGH | skills/drawio-skill/scripts/pyimports.py | 0 | drop edges implied by a longer path, via graphviz `tred`. | STRING |
| HIGH | skills/drawio-skill/scripts/goimports.py | 0 | drop edges implied by a longer path, via graphviz `tred`. | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | skills/drawio-skill/scripts/timelapse.py | 169 | let i=0,timer=null; | CODE |
| HIGH | skills/drawio-skill/scripts/timelapse.py | 179 | function stop(){{clearInterval(timer);timer=null;$("play").textContent="▶ Play";}} | CODE |
| HIGH | skills/drawio-skill/scripts/buildup.py | 218 | let i=0,timer=null; | CODE |
| HIGH | skills/drawio-skill/scripts/buildup.py | 227 | function stop(){{clearInterval(timer);timer=null;$("play").textContent="▶ Play";}} | CODE |
| HIGH | skills/drawio-skill/scripts/drawiohtml.py | 141 | let drag=null; | CODE |
| HIGH | skills/drawio-skill/scripts/drawiohtml.py | 148 | stage.addEventListener('pointerup',()=>{{drag=null;stage.classList.remove('drag');}}); | CODE |
| HIGH | skills/drawio-skill/scripts/runbook.py | 197 | b.onclick=()=>{{path.push(c.target);render();}}; | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | skills/drawio-skill/scripts/c4.py | 110 | CODE | |
| LOW | skills/drawio-skill/scripts/aiicons.py | 77 | CODE | |
| LOW | skills/drawio-skill/scripts/aiicons.py | 127 | CODE | |
| LOW | skills/drawio-skill/scripts/heatmap.py | 102 | CODE | |
| LOW | skills/drawio-skill/scripts/drawio2mermaid.py | 55 | CODE | |
| LOW | skills/drawio-skill/scripts/shapesearch.py | 32 | CODE | |
| LOW | skills/drawio-skill/scripts/relabel.py | 27 | CODE | |
| LOW | skills/drawio-skill/scripts/tfimports.py | 101 | CODE | |
| LOW | skills/drawio-skill/scripts/drawiodiff.py | 51 | CODE | |
| LOW | skills/drawio-skill/scripts/drawiodiff.py | 96 | CODE | |
| LOW | skills/drawio-skill/scripts/rustimports.py | 116 | CODE | |
| LOW | skills/drawio-skill/scripts/buildup.py | 85 | CODE | |
| LOW | skills/drawio-skill/scripts/buildup.py | 255 | CODE | |
| LOW | skills/drawio-skill/scripts/sqlerd.py | 73 | CODE | |
| LOW | skills/drawio-skill/scripts/openapiimports.py | 79 | CODE | |
| LOW | skills/drawio-skill/scripts/validate.py | 241 | CODE | |
| LOW | skills/drawio-skill/scripts/pyimports.py | 59 | CODE | |
| LOW | skills/drawio-skill/scripts/compress.py | 39 | CODE | |
| LOW | skills/drawio-skill/scripts/autolayout.py | 152 | CODE | |
| LOW | skills/drawio-skill/scripts/runbook.py | 27 | CODE | |
| LOW | skills/drawio-skill/scripts/restyle.py | 87 | CODE | |
| LOW | skills/drawio-skill/scripts/k8simports.py | 69 | CODE | |
| LOW | skills/drawio-skill/scripts/k8simports.py | 122 | CODE | |
| LOW | skills/drawio-skill/scripts/k8simports.py | 162 | CODE | |
| LOW | skills/drawio-skill/scripts/explain.py | 55 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | skills/drawio-skill/SKILL.md | 139 | ### Step 5: Self-Check | COMMENT |
| LOW | skills/drawio-skill/SKILL.md | 158 | ### Step 6: Review Loop | COMMENT |
| LOW | skills/drawio-skill/SKILL.md | 183 | ### Step 7: Final Export | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | skills/drawio-skill/scripts/aiicons.py | 38 | # Common RAG/LLM data stores that lobe-icons lacks, mapped to simple-icons | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | skills/drawio-skill/scripts/svgflow.py | 49 | # One dash+gap of travel per cycle => seamless loop. Reverse flips the sign. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | skills/drawio-skill/scripts/aiicons.py | 162 | except Exception as exc: # noqa: BLE001 - report and skip | CODE |
| LOW | skills/drawio-skill/scripts/aiicons.py | 186 | except Exception as exc: # noqa: BLE001 - keep the CDN URL | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_scripts.py | 563 | CODE | |
| LOW | tests/test_scripts.py | 806 | CODE | |
| LOW | tests/test_scripts.py | 1261 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | .github/workflows/drawio-pr-diff.example.yml | 1 | # TEMPLATE — not a live workflow in this repo. | COMMENT |