Repository Analysis

virgiliojr94/book-to-skill

Turn any technical book PDF into a Claude Code skill — ready to study, reference, and use while you work.

45.9 Strong AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of virgiliojr94/book-to-skill, a Python project with 26,720 GitHub stars. SynthScan v2.0 examined 13,410 lines of code across 91 source files, recording 520 pattern matches distributed across 11 syntactic categories. The overall adjusted score of 45.9 places this repository in the Strong 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).

45.9
Adjusted Score
45.9
Raw Score
100%
Time Factor
2026-08-28
Last Push
26.7K
Stars
Python
Language
13.4K
Lines of Code
91
Files
520
Pattern Hits
2026-08-29
Scan Date
0.00
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

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.

Severity Breakdown

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.

CRITICAL 0HIGH 0MEDIUM 37LOW 483

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 520 distinct pattern matches across 11 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.

Hyper-Verbose Identifiers409 hits · 423 pts
SeverityFileLineSnippetContext
LOWtools/scan_generated_skill.py122def _frontmatter_line_numbers(lines: Sequence[str]) -> set[int]:CODE
LOWbook_to_skill/config.py59def supported_formats_message() -> str:CODE
LOWbook_to_skill/utils.py332def _closed_fence_line_numbers(lines: list[str]) -> set[int]:CODE
LOWbook_to_skill/utils.py373def _numbered_titles_are_structural(CODE
LOWbook_to_skill/utils.py395def _structural_chapter_count(text: str) -> int:CODE
LOWbook_to_skill/parsers/docx.py8def extract_docx_with_python_docx(docx_path: str) -> str | None:CODE
LOWbook_to_skill/parsers/docx.py44def extract_docx_with_zipfile(docx_path: str) -> str | None:CODE
LOWbook_to_skill/parsers/calibre.py10def extract_with_ebook_convert(input_path: str) -> str | None:CODE
LOWbook_to_skill/parsers/rtf.py44def _strip_destination_groups(raw: str) -> str:CODE
LOWtests/test_pdftotext_edge_only_boilerplate.py41 def test_mid_page_heading_survives(self):CODE
LOWtests/test_pdftotext_edge_only_boilerplate.py46 def test_surrounding_body_text_intact(self):CODE
LOWtests/test_pdftotext_edge_only_boilerplate.py52 def test_running_headers_are_still_removed(self):CODE
LOWtests/test_pdftotext_edge_only_boilerplate.py59 def test_page_numbers_are_still_removed(self):CODE
LOWtests/test_pdftotext_edge_only_boilerplate.py64 def test_plain_running_header_still_stripped(self):CODE
LOWtests/test_pdftotext_edge_only_boilerplate.py76 def test_footer_boilerplate_still_stripped(self):CODE
LOWtests/test_pdftotext_edge_only_boilerplate.py89 def test_part_divider_page_is_not_stripped(self):CODE
LOWtests/test_pdftotext_edge_only_boilerplate.py106 def test_genuinely_repeated_single_line_page_still_stripped(self):CODE
LOWtests/test_pdftotext_edge_only_boilerplate.py119 def test_hyphenated_wrap_still_rejoined(self):CODE
LOWtests/test_pdftotext_edge_only_boilerplate.py122 def test_short_document_keeps_content_and_drops_form_feeds(self):CODE
LOWtests/test_pdftotext_edge_only_boilerplate.py128 def test_mid_page_bare_number_is_kept(self):CODE
LOWtests/test_pdftotext_edge_only_boilerplate.py138 def test_one_word_lines_still_survive(self):CODE
LOWtests/test_pdftotext_edge_only_boilerplate.py150 def test_roman_front_matter_numbers_still_stripped(self):CODE
LOWtests/test_discovery_tax.py44 def test_detects_three_chapters(self):STRING
LOWtests/test_discovery_tax.py50 def test_best_chapter_picks_largest_body_over_toc_line(self):STRING
LOWtests/test_discovery_tax.py58 def test_cross_reference_does_not_split(self):STRING
LOWtests/test_discovery_tax.py64 def test_chapter_with_title_splits(self):STRING
LOWtests/test_discovery_tax.py69 def test_repeated_cross_ref_does_not_refragment(self):STRING
LOWtests/test_discovery_tax.py125def test_extract_toc_detects_non_english_toc():CODE
LOWtests/test_rtf_destination_groups.py57 def test_chapter_heading_is_on_its_own_line(self):CODE
LOWtests/test_rtf_destination_groups.py62 def test_info_metadata_not_exposed(self):CODE
LOWtests/test_rtf_destination_groups.py68 def test_pict_binary_payload_dropped(self):CODE
LOWtests/test_rtf_destination_groups.py75 def test_nested_group_inside_skipped_group(self):CODE
LOWtests/test_rtf_destination_groups.py83 def test_content_group_after_skipped_group_is_kept(self):CODE
LOWtests/test_rtf_destination_groups.py94 def test_unknown_star_destination_skipped(self):CODE
LOWtests/test_rtf_destination_groups.py100 def test_field_keeps_result_drops_instruction(self):CODE
LOWtests/test_rtf_destination_groups.py111 def test_escaped_braces_become_literal_braces(self):CODE
LOWtests/test_rtf_destination_groups.py115 def test_escaped_backslash_preserved(self):CODE
LOWtests/test_rtf_destination_groups.py125 def test_unicode_escapes_still_decode(self):CODE
LOWtests/test_rtf_destination_groups.py133 def test_par_and_tab_still_convert(self):CODE
LOWtests/test_rtf_destination_groups.py140 def test_unterminated_skipped_group_falls_back(self):CODE
LOWtests/test_html_block_boundaries.py77 def test_three_chapters_detected(self, layout):CODE
LOWtests/test_html_block_boundaries.py80 def test_table_row_stays_on_one_line(self):CODE
LOWtests/test_html_block_boundaries.py85 def test_heading_text_not_glued_to_body_text(self):CODE
LOWtests/test_html_block_boundaries.py93 def test_inline_whitespace_preserved(self):CODE
LOWtests/test_html_block_boundaries.py96 def test_inline_elements_do_not_split_a_word(self):CODE
LOWtests/test_html_block_boundaries.py101 def test_anchor_inside_sentence_stays_inline(self):CODE
LOWtests/test_html_block_boundaries.py110 def test_no_leading_separator(self):CODE
LOWtests/test_html_block_boundaries.py113 def test_nested_blocks_collapse_to_one_separator(self):CODE
LOWtests/test_html_block_boundaries.py116 def test_layout_whitespace_between_blocks_dropped(self):CODE
LOWtests/test_html_block_boundaries.py122 def test_skip_tag_content_still_excluded(self):CODE
LOWtests/test_html_block_boundaries.py173 def test_epub_chapters_detected_without_ebooklib(self, tmp_path):CODE
LOWtests/test_epub_image_reporting.py38def test_epub_extraction_reports_material_dropped_images(tmp_path, capsys):CODE
LOWtests/test_epub_image_reporting.py50def test_epub_extraction_keeps_cover_only_book_quiet(tmp_path, capsys):CODE
LOWtests/test_epub_image_reporting.py60def test_main_persists_epub_image_loss_in_source_and_total_metadata(CODE
LOWtests/test_tilde_expansion.py31def test_tilde_glob_matches_files(fake_home):CODE
LOWtests/test_tilde_expansion.py43def test_tilde_file_resolves_under_home(fake_home):CODE
LOWtests/test_tilde_expansion.py54def test_tilde_directory_is_walked(fake_home):CODE
LOWtests/test_tilde_expansion.py66def test_plain_paths_are_unchanged(tmp_path):CODE
LOWtests/test_tilde_expansion.py74def test_unresolvable_tilde_user_is_left_alone(tmp_path, monkeypatch):CODE
LOWtests/test_per_run_workdir.py38def test_default_workdir_is_unique_per_process(monkeypatch):CODE
349 more matches not shown…
Decorative Section Separators31 hits · 100 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_book_to_skill.py219# ═══════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtests/test_book_to_skill.py221# ═══════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtests/test_book_to_skill.py278# ═══════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtests/test_book_to_skill.py280# ═══════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtests/test_book_to_skill.py419# ═══════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtests/test_book_to_skill.py421# ═══════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtests/test_book_to_skill.py488# ═══════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtests/test_book_to_skill.py490# ═══════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtests/test_book_to_skill.py630 # ── Hindi (Devanagari) chapter headings ────────────────────────────────COMMENT
MEDIUMtests/test_book_to_skill.py671 # ── Korean chapter headings ────────────────────────────────────────────COMMENT
MEDIUMtests/test_book_to_skill.py716 # ── Persian chapter headings ───────────────────────────────────────────COMMENT
MEDIUMtests/test_book_to_skill.py1028 # ── Chinese (CJK) chapter headings ──────────────────────────────────────COMMENT
MEDIUMtests/test_book_to_skill.py1571# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_book_to_skill.py1573# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_book_to_skill.py2032# ═══════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtests/test_book_to_skill.py2034# ═══════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtests/test_book_to_skill.py2083# ═══════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtests/test_book_to_skill.py2085# ═══════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtests/test_book_to_skill.py2152# ═══════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtests/test_book_to_skill.py2154# ═══════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtests/test_book_to_skill.py20# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_book_to_skill.py22# ---------------------------------------------------------------------------COMMENT
MEDIUMtests/test_book_to_skill.py44# ═══════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtests/test_book_to_skill.py46# ═══════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtests/test_book_to_skill.py539# ═══════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtests/test_book_to_skill.py541# ═══════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtests/test_book_to_skill.py1118 # ── Kangxi-radical numerals (U+2F00 block) ──────────────────────────────COMMENT
MEDIUMtests/test_book_to_skill.py2115# ═══════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtests/test_book_to_skill.py2117# ═══════════════════════════════════════════════════════════════════════════COMMENT
MEDIUMtests/test_book_to_skill.py174# ═══════════════════════════════════════════════════════════════════════════STRING
MEDIUMtests/test_book_to_skill.py176# ═══════════════════════════════════════════════════════════════════════════STRING
Excessive Try-Catch Wrapping24 hits · 25 pts
SeverityFileLineSnippetContext
LOWtools/discovery_tax.py57 except Exception:CODE
LOWtools/discovery_tax.py65 except Exception:CODE
MEDIUMtools/discovery_tax.py61def token_method() -> str:CODE
LOWbook_to_skill/dependencies.py122 except Exception as exc:CODE
LOWbook_to_skill/parsers/docx.py39 except Exception as e:CODE
LOWbook_to_skill/parsers/docx.py88 except Exception as e:CODE
LOWbook_to_skill/parsers/docx.py113 except Exception as e:CODE
LOWbook_to_skill/parsers/calibre.py24 except Exception as e:CODE
LOWbook_to_skill/parsers/html.py112 except Exception:CODE
LOWbook_to_skill/parsers/pdf.py88 except Exception as e:CODE
LOWbook_to_skill/parsers/pdf.py108 except Exception:CODE
LOWbook_to_skill/parsers/pdf.py121 except Exception:CODE
LOWbook_to_skill/parsers/pdf.py128 except Exception as e:CODE
LOWbook_to_skill/parsers/pdf.py140 except Exception as e:CODE
LOWbook_to_skill/parsers/pdf.py166 except Exception as e:CODE
LOWbook_to_skill/parsers/pdf.py186 except Exception:CODE
LOWbook_to_skill/parsers/pdf.py195 except Exception:CODE
LOWbook_to_skill/parsers/pdf.py207 except Exception:CODE
LOWbook_to_skill/parsers/rtf.py143 except Exception as e:CODE
LOWbook_to_skill/parsers/text.py19 except Exception as e:CODE
LOWbook_to_skill/parsers/epub.py38 except Exception as e:CODE
LOWbook_to_skill/parsers/epub.py120 except Exception:CODE
LOWbook_to_skill/parsers/epub.py123 except Exception as e:CODE
LOWbook_to_skill/parsers/epub.py137 except Exception:CODE
Unused Imports19 hits · 19 pts
SeverityFileLineSnippetContext
LOWtools/scan_generated_skill.py4CODE
LOWtools/discovery_tax.py31CODE
LOWtools/evals/paper_flat.py6CODE
LOWtools/evals/manifest.py6CODE
LOWtools/evals/replay.py3CODE
LOWtools/evals/score.py3CODE
LOWbook_to_skill/__init__.py1CODE
LOWbook_to_skill/__init__.py1CODE
LOWbook_to_skill/__init__.py1CODE
LOWbook_to_skill/__init__.py2CODE
LOWbook_to_skill/utils.py1CODE
LOWbook_to_skill/sanitize.py1CODE
LOWbook_to_skill/dependencies.py1CODE
LOWbook_to_skill/parsers/docx.py1CODE
LOWbook_to_skill/parsers/calibre.py1CODE
LOWbook_to_skill/parsers/html.py1CODE
LOWbook_to_skill/parsers/pdf.py1CODE
LOWbook_to_skill/parsers/text.py1CODE
LOWbook_to_skill/parsers/epub.py1CODE
Deep Nesting16 hits · 16 pts
SeverityFileLineSnippetContext
LOWtools/validate_skill.py102CODE
LOWtools/evals/score.py15CODE
LOWbook_to_skill/utils.py395CODE
LOWbook_to_skill/utils.py662CODE
LOWbook_to_skill/utils.py698CODE
LOWbook_to_skill/utils.py757CODE
LOWbook_to_skill/dependencies.py244CODE
LOWbook_to_skill/parsers/docx.py8CODE
LOWbook_to_skill/parsers/docx.py44CODE
LOWbook_to_skill/parsers/docx.py93CODE
LOWbook_to_skill/parsers/docx.py58CODE
LOWbook_to_skill/parsers/pdf.py30CODE
LOWbook_to_skill/parsers/pdf.py112CODE
LOWbook_to_skill/parsers/pdf.py171CODE
LOWbook_to_skill/parsers/rtf.py44CODE
LOWbook_to_skill/parsers/epub.py63CODE
Over-Commented Block13 hits · 13 pts
SeverityFileLineSnippetContext
LOWcliff.toml1# git-cliff configuration — generates CHANGELOG.md from Conventional CommitCOMMENT
LOWtools/scan_generated_skill.py61 ),COMMENT
LOWbook_to_skill/utils.py61# Chinese/Japanese book collapses it to a handful of tokens; count them directly.COMMENT
LOWbook_to_skill/utils.py101COMMENT
LOWbook_to_skill/utils.py121# uppercase Roman numeral. Lowercase ("i: Loomings") is only accepted insideCOMMENT
LOWbook_to_skill/utils.py201# Korean chapter headings: "제1장 총칙", "## 제4장 근로시간과 휴식", "제6장의2 …".COMMENT
LOWbook_to_skill/utils.py221# small ordinal map (1–34) with longest-prefix matching so compoundsCOMMENT
LOWbook_to_skill/utils.py621 num = _chapter_number(line)COMMENT
LOWbook_to_skill/sanitize.py21 0x2064, # INVISIBLE PLUSCOMMENT
LOWbook_to_skill/sanitize.py81)COMMENT
LOWbook_to_skill/parsers/docx.py1from __future__ import annotationsCOMMENT
LOWbook_to_skill/parsers/pdf.py1from __future__ import annotationsCOMMENT
LOW.github/workflows/deploy-docs.yml41 # Single-source: the Guide and Skill Reference pages are the repo-rootCOMMENT
Self-Referential Comments3 hits · 10 pts
SeverityFileLineSnippetContext
MEDIUMtests/test_book_to_skill.py299 # Create a valid text fileCOMMENT
MEDIUMtests/test_book_to_skill.py301 # Create a file that will fail (unsupported extension, garbage bytes)COMMENT
MEDIUMtests/test_book_to_skill.py1433 # Create a malicious DOCXCOMMENT
Modern AI Meta-Vocabulary2 hits · 5 pts
SeverityFileLineSnippetContext
MEDIUMdocs/research/progressive-disclosure-evals.md136 run.py # experiment orchestration / dry-run / budget gateCODE
MEDIUMdocs/research/progressive-disclosure-evals.md486### PD-10 — Optional Hybrid RAG reference baselineCOMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWbook_to_skill/utils.py716 # Check if it has glob wildcardsCOMMENT
AI Slop Vocabulary1 hit · 2 pts
SeverityFileLineSnippetContext
LOWbook_to_skill/parsers/html.py71 # boundary would just add trailing spaces — drop it and keepCOMMENT
Modern Structural Boilerplate1 hit · 1 pts
SeverityFileLineSnippetContext
LOWbook_to_skill/__init__.py4__all__ = ["resolve_input_files", "extract_single_file", "main", "ExtractionError"]CODE