Public report — ppt-master, published 2 Aug 2026.
Concrete security findings (CVE IDs, secret matches, dependency versions) are hidden in this version;
ask the repo owner for the full report.
1102findings with an exact file:lineof 1111 — the remainder are repo-wide signals (a dimension-level measurement, not a single line); open any file:line and verify
29/93dimensions across the health lenses119945 LoC — wide & deep
Executive summary
Read through the Production lens — the standard calibration. *Green* means good enough to run in production. The score is absolute and comparable across repos.
hugohe3/ppt-master is sound in substance but carries real gaps (54%). It is not in crisis, but the issues below raise the cost of changing it — friction its consumers ultimately inherit.
It is strongest in Architecture (94%) — the structure is clean and changes stay contained.
Most urgent: a critical security exposure was detected (see the Security & Compliance lens). Treat it as a priority regardless of the overall grade.
The area that most needs attention is Readiness (47%) — releases are harder to depend on — versioning, release notes and dependency hygiene are thin, so consumers can't easily tell what changed or trust an upgrade. Code Health (53%) is the next concern — changes there are slower and more error-prone.
Leadership focus, highest impact first: SAST step to CI running what this repository's stack ships (Security & performance tooling); The release job declares an environment (Deployment & Rollback); Run the test suite in CI via an explicit runner step for your stack (CI/CD gates).
For scale: Large (~119,945 production lines); rebuilding it from scratch would take roughly ~0.8 person-years (~1–2 engineers). Approximate, ±~30%.
It builds on a genuinely strong Architecture foundation (94%); the priorities above are the highest-leverage way to bring the rest up to that level.
How the score is built — each lens's share of the headlineWidth is the lens's weight in the worst-heaviest fold (the weakest area pulls hardest); colour is that lens's own band. A lens fixes the score in proportion to its width.
277 finding(s) are new versus the previous scan (2026-07-29) — surfaced by this scheduled scan itself, no pull request required. Showing the first 100; the full set is in the report.
A full-fidelity diff against the previous run's complete recorded findings — line-move tolerant: a finding that only shifted line counts as unchanged, only genuinely new titles/files surface here.
0.8× (at 54% quality) — the last 20% of quality is most of the work
Size & shape
Large · effort split not classified (source measured from disk; the effort-tier breakdown is a C#-only syntax walk)
This codebase represents roughly ~0.8 person-years of build effort (about ~€120,000 to rebuild). Its weakest lens is Readiness at 47% — the part of that asset most exposed by the findings below.
How we model this: boilerplate at a scaffolding rate + logic × domain Standard (×1.0) — standard service × a 0.8× quality factor, at €60–95/h; indicative, ±~30% · size measured directly from source · effort from total production LoC as straight-line logic (the tier split is a C#-only syntax walk), a conservative lower bound. Indicative only — most sensitive to the hourly rate and the domain tier (both tunable in config).
Top priorities
The highest-leverage moves; the full ranked list is in the Roadmap below.
1
Add a SAST step to CI running what this repository's stack ships: bandit, `semgrep --config=p/python`, or CodeQL's python pack — so a security regression fails the build instead of landing.
The release job declares an environment, but its protection rules are not visible from the repository — confirm required reviewers are attached, or publish as a draft release so a bad build can be stopped before users can download it.
The top-ranked fix costs roughly 3–10 engineer-days once. Not doing it costs about 298.1–1788.3 engineer-days every year, paid as drag on the ~1,337,936 lines this team changes annually — a bill that arrives whether or not anyone books it. On those figures the fix breaks even in roughly 1–2 months and is free after that. Method, stated so this is not read as a quotation: debt from the ranked task's effort band; interest = annual changed lines (measured, annualised from the 90-day window) ÷ an ASSUMED 150–400 lines per engineer-day × the 9–20% drag implied by the code-quality signals; breaking point = debt ÷ annual interest. A modelled planning range built from measured inputs and one named assumption — not a quotation, a valuation, or a certified figure.
Evidence: D15 churn: 329,902 line(s) changed over a 90-day window ⇒ ~1,337,936/year · D1/D2/D4 code quality: averaging 4.4/10 ⇒ a 9–20% drag on each change · top-ranked remediation: Medium effort ⇒ about 3–10 engineer-day(s)
→ Do the top-ranked fix now if this code will still be yours in 2 months.
Value concentrated against a weak lens · Medium · Value at risk
This is a Large asset (~0.8 person-years to rebuild), and its weakest lens is Readiness at 47%. The operational and business risk on an asset this size concentrates there — that's where remediation buys the most protection.
→ Direct remediation budget at Readiness first — highest risk-reduction per euro on an asset this size.
Highest-leverage move · Medium · Leverage
Of everything flagged, the best return on effort is: Add a SAST step to CI running what this repository's stack ships: bandit, `semgrep --config=p/python`, or CodeQL's python pack — so a security regression fails the build instead of landing. The rest can wait behind it.
Evidence: priority ranking: top of 5 ranked by impact/effort
→ Add a SAST step to CI running what this repository's stack ships: bandit, `semgrep --config=p/python`, or CodeQL's python pack — so a security regression fails the build instead of landing.
A velocity tax on every change · Medium · Economics
The code-quality signals (complexity, duplication, cohesion) average 4.4/10, which acts as a tax on every change in the weaker areas: modifications there plausibly cost on the order of 9–20% more than in clean code, and the tax compounds as the codebase grows. (A modelled estimate, not a measured fact.)
Evidence: D1/D2/D4 code quality: averaging 4.4/10 across the code-quality signals actually measured
→ Pay it down where churn is highest — the hotspots — not everywhere; that's where the tax is actually paid.
Architecture — module dependency matrix
93 modules, 63 dependencies — every dependency points down the layering, so there are no cycles. Rows and columns are the same modules, ordered so that a module only depends on ones above it. A cell means the row depends on the column, and its number is how many type pairs create that dependency. Read one thing: is anything above the diagonal? A mark there is a dependency cycle. (A cycle is all this shows — an unusual but cycle-free dependency sits below the diagonal like any other.)
At a glance — Code Health · 53% · Adequate · gated by D1, D2
Findings mapped to OWASP categories; the specific CVEs/secrets are in the Security dimension cards below and findings.md (redacted only on the public version of this report).
OWASP category
Findings
Severity
A06:2021 — Vulnerable & Outdated Components
8
High / Critical
A03:2021 — Injection
4
High / Critical
Roadmap
First, integrate static analysis tools into the CI pipeline to automatically fail the build on security regressions. Next, enforce deployment controls by configuring environment protection rules or draft releases to prevent bad builds from reaching users. Then, ensure the test suite runs on every merge to maintain quality gates. Finally, document key architectural decisions in a dedicated folder and reorganize the codebase to separate production code from tooling.
Ranked by impact ÷ effort. "Helps" is the estimated gain on the 0–100 health score.
Do this
Helps
Effort
Dimension
Add a SAST step to CI running what this repository's stack ships: bandit, `semgrep --config=p/python`, or CodeQL's python pack — so a security regression fails the build instead of landing.
The release job declares an environment, but its protection rules are not visible from the repository — confirm required reviewers are attached, or publish as a draft release so a bad build can be stopped before users can download it.
Record significant decisions one document per decision — dated, stating the context, the decision and its consequences — and keep them together wherever your design docs already live (a conventional `docs/adr/` tree with `NNNN-title.md` names is the most discoverable form).
Watchdog is a deep, periodic assessment — run each sprint, monthly, or quarterly, taking the time to go wider and deeper than a quick check and surfacing in one coherent report what you'd otherwise piece together from a dozen separate tools. It scores deterministically: the same commit yields the same score, every run. 27 of 29 evaluated dimensions are computed purely by tools and static analysis (confidence 1.0); 2 documentation/naming judgement(s) are LLM-assisted and labelled advisory. Overall confidence is 0.6 — the weighted average across measured dimensions; it falls as more of the score leans on LLM-assisted judgement and rises when it's fully tool-backed.
Every figure here is one of three kinds, and we label which: ✓ Measured — a deterministic fact (LoC, complexity, coverage); ~ Modeled — an estimate from a stated model (cost, effort, value-at-risk), always a range with its assumptions, never a precise fact; ◐ Advisory — an LLM prose judgement. We never present a modelled estimate as if it were measured. Perfect or absent scores carry their provenance too (ADR-0011): ✓ Tool-verified means the property itself was measured across the surface; ○ Nothing flagged means the probes came back clean — a claim bounded by what a repository can show; ⊘ Not evidenced means a working control (a tested restore, an automated rollback) showed no positive evidence — absence of evidence is not evidence of a control, so it's excluded from the score rather than awarded a spurious 10; ◐ Sampled · advisory marks an LLM verdict over a bounded sample — advisory, never a deterministic measurement.
What we checked — 29 dimensions across the health lenses
Each chip is a dimension scored from real signals across architecture, testing, dependencies, security & compliance, documentation, git-history and code quality — in one coherent pass. A surface report typically covers a handful.
How to trust any code-health report — three questions
Can you open the finding? Real findings cite a repo-relative file and line you can open at the cited line — never an absolute scratch path. Here, 1102 of 1111 do; the remainder are repo-wide signals — a dimension-level measurement, not a single line. (Every path in this report is repo-relative by construction: paths are normalized at the producer and the report is rejected if any rooted path leaks through.)
Is there a tool behind the number? Every score below names the method that produced it — Roslyn, git, a scanner, or (for a handful of documentation/naming dimensions) an LLM labelled sampled · advisory — not a narrative.
Does re-running give the same result? Run it again on the same commit and the score — and this report, byte for byte — is identical. A report whose numbers move between runs is describing the run, not the code.
This report answers yes to all three. That's the bar to hold any assessment to.
Tools & methods
The actual versions used this run (captured at analysis time) — re-run on the same commit for the identical score.
Method
Backs
Version
Evaluator
Roslyn static analysis
Complexity, cohesion, coupling, dead code, API surface, layering
What ran differently this time — a tool absent, degraded, or that fell back to an estimate. Named openly, not folded silently into the scores. A degraded run also records its exact cause in diagnostics.md.
D30 Dependency Vulnerabilities — scanner not present in this environment — The backing tool was not installed where this scan ran, so this dimension was not scored. Install the tool (or run in the hosted environment, where it is always present) for a graded result.
Repo exclusion declarations (.gitattributes linguist-generated/vendored, .editorconfig generated_code): none declared — every source file was scored.
Limitations & what we did not check
Watchdog assesses the repository exactly as committed, and only the repository. By design it does not reach outside the source tree: the live cloud account, the running CI/CD pipeline, the host's branch-protection and approval rules, the production configuration, or a restore actually exercised against a backup are all out of scope. That boundary is a feature, not a gap — a repo-relative, deterministic scan re-runs identically on any commit and every finding opens at a real file and line, where a live audit can neither be reproduced nor traced. The visible consequence is that controls which leave no in-repo evidence are reported as "not evidenced" and excluded from the score rather than awarded a number a static scan cannot justify.
Per-dimension blind spots
For each dimension that was measured, what a static, repo-only scan structurally cannot see — the honest edge of the measurement, not a failure of it.
D1 Cyclomatic Complexity: Cyclomatic complexity counts branches statically — it cannot tell an essential decision tree from accidental tangle, nor see complexity that lives in data or configuration (large switch-case token tables, DSL lexers/parsers, data-as-code rule tables) rather than control flow: a tokenizer's many single-character cases read as high complexity though each branch is trivial.
D2 Cognitive Complexity: Cognitive-complexity heuristics approximate how hard code is to follow; genuine domain difficulty and well-named intent that eases reading are not captured.
D3 God Classes: "God class" is sized by members and responsibilities visible in the type — a deliberately broad facade over a coherent subsystem can read the same as an accidental grab-bag. For front-end JS the file-length check is cohesion-aware (a single-responsibility module — one class/IIFE — earns a 3× threshold), but cohesion is approximated from top-level declarations, not true dependency structure.
D4 Code Duplication: Duplication is token-similarity (jscpd) — it finds copy-paste, not semantic duplication expressed differently. Committed machine-written code (scaffolded migrations, designer/codegen output, protobuf/OpenAPI stubs, model snapshots) is EXCLUDED — its repetition is the tool's, not the team's — so the score reflects hand-written duplication only.
D13 Secret Scanning: Secret detection is signature- and entropy-based on the current tree — a secret that does not match a known pattern, or one already rotated, will not be flagged (a clean scan is "nothing matched", not "no secrets exist").
D15 Churn × Complexity Hotspots: Churn hotspots come from git history — a freshly imported or squashed repository has no churn signal, and recent rewrites can mask a historically risky file.
D16 Bus Factor: Bus-factor is a time-decayed model of commit attribution (who has recently, repeatedly worked a file), not comprehension — pairing, review and reading-without-committing spread knowledge it can't see; bot commits and shared accounts still distort it.
D19 Documentation Quality: Documentation quality is judged by an LLM over a bounded sample of docs — it reads what is written, not whether the docs match the running system, and it is advisory, not a measurement.
D21 Naming Consistency: Naming quality is an LLM judgement over a bounded sample — it assesses clarity/consistency of the names it sees, not domain-correctness, and is advisory.
D28 Secrets (history): Secret-history scanning sweeps the git log for known patterns — a secret that predates the available history, or never matched a signature, is not found (clean means "nothing matched in the history we can see").
D29 Static Analysis (SAST): SAST findings are pattern-based (semgrep) — it finds classes of bug it has rules for; logic flaws, auth/authorization gaps and issues needing runtime context are out of reach (and clean means "no rule matched").
D34 Knowledge Freshness: Freshness is decayed commit RECENCY, not comprehension — code read often but rarely committed reads as orphaned, and stable code that genuinely needs no changes is penalised the same as forgotten code; bot/squash commits distort it like the bus factor.
D35 Change Coupling: Change coupling is co-change in COMMITS — files split across separate commits, or coupled only through a shared config/build step, read as uncoupled, and a sweeping commit (rename/format) is excluded so it doesn't couple everything. It shows that files change together, not WHY: a high coupling can be a healthy cohesive pair as readily as a hidden leak.
AC2 Forms & labels: Label association is read from static markup — a label wired up at runtime (JS-set aria-labelledby, framework-injected ids) reads as missing, a present label says nothing about whether its text is correct. A known UI-library field component (e.g. a JSX <TextField>) is now checked conservatively — flagged only when it carries NO label/aria-label/aria-labelledby/id/name — but wrapper/context-labelled libraries (Chakra/Radix FormControl+FormLabel) aren't statically visible (possible false positive) and non-JSX lowercased components are still skipped. A clean result is "no unlabelled native control found", not a labelling proof.
AC3 Page structure: Page structure is read from the static markup tree — landmarks, headings and lang injected at runtime aren't seen, heading ORDER is checked structurally (not against the rendered visual hierarchy), and lang/title/main fire only on full documents, never partials, and the data-table check sees header-cell presence (a <th> exists), not whether each header correctly associates with its cells. Static readiness, not conformance.
AC4 Keyboard semantics: Keyboard semantics are inferred from markup attributes — interactivity wired purely in script, focus managed at runtime, and component-level handlers are invisible. A clean result means "no static keyboard-trap shape", not a keyboard-operability proof.
AC5 ARIA correctness: ARIA correctness is checked against the static role/attribute shape — roles/attributes set dynamically aren't seen, a valid role says nothing about whether it matches the element's real behaviour, and required-state checks are suppressed when a JSX spread could supply them.
AC6 Visual & motion safety: Contrast and motion safety are PARTIAL by construction — literal colours (hex/rgb/hsl/named) in inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS top-level declarations are read (same-rule/same-element colour+background pairs only); computed/runtime/theme colour, external-CDN stylesheets, CSS-in-JS dynamic (${…}) and nested-selector colours, cross-element pairs and image contrast stay out of reach, so a clean result is bounded by what the static CSS itself shows.
AC7 A11y enforcement: Enforcement is scored from in-repo config/CI evidence only — an a11y gate enforced in external tooling with no in-repo trace can't be credited, and a configured linter is presence, not proof the rules actually run or block a merge.
M4 Documentation accuracy: Onboarding quality is an LLM read of the docs/setup present — it cannot run the onboarding or measure how long a real new joiner takes; the verdict is sampled and advisory.
P4 Deployment & Rollback: Approval/branch-protection rules live in repository settings the scan cannot see — only their in-repo evidence (config files, workflows) is checked, so a control enforced purely in the host's settings reads as "not evidenced".
The LLM boundary
LLM-set scores this run (3): D19, D21, M4 (model: Local LLM). For these, a model reads a bounded sample and sets the numeric score (documentation, ADR quality, naming, comment value, onboarding) — D25 sets the ADR-conformance fraction over sampled code, D22 judges API accuracy over a sample. These are sampled and advisory by design: they vary at the margins between runs and are never a deterministic measurement. Every other score in this report is tool-computed at confidence 1.0.
What it measures: How tangled the control flow is — methods with many branches are hard to test and change.
Method: Cyclomatic complexity per method (1 + decision points), computed exhaustively across production source; test projects separated by convention. Deterministic.
322 method(s) exceeded the cyclomatic complexity threshold of 15; the worst was builder.create_pptx_with_native_svg at 223. A further 2 method(s) were over the threshold but excluded as flat dispatchers (a long switch/match over independent cases: many branches, almost no nesting), the largest being paths.svg_path_to_absolute at 21 — they are counted neither in the figure above nor in this dimension's score.
+ 317 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 1 builder.create_pptx_with_native_svg (cyclomatic 223) finding(s) in Cyclomatic Complexity — start with builder.py. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 cli.main (cyclomatic 191) finding(s) in Cyclomatic Complexity — start with cli.py. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 template_structure.parse_template_slide (cyclomatic 128) finding(s) in Cyclomatic Complexity — start with template_structure.py. — One of this dimension's main actionable groups (1 warning-level).
Enforce Cyclomatic Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d1_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: How hard the code is for a person to follow, beyond raw branching.
Method: Cognitive complexity per method (Sonar-style nesting-penalized score), computed exhaustively over production code, excluding test projects. Deterministic.
+ 523 more group(s) — more in Appendix A; the complete list is findings.md.
What to do
Resolve the 1 builder.create_pptx_with_native_svg (cognitive 452) finding(s) in Cognitive Complexity — start with builder.py. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 cli.main (cognitive 305) finding(s) in Cognitive Complexity — start with cli.py. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 pdf_to_md.extract_pdf_to_markdown (cognitive 239) finding(s) in Cognitive Complexity — start with pdf_to_md.py. — One of this dimension's main actionable groups (1 warning-level).
Enforce Cognitive Complexity in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d2_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D3 · God Classes7.9 / 10Strong✓ Tool-verified
What it measures: Over-large classes that try to do too much ("god classes").
Method: God-class detection by line and method-count thresholds per logical type (partial classes unified), filtered for generated code and registration/contract false positives. Deterministic.
Resolve the 51 FileTooLong finding(s) in God Classes — start with checker.py (2), converter.py (2), cli.py (2). — One of this dimension's main actionable groups (51 warning-level).
Resolve the 2 TooManyMethods finding(s) in God Classes — start with checker.py, cli.py. — One of this dimension's main actionable groups (2 warning-level).
Enforce God Classes in CI to reach Verified (currently Documented). — Hardens enforcement from Documented toward Prevented — provenance only; does not change the score.
Detailed fixes: d3_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Copy-pasted code that should be shared instead.
Method: Code duplication via token-stream sliding windows with type-aware normalization (locals masked, type names preserved), density-scored per KLoC of production code. Deterministic.
What it measures: Whether any secrets (keys, tokens, passwords) have leaked into the code.
Method: In-process native secret scanner (entropy plus signature patterns) across all tracked files; no external tool. A clean result is a measured 10, not no-data zero. Deterministic.
What it measures: Files that change often and are also complex — the riskiest hotspots.
Method: Per production file churn times cyclomatic complexity over a rolling window, computed from git and Roslyn/JS/Razor analysis. Exhaustive, deterministic per commit date.
Detailed fixes: d15_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
D16 · Bus Factor5.4 / 10Adequate✓ Tool-verified
What it measures: Whether knowledge is concentrated in too few people (the "bus factor").
Method: Living knowledge per author via time-decayed commit attribution (6-month half-life, focus weighting) across largest source files. Deterministic, avoids blame's mechanical-refactor false positives.
87 source file(s) have their living knowledge concentrated in one author (≥90% of recent, decayed contribution). The largest is skills/ppt-master/scripts/pptx_animations.py.
Off-boarding risk: anonymized user #1
What to do
Resolve the 1 Off-boarding risk finding(s) in Bus Factor. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d16_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the project's documentation is clear, complete, and useful.
Method: Judged by language model at low temperature (0.0-0.1) on a deterministic doc sample (READMEs plus first 25 architecture docs), with two-pass stability filtering. Advisory, sampled.
This project's documentation is clear and complete for a software tool: three README files plus architecture/Docs markdown cover the product positioning, workspace structure, curated example projects, local preview guide, contributing requirements, and related references. The README also lists sponsors and an Agentic Leaderboard badge, giving strong branding context. However, the visible content ends at the 'Documentation' heading (the body is clipped), so any trailing sections such as licensing-by-committee or future roadmap cannot be confirmed missing.
The README begins with a long banner containing release/commit-shield badges, sponsor links, and an Agentic Leaderboard badge but does not state the project's license type (MIT vs. another) explicitly in text or a badge, leaving it ambiguous whether the MIT license is the one shown.README.md
What to do
Resolve the 1 The README begins with a long banner containing release/commit-shield… finding(s) in Documentation Quality — start with README.md. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d19_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether names — types, methods, variables — are clear and consistent.
Method: Judged by language model at low temperature (0.0-0.1) on a deterministic random symbol sample (fixed size, not exhaustive), with disclosed confidence band. Advisory, sampled.
What it measures: Whether any secrets were ever committed — scanned across the full git history, not just now.
Method: Git-history secret scan via gitleaks detect over full history in an isolated checkout; each match flagged High. Exhaustive; degrades cleanly when tool absent.
What it measures: Real static-analysis (SAST) findings — likely security bugs in the code, any language.
Method: Polyglot static analysis via semgrep across the repo using the pinned, image-baked p/security-audit + p/owasp-top-ten rulesets (no scan-time registry fetch); severity rules (ERROR/WARNING/INFO) map to a full-band severity-weighted score. Exhaustive, deterministic; degrades on parse failure.
Coverage: semgrep pattern rules over all files — exhaustive for the rule set, blind to classes of bug without a rule (clean = no rule matched).
High: github-actions-mutable-action-tag · ×4.github/workflows/deploy-pages.yml:35detected by semgrep finding
What to do
Resolve the 4 High finding(s) in Static Analysis (SAST) — start with deploy-pages.yml (4). — One of this dimension's main actionable groups (4 issue-level).
Detailed fixes: d29_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether anyone still has living knowledge of each file, or it has been orphaned — last understood long ago by someone now gone quiet. The sibling of the bus factor: D16 asks who owns it, D34 asks whether anyone still knows it.
Method: File orphaning as total living-knowledge decay below one focused-commit's worth within a year, computed per-file from the D16 decay model. Exhaustive, deterministic over fixed history.
What it measures: Whether files that change together actually belong together — pairs that repeatedly co-change in git history despite having no explicit code dependency, surfacing the hidden/logical coupling (and boundaries in the wrong place) a static scan can't see.
Method: Pairwise co-occurrence over the per-commit file sets in git history (production source only — tests and generated dropped): Degree-of-Coupling = shared ÷ min individual revisions, reported above noise floors (each file ≥10 revisions, ≥5 shared commits, ≥50% strength); sweeping commits excluded. Deterministic over fixed history.
Coverage: Population: PRODUCTION source files only — test and generated files are dropped before pairing, so a class co-changing with its own test (trivially ~100%) can't drown the real production↔production coupling. Pairs ranked by Degree-of-Coupling; coupling through a build step, config, or non-source file isn't seen.
What it measures: Whether the build pipeline provides supply-chain integrity — generated provenance/attestation, signed artifacts (cosign/sigstore), an SBOM, and pinned build actions. Presence of the configuration, not a runtime guarantee.
Method: Supply-chain provenance/signing read deterministically from CI/build config (.github/workflows, .gitlab-ci.yml, azure-pipelines, Jenkinsfile, .circleci) + the release surface: four signals — generated provenance/attestation (SLSA/in-toto/actions-attest), artifact signing (cosign/sigstore/gitsign), an SBOM (syft/sbom-action/*.spdx.json/*.cdx.json), and SHA-pinned build actions — scored 10·present/denom. NotApplicable without a build pipeline. Detects configuration presence, not runtime enforcement.
Resolve the 1 Unpinned build actions finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 warning-level).
Resolve the 1 No build provenance finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
Resolve the 1 No artifact signing finding(s) in Supply-chain Provenance & Signing. — One of this dimension's main actionable groups (1 recommendation-level).
Detailed fixes: d36_recommendation.md · top locations in Appendix A, every location in findings.md.
What it measures: Whether the repository publishes a coordinated-vulnerability-disclosure policy (SECURITY.md or security.txt) with a reporting contact, so finders know how to report a vulnerability. Presence of a policy file with a contact, not whether the policy is adequate or honoured.
Method: Vulnerability-disclosure policy read deterministically from the repo: a SECURITY.md (root/.github/docs) or .well-known/security.txt / security.txt, regex-checked for a reporting contact (email / URL / mailto). Present + contact → 10; present without a contact → 4; NotApplicable when no policy file exists (it may live off-repo). Detects the policy file's presence + contact, not its adequacy.
What it measures: Whether dependencies have known published vulnerabilities (CVEs) per the OSV database — read natively from whatever lockfile the repository ships (Cargo, npm, Go, Python, Maven, RubyGems, …). D33 and D30 add ecosystem-specific scanners on top for npm and .NET.
Method: Multi-ecosystem dependency-CVE scan via osv-scanner --recursive (queries the osv.dev database + parses lockfiles natively across ecosystems: npm package-lock/yarn/pnpm/bun, Go go.mod, Rust Cargo.lock, Maven/Gradle pom.xml/gradle.lockfile, PyPI requirements.txt/poetry.lock/Pipfile.lock, Composer composer.lock, RubyGems Gemfile.lock, Hex mix.lock, pub pubspec.lock, Swift Package.resolved); severity tally (Critical/High/Medium/Low) to 0-10 tight normalizer (8.0). NotApplicable only when the repo declares no supported non-.NET dependency lockfile (a NuGet-only repo stays NotApplicable — .NET CVEs are D30's domain); coverage needs a resolved lockfile. Additive to D33 (trivy fs); exhaustive + deterministic, DB kept fresh.
High CVE: [GHSA redacted] · ×2requirements.txtdetected by osv-scanner finding
Critical CVE: [GHSA redacted]requirements.txtdetected by osv-scanner finding
Medium CVE: PYSEC-2026-2151 · ×5requirements.txtdetected by osv-scanner finding
What to do
Resolve the 5 Medium CVE finding(s) in OSV Dependency Vulnerabilities — start with requirements.txt (5). — One of this dimension's main actionable groups (5 warning-level).
Resolve the 2 High CVE finding(s) in OSV Dependency Vulnerabilities — start with requirements.txt (2). — One of this dimension's main actionable groups (2 issue-level).
Resolve the 1 Critical CVE finding(s) in OSV Dependency Vulnerabilities — start with requirements.txt. — One of this dimension's main actionable groups (1 issue-level).
Detailed fixes: d38_recommendation.md · top locations in Appendix A, every location in findings.md.
Do you agree with this assessment?
Frontend & cross-cutting dimensions
R = React/JS · M = Maturity · P = Readiness.
AC2 · Forms & labels10.0 / 10Exemplary○ Nothing flagged
Other · Accessibility — Whether form controls have a programmatic label (an associated label, aria-label or aria-labelledby), buttons have text, links have an accessible name, fieldsets have a non-empty legend, known UI-library field components carry a label prop, and a placeholder isn't used as the only label. Static markup readiness, not a WCAG conformance claim.
Method: Static markup-model scan: inputs/selects/textareas checked for an associated label[for]/wrapping label/aria-label/aria-labelledby (per document), buttons for accessible text, fieldsets for a legend; placeholder-only labelling flagged. Deterministic, hard fact per control.
Other · Accessibility — Whether pages declare a language (well-formed BCP-47) and a non-empty title, expose exactly one main landmark and a sane heading order with non-empty headings, keep zoom enabled, title their iframes, give data tables header cells, and avoid meta-refresh. Static markup readiness, not a WCAG conformance claim.
Method: Static markup-model scan: html lang, document <title>, a main landmark and heading order on full documents only, plus zoom-disabling viewports, untitled iframes and meta-refresh anywhere. Deterministic, per structural checkpoint.
No <main> (or role="main") means no "skip to content" target and a weaker landmark map. Wrap the primary content in <main>. — index.html:2
What to do
Declare <html lang>, a document <title> and a <main> landmark, keep headings in order, leave zoom enabled, title iframes and drop meta-refresh.
Other · Accessibility — Whether interactive behaviour is keyboard-reachable — no click handler on a non-interactive element lacking a role, tabindex and key handler, no positive tabindex, no href-less anchor, no placeholder-href (#/javascript) link acting as a button. Static markup readiness, not a WCAG conformance claim.
Method: Static markup-model scan: click handlers on non-interactive elements lacking role+tabindex+key handler, positive tabindex values, and href-less anchors. Components skipped, spreads suppressed. Deterministic, hard fact per element.
Other · Accessibility — Whether ARIA is used correctly — valid non-abstract roles, the ARIA state a role requires, valid (non-misspelled) aria-* attribute names, in-enum values for token-typed aria-* attributes, and no aria-hidden on (or wrapping) a focusable element. Static markup readiness, not a WCAG conformance claim.
Method: Static markup-model scan: role values checked against the WAI-ARIA role set (abstract/invalid flagged), required ARIA state for a role, and aria-hidden on a focusable element. Deterministic, role/attribute level.
Other · Accessibility — Whether focus outlines aren't removed without a replacement, motion respects prefers-reduced-motion, and literal CSS colour pairs meet contrast — PARTIAL: inline styles, in-repo <style> blocks, in-repo .css files, var() tokens, Tailwind neutral utilities and CSS-in-JS literals are read (hex/rgb/hsl/named), never computed/runtime/external-CDN colour. Static markup readiness, not a WCAG conformance claim.
Method: Static markup/CSS scan: inline outline:none/0, literal inline colour/background contrast against the 4.5:1 AA floor, and <style>-block animation without a prefers-reduced-motion guard. Deterministic but PARTIAL — only inline styles and in-repo CSS literals are visible.
This stylesheet animates but never checks prefers-reduced-motion, so motion-sensitive users can't opt out. Wrap motion in @media (prefers-reduced-motion: no-preference). — viewer.html:50
What to do
Keep a visible focus style (don't remove the outline without a replacement), guard animation with prefers-reduced-motion, and raise low-contrast colour pairs to at least 4.5:1.
Do you agree with this assessment?
AC7 · A11y enforcement4.0 / 10Weak✓ Tool-verified
Other · Accessibility — Whether accessibility is ENFORCED in the toolchain — an accessibility checker configured over the markup (an a11y lint rule set, e.g. eslint-plugin-jsx-a11y or vuejs-accessibility where the project lints JavaScript) and an automated accessibility assertion wired into tests or CI (axe/pa11y/Lighthouse or an equivalent) — on the Documented→Verified→Prevented ladder.
Method: Repo config/CI scan: an accessibility checker configured over the markup (an a11y lint rule set such as eslint-plugin-jsx-a11y / vuejs-accessibility where JavaScript is linted) and an automated accessibility assertion in tests or CI (axe/pa11y/Lighthouse or equivalent), graded on the Documented→Verified→Prevented rungs. Deterministic, presence/rung detection.
No accessibility enforcement found — no automated accessibility check runs over your pages. Add an accessibility checker (axe-core, pa11y or Lighthouse) over your HTML in CI and fail the build on new violations.
What to do
Enforce accessibility over your pages: run an accessibility checker (axe-core, pa11y or Lighthouse) against your HTML in CI and fail the build on new violations — these run as standalone tools without adding a package manifest.
Maturity · Maturity — Whether the repo and its projects have a README, and whether it's substantive and current.
Method: Filesystem scan: README presence, word count, and headings for depth; git history for staleness. Exhaustive across root and project dirs, deterministic.
What to do
Add a 'Testing' section to the root README — how to run the test suite.
Add an 'Architecture' / 'How it works' section to the root README — the high-level shape.
Maturity · Maturity — Whether key decisions (ADRs) and the high-level shape (C4/diagrams) are written down.
Method: Filesystem scan: ADR folder/naming conventions or content, plus Mermaid/PlantUML/C4/architecture.md discovery. Exhaustive, deterministic.
No Architecture Decision Records found — no conventional ADR directory, no `NNNN-title.md` documents and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer.
What to do
Record significant decisions one document per decision — dated, stating the context, the decision and its consequences — and keep them together wherever your design docs already live (a conventional `docs/adr/` tree with `NNNN-title.md` names is the most discoverable form).
Maturity · Maturity — Whether the repo is organised deliberately — src/test separation and consistent project naming.
Method: Filesystem scan: src/test folder separation and namespace-prefix consistency (majority RootNamespace agreement). Exhaustive across projects, deterministic.
Production code isn't grouped under a src/ folder — it all sits under skills/ alongside the root build files, so the conventional src/ boundary between the product and its tooling isn't drawn.
Tests aren't grouped in a dedicated test folder — the test surface isn't separable from production code at a glance.
What to do
Group production code under src/ (or split deliberately, e.g. backend/ + frontend/) so production and tooling code aren't mixed at the root.
Group tests in the folder your build system expects (tests/, test/, spec/, or your module's test source set) so the test surface is discoverable and CI can scope it.
Maturity · Maturity — Whether the README actually describes the code that exists (LLM-judged, advisory).
Method: Judged by language model at low temperature: README accuracy versus actual projects, within a disclosed tolerance. Advisory, not a measured number.
Do you agree with this assessment?
P1 · CI/CD gates8.5 / 10Strong✓ Tool-verified
Readiness · Readiness — Whether an automated pipeline builds and tests every change.
Method: Filesystem scan: CI workflow files (.github/workflows, .gitlab-ci.yml, etc.) for build and test stages. Exhaustive, deterministic.
A CI pipeline exists and the word "test" appears, but no explicit test-runner invocation (your stack's test command, or a test job) was matched — so either the gate runs tests through a step this pass could not recognise, or "test" is incidental here (a path, "latest", a reporter). Check the coverage dimensions first: if this repo has no test suite yet, that is the finding and this row follows from it. If a suite does exist, make the runner step explicit so the gate is unambiguous.
What to do
Run the test suite in CI via an explicit runner step for your stack, and gate merges on it.
Readiness · Readiness — Whether SAST, secret/dependency scanning and performance benchmarking are wired in (presence, not runtime).
Method: Filesystem scan: SAST configuration, dependency-update automation, secret scanning, and a benchmark harness or benchmark step — in this repository's own ecosystem. Exhaustive, deterministic.
No static application security testing detected. For this repository's stack, add bandit, `semgrep --config=p/python`, or CodeQL's python pack as a CI step.
What to do
Add a SAST step to CI running what this repository's stack ships: bandit, `semgrep --config=p/python`, or CodeQL's python pack — so a security regression fails the build instead of landing.
Enable Dependabot/Renovate or a dependency-review gate.
Add gitleaks/trufflehog in CI to block PRs that introduce committed secrets.
Readiness · Readiness — Whether releases are automated and safely reversible (probes, rolling updates, approval gates) — from manifests/pipeline files, not the live environment.
Method: Filesystem scan: deployment manifests/IaC (K8s YAML, Helm, Terraform) for rolling updates, probes, approval gates, migration hooks. Exhaustive, deterministic.
What to do
The release job declares an environment, but its protection rules are not visible from the repository — confirm required reviewers are attached, or publish as a draft release so a bad build can be stopped before users can download it.
Do you agree with this assessment?
WCAG coverage — what static analysis assessed
Statically assessed 12 of 55 WCAG 2.2 Level A/AA success criteria (22%; ≈24% of the 50 WCAG 2.1 AA criteria for EN 301 549). The other 43 require runtime or manual evaluation. Partial signal only (a clean result is necessary, not sufficient; static analysis fully verifies none). This is accessibility readiness, not a conformance claim — a WCAG conformance claim requires manual evaluation (WCAG-EM 1.0).
The score is the rank-weighted fold of these lenses (worst-heaviest), each including its meta-dimensions; a lens with a Critical contributor is capped at Fair (its band reads "gated by …") and is never the strongest area however high its average.
Not included — 64 check(s) not relevant to this codebase
These checks had nothing to measure here (no tests, no git history, the codebase is small, or the architecture style doesn't apply), so they're omitted above rather than scored low.
AC1 Text alternatives — No image/media element found in the parsed markup — AC1 not applicable here.
AX1 Captive dependencies — no DI registrations detected
AX10 Code composition — not assessed — code composition is computed by ROLE over a document set that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
AX2 Stateful singletons — no singleton implementations detected
AX3 Project dependency cycles — not assessed — project cycles and dependency direction are computed over a project-reference graph that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
AX4 Dependency direction — not assessed — project cycles and dependency direction are computed over a project-reference graph that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
AX5 Architecture & structure — not assessed — architecture style/structure is computed from a project graph (projects, types, module namespaces) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
AX6 Interface segregation — not assessed — interface segregation is computed over a type surface that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
AX7 Slice cohesion — not applicable — not a vertical-slice architecture
AX8 Test isolation — not assessed — test isolation is computed from a project graph (which projects are test projects, and what they reference) that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
AX9 CQS / query purity — no CQRS query handlers detected — query purity is not applicable to this codebase
C1 Data Protection — Not assessed: these personal data controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks personal data controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
C2 Access Controls — Not assessed: these authorization controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks authorization controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
C3 Audit Trail — Not assessed: these audit controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks audit controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
C4 Data Retention — Not assessed: these retention controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks retention controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
C5 Data-Subject Rights — Not assessed: these data-subject rights controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks data-subject rights controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
D10 Test Quality — ~1652 lines of test source are present (.py) but the test-quality collector reads C# only, so skipped/assertion-free tests couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
D11 Test Reliability — Test reliability not included
D12 Dependency Hygiene — Dependency hygiene not measured — dependency manifest found but not parsed for hygiene
D14 License Compliance — Not scored — this repository's package manifest is not parsed for licence data yet. A gap in the analyzer's language coverage, NOT a finding that the repository's licenses are compliant (a Python pyproject.toml/requirements.txt (pip/uv/Poetry)), which this pass does not parse yet — so this dimension asserts nothing about this repository's licensing in either direction.
D17 Explicit Debt — explicit-debt markers are read through a C# workspace today, so they were not read for this repository's language — this asserts nothing about how many markers the code carries. Not scored — this is a gap in the analyzer, not a finding about this repository
D18 Solution Shape — D18 scores the shape of a .NET solution; this repository has no .NET solution or project files, so the dimension does not apply.
D20 ADR Quality — N/A — ADRs are expected on deployable products with a user-facing host, not consumed libraries; no ADR log is required here.
D22 Internal API Consistency — No exposed public API
D23 Boundary Type-Coupling — Production source is present (.py) but bounded contexts are resolved over the C#/VB project set, which exposed none, so context scope could not be assessed. Not scored — this is a gap in the analyzer, not a verdict about this repository. Declaring the codebase's bounded contexts (≥2) would let cross-boundary type coupling be assessed — see the recommendation on this dimension for where. Declare them in `.codehealth/config.yaml` at the repository root (create it if absent), mapping each context name to the module-path or namespace prefixes that belong to it — e.g. `architecture:` → `contexts:` → `Billing: ["src/billing", "Acme.Billing"]`, `Catalog: ["src/catalog", "Acme.Catalog"]`.
D24 Comment Value — No inline comments to assess — comment value is not applicable here.
D25 ADR Conformance — no ADRs to check
D26 Project Cohesion — Project cohesion is assessed over the .NET project set; this target exposed no projects, so project size and spread could not be assessed. Not scored — this is a gap in the analyzer's reach, not a verdict about this repository.
D27 Navigability — No calls could be sampled, so navigability was not assessed — tracing effort is measured over resolved call sites and this target exposed none. Not scored — this is a gap in the analyzer's reach, not a verdict about this repository.
D30 Dependency Vulnerabilities — Not scored — no dependency manifest in a supported ecosystem was read for this repository. A gap in the analyzer's language coverage, NOT a finding that the repository is free of vulnerable dependencies (a Python pyproject.toml/requirements.txt (pip/uv/Poetry) — not scanned yet) — where an OSV-supported manifest exists, dependency vulnerabilities for this repository are reported under D38 instead.
D31 IaC & Container Security — No Infrastructure-as-Code or container manifests found (Dockerfile, Terraform, Kubernetes/Helm, CloudFormation); nothing to scan.
D32 Data Compliance (PII/GDPR) — Data compliance (PII/GDPR) was not assessed in this scan — no ruleset is currently available for it. This says nothing about how this repository handles personal data, in either direction.
D33 JS/npm Dependency Vulnerabilities — No JS/npm manifest or lockfile found outside build output (package.json, package-lock.json, yarn.lock, pnpm-lock.yaml, bun.lockb); no JS dependencies to scan.
D39 IL Efficiency — D39 measures the IL emitted by a .NET build; this repository has no .NET solution or project files, so the dimension does not apply.
D40 Network Egress Confinement — No Kubernetes/orchestration workloads found in the repository manifests; network egress policy is a cluster-native control that may live at the platform/firewall layer, so there is nothing to assess here.
D41 Kernel & Syscall Confinement — No Kubernetes/orchestration workloads found in the repository manifests; seccomp/AppArmor/SELinux confinement is a workload-level control, so there is nothing to assess here.
D42 Runtime Threat Enforcement — No Kubernetes/orchestration workloads found in the repository manifests; runtime threat-detection and admission-control policy are cluster-level controls, so there is nothing to assess here.
D5 Coupling — Inter-project coupling could not be assessed — no analyzable project graph was found for this repository. Not scored: a gap in the analyzer's reach, not a verdict about this repository. (Coupling here is Martin afferent/efferent/instability plus reference cycles across a project-reference graph, read today from .NET project files; other ecosystems' module graphs are not read yet.)
D6 Cohesion (LCOM4) — Cohesion (LCOM4) is measured over a C#/VB class graph, and this repository's production source is .py, which this pass does not read — so no class could be assessed. Not scored — this is a gap in the analyzer, not a finding about this repository.
D7 Architectural Integrity — no checkable ADRs and no dependency cycles — architectural integrity not assessed
D8 Code Coverage — Coverage not included — suite not readable by the collector
D9 Test Distribution — Test source is present (.py) but the test-pyramid classifier reads C# only, so its unit/integration/BDD/E2E split couldn't be counted. Not scored — this is a gap in the analyzer, not a finding about this repository.
DM1 Domain Modelling — not scored — this repository shows only 1 of the 3 signals this check looks for (147 value object(s))
ED1 Event-Driven — not scored — this repository shows none of the 3 signals this check looks for
ED5 Idempotency — no mutating command handlers or message consumers detected — idempotency check not applicable
ES1 Event Sourcing — not scored — this repository shows none of the 3 signals this check looks for
GD1 Unfinished & placeholder code — no source files
IC1 Incompleteness & stubs — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
P12 CI test-gate honesty — Reported, not scored — and nothing was matched here. The coverage check applies to any stack, but the checks for excluded tests, skipped tests and sleep-based synchronisation currently recognise only some ecosystems' test-runner idioms, so on a repository built with another stack the zeros below mean 'not checked', not 'clean'.
P2 Observability — Observability was not assessed: this check reads a source model that does not carry this repository's product — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of a logging idiom this check recognises is NOT evidence that this repo lacks structured logging (it may log through its own ecosystem's logger). This is a gap in the analyzer, not a finding about this repository.
P5 DR & Backup — not evidenced — repo shows no backup/RTO/RPO controls; absence of evidence is not evidence of a working control
P6 Release Hygiene — not evidenced — no changelog, version stamp or semver release tag in the repo
P7 Outbound HTTP resilience — not measured — the application kind could not be determined for this repo
P8 Schema migrations — not assessed — schema-migration practice is read from a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
P9 Domain vs controller coverage — no coverage report found on disk — produce a coverage report in a standard format (`coverage run -m pytest` then `coverage xml`) into the repo working tree before the scan — a CI step is the usual place, since the artefact is commonly gitignored, or wire coverage collection into CI, to enable this cross-layer check
PF1 Benchmark discipline — Performance was not assessed: this lens reads a source model that was not loaded for this repository, because the repository is written in a language this lens does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
PF2 Allocation hygiene — Performance was not assessed: this lens reads a source model that was not loaded for this repository, because the repository is written in a language this lens does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
PF3 Async & latency hygiene — Performance was not assessed: this lens reads a source model that was not loaded for this repository, because the repository is written in a language this lens does not yet model or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository — in particular it is NOT a statement that this repo is unpackaged or performance-careless.
S1 Web-Security Posture — Not assessed: these web-security controls are read from a source model (declarative annotations, request middleware, entity/column names, guard methods) that was not loaded for this repository — because the repository is written in a language this check does not yet model, or because its projects failed to load. Absence of an idiom this check recognises is NOT evidence that this repository lacks web-security controls: it may implement them entirely in its own ecosystem. This is a gap in the analyzer's language coverage, not a finding about this repository.
X1 Async correctness — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X2 Cancellation propagation — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X3 Exception handling — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X4 Structured logging — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
X5 Nullable reference types — not analysed — these correctness checks read a source model that was not loaded for this repository, because the repository is written in a language this check does not yet model, or because its projects failed to load. This is a gap in the analyzer, not a finding about this repository
Appendix A — Findings (grouped)
The findings behind the scores, grouped by severity, then by dimension and kind. The high-severity issues are enumerated in full below; items per group are capped at 25 with any overflow stated explicitly per group, never silently truncated. The complete machine-readable list of every finding (all severities) is the companion findings.md in this report's bundle.
High: github-actions-mutable-action-tag .github/workflows/deploy-pages.yml:35— GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/checkout@<40-character SHA>`. This step references `actions/checkout@v4`; resolve the SHA it points at today with `gh api repos/actions/checkout/commits/v4 --jq .sha`.
High: github-actions-mutable-action-tag .github/workflows/deploy-pages.yml:38— GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/configure-pages@<40-character SHA>`. This step references `actions/configure-pages@v4`; resolve the SHA it points at today with `gh api repos/actions/configure-pages/commits/v4 --jq .sha`.
High: github-actions-mutable-action-tag .github/workflows/deploy-pages.yml:43— GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/upload-pages-artifact@<40-character SHA>`. This step references `actions/upload-pages-artifact@v3`; resolve the SHA it points at today with `gh api repos/actions/upload-pages-artifact/commits/v3 --jq .sha`.
High: github-actions-mutable-action-tag .github/workflows/deploy-pages.yml:58— GitHub Actions step uses a mutable tag or branch reference. Tags and branch names can be silently repointed by the action owner, enabling supply-chain attacks — as seen in the trivy-action and kics-github-action compromises. Pin the reference to a full 40-character commit SHA instead, e.g. `uses: actions/deploy-pages@<40-character SHA>`. This step references `actions/deploy-pages@v4`; resolve the SHA it points at today with `gh api repos/actions/deploy-pages/commits/v4 --jq .sha`.
D38 · OSV Dependency Vulnerabilities· High CVE · ×2
High CVE: [GHSA redacted] requirements.txt— curl-cffi 0.7.0: [GHSA redacted] — curl-cffi is not declared by the manifests that govern this lockfile: it is pulled in transitively here (the 0.7.0 this repo declares for it belongs to a separate install root and does not reach this one), so upgrade the dependency that requires it (or constrain curl-cffi to >=0.15.0 in your constraints/requirements file).
High CVE: [GHSA redacted] requirements.txt— nbconvert 7.0.0: [GHSA redacted] — nbconvert is not declared by the manifests that govern this lockfile: it is pulled in transitively here (the 7.0.0 this repo declares for it belongs to a separate install root and does not reach this one), so upgrade the dependency that requires it (or constrain nbconvert to >=7.17.0 in your constraints/requirements file). This is 1 of 3 advisories with a published fix this scan raises against nbconvert 7.0.0, and their fixed versions do not agree — anything below 7.17.1 still leaves at least one of them open. Take this package to 7.17.1 or later: that is the floor for the package, not this row's target alone. This one row stands for the 3 advisories this scan raises against nbconvert 7.0.0: [GHSA redacted], [GHSA redacted], [GHSA redacted].
Critical CVE: [GHSA redacted] requirements.txt— pillow 9.0.0: [GHSA redacted] — pillow is not declared by the manifests that govern this lockfile: it is pulled in transitively here (the 9.0.0 this repo declares for it belongs to a separate install root and does not reach this one), so upgrade the dependency that requires it (or constrain pillow to >=10.2.0 in your constraints/requirements file). This is 1 of 23 advisories with a published fix this scan raises against pillow 9.0.0, and their fixed versions do not agree — anything below 9.3.0 still leaves at least one of them open. Take this package to 9.3.0 or later: that is the floor for the package, not this row's target alone. This one row stands for the 23 advisories this scan raises against pillow 9.0.0: [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], [GHSA redacted], PYSEC-2022-42980, PYSEC-2023-175.
FileTooLong: svg_quality/checker.py skills/ppt-master/scripts/svg_quality/checker.py:0— FileTooLong — 5605 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: pptx_package/builder.py skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:0— FileTooLong — 4764 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: drawingml/elements.py skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:0— FileTooLong — 3838 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: scripts/pptx_animations.py skills/ppt-master/scripts/pptx_animations.py:0— FileTooLong — 3127 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: drawingml/utils.py skills/ppt-master/scripts/svg_to_pptx/drawingml/utils.py:0— FileTooLong — 2655 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: scripts/mirror_template_materialize.py skills/ppt-master/scripts/mirror_template_materialize.py:0— FileTooLong — 2409 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: scripts/pptx_transitions.py skills/ppt-master/scripts/pptx_transitions.py:0— FileTooLong — 2182 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: pptx_to_svg/chart_to_svg.py skills/ppt-master/scripts/pptx_to_svg/chart_to_svg.py:0— FileTooLong — 2072 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: scripts/native_enhance_pptx_core.py skills/ppt-master/scripts/native_enhance_pptx_core.py:0— FileTooLong — 1987 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: confirm_ui/server.py skills/ppt-master/scripts/confirm_ui/server.py:0— FileTooLong — 1612 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: scripts/image_search.py skills/ppt-master/scripts/image_search.py:0— FileTooLong — 1607 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: scripts/narration_sync.py skills/ppt-master/scripts/narration_sync.py:0— FileTooLong — 1519 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: scripts/prompt_audit.py skills/ppt-master/scripts/prompt_audit.py:0— FileTooLong — 1476 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: pptx_to_svg/tbl_to_svg.py skills/ppt-master/scripts/pptx_to_svg/tbl_to_svg.py:0— FileTooLong — 1469 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: drawingml/converter.py skills/ppt-master/scripts/svg_to_pptx/drawingml/converter.py:0— FileTooLong — 1376 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: native_objects/chart_xml.py skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_xml.py:0— FileTooLong — 1270 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: source_to_md/pdf_to_md.py skills/ppt-master/scripts/source_to_md/pdf_to_md.py:0— FileTooLong — 1262 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: pptx_package/template_validation.py skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_validation.py:0— FileTooLong — 1252 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: pptx_to_svg/slide_to_svg.py skills/ppt-master/scripts/pptx_to_svg/slide_to_svg.py:0— FileTooLong — 1236 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: svg_to_pptx/animation_config.py skills/ppt-master/scripts/svg_to_pptx/animation_config.py:0— FileTooLong — 1196 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: source_to_md/doc_to_md.py skills/ppt-master/scripts/source_to_md/doc_to_md.py:0— FileTooLong — 1103 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: native_objects/chart_data.py skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_data.py:0— FileTooLong — 1097 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: svg_to_pptx/shape_boolean.py skills/ppt-master/scripts/svg_to_pptx/shape_boolean.py:0— FileTooLong — 1082 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: pptx_to_svg/normalized_chart_svg.py skills/ppt-master/scripts/pptx_to_svg/normalized_chart_svg.py:0— FileTooLong — 1022 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
FileTooLong: scripts/image_gen.py skills/ppt-master/scripts/image_gen.py:0— FileTooLong — 983 significant lines (blank, comment-only and punctuation-only lines excluded). To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them.
Duplicated block (7 lines × 2) skills/ppt-master/scripts/beautify_identity.py:268— skills/ppt-master/scripts/beautify_identity.py:268-274 | skills/ppt-master/scripts/beautify_inventory.py:172-178 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
Duplicated block (7 lines × 2) skills/ppt-master/scripts/finalize_svg.py:457— skills/ppt-master/scripts/finalize_svg.py:457-463 | skills/ppt-master/scripts/svg_finalize/align_embed_images.py:633-639 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/finalize_svg.py:457` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (7 lines × 2) skills/ppt-master/scripts/image_gen.py:571— skills/ppt-master/scripts/image_gen.py:571-577 | skills/ppt-master/scripts/image_search.py:1375-1381 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
Duplicated block (7 lines × 2) skills/ppt-master/scripts/image_sources/provider_openverse.py:75— skills/ppt-master/scripts/image_sources/provider_openverse.py:75-82 | skills/ppt-master/scripts/image_sources/provider_wikimedia.py:126-132 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/image_sources/provider_openverse.py:75` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (7 lines × 2) skills/ppt-master/scripts/pptx_animations.py:1636— skills/ppt-master/scripts/pptx_animations.py:1636-1642 | skills/ppt-master/scripts/pptx_animations.py:1668-1674 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (7 lines × 2) skills/ppt-master/scripts/pptx_to_svg/color_resolver.py:668— skills/ppt-master/scripts/pptx_to_svg/color_resolver.py:668-674 | skills/ppt-master/scripts/pptx_to_svg/color_resolver.py:706-712 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/pptx_to_svg/color_resolver.py:668` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (7 lines × 2) skills/ppt-master/scripts/pptx_to_svg/normalized_chart_svg.py:504— skills/ppt-master/scripts/pptx_to_svg/normalized_chart_svg.py:504-510 | skills/ppt-master/scripts/pptx_to_svg/normalized_chart_svg.py:690-696 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) skills/ppt-master/scripts/pptx_to_svg/tbl_to_svg.py:954— skills/ppt-master/scripts/pptx_to_svg/tbl_to_svg.py:954-961 | skills/ppt-master/scripts/pptx_to_svg/tbl_to_svg.py:992-998 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (7 lines × 2) skills/ppt-master/scripts/source_to_md/web_to_md.py:394— skills/ppt-master/scripts/source_to_md/web_to_md.py:394-400 | skills/ppt-master/scripts/source_to_md/web_to_md.py:407-413 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) skills/ppt-master/scripts/svg_position_calculator.py:657— skills/ppt-master/scripts/svg_position_calculator.py:657-663 | skills/ppt-master/scripts/svg_position_calculator.py:747-753 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) skills/ppt-master/scripts/svg_quality/checker.py:3005— skills/ppt-master/scripts/svg_quality/checker.py:3005-3011 | skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py:1454-1460 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/svg_quality/checker.py:3005` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (7 lines × 2) skills/ppt-master/scripts/svg_quality/checker.py:3312— skills/ppt-master/scripts/svg_quality/checker.py:3312-3318 | skills/ppt-master/scripts/svg_quality/checker.py:3399-3405 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/svg_quality/checker.py:3312` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (7 lines × 2) skills/ppt-master/scripts/svg_quality/svg_contracts.py:751— skills/ppt-master/scripts/svg_quality/svg_contracts.py:751-757 | skills/ppt-master/scripts/svg_quality/svg_contracts.py:972-978 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) skills/ppt-master/scripts/svg_quality/svg_contracts.py:899— skills/ppt-master/scripts/svg_quality/svg_contracts.py:899-905 | skills/ppt-master/scripts/svg_quality/svg_contracts.py:1034-1040 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:1180— skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:1180-1186 | skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:4443-4449 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_xml.py:798— skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_xml.py:798-804 | skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_xml.py:806-813 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (7 lines × 2) skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:905— skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:905-911 | skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:1134-1140 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:1134` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (7 lines × 2) skills/ppt-master/scripts/svg_to_pptx/shape_boolean.py:615— skills/ppt-master/scripts/svg_to_pptx/shape_boolean.py:615-621 | skills/ppt-master/scripts/svg_to_pptx/shape_boolean.py:651-657 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (7 lines × 2) skills/ppt-master/scripts/template_fill_pptx/checker.py:64— skills/ppt-master/scripts/template_fill_pptx/checker.py:64-70 | skills/ppt-master/scripts/template_fill_pptx/checker.py:81-87 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (9 lines × 2) skills/ppt-master/scripts/mirror_template_materialize.py:2634— skills/ppt-master/scripts/mirror_template_materialize.py:2634-2642 | skills/ppt-master/scripts/mirror_template_materialize.py:2643-2651 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (9 lines × 2) skills/ppt-master/scripts/pptx_animations.py:576— skills/ppt-master/scripts/pptx_animations.py:576-584 | skills/ppt-master/scripts/pptx_transitions.py:1027-1036 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/pptx_animations.py:576` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (9 lines × 2) skills/ppt-master/scripts/pptx_animations.py:707— skills/ppt-master/scripts/pptx_animations.py:707-715 | skills/ppt-master/scripts/pptx_transitions.py:1132-1142 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (9 lines × 2) skills/ppt-master/scripts/pptx_to_svg/chart_to_svg.py:1462— skills/ppt-master/scripts/pptx_to_svg/chart_to_svg.py:1462-1470 | skills/ppt-master/scripts/pptx_to_svg/chart_to_svg.py:1491-1499 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) skills/ppt-master/scripts/pptx_to_svg/preset_authoring.py:198— skills/ppt-master/scripts/pptx_to_svg/preset_authoring.py:198-206 | skills/ppt-master/scripts/pptx_to_svg/preset_authoring.py:348-356 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/pptx_to_svg/preset_authoring.py:198` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (9 lines × 2) skills/ppt-master/scripts/pptx_to_svg/preset_authoring.py:271— skills/ppt-master/scripts/pptx_to_svg/preset_authoring.py:271-280 | skills/ppt-master/scripts/pptx_to_svg/preset_authoring.py:454-462 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/pptx_to_svg/preset_authoring.py:271` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) skills/ppt-master/scripts/pptx_to_svg/preset_authoring.py:460— skills/ppt-master/scripts/pptx_to_svg/preset_authoring.py:460-468 | skills/ppt-master/scripts/pptx_to_svg/preset_authoring.py:585-593 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/pptx_to_svg/preset_authoring.py:460` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 2) skills/ppt-master/scripts/pptx_to_svg/shape_walker.py:428— skills/ppt-master/scripts/pptx_to_svg/shape_walker.py:428-436 | skills/ppt-master/scripts/pptx_to_svg/shape_walker.py:460-468 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (9 lines × 2) skills/ppt-master/scripts/source_to_md/doc_to_md.py:673— skills/ppt-master/scripts/source_to_md/doc_to_md.py:673-681 | skills/ppt-master/scripts/source_to_md/doc_to_md.py:787-795 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (9 lines × 2) skills/ppt-master/scripts/source_to_md/doc_to_md.py:1046— skills/ppt-master/scripts/source_to_md/doc_to_md.py:1046-1054 | skills/ppt-master/scripts/source_to_md/doc_to_md.py:1242-1250 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) skills/ppt-master/scripts/svg_editor/server.py:520— skills/ppt-master/scripts/svg_editor/server.py:520-532 | skills/ppt-master/scripts/svg_editor/server.py:538-546 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) skills/ppt-master/scripts/svg_editor/server.py:791— skills/ppt-master/scripts/svg_editor/server.py:791-804 | skills/ppt-master/scripts/svg_editor/server.py:911-919 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (9 lines × 2) skills/ppt-master/scripts/svg_to_pptx/drawingml/theme_colors.py:131— skills/ppt-master/scripts/svg_to_pptx/drawingml/theme_colors.py:131-139 | skills/ppt-master/scripts/svg_to_pptx/drawingml/theme_fonts.py:82-90 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (9 lines × 2) skills/ppt-master/scripts/svg_to_pptx/native_objects/marker_common.py:567— skills/ppt-master/scripts/svg_to_pptx/native_objects/marker_common.py:567-575 | skills/ppt-master/scripts/svg_to_pptx/native_objects/marker_common.py:591-599 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (9 lines × 2) skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:451— skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:451-459 | skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:480-488 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (9 lines × 2) skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:1456— skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:1456-1465 | skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:3028-3036 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:1456` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (9 lines × 2) skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:1968— skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:1968-1976 | skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:2965-2975 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (9 lines × 2) skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py:2032— skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py:2032-2042 | skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py:2966-2974 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) skills/ppt-master/scripts/confirm_ui/server.py:189— skills/ppt-master/scripts/confirm_ui/server.py:189-198 | skills/ppt-master/scripts/svg_editor/server.py:1091-1100 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (10 lines × 2) skills/ppt-master/scripts/confirm_ui/server.py:1577— skills/ppt-master/scripts/confirm_ui/server.py:1577-1586 | skills/ppt-master/scripts/svg_editor/server.py:476-485 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (10 lines × 2) skills/ppt-master/scripts/image_backends/backend_openai.py:492— skills/ppt-master/scripts/image_backends/backend_openai.py:492-501 | skills/ppt-master/scripts/image_backends/backend_openai.py:589-598 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/image_backends/backend_openai.py:492` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) skills/ppt-master/scripts/pptx_animations.py:1396— skills/ppt-master/scripts/pptx_animations.py:1396-1405 | skills/ppt-master/scripts/pptx_animations.py:1420-1429 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/pptx_animations.py:1396` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (10 lines × 2) skills/ppt-master/scripts/pptx_animations.py:2425— skills/ppt-master/scripts/pptx_animations.py:2425-2434 | skills/ppt-master/scripts/pptx_animations.py:2454-2463 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) skills/ppt-master/scripts/pptx_to_svg/converter.py:453— skills/ppt-master/scripts/pptx_to_svg/converter.py:453-462 | skills/ppt-master/scripts/pptx_to_svg/converter.py:467-476 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/pptx_to_svg/converter.py:453` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) skills/ppt-master/scripts/pptx_to_svg/effect_to_svg.py:114— skills/ppt-master/scripts/pptx_to_svg/effect_to_svg.py:114-123 | skills/ppt-master/scripts/pptx_to_svg/effect_to_svg.py:134-144 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (10 lines × 2) skills/ppt-master/scripts/pptx_to_svg/slide_to_svg.py:1229— skills/ppt-master/scripts/pptx_to_svg/slide_to_svg.py:1229-1238 | skills/ppt-master/scripts/pptx_to_svg/slide_to_svg.py:1262-1271 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/pptx_to_svg/slide_to_svg.py:1229` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) skills/ppt-master/scripts/svg_authoring_view.py:577— skills/ppt-master/scripts/svg_authoring_view.py:577-586 | skills/ppt-master/scripts/svg_to_pptx/pptx_package/cli.py:507-516 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (10 lines × 2) skills/ppt-master/scripts/svg_position_calculator.py:421— skills/ppt-master/scripts/svg_position_calculator.py:421-430 | skills/ppt-master/scripts/svg_position_calculator.py:558-567 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/svg_position_calculator.py:421` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) skills/ppt-master/scripts/svg_quality/checker.py:1638— skills/ppt-master/scripts/svg_quality/checker.py:1638-1647 | skills/ppt-master/scripts/svg_quality/checker.py:2232-2242 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) skills/ppt-master/scripts/svg_quality/svg_contracts.py:732— skills/ppt-master/scripts/svg_quality/svg_contracts.py:732-741 | skills/ppt-master/scripts/svg_quality/svg_contracts.py:943-952 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/svg_quality/svg_contracts.py:732` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (10 lines × 2) skills/ppt-master/scripts/svg_quality/svg_contracts.py:1095— skills/ppt-master/scripts/svg_quality/svg_contracts.py:1095-1104 | skills/ppt-master/scripts/svg_quality/svg_contracts.py:1107-1118 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/svg_quality/svg_contracts.py:1095` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (10 lines × 2) skills/ppt-master/scripts/svg_to_pptx/drawingml/text_properties.py:408— skills/ppt-master/scripts/svg_to_pptx/drawingml/text_properties.py:408-417 | skills/ppt-master/scripts/svg_to_pptx/geometry_properties.py:93-102 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (10 lines × 2) skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py:774— skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py:774-783 | skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py:956-965 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (10 lines × 2) skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py:1626— skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py:1626-1635 | skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py:1685-1695 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (8 lines × 2) skills/ppt-master/scripts/batch_validate.py:170— skills/ppt-master/scripts/batch_validate.py:170-177 | skills/ppt-master/scripts/svg_quality/checker.py:6628-6635 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (8 lines × 2) skills/ppt-master/scripts/image_backends/backend_ideogram.py:113— skills/ppt-master/scripts/image_backends/backend_ideogram.py:113-120 | skills/ppt-master/scripts/image_backends/backend_stability.py:106-113 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (8 lines × 2) skills/ppt-master/scripts/narration_sync.py:161— skills/ppt-master/scripts/narration_sync.py:161-168 | skills/ppt-master/scripts/video_subtitles.py:56-63 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
Duplicated block (8 lines × 2) skills/ppt-master/scripts/native_enhance_pptx_core.py:1835— skills/ppt-master/scripts/native_enhance_pptx_core.py:1835-1842 | skills/ppt-master/scripts/native_enhance_pptx_core.py:2181-2188 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (8 lines × 2) skills/ppt-master/scripts/notes_to_audio.py:338— skills/ppt-master/scripts/notes_to_audio.py:338-345 | skills/ppt-master/scripts/notes_to_audio.py:372-379 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/notes_to_audio.py:338` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (8 lines × 2) skills/ppt-master/scripts/pptx_animations.py:729— skills/ppt-master/scripts/pptx_animations.py:729-736 | skills/ppt-master/scripts/pptx_animations.py:743-750 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (8 lines × 2) skills/ppt-master/scripts/pptx_animations.py:1604— skills/ppt-master/scripts/pptx_animations.py:1604-1612 | skills/ppt-master/scripts/pptx_animations.py:1643-1650 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/pptx_animations.py:1604` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (8 lines × 2) skills/ppt-master/scripts/pptx_to_svg/color_resolver.py:304— skills/ppt-master/scripts/pptx_to_svg/color_resolver.py:304-312 | skills/ppt-master/scripts/pptx_to_svg/color_resolver.py:363-370 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (8 lines × 2) skills/ppt-master/scripts/pptx_to_svg/slide_to_svg.py:1346— skills/ppt-master/scripts/pptx_to_svg/slide_to_svg.py:1346-1353 | skills/ppt-master/scripts/pptx_to_svg/slide_to_svg.py:1390-1397 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) skills/ppt-master/scripts/pptx_to_svg/tbl_to_svg.py:372— skills/ppt-master/scripts/pptx_to_svg/tbl_to_svg.py:372-379 | skills/ppt-master/scripts/pptx_to_svg/tbl_to_svg.py:423-430 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (8 lines × 2) skills/ppt-master/scripts/source_to_md/pdf_to_md.py:492— skills/ppt-master/scripts/source_to_md/pdf_to_md.py:492-499 | skills/ppt-master/scripts/source_to_md/pdf_to_md.py:655-662 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (8 lines × 2) skills/ppt-master/scripts/svg_position_calculator.py:881— skills/ppt-master/scripts/svg_position_calculator.py:881-888 | skills/ppt-master/scripts/svg_position_calculator.py:900-907 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (8 lines × 2) skills/ppt-master/scripts/svg_quality/checker.py:6700— skills/ppt-master/scripts/svg_quality/checker.py:6700-6707 | skills/ppt-master/scripts/svg_quality/checker.py:6756-6763 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:1561— skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:1561-1570 | skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:3175-3182 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (8 lines × 2) skills/ppt-master/scripts/svg_to_pptx/pptx_package/cli.py:675— skills/ppt-master/scripts/svg_to_pptx/pptx_package/cli.py:675-682 | skills/ppt-master/scripts/svg_to_pptx/pptx_package/cli.py:696-703 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (8 lines × 2) skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py:903— skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py:903-910 | skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py:952-960 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py:952` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) skills/ppt-master/scripts/image_backends/backend_gemini.py:105— skills/ppt-master/scripts/image_backends/backend_gemini.py:105-116 | skills/ppt-master/scripts/image_backends/backend_openrouter.py:119-131 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
Duplicated block (12 lines × 2) skills/ppt-master/scripts/pptx_to_svg/slide_to_svg.py:270— skills/ppt-master/scripts/pptx_to_svg/slide_to_svg.py:270-281 | skills/ppt-master/scripts/pptx_to_svg/slide_to_svg.py:384-395 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) skills/ppt-master/scripts/project_management/cli.py:583— skills/ppt-master/scripts/project_management/cli.py:583-595 | skills/ppt-master/scripts/project_management/cli.py:601-612 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (12 lines × 2) skills/ppt-master/scripts/project_utils.py:276— skills/ppt-master/scripts/project_utils.py:276-289 | skills/ppt-master/scripts/project_utils.py:322-333 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/project_utils.py:276` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (12 lines × 2) skills/ppt-master/scripts/prompt_audit.py:1317— skills/ppt-master/scripts/prompt_audit.py:1317-1329 | skills/ppt-master/scripts/prompt_audit.py:1332-1343 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/prompt_audit.py:1317` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) skills/ppt-master/scripts/source_to_md/doc_to_md.py:629— skills/ppt-master/scripts/source_to_md/doc_to_md.py:629-646 | skills/ppt-master/scripts/source_to_md/doc_to_md.py:759-770 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (12 lines × 2) skills/ppt-master/scripts/source_to_md/pdf_to_md.py:1161— skills/ppt-master/scripts/source_to_md/pdf_to_md.py:1161-1172 | skills/ppt-master/scripts/source_to_md/pdf_to_md.py:1178-1189 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) skills/ppt-master/scripts/svg_quality/checker.py:2202— skills/ppt-master/scripts/svg_quality/checker.py:2202-2213 | skills/ppt-master/scripts/svg_quality/checker.py:2231-2242 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (12 lines × 2) skills/ppt-master/scripts/svg_to_pptx/animation_config.py:1131— skills/ppt-master/scripts/svg_to_pptx/animation_config.py:1131-1142 | skills/ppt-master/scripts/svg_to_pptx/animation_config.py:1206-1217 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (12 lines × 2) skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:1193— skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:1193-1204 | skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:1466-1477 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (12 lines × 2) skills/ppt-master/scripts/svg_to_pptx/drawingml/styles.py:715— skills/ppt-master/scripts/svg_to_pptx/drawingml/styles.py:715-726 | skills/ppt-master/scripts/svg_to_pptx/drawingml/styles.py:737-748 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (12 lines × 2) skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_style.py:222— skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_style.py:222-233 | skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_style.py:242-253 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_style.py:222` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (12 lines × 2) skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:1430— skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:1430-1441 | skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:3014-3025 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (11 lines × 2) skills/ppt-master/scripts/batch_validate.py:241— skills/ppt-master/scripts/batch_validate.py:241-251 | skills/ppt-master/scripts/svg_quality/checker.py:6910-6920 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (11 lines × 2) skills/ppt-master/scripts/narration_sync.py:191— skills/ppt-master/scripts/narration_sync.py:191-201 | skills/ppt-master/scripts/video_subtitles.py:78-88 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
Duplicated block (11 lines × 2) skills/ppt-master/scripts/pptx_animations.py:666— skills/ppt-master/scripts/pptx_animations.py:666-676 | skills/ppt-master/scripts/pptx_transitions.py:1069-1081 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/pptx_animations.py:666` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) skills/ppt-master/scripts/pptx_to_svg/txbody_to_svg.py:1272— skills/ppt-master/scripts/pptx_to_svg/txbody_to_svg.py:1272-1282 | skills/ppt-master/scripts/pptx_to_svg/txbody_to_svg.py:1303-1313 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) skills/ppt-master/scripts/source_to_md.py:454— skills/ppt-master/scripts/source_to_md.py:454-464 | skills/ppt-master/scripts/source_to_md/_batch.py:139-150 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (11 lines × 2) skills/ppt-master/scripts/svg_quality/checker.py:466— skills/ppt-master/scripts/svg_quality/checker.py:466-476 | skills/ppt-master/scripts/svg_to_pptx/pptx_package/cli.py:566-576 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (11 lines × 2) skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:574— skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:574-584 | skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:963-973 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:574` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (11 lines × 2) skills/ppt-master/scripts/svg_to_pptx/drawingml/utils.py:1537— skills/ppt-master/scripts/svg_to_pptx/drawingml/utils.py:1537-1547 | skills/ppt-master/scripts/svg_to_pptx/drawingml/utils.py:1770-1780 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (11 lines × 2) skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_style.py:204— skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_style.py:204-214 | skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_style.py:215-225 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_style.py:204` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (11 lines × 2) skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:1528— skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:1528-1538 | skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:3135-3146 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (11 lines × 2) skills/ppt-master/scripts/svg_to_pptx/shape_boolean.py:892— skills/ppt-master/scripts/svg_to_pptx/shape_boolean.py:892-902 | skills/ppt-master/scripts/svg_to_pptx/shape_boolean.py:925-935 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (11 lines × 2) skills/ppt-master/scripts/tts_backends/backend_cosyvoice.py:64— skills/ppt-master/scripts/tts_backends/backend_cosyvoice.py:64-74 | skills/ppt-master/scripts/tts_backends/backend_qwen.py:55-65 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
Duplicated block (13 lines × 2) skills/ppt-master/scripts/confirm_ui/server.py:1424— skills/ppt-master/scripts/confirm_ui/server.py:1424-1436 | skills/ppt-master/scripts/svg_editor/server.py:1054-1067 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/confirm_ui/server.py:1424` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (13 lines × 2) skills/ppt-master/scripts/confirm_ui/server.py:1564— skills/ppt-master/scripts/confirm_ui/server.py:1564-1576 | skills/ppt-master/scripts/svg_editor/server.py:461-475 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (13 lines × 2) skills/ppt-master/scripts/confirm_ui/server.py:1880— skills/ppt-master/scripts/confirm_ui/server.py:1880-1892 | skills/ppt-master/scripts/svg_editor/server.py:1188-1202 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/confirm_ui/server.py:1880` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (13 lines × 2) skills/ppt-master/scripts/narration_sync.py:212— skills/ppt-master/scripts/narration_sync.py:212-224 | skills/ppt-master/scripts/video_subtitles.py:99-111 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
Duplicated block (13 lines × 2) skills/ppt-master/scripts/pptx_to_svg/converter.py:330— skills/ppt-master/scripts/pptx_to_svg/converter.py:330-342 | skills/ppt-master/scripts/pptx_to_svg/converter.py:352-364 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/pptx_to_svg/converter.py:330` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) skills/ppt-master/scripts/pptx_to_svg/preset_authoring.py:252— skills/ppt-master/scripts/pptx_to_svg/preset_authoring.py:252-265 | skills/ppt-master/scripts/pptx_to_svg/preset_authoring.py:441-453 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (13 lines × 2) skills/ppt-master/scripts/pptx_to_svg/slide_to_svg.py:1358— skills/ppt-master/scripts/pptx_to_svg/slide_to_svg.py:1358-1371 | skills/ppt-master/scripts/pptx_to_svg/slide_to_svg.py:1402-1414 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/pptx_to_svg/slide_to_svg.py:1358` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (13 lines × 2) skills/ppt-master/scripts/svg_quality/checker.py:803— skills/ppt-master/scripts/svg_quality/checker.py:803-815 | skills/ppt-master/scripts/svg_quality/checker.py:824-836 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/svg_quality/checker.py:803` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (13 lines × 2) skills/ppt-master/scripts/svg_to_pptx/animation_config.py:876— skills/ppt-master/scripts/svg_to_pptx/animation_config.py:876-888 | skills/ppt-master/scripts/svg_to_pptx/animation_config.py:989-1001 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (13 lines × 2) skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:3297— skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:3297-3309 | skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:3398-3410 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:3297` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (13 lines × 2) skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:3466— skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:3466-3478 | skills/ppt-master/scripts/svg_to_pptx/drawingml/utils.py:2687-2699 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:3466` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (6 lines × 2) skills/ppt-master/scripts/pptx_to_svg/normalized_chart_svg.py:140— skills/ppt-master/scripts/pptx_to_svg/normalized_chart_svg.py:140-145 | skills/ppt-master/scripts/pptx_to_svg/normalized_chart_svg.py:158-164 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/pptx_to_svg/normalized_chart_svg.py:140` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (6 lines × 2) skills/ppt-master/scripts/pptx_to_svg/preset_registry_to_svg.py:105— skills/ppt-master/scripts/pptx_to_svg/preset_registry_to_svg.py:105-110 | skills/ppt-master/scripts/pptx_to_svg/preset_registry_to_svg.py:114-119 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/pptx_to_svg/preset_registry_to_svg.py:105` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (6 lines × 2) skills/ppt-master/scripts/svg_position_calculator.py:222— skills/ppt-master/scripts/svg_position_calculator.py:222-229 | skills/ppt-master/scripts/svg_position_calculator.py:265-270 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) skills/ppt-master/scripts/svg_quality/svg_contracts.py:474— skills/ppt-master/scripts/svg_quality/svg_contracts.py:474-483 | skills/ppt-master/scripts/svg_quality/svg_contracts.py:584-589 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/svg_quality/svg_contracts.py:474` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (6 lines × 2) skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:1774— skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:1774-1779 | skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:1843-1848 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_data.py:601— skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_data.py:601-609 | skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_data.py:1132-1137 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_data.py:601` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (6 lines × 2) skills/ppt-master/scripts/template_fill_pptx/ooxml.py:113— skills/ppt-master/scripts/template_fill_pptx/ooxml.py:113-118 | skills/ppt-master/scripts/template_fill_pptx/ooxml.py:156-161 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) skills/ppt-master/scripts/template_fill_pptx/table_fill.py:20— skills/ppt-master/scripts/template_fill_pptx/table_fill.py:20-25 | skills/ppt-master/scripts/template_fill_pptx/text_fill.py:19-24 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (6 lines × 2) skills/ppt-master/scripts/template_fill_pptx/text_fill.py:36— skills/ppt-master/scripts/template_fill_pptx/text_fill.py:36-41 | skills/ppt-master/scripts/template_fill_pptx/text_fill.py:52-57 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (6 lines × 2) skills/ppt-master/scripts/template_fill_pptx/validator.py:249— skills/ppt-master/scripts/template_fill_pptx/validator.py:249-254 | skills/ppt-master/scripts/template_fill_pptx/validator.py:285-290 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/template_fill_pptx/validator.py:249` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (6 lines × 2) skills/ppt-master/scripts/total_md_split.py:178— skills/ppt-master/scripts/total_md_split.py:178-183 | skills/ppt-master/scripts/total_md_split.py:194-199 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Hotspot: skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py— skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py changed 57 times in last 90 days, max complexity 223. 18 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time.
Hotspot: skills/ppt-master/scripts/svg_to_pptx/pptx_package/cli.py skills/ppt-master/scripts/svg_to_pptx/pptx_package/cli.py— skills/ppt-master/scripts/svg_to_pptx/pptx_package/cli.py changed 54 times in last 90 days, max complexity 191. 20 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time.
Hotspot: skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py— skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py changed 42 times in last 90 days, max complexity 93. 25 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time.
Hotspot: skills/ppt-master/scripts/svg_to_pptx/drawingml/converter.py skills/ppt-master/scripts/svg_to_pptx/drawingml/converter.py— skills/ppt-master/scripts/svg_to_pptx/drawingml/converter.py changed 53 times in last 90 days, max complexity 58. 31 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time.
Hotspot: skills/ppt-master/scripts/svg_to_pptx/drawingml/utils.py skills/ppt-master/scripts/svg_to_pptx/drawingml/utils.py— skills/ppt-master/scripts/svg_to_pptx/drawingml/utils.py changed 44 times in last 90 days, max complexity 47. 31 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time.
Hotspot: skills/ppt-master/scripts/pptx_to_svg/ln_to_svg.py skills/ppt-master/scripts/pptx_to_svg/ln_to_svg.py— skills/ppt-master/scripts/pptx_to_svg/ln_to_svg.py changed 23 times in last 90 days, max complexity 62. 20 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time.
Hotspot: skills/ppt-master/scripts/confirm_ui/server.py skills/ppt-master/scripts/confirm_ui/server.py— skills/ppt-master/scripts/confirm_ui/server.py changed 34 times in last 90 days, max complexity 37. 13 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time.
Hotspot: skills/ppt-master/scripts/pptx_to_svg/slide_to_svg.py skills/ppt-master/scripts/pptx_to_svg/slide_to_svg.py— skills/ppt-master/scripts/pptx_to_svg/slide_to_svg.py changed 43 times in last 90 days, max complexity 29. 31 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time.
Hotspot: skills/ppt-master/scripts/image_gen.py skills/ppt-master/scripts/image_gen.py— skills/ppt-master/scripts/image_gen.py changed 13 times in last 90 days, max complexity 67. 8 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time.
Hotspot: skills/ppt-master/scripts/pptx_animations.py skills/ppt-master/scripts/pptx_animations.py— skills/ppt-master/scripts/pptx_animations.py changed 14 times in last 90 days, max complexity 56. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, cover the area it touches with tests, then split that area out of the file so the following change is smaller than this one — a file this often edited pays the complexity back every time.
Duplicated block (5 lines × 2) skills/ppt-master/scripts/attribution_guard.py:141— skills/ppt-master/scripts/attribution_guard.py:141-145 | skills/ppt-master/scripts/attribution_guard.py:175-179 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/attribution_guard.py:141` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (5 lines × 2) skills/ppt-master/scripts/pptx_to_svg/normalized_chart_svg.py:774— skills/ppt-master/scripts/pptx_to_svg/normalized_chart_svg.py:774-778 | skills/ppt-master/scripts/pptx_to_svg/normalized_chart_svg.py:861-865 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) skills/ppt-master/scripts/source_to_md/doc_to_md.py:371— skills/ppt-master/scripts/source_to_md/doc_to_md.py:371-375 | skills/ppt-master/scripts/source_to_md/doc_to_md.py:394-398 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) skills/ppt-master/scripts/source_to_md/doc_to_md.py:552— skills/ppt-master/scripts/source_to_md/doc_to_md.py:552-556 | skills/ppt-master/scripts/source_to_md/doc_to_md.py:590-594 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (5 lines × 2) skills/ppt-master/scripts/svg_finalize/align_embed_images.py:222— skills/ppt-master/scripts/svg_finalize/align_embed_images.py:222-226 | skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:3873-3877 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (5 lines × 2) skills/ppt-master/scripts/svg_position_calculator.py:1335— skills/ppt-master/scripts/svg_position_calculator.py:1335-1339 | skills/ppt-master/scripts/svg_position_calculator.py:1343-1347 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (5 lines × 2) skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_style.py:574— skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_style.py:574-578 | skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_style.py:624-628 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (5 lines × 2) skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:2193— skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:2193-2197 | skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:2265-2269 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:2193` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (5 lines × 2) skills/ppt-master/scripts/template_import/manifest.py:526— skills/ppt-master/scripts/template_import/manifest.py:526-530 | skills/ppt-master/scripts/template_import/manifest.py:533-537 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Change coupling: register_template.py ↔ svg_quality_checker.py skills/ppt-master/scripts/register_template.py— `skills/ppt-master/scripts/register_template.py` and `skills/ppt-master/scripts/svg_quality_checker.py` change together 62% of the time (8 of the 13 commits that touched the less-changed of the two, renames followed) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking.
Change coupling: error_helper.py ↔ svg_quality_checker.py skills/ppt-master/scripts/error_helper.py— `skills/ppt-master/scripts/error_helper.py` and `skills/ppt-master/scripts/svg_quality_checker.py` change together 59% of the time (13 of the 22 commits that touched the less-changed of the two, renames followed) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking.
Change coupling: svg_quality_checker.py ↔ template_structure.py skills/ppt-master/scripts/svg_quality_checker.py— `skills/ppt-master/scripts/svg_quality_checker.py` and `skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py` change together 59% of the time (17 of the 29 commits that touched the less-changed of the two, renames followed) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE (that is what the inversion buys) and the thing to add is a comment saying so, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking.
Change coupling: tbl_to_svg.py ↔ __init__.py skills/ppt-master/scripts/pptx_to_svg/tbl_to_svg.py— `skills/ppt-master/scripts/pptx_to_svg/tbl_to_svg.py` and `skills/ppt-master/scripts/svg_to_pptx/native_objects/__init__.py` change together 55% of the time (6 of the 11 commits that touched the less-changed of the two, renames followed) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE (that is what the inversion buys) and the thing to add is a comment saying so, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking.
Change coupling: tbl_to_svg.py ↔ table.py skills/ppt-master/scripts/pptx_to_svg/tbl_to_svg.py— `skills/ppt-master/scripts/pptx_to_svg/tbl_to_svg.py` and `skills/ppt-master/scripts/svg_to_pptx/native_objects/table.py` change together 55% of the time (6 of the 11 commits that touched the less-changed of the two, renames followed) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE (that is what the inversion buys) and the thing to add is a comment saying so, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking.
Change coupling: config.py ↔ error_helper.py skills/ppt-master/scripts/config.py— `skills/ppt-master/scripts/config.py` and `skills/ppt-master/scripts/error_helper.py` change together 50% of the time (11 of the 22 commits that touched the less-changed of the two, renames followed) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module — a sibling reference still needs an import — so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking.
Change coupling: svg_quality_checker.py ↔ marker_common.py skills/ppt-master/scripts/svg_quality_checker.py— `skills/ppt-master/scripts/svg_quality_checker.py` and `skills/ppt-master/scripts/svg_to_pptx/native_objects/marker_common.py` change together 50% of the time (6 of the 12 commits that touched the less-changed of the two, renames followed) with no explicit dependency — the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE (that is what the inversion buys) and the thing to add is a comment saying so, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking.
D38 · OSV Dependency Vulnerabilities· Medium CVE · ×5
Medium CVE: PYSEC-2026-2151 requirements.txt— flask 3.0.0: PYSEC-2026-2151 — flask is not declared by the manifests that govern this lockfile: it is pulled in transitively here (the 3.0.0 this repo declares for it belongs to a separate install root and does not reach this one), so upgrade the dependency that requires it (or constrain flask to >=3.1.3 in your constraints/requirements file).
Medium CVE: [GHSA redacted] requirements.txt— mammoth 1.6.0: [GHSA redacted] — mammoth is not declared by the manifests that govern this lockfile: it is pulled in transitively here (the 1.6.0 this repo declares for it belongs to a separate install root and does not reach this one), so upgrade the dependency that requires it (or constrain mammoth to >=1.11.0 in your constraints/requirements file).
Medium CVE: PYSEC-2026-1604 requirements.txt— markdownify 0.11.6: PYSEC-2026-1604 — markdownify is not declared by the manifests that govern this lockfile: it is pulled in transitively here (the 0.11.6 this repo declares for it belongs to a separate install root and does not reach this one), so upgrade the dependency that requires it (or constrain markdownify to >=0.14.1 in your constraints/requirements file).
Medium CVE: [GHSA redacted] requirements.txt— numpy 1.20.0: [GHSA redacted] — numpy is not declared by the manifests that govern this lockfile: it is pulled in transitively here (the 1.20.0 this repo declares for it belongs to a separate install root and does not reach this one), so upgrade the dependency that requires it (or constrain numpy to >=1.21 in your constraints/requirements file). This is 1 of 2 advisories with a published fix this scan raises against numpy 1.20.0, and their fixed versions do not agree — anything below 1.22 still leaves at least one of them open. Take this package to 1.22 or later: that is the floor for the package, not this row's target alone. This one row stands for the 2 advisories this scan raises against numpy 1.20.0: [GHSA redacted], [GHSA redacted].
Medium CVE: [GHSA redacted] requirements.txt— requests 2.31.0: [GHSA redacted] — requests is not declared by the manifests that govern this lockfile: it is pulled in transitively here (the 2.31.0 this repo declares for it belongs to a separate install root and does not reach this one), so upgrade the dependency that requires it (or constrain requests to >=2.32.4 in your constraints/requirements file). This is 1 of 3 advisories with a published fix this scan raises against requests 2.31.0, and their fixed versions do not agree — anything below 2.33.0 still leaves at least one of them open. Take this package to 2.33.0 or later: that is the floor for the package, not this row's target alone. This one row stands for the 3 advisories this scan raises against requests 2.31.0: [GHSA redacted], [GHSA redacted], [GHSA redacted].
Duplicated block (16 lines × 2) skills/ppt-master/scripts/image_backends/backend_fal.py:70— skills/ppt-master/scripts/image_backends/backend_fal.py:70-85 | skills/ppt-master/scripts/image_backends/backend_replicate.py:90-109 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
Duplicated block (16 lines × 2) skills/ppt-master/scripts/image_backends/backend_openai.py:435— skills/ppt-master/scripts/image_backends/backend_openai.py:435-450 | skills/ppt-master/scripts/image_backends/backend_openai.py:531-546 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited.
Duplicated block (16 lines × 2) skills/ppt-master/scripts/pptx_animations.py:2946— skills/ppt-master/scripts/pptx_animations.py:2946-2961 | skills/ppt-master/scripts/pptx_animations.py:2979-2994 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/pptx_animations.py:2946` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (16 lines × 2) skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:2396— skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:2396-2411 | skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:2433-2448 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:2396` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (16 lines × 2) skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_xml.py:512— skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_xml.py:512-527 | skills/ppt-master/scripts/svg_to_pptx/native_objects/chartex.py:22-37 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_xml.py:512` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (14 lines × 2) skills/ppt-master/scripts/confirm_ui/server.py:1923— skills/ppt-master/scripts/confirm_ui/server.py:1923-1936 | skills/ppt-master/scripts/svg_editor/server.py:1216-1229 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (14 lines × 2) skills/ppt-master/scripts/native_enhance_pptx_core.py:519— skills/ppt-master/scripts/native_enhance_pptx_core.py:519-532 | skills/ppt-master/scripts/native_enhance_pptx_core.py:557-570 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (14 lines × 2) skills/ppt-master/scripts/svg_quality/checker.py:3665— skills/ppt-master/scripts/svg_quality/checker.py:3665-3678 | skills/ppt-master/scripts/svg_quality/checker.py:3683-3696 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (14 lines × 2) skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_xml.py:1116— skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_xml.py:1116-1130 | skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_xml.py:1154-1167 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_xml.py:1116` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (14 lines × 2) skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:945— skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:945-958 | skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:1094-1107 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:945` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (15 lines × 2) skills/ppt-master/scripts/project_utils.py:260— skills/ppt-master/scripts/project_utils.py:260-274 | skills/ppt-master/scripts/project_utils.py:306-320 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (15 lines × 2) skills/ppt-master/scripts/svg_quality/checker.py:2265— skills/ppt-master/scripts/svg_quality/checker.py:2265-2280 | skills/ppt-master/scripts/svg_quality/checker.py:4560-4574 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/svg_quality/checker.py:2265` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (15 lines × 2) skills/ppt-master/scripts/svg_quality/checker.py:4909— skills/ppt-master/scripts/svg_quality/checker.py:4909-4923 | skills/ppt-master/scripts/svg_quality/checker.py:4983-4998 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/svg_quality/checker.py:4909` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (15 lines × 2) skills/ppt-master/scripts/svg_to_pptx/drawingml/text_properties.py:699— skills/ppt-master/scripts/svg_to_pptx/drawingml/text_properties.py:699-713 | skills/ppt-master/scripts/svg_to_pptx/drawingml/text_properties.py:734-748 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/svg_to_pptx/drawingml/text_properties.py:699` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 3) skills/ppt-master/scripts/image_gen.py:758— skills/ppt-master/scripts/image_gen.py:758-766 | skills/ppt-master/scripts/pptx_intake.py:58-66 | skills/ppt-master/scripts/project_management/cli.py:163-171 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/image_gen.py:758` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (9 lines × 3) skills/ppt-master/scripts/image_sources/provider_openverse.py:65— skills/ppt-master/scripts/image_sources/provider_openverse.py:65-73 | skills/ppt-master/scripts/image_sources/provider_pexels.py:69-77 | skills/ppt-master/scripts/image_sources/provider_pixabay.py:72-82 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/image_sources/provider_openverse.py:65` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (9 lines × 3) skills/ppt-master/scripts/svg_quality/svg_contracts.py:555— skills/ppt-master/scripts/svg_quality/svg_contracts.py:555-563 | skills/ppt-master/scripts/svg_quality/svg_contracts.py:731-739 | skills/ppt-master/scripts/svg_quality/svg_contracts.py:942-950 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
TooManyMethods: SVGQualityChecker skills/ppt-master/scripts/svg_quality/checker.py:978— TooManyMethods — 120 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
TooManyMethods: ProjectManager skills/ppt-master/scripts/project_management/cli.py:220— TooManyMethods — 31 methods. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility.
Duplicated block (19 lines × 2) skills/ppt-master/scripts/native_enhance_pptx_core.py:2065— skills/ppt-master/scripts/native_enhance_pptx_core.py:2065-2083 | skills/ppt-master/scripts/template_fill_pptx/applier.py:232-250 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (19 lines × 2) skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:1486— skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:1486-1504 | skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:4480-4498 — both copies are in the same file, so extract the block into one function there and call it from each site — the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:1486` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (18 lines × 2) skills/ppt-master/scripts/finalize_svg.py:156— skills/ppt-master/scripts/finalize_svg.py:156-173 | skills/ppt-master/scripts/pptx_to_svg/converter.py:763-780 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice.
Duplicated block (18 lines × 2) skills/ppt-master/scripts/powerpoint_video.py:215— skills/ppt-master/scripts/powerpoint_video.py:215-232 | skills/ppt-master/scripts/source_to_md/excel_to_md.py:375-392 — the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach — a location they all depend on today, or a new shared one if there is none — and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/powerpoint_video.py:215` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (14 lines × 3) skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:1248— skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:1248-1261 | skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:1495-1508 | skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:4489-4502 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:1248` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (14 lines × 3) skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:1705— skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:1705-1718 | skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:1788-1801 | skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:1856-1869 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:1705` it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (8 lines × 3) skills/ppt-master/scripts/pptx_to_svg/shape_walker.py:396— skills/ppt-master/scripts/pptx_to_svg/shape_walker.py:396-403 | skills/ppt-master/scripts/pptx_to_svg/shape_walker.py:430-437 | skills/ppt-master/scripts/pptx_to_svg/shape_walker.py:462-469 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (8 lines × 3) skills/ppt-master/scripts/svg_to_pptx/native_objects/marker_common.py:506— skills/ppt-master/scripts/svg_to_pptx/native_objects/marker_common.py:506-513 | skills/ppt-master/scripts/svg_to_pptx/native_objects/marker_common.py:566-573 | skills/ppt-master/scripts/svg_to_pptx/native_objects/marker_common.py:590-597 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names — the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately.
Duplicated block (7 lines × 3) skills/ppt-master/scripts/native_enhance_pptx_core.py:1766— skills/ppt-master/scripts/native_enhance_pptx_core.py:1766-1772 | skills/ppt-master/scripts/native_enhance_pptx_core.py:1834-1840 | skills/ppt-master/scripts/native_enhance_pptx_core.py:2180-2186 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it.
Duplicated block (7 lines × 3) skills/ppt-master/scripts/pptx_to_svg/color_resolver.py:593— skills/ppt-master/scripts/pptx_to_svg/color_resolver.py:593-599 | skills/ppt-master/scripts/pptx_to_svg/color_resolver.py:609-615 | skills/ppt-master/scripts/pptx_to_svg/color_resolver.py:651-657 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/pptx_to_svg/color_resolver.py:593` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (6 lines × 3) skills/ppt-master/scripts/image_backends/backend_bfl.py:121— skills/ppt-master/scripts/image_backends/backend_bfl.py:121-126 | skills/ppt-master/scripts/image_backends/backend_fal.py:80-85 | skills/ppt-master/scripts/image_backends/backend_replicate.py:104-109 — the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once.
Duplicated block (6 lines × 3) skills/ppt-master/scripts/template_fill_pptx/chart_fill.py:147— skills/ppt-master/scripts/template_fill_pptx/chart_fill.py:147-152 | skills/ppt-master/scripts/template_fill_pptx/chart_fill.py:158-163 | skills/ppt-master/scripts/template_fill_pptx/chart_fill.py:169-174 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
Duplicated block (5 lines × 3) skills/ppt-master/scripts/svg_quality/svg_contracts.py:582— skills/ppt-master/scripts/svg_quality/svg_contracts.py:582-586 | skills/ppt-master/scripts/svg_quality/svg_contracts.py:756-760 | skills/ppt-master/scripts/svg_quality/svg_contracts.py:977-981 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at `skills/ppt-master/scripts/svg_quality/svg_contracts.py:582` it does not close everything it opens, so those exact lines cannot be lifted as they stand — widen the region to the smallest complete statement or declaration that contains it, and extract that.
Duplicated block (5 lines × 3) skills/ppt-master/scripts/template_fill_pptx/checker.py:20— skills/ppt-master/scripts/template_fill_pptx/checker.py:20-24 | skills/ppt-master/scripts/template_fill_pptx/checker.py:34-38 | skills/ppt-master/scripts/template_fill_pptx/checker.py:48-52 — all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites — resolving only two of them leaves the rest to drift apart the first time one is edited.
builder.create_pptx_with_native_svg (cyclomatic 223) skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:4639— builder.create_pptx_with_native_svg has cyclomatic complexity 223 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
cli.main (cyclomatic 191) skills/ppt-master/scripts/svg_to_pptx/pptx_package/cli.py:799— cli.main has cyclomatic complexity 191 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
template_structure.parse_template_slide (cyclomatic 128) skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py:1303— template_structure.parse_template_slide has cyclomatic complexity 128 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
template_validation.validate_pptx_template_package (cyclomatic 107) skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_validation.py:866— template_validation.validate_pptx_template_package has cyclomatic complexity 107 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
template_structure.load_pptx_structure_lock (cyclomatic 101) skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py:558— template_structure.load_pptx_structure_lock has cyclomatic complexity 101 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
elements.convert_text (cyclomatic 93) skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:2646— elements.convert_text has cyclomatic complexity 93 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pdf_to_md.extract_pdf_to_markdown (cyclomatic 79) skills/ppt-master/scripts/source_to_md/pdf_to_md.py:1331— pdf_to_md.extract_pdf_to_markdown has cyclomatic complexity 79 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SVGQualityChecker._check_planned_image_closure (cyclomatic 77) skills/ppt-master/scripts/svg_quality/checker.py:5642— SVGQualityChecker._check_planned_image_closure has cyclomatic complexity 77 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
checker.check_plan (cyclomatic 69) skills/ppt-master/scripts/template_fill_pptx/checker.py:285— checker.check_plan has cyclomatic complexity 69 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
manifest.build_manifest (cyclomatic 68) skills/ppt-master/scripts/template_import/manifest.py:502— manifest.build_manifest has cyclomatic complexity 68 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
image_gen.load_manifest (cyclomatic 67) skills/ppt-master/scripts/image_gen.py:495— image_gen.load_manifest has cyclomatic complexity 67 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ln_to_svg.resolve_stroke (cyclomatic 62) skills/ppt-master/scripts/pptx_to_svg/ln_to_svg.py:70— ln_to_svg.resolve_stroke has cyclomatic complexity 62 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
checker._local_pptx_structure_errors (cyclomatic 62) skills/ppt-master/scripts/svg_quality/checker.py:539— checker._local_pptx_structure_errors has cyclomatic complexity 62 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SVGQualityChecker._check_spec_lock_alignment (cyclomatic 61) skills/ppt-master/scripts/svg_quality/checker.py:4170— SVGQualityChecker._check_spec_lock_alignment has cyclomatic complexity 61 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ProjectManager.import_sources (cyclomatic 58) skills/ppt-master/scripts/project_management/cli.py:739— ProjectManager.import_sources has cyclomatic complexity 58 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
converter.convert_g (cyclomatic 58) skills/ppt-master/scripts/svg_to_pptx/drawingml/converter.py:686— converter.convert_g has cyclomatic complexity 58 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
converter.convert_svg_to_slide_shapes (cyclomatic 57) skills/ppt-master/scripts/svg_to_pptx/drawingml/converter.py:1372— converter.convert_svg_to_slide_shapes has cyclomatic complexity 57 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pptx_animations.validate_slide_animation_structure (cyclomatic 56) skills/ppt-master/scripts/pptx_animations.py:3033— pptx_animations.validate_slide_animation_structure has cyclomatic complexity 56 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
chart_to_svg._axis_config_from_xml (cyclomatic 56) skills/ppt-master/scripts/pptx_to_svg/chart_to_svg.py:1071— chart_to_svg._axis_config_from_xml has cyclomatic complexity 56 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pptx_delivery_check.audit_pptx_delivery (cyclomatic 50) skills/ppt-master/scripts/pptx_delivery_check.py:720— pptx_delivery_check.audit_pptx_delivery has cyclomatic complexity 50 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
elements._parse_preset_geometry_metadata (cyclomatic 50) skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:711— elements._parse_preset_geometry_metadata has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
table._build_native_table (cyclomatic 50) skills/ppt-master/scripts/svg_to_pptx/native_objects/table.py:867— table._build_native_table has cyclomatic complexity 50 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
utils.project_filter_errors (cyclomatic 47) skills/ppt-master/scripts/svg_to_pptx/drawingml/utils.py:2648— utils.project_filter_errors has cyclomatic complexity 47 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
native_enhance_pptx_core.apply_project (cyclomatic 46) skills/ppt-master/scripts/native_enhance_pptx_core.py:1833— native_enhance_pptx_core.apply_project has cyclomatic complexity 46 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
preset_authoring._validate_expanded_authored_preset_group (cyclomatic 46) skills/ppt-master/scripts/pptx_to_svg/preset_authoring.py:342— preset_authoring._validate_expanded_authored_preset_group has cyclomatic complexity 46 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
template_structure.template_prototype_errors (cyclomatic 46) skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py:2951— template_structure.template_prototype_errors has cyclomatic complexity 46 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
project_specs._validate_section (cyclomatic 45) skills/ppt-master/scripts/project_management/project_specs.py:489— project_specs._validate_section has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ppt_to_md.convert_presentation_to_markdown (cyclomatic 45) skills/ppt-master/scripts/source_to_md/ppt_to_md.py:1006— ppt_to_md.convert_presentation_to_markdown has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
elements.parse_project_nested_svg_crop (cyclomatic 45) skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:4587— elements.parse_project_nested_svg_crop has cyclomatic complexity 45 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
image_search.main (cyclomatic 44) skills/ppt-master/scripts/image_search.py:1934— image_search.main has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
prompt_audit.load_manifest (cyclomatic 44) skills/ppt-master/scripts/prompt_audit.py:110— prompt_audit.load_manifest has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
notes_to_audio.main (cyclomatic 42) skills/ppt-master/scripts/notes_to_audio.py:256— notes_to_audio.main has cyclomatic complexity 42 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
tbl_to_svg.convert_tbl (cyclomatic 42) skills/ppt-master/scripts/pptx_to_svg/tbl_to_svg.py:271— tbl_to_svg.convert_tbl has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
prompt_audit.audit_registries (cyclomatic 42) skills/ppt-master/scripts/prompt_audit.py:1103— prompt_audit.audit_registries has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
builder._promote_common_chrome_shapes_to_masters (cyclomatic 42) skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:3006— builder._promote_common_chrome_shapes_to_masters has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pptx_animations.validate_generated_animation_xml (cyclomatic 41) skills/ppt-master/scripts/pptx_animations.py:3299— pptx_animations.validate_generated_animation_xml has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
cli.main (cyclomatic 41) skills/ppt-master/scripts/project_management/cli.py:1147— cli.main has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
preset_authoring._validate_compact_authored_preset_group (cyclomatic 40) skills/ppt-master/scripts/pptx_to_svg/preset_authoring.py:194— preset_authoring._validate_compact_authored_preset_group has cyclomatic complexity 40 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
template_structure.load_native_structure_contract (cyclomatic 40) skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py:1028— template_structure.load_native_structure_contract has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
narration_sync.rebuild_animations (cyclomatic 39) skills/ppt-master/scripts/narration_sync.py:956— narration_sync.rebuild_animations has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pptx_animations._read_effect_options (cyclomatic 39) skills/ppt-master/scripts/pptx_animations.py:2382— pptx_animations._read_effect_options has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SVGQualityChecker._check_native_object_markers (cyclomatic 39) skills/ppt-master/scripts/svg_quality/checker.py:3489— SVGQualityChecker._check_native_object_markers has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
animation_config._animation_parameter_errors (cyclomatic 39) skills/ppt-master/scripts/svg_to_pptx/animation_config.py:313— animation_config._animation_parameter_errors has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
utils.project_marker_errors (cyclomatic 39) skills/ppt-master/scripts/svg_to_pptx/drawingml/utils.py:1990— utils.project_marker_errors has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pptx_animations._load_native_animations (cyclomatic 38) skills/ppt-master/scripts/pptx_animations.py:219— pptx_animations._load_native_animations has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
utils.project_gradient_errors (cyclomatic 38) skills/ppt-master/scripts/svg_to_pptx/drawingml/utils.py:2327— utils.project_gradient_errors has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
server._merge_confirmed_choices (cyclomatic 37) skills/ppt-master/scripts/confirm_ui/server.py:1214— server._merge_confirmed_choices has cyclomatic complexity 37 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
chart_to_svg._validate_chart_semantics (cyclomatic 37) skills/ppt-master/scripts/pptx_to_svg/chart_to_svg.py:1597— chart_to_svg._validate_chart_semantics has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SVGQualityChecker.check_directory (cyclomatic 37) skills/ppt-master/scripts/svg_quality/checker.py:4700— SVGQualityChecker.check_directory has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
builder._build_sequence_targets (cyclomatic 37) skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:4126— builder._build_sequence_targets has cyclomatic complexity 37 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
normalized_chart_svg._render_xy (cyclomatic 36) skills/ppt-master/scripts/pptx_to_svg/normalized_chart_svg.py:620— normalized_chart_svg._render_xy has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
doc_to_md._omml_to_latex (cyclomatic 36) skills/ppt-master/scripts/source_to_md/doc_to_md.py:537— doc_to_md._omml_to_latex has cyclomatic complexity 36 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
styles.build_pattern_fill (cyclomatic 36) skills/ppt-master/scripts/svg_to_pptx/drawingml/styles.py:195— styles.build_pattern_fill has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
tbl_to_svg._direct_border_payload (cyclomatic 35) skills/ppt-master/scripts/pptx_to_svg/tbl_to_svg.py:783— tbl_to_svg._direct_border_payload has cyclomatic complexity 35 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
tbl_to_svg._text_body_has_unsupported_formatting (cyclomatic 35) skills/ppt-master/scripts/pptx_to_svg/tbl_to_svg.py:951— tbl_to_svg._text_body_has_unsupported_formatting has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
flatten_tspan._classify_paragraph_block (cyclomatic 35) skills/ppt-master/scripts/svg_finalize/flatten_tspan.py:300— flatten_tspan._classify_paragraph_block has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
semantic_markers.validate_semantic_markers (cyclomatic 35) skills/ppt-master/scripts/svg_to_pptx/semantic_markers.py:126— semantic_markers.validate_semantic_markers has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
chart_to_svg._validate_stock_semantics (cyclomatic 34) skills/ppt-master/scripts/pptx_to_svg/chart_to_svg.py:432— chart_to_svg._validate_stock_semantics has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
project_specs.validate_markdown_schema (cyclomatic 34) skills/ppt-master/scripts/project_management/project_specs.py:1094— project_specs.validate_markdown_schema has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
register_template._validate_brand_spec (cyclomatic 34) skills/ppt-master/scripts/register_template.py:243— register_template._validate_brand_spec has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SVGQualityChecker._check_image_references (cyclomatic 34) skills/ppt-master/scripts/svg_quality/checker.py:2702— SVGQualityChecker._check_image_references has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SVGQualityChecker._check_pptx_structure_contract (cyclomatic 34) skills/ppt-master/scripts/svg_quality/checker.py:4879— SVGQualityChecker._check_pptx_structure_contract has cyclomatic complexity 34 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
animation_config.validate_animation_config (cyclomatic 34) skills/ppt-master/scripts/svg_to_pptx/animation_config.py:1255— animation_config.validate_animation_config has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
language_tags.normalize_language_tag (cyclomatic 33) skills/ppt-master/scripts/language_tags.py:159— language_tags.normalize_language_tag has cyclomatic complexity 33 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
chart_to_svg._data_label_text_style (cyclomatic 33) skills/ppt-master/scripts/pptx_to_svg/chart_to_svg.py:1973— chart_to_svg._data_label_text_style has cyclomatic complexity 33 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
align_embed_images._process_one_image (cyclomatic 33) skills/ppt-master/scripts/svg_finalize/align_embed_images.py:348— align_embed_images._process_one_image has cyclomatic complexity 33 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
SVGQualityChecker._check_template_contract (cyclomatic 33) skills/ppt-master/scripts/svg_quality/checker.py:6226— SVGQualityChecker._check_template_contract has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
builder._promote_common_chrome_shapes_to_layouts (cyclomatic 33) skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:1423— builder._promote_common_chrome_shapes_to_layouts has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
mirror_template_materialize.materialize_mirror_template (cyclomatic 32) skills/ppt-master/scripts/mirror_template_materialize.py:2609— mirror_template_materialize.materialize_mirror_template has cyclomatic complexity 32 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
chart_to_svg._combo_payload (cyclomatic 32) skills/ppt-master/scripts/pptx_to_svg/chart_to_svg.py:256— chart_to_svg._combo_payload has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
register_template._validate_svg_template_spec (cyclomatic 32) skills/ppt-master/scripts/register_template.py:379— register_template._validate_svg_template_spec has cyclomatic complexity 32 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
crop_images.process_svg_images (cyclomatic 32) skills/ppt-master/scripts/svg_finalize/crop_images.py:143— crop_images.process_svg_images has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
svg_position_calculator.interactive_mode (cyclomatic 32) skills/ppt-master/scripts/svg_position_calculator.py:1090— svg_position_calculator.interactive_mode has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
chart_data._chart_axes (cyclomatic 32) skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_data.py:235— chart_data._chart_axes has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
chart_data._combo_chart_data (cyclomatic 32) skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_data.py:872— chart_data._combo_chart_data has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
finalize_svg._process_candidate_directory (cyclomatic 31) skills/ppt-master/scripts/finalize_svg.py:176— finalize_svg._process_candidate_directory has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
narration_sync._resolve_animation_groups (cyclomatic 31) skills/ppt-master/scripts/narration_sync.py:717— narration_sync._resolve_animation_groups has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
chart_to_svg._apply_chart_metadata (cyclomatic 31) skills/ppt-master/scripts/pptx_to_svg/chart_to_svg.py:1738— chart_to_svg._apply_chart_metadata has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
web_to_md.element_to_markdown (cyclomatic 31) skills/ppt-master/scripts/source_to_md/web_to_md.py:601— web_to_md.element_to_markdown has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
server.main (cyclomatic 31) skills/ppt-master/scripts/svg_editor/server.py:1215— server.main has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
chart_xml._chart_plot_xml (cyclomatic 31) skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_xml.py:970— chart_xml._chart_plot_xml has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
marker_status.native_marker_status_errors (cyclomatic 31) skills/ppt-master/scripts/svg_to_pptx/native_objects/marker_status.py:87— marker_status.native_marker_status_errors has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
chart_to_svg._canonical_title_paragraph (cyclomatic 30) skills/ppt-master/scripts/pptx_to_svg/chart_to_svg.py:1846— chart_to_svg._canonical_title_paragraph has cyclomatic complexity 30 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
pptx_transitions._validate_applied_motion (cyclomatic 30) skills/ppt-master/scripts/pptx_transitions.py:1841— pptx_transitions._validate_applied_motion has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pptx_transitions.validate_pptx_morph_pairs (cyclomatic 30) skills/ppt-master/scripts/pptx_transitions.py:2357— pptx_transitions.validate_pptx_morph_pairs has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
flatten_tspan.flatten_text_with_tspans (cyclomatic 30) skills/ppt-master/scripts/svg_finalize/flatten_tspan.py:515— flatten_tspan.flatten_text_with_tspans has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SVGQualityChecker._check_preset_geometry_metadata (cyclomatic 30) skills/ppt-master/scripts/svg_quality/checker.py:2996— SVGQualityChecker._check_preset_geometry_metadata has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
checker._compact_preset_ancestor_paint (cyclomatic 30) skills/ppt-master/scripts/svg_quality/checker.py:394— checker._compact_preset_ancestor_paint has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
elements._clip_preset_geometry_error (cyclomatic 30) skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:3229— elements._clip_preset_geometry_error has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
utils.project_paint_reference_errors (cyclomatic 30) skills/ppt-master/scripts/svg_to_pptx/drawingml/utils.py:2160— utils.project_paint_reference_errors has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
image_gen.main (cyclomatic 29) skills/ppt-master/scripts/image_gen.py:1108— image_gen.main has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
image_search.promote_candidate (cyclomatic 29) skills/ppt-master/scripts/image_search.py:989— image_search.promote_candidate has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
mirror_template_materialize._compose_template (cyclomatic 29) skills/ppt-master/scripts/mirror_template_materialize.py:2154— mirror_template_materialize._compose_template has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pptx_animations.normalize_animation_effect_options (cyclomatic 29) skills/ppt-master/scripts/pptx_animations.py:558— pptx_animations.normalize_animation_effect_options has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
chart_to_svg._payload_from_chart_xml (cyclomatic 29) skills/ppt-master/scripts/pptx_to_svg/chart_to_svg.py:124— chart_to_svg._payload_from_chart_xml has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
chart_to_svg._effective_scatter_style (cyclomatic 29) skills/ppt-master/scripts/pptx_to_svg/chart_to_svg.py:1487— chart_to_svg._effective_scatter_style has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
slide_to_svg._convert_shape (cyclomatic 29) skills/ppt-master/scripts/pptx_to_svg/slide_to_svg.py:462— slide_to_svg._convert_shape has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
project_specs._validate_spec_lock_relations (cyclomatic 29) skills/ppt-master/scripts/project_management/project_specs.py:952— project_specs._validate_spec_lock_relations has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
cli.main (cyclomatic 29) skills/ppt-master/scripts/svg_quality/cli.py:92— cli.main has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
template_structure.template_prototype_lock_errors (cyclomatic 29) skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py:1990— template_structure.template_prototype_lock_errors has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
tbl_to_svg._canonical_native_merge_status (cyclomatic 28) skills/ppt-master/scripts/pptx_to_svg/tbl_to_svg.py:644— tbl_to_svg._canonical_native_merge_status has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
slice_images.slice_sheet (cyclomatic 28) skills/ppt-master/scripts/slice_images.py:151— slice_images.slice_sheet has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
svg_position_calculator.main (cyclomatic 28) skills/ppt-master/scripts/svg_position_calculator.py:1296— svg_position_calculator.main has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
extract_svg_pictures._run (cyclomatic 27) skills/ppt-master/scripts/extract_svg_pictures.py:890— extract_svg_pictures._run has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
image_search.run_search_manifest (cyclomatic 27) skills/ppt-master/scripts/image_search.py:1540— image_search.run_search_manifest has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
native_payloads._load_store (cyclomatic 27) skills/ppt-master/scripts/native_payloads.py:421— native_payloads._load_store has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pptx_animations._row_offset_ms (cyclomatic 27) skills/ppt-master/scripts/pptx_animations.py:2716— pptx_animations._row_offset_ms has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pptx_delivery_check._motion_and_hidden_summary (cyclomatic 27) skills/ppt-master/scripts/pptx_delivery_check.py:503— pptx_delivery_check._motion_and_hidden_summary has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
project_utils.validate_project_structure (cyclomatic 27) skills/ppt-master/scripts/project_utils.py:367— project_utils.validate_project_structure has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
template_structure._placement_lint_errors (cyclomatic 27) skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py:3373— template_structure._placement_lint_errors has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
server.main (cyclomatic 26) skills/ppt-master/scripts/confirm_ui/server.py:1922— server.main has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
mirror_template_materialize._load_authoring_documents (cyclomatic 26) skills/ppt-master/scripts/mirror_template_materialize.py:502— mirror_template_materialize._load_authoring_documents has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
native_payloads.hydrate_native_payload_refs (cyclomatic 26) skills/ppt-master/scripts/native_payloads.py:553— native_payloads.hydrate_native_payload_refs has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
project_specs._validate_condition (cyclomatic 26) skills/ppt-master/scripts/project_management/project_specs.py:674— project_specs._validate_condition has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
utils._transform_semantic_error (cyclomatic 26) skills/ppt-master/scripts/svg_to_pptx/drawingml/utils.py:1145— utils._transform_semantic_error has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
update_spec.main (cyclomatic 26) skills/ppt-master/scripts/update_spec.py:248— update_spec.main has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
server._stage2_design_directions_error (cyclomatic 25) skills/ppt-master/scripts/confirm_ui/server.py:737— server._stage2_design_directions_error has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
native_enhance_pptx_core._source_state_errors (cyclomatic 25) skills/ppt-master/scripts/native_enhance_pptx_core.py:498— native_enhance_pptx_core._source_state_errors has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
native_enhance_pptx_core._resolve_transition_plan (cyclomatic 25) skills/ppt-master/scripts/native_enhance_pptx_core.py:1459— native_enhance_pptx_core._resolve_transition_plan has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
pptx_animations._set_effect_option_value (cyclomatic 25) skills/ppt-master/scripts/pptx_animations.py:1379— pptx_animations._set_effect_option_value has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
source_to_md.dispatch_single (cyclomatic 25) skills/ppt-master/scripts/source_to_md.py:220— source_to_md.dispatch_single has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
fix_image_aspect.fix_image_aspect_in_svg (cyclomatic 25) skills/ppt-master/scripts/svg_finalize/fix_image_aspect.py:210— fix_image_aspect.fix_image_aspect_in_svg has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
animation_config._morph_scope_errors (cyclomatic 25) skills/ppt-master/scripts/svg_to_pptx/animation_config.py:582— animation_config._morph_scope_errors has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
builder._apply_explicit_layout_structure (cyclomatic 25) skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:2722— builder._apply_explicit_layout_structure has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
applier.apply_plan (cyclomatic 25) skills/ppt-master/scripts/template_fill_pptx/applier.py:54— applier.apply_plan has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
extract_svg_assets.extract_file (cyclomatic 24) skills/ppt-master/scripts/extract_svg_assets.py:532— extract_svg_assets.extract_file has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
narration_sync._load_timing_plan (cyclomatic 24) skills/ppt-master/scripts/narration_sync.py:304— narration_sync._load_timing_plan has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pptx_animations._normalize_target_mapping (cyclomatic 24) skills/ppt-master/scripts/pptx_animations.py:850— pptx_animations._normalize_target_mapping has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
chart_to_svg._resolved_line (cyclomatic 24) skills/ppt-master/scripts/pptx_to_svg/chart_to_svg.py:686— chart_to_svg._resolved_line has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
chart_to_svg._validate_legacy_axes (cyclomatic 24) skills/ppt-master/scripts/pptx_to_svg/chart_to_svg.py:1314— chart_to_svg._validate_legacy_axes has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
preset_authoring._validate_style (cyclomatic 24) skills/ppt-master/scripts/pptx_to_svg/preset_authoring.py:663— preset_authoring._validate_style has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
resource_paths._svg_image_payload_error (cyclomatic 24) skills/ppt-master/scripts/resource_paths.py:169— resource_paths._svg_image_payload_error has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SVGQualityChecker._check_placeholder_carrier_flattening (cyclomatic 24) skills/ppt-master/scripts/svg_quality/checker.py:3729— SVGQualityChecker._check_placeholder_carrier_flattening has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
elements._nested_crop_clip_preset_geometry_error (cyclomatic 24) skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:3334— elements._nested_crop_clip_preset_geometry_error has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
elements.project_clip_path_errors (cyclomatic 24) skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:3438— elements.project_clip_path_errors has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
image_gen._run_manifest (cyclomatic 23) skills/ppt-master/scripts/image_gen.py:795— image_gen._run_manifest has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
mirror_template_materialize._validate_graph_roster (cyclomatic 23) skills/ppt-master/scripts/mirror_template_materialize.py:839— mirror_template_materialize._validate_graph_roster has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
native_enhance_pptx_core._collect_material_readiness (cyclomatic 23) skills/ppt-master/scripts/native_enhance_pptx_core.py:644— native_enhance_pptx_core._collect_material_readiness has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pptx_animations.create_sequence_timing_xml (cyclomatic 23) skills/ppt-master/scripts/pptx_animations.py:1845— pptx_animations.create_sequence_timing_xml has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
tbl_to_svg._legacy_text_body_has_unsupported_formatting (cyclomatic 23) skills/ppt-master/scripts/pptx_to_svg/tbl_to_svg.py:1039— tbl_to_svg._legacy_text_body_has_unsupported_formatting has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ppt_to_md._xy_chart_to_markdown (cyclomatic 23) skills/ppt-master/scripts/source_to_md/ppt_to_md.py:511— ppt_to_md._xy_chart_to_markdown has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
svg_position_calculator.analyze_svg_file (cyclomatic 23) skills/ppt-master/scripts/svg_position_calculator.py:995— svg_position_calculator.analyze_svg_file has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
svg_contracts.check_forbidden_elements (cyclomatic 23) skills/ppt-master/scripts/svg_quality/svg_contracts.py:197— svg_contracts.check_forbidden_elements has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
svg_contracts.check_stroke_style_values (cyclomatic 23) skills/ppt-master/scripts/svg_quality/svg_contracts.py:767— svg_contracts.check_stroke_style_values has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
extract_svg_assets.main (cyclomatic 22) skills/ppt-master/scripts/extract_svg_assets.py:751— extract_svg_assets.main has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
pptx_opc_validation.verify_internal_relationships (cyclomatic 22) skills/ppt-master/scripts/pptx_opc_validation.py:130— pptx_opc_validation.verify_internal_relationships has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
converter.convert_pptx_to_svg (cyclomatic 22) skills/ppt-master/scripts/pptx_to_svg/converter.py:258— converter.convert_pptx_to_svg has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
page_context.build_page_context (cyclomatic 22) skills/ppt-master/scripts/project_management/page_context.py:436— page_context.build_page_context has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
prompt_audit.audit_load_sets (cyclomatic 22) skills/ppt-master/scripts/prompt_audit.py:327— prompt_audit.audit_load_sets has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
doc_to_md._sanitize_epub_manifest (cyclomatic 22) skills/ppt-master/scripts/source_to_md/doc_to_md.py:1062— doc_to_md._sanitize_epub_manifest has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
ppt_to_md._category_chart_to_markdown (cyclomatic 22) skills/ppt-master/scripts/source_to_md/ppt_to_md.py:608— ppt_to_md._category_chart_to_markdown has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
web_to_md.download_and_rewrite_images (cyclomatic 22) skills/ppt-master/scripts/source_to_md/web_to_md.py:306— web_to_md.download_and_rewrite_images has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
svg_authoring_view.main (cyclomatic 22) skills/ppt-master/scripts/svg_authoring_view.py:962— svg_authoring_view.main has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
elements._resolve_clip_geometry (cyclomatic 22) skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:3554— elements._resolve_clip_geometry has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
utils.parse_project_filter_params (cyclomatic 22) skills/ppt-master/scripts/svg_to_pptx/drawingml/utils.py:2486— utils.parse_project_filter_params has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
chart_xml._axis_pair_xml (cyclomatic 22) skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_xml.py:707— chart_xml._axis_pair_xml has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
table._table_run (cyclomatic 22) skills/ppt-master/scripts/svg_to_pptx/native_objects/table.py:256— table._table_run has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
builder._placeholder_text_body (cyclomatic 22) skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:2375— builder._placeholder_text_body has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
checker._fit_status (cyclomatic 22) skills/ppt-master/scripts/template_fill_pptx/checker.py:201— checker._fit_status has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
image_search.load_search_manifest (cyclomatic 21) skills/ppt-master/scripts/image_search.py:1342— image_search.load_search_manifest has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
provider_common.score_candidate (cyclomatic 21) skills/ppt-master/scripts/image_sources/provider_common.py:440— provider_common.score_candidate has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
mirror_template_materialize._slot_wrapper (cyclomatic 21) skills/ppt-master/scripts/mirror_template_materialize.py:1978— mirror_template_materialize._slot_wrapper has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
formula._apply_operator (cyclomatic 21) skills/ppt-master/scripts/pptx_shapes/formula.py:291— formula._apply_operator has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
chart_to_svg._pie_visual_styles (cyclomatic 21) skills/ppt-master/scripts/pptx_to_svg/chart_to_svg.py:863— chart_to_svg._pie_visual_styles has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
fill_to_svg._resolve_grad_fill (cyclomatic 21) skills/ppt-master/scripts/pptx_to_svg/fill_to_svg.py:176— fill_to_svg._resolve_grad_fill has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pic_to_svg._apply_blip_image_effects (cyclomatic 21) skills/ppt-master/scripts/pptx_to_svg/pic_to_svg.py:506— pic_to_svg._apply_blip_image_effects has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
pptx_transitions.validate_generated_transition_xml (cyclomatic 21) skills/ppt-master/scripts/pptx_transitions.py:2176— pptx_transitions.validate_generated_transition_xml has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pptx_transitions.validate_slide_transition_structure (cyclomatic 21) skills/ppt-master/scripts/pptx_transitions.py:2544— pptx_transitions.validate_slide_transition_structure has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
project_specs.parse_spec_lock_image_value (cyclomatic 21) skills/ppt-master/scripts/project_management/project_specs.py:206— project_specs.parse_spec_lock_image_value has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
project_utils.validate_communication_trace (cyclomatic 21) skills/ppt-master/scripts/project_utils.py:237— project_utils.validate_communication_trace has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
doc_to_md._docx_image_occurrences (cyclomatic 21) skills/ppt-master/scripts/source_to_md/doc_to_md.py:324— doc_to_md._docx_image_occurrences has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
web_to_md.extract_metadata (cyclomatic 21) skills/ppt-master/scripts/source_to_md/web_to_md.py:465— web_to_md.extract_metadata has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SVGQualityChecker._check_icon_placeholders (cyclomatic 21) skills/ppt-master/scripts/svg_quality/checker.py:2843— SVGQualityChecker._check_icon_placeholders has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
elements._valid_emf_payload (cyclomatic 21) skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:136— elements._valid_emf_payload has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
elements.validate_preset_geometry_metadata (cyclomatic 21) skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:874— elements.validate_preset_geometry_metadata has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
elements.convert_circle (cyclomatic 21) skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:1357— elements.convert_circle has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
marker_common._element_local_bbox (cyclomatic 21) skills/ppt-master/scripts/svg_to_pptx/native_objects/marker_common.py:394— marker_common._element_local_bbox has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
template_preview_pptx.main (cyclomatic 21) skills/ppt-master/scripts/template_preview_pptx.py:365— template_preview_pptx.main has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
total_md_split.parse_total_md (cyclomatic 21) skills/ppt-master/scripts/total_md_split.py:137— total_md_split.parse_total_md has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
video_motion_plan.build_video_motion_plan (cyclomatic 21) skills/ppt-master/scripts/video_motion_plan.py:410— video_motion_plan.build_video_motion_plan has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
latex_render._process_item (cyclomatic 20) skills/ppt-master/scripts/latex_render.py:408— latex_render._process_item has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
mirror_template_materialize._mark_explicit_breaks (cyclomatic 20) skills/ppt-master/scripts/mirror_template_materialize.py:1067— mirror_template_materialize._mark_explicit_breaks has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
mirror_template_materialize._copy_text_carrier (cyclomatic 20) skills/ppt-master/scripts/mirror_template_materialize.py:1621— mirror_template_materialize._copy_text_carrier has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
native_payloads.externalize_native_payloads (cyclomatic 20) skills/ppt-master/scripts/native_payloads.py:245— native_payloads.externalize_native_payloads has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pptx_animations._scale_animation_row_duration (cyclomatic 20) skills/ppt-master/scripts/pptx_animations.py:1182— pptx_animations._scale_animation_row_duration has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pptx_animations._timing_summary (cyclomatic 20) skills/ppt-master/scripts/pptx_animations.py:2504— pptx_animations._timing_summary has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pptx_template_import.main (cyclomatic 20) skills/ppt-master/scripts/pptx_template_import.py:127— pptx_template_import.main has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
chart_to_svg._resolved_solid_fill (cyclomatic 20) skills/ppt-master/scripts/pptx_to_svg/chart_to_svg.py:635— chart_to_svg._resolved_solid_fill has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
converter._extract_theme_info (cyclomatic 20) skills/ppt-master/scripts/pptx_to_svg/converter.py:73— converter._extract_theme_info has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
preset_authoring.render_preset_shape_fragment (cyclomatic 20) skills/ppt-master/scripts/pptx_to_svg/preset_authoring.py:81— preset_authoring.render_preset_shape_fragment has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
tbl_to_svg._table_has_unsupported_direct_formatting (cyclomatic 20) skills/ppt-master/scripts/pptx_to_svg/tbl_to_svg.py:882— tbl_to_svg._table_has_unsupported_direct_formatting has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
project_specs._validate_references (cyclomatic 20) skills/ppt-master/scripts/project_management/project_specs.py:817— project_specs._validate_references has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
project_specs.validate_project_artifacts (cyclomatic 20) skills/ppt-master/scripts/project_management/project_specs.py:1234— project_specs.validate_project_artifacts has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
prompt_audit._registry_ids (cyclomatic 20) skills/ppt-master/scripts/prompt_audit.py:1023— prompt_audit._registry_ids has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
prompt_audit.run_audit (cyclomatic 20) skills/ppt-master/scripts/prompt_audit.py:1470— prompt_audit.run_audit has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
source_to_md.dispatch_many (cyclomatic 20) skills/ppt-master/scripts/source_to_md.py:403— source_to_md.dispatch_many has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pdf_to_md.should_keep_image (cyclomatic 20) skills/ppt-master/scripts/source_to_md/pdf_to_md.py:379— pdf_to_md.should_keep_image has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
SVGQualityChecker._check_animation_group_ids (cyclomatic 20) skills/ppt-master/scripts/svg_quality/checker.py:3268— SVGQualityChecker._check_animation_group_ids has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SVGQualityChecker._check_illustration_resource_contract (cyclomatic 20) skills/ppt-master/scripts/svg_quality/checker.py:5281— SVGQualityChecker._check_illustration_resource_contract has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
animation_config._animation_effect_entry_errors (cyclomatic 20) skills/ppt-master/scripts/svg_to_pptx/animation_config.py:968— animation_config._animation_effect_entry_errors has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
elements._resolve_nested_svg_clip_geometry (cyclomatic 20) skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:4819— elements._resolve_nested_svg_clip_geometry has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
paths.project_gradient_geometry_errors (cyclomatic 20) skills/ppt-master/scripts/svg_to_pptx/drawingml/paths.py:394— paths.project_gradient_geometry_errors has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
utils.parse_svg_color (cyclomatic 20) skills/ppt-master/scripts/svg_to_pptx/drawingml/utils.py:1663— utils.parse_svg_color has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
chart_data._chartex_chart_data (cyclomatic 20) skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_data.py:1076— chart_data._chartex_chart_data has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
builder._solid_background_xml_from_shape (cyclomatic 20) skills/ppt-master/scripts/svg_to_pptx/pptx_package/builder.py:1853— builder._solid_background_xml_from_shape has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
cli._recorded_narration_on_click_slides (cyclomatic 20) skills/ppt-master/scripts/svg_to_pptx/pptx_package/cli.py:714— cli._recorded_narration_on_click_slides has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
shape_boolean._validate_geometry_presentation (cyclomatic 20) skills/ppt-master/scripts/svg_to_pptx/shape_boolean.py:411— shape_boolean._validate_geometry_presentation has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
_LocalUseExpander._materialize_use (cyclomatic 20) skills/ppt-master/scripts/svg_to_pptx/use_expander.py:240— _LocalUseExpander._materialize_use has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
animation_config.main (cyclomatic 19) skills/ppt-master/scripts/animation_config.py:77— animation_config.main has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
server._submission_stage_error (cyclomatic 19) skills/ppt-master/scripts/confirm_ui/server.py:847— server._submission_stage_error has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
server._build_session_state (cyclomatic 19) skills/ppt-master/scripts/confirm_ui/server.py:1046— server._build_session_state has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
backend_openai._edit_image (cyclomatic 19) skills/ppt-master/scripts/image_backends/backend_openai.py:514— backend_openai._edit_image has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
image_search.search_and_download (cyclomatic 19) skills/ppt-master/scripts/image_search.py:615— image_search.search_and_download has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
mirror_template_materialize._slot_plans (cyclomatic 19) skills/ppt-master/scripts/mirror_template_materialize.py:1538— mirror_template_materialize._slot_plans has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
native_enhance_pptx_core._validate_plan_modules (cyclomatic 19) skills/ppt-master/scripts/native_enhance_pptx_core.py:1390— native_enhance_pptx_core._validate_plan_modules has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
chartex_to_svg._payload_from_chartex_xml (cyclomatic 19) skills/ppt-master/scripts/pptx_to_svg/chartex_to_svg.py:93— chartex_to_svg._payload_from_chartex_xml has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
converter.publish_staged_workspace (cyclomatic 19) skills/ppt-master/scripts/pptx_to_svg/converter.py:685— converter.publish_staged_workspace has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
normalized_chart_svg._render_bars (cyclomatic 19) skills/ppt-master/scripts/pptx_to_svg/normalized_chart_svg.py:388— normalized_chart_svg._render_bars has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
slide_to_svg._build_geometry_xml (cyclomatic 19) skills/ppt-master/scripts/pptx_to_svg/slide_to_svg.py:712— slide_to_svg._build_geometry_xml has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
embed_images._optimize_image_bytes (cyclomatic 19) skills/ppt-master/scripts/svg_finalize/embed_images.py:65— embed_images._optimize_image_bytes has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
svg_rect_to_path.main (cyclomatic 19) skills/ppt-master/scripts/svg_finalize/svg_rect_to_path.py:236— svg_rect_to_path.main has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SVGQualityChecker._check_sourced_image_attribution (cyclomatic 19) skills/ppt-master/scripts/svg_quality/checker.py:4500— SVGQualityChecker._check_sourced_image_attribution has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SVGQualityChecker._check_sourced_image_provenance (cyclomatic 19) skills/ppt-master/scripts/svg_quality/checker.py:6104— SVGQualityChecker._check_sourced_image_provenance has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
paths._parse_svg_path_tokens (cyclomatic 19) skills/ppt-master/scripts/svg_to_pptx/drawingml/paths.py:186— paths._parse_svg_path_tokens has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
table._resolve_table_merge_layout (cyclomatic 19) skills/ppt-master/scripts/svg_to_pptx/native_objects/table.py:374— table._resolve_table_merge_layout has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
template_structure.parse_optional_layout_slides (cyclomatic 19) skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py:1813— template_structure.parse_optional_layout_slides has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
template_structure.template_lock_errors (cyclomatic 19) skills/ppt-master/scripts/svg_to_pptx/pptx_package/template_structure.py:2151— template_structure.template_lock_errors has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
backend_openai._generate_image (cyclomatic 18) skills/ppt-master/scripts/image_backends/backend_openai.py:416— backend_openai._generate_image has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
image_gen.render_manifest_md (cyclomatic 18) skills/ppt-master/scripts/image_gen.py:1011— image_gen.render_manifest_md has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
image_search.fetch_url_replace (cyclomatic 18) skills/ppt-master/scripts/image_search.py:1198— image_search.fetch_url_replace has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
provider_wikimedia.parse_results (cyclomatic 18) skills/ppt-master/scripts/image_sources/provider_wikimedia.py:91— provider_wikimedia.parse_results has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators.
notes_to_audio._expected_note_roster (cyclomatic 18) skills/ppt-master/scripts/notes_to_audio.py:133— notes_to_audio._expected_note_roster has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pptx_animations._apply_timing_options (cyclomatic 18) skills/ppt-master/scripts/pptx_animations.py:1513— pptx_animations._apply_timing_options has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pptx_delivery_check._content_type_maps (cyclomatic 18) skills/ppt-master/scripts/pptx_delivery_check.py:155— pptx_delivery_check._content_type_maps has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pptx_delivery_check._font_faces_for_advisory (cyclomatic 18) skills/ppt-master/scripts/pptx_delivery_check.py:455— pptx_delivery_check._font_faces_for_advisory has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pptx_to_svg.main (cyclomatic 18) skills/ppt-master/scripts/pptx_to_svg.py:111— pptx_to_svg.main has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
effect_to_svg._validate_color (cyclomatic 18) skills/ppt-master/scripts/pptx_to_svg/effect_to_svg.py:220— effect_to_svg._validate_color has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pic_to_svg.convert_blip_fill (cyclomatic 18) skills/ppt-master/scripts/pptx_to_svg/pic_to_svg.py:83— pic_to_svg.convert_blip_fill has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
page_context.page_context_usage_report (cyclomatic 18) skills/ppt-master/scripts/project_management/page_context.py:819— page_context.page_context_usage_report has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
prompt_audit.audit_schema_grammars (cyclomatic 18) skills/ppt-master/scripts/prompt_audit.py:1375— prompt_audit.audit_schema_grammars has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
_batch.run_path_batch (cyclomatic 18) skills/ppt-master/scripts/source_to_md/_batch.py:94— _batch.run_path_batch has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
doc_to_md._docx_inject_math_latex (cyclomatic 18) skills/ppt-master/scripts/source_to_md/doc_to_md.py:626— doc_to_md._docx_inject_math_latex has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SVGQualityChecker._positioned_text_lines (cyclomatic 18) skills/ppt-master/scripts/svg_quality/checker.py:1817— SVGQualityChecker._positioned_text_lines has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SVGQualityChecker._check_module_bounds_contract (cyclomatic 18) skills/ppt-master/scripts/svg_quality/checker.py:2307— SVGQualityChecker._check_module_bounds_contract has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
svg_contracts.check_authoring_property_contract (cyclomatic 18) skills/ppt-master/scripts/svg_quality/svg_contracts.py:489— svg_contracts.check_authoring_property_contract has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
animation_config._resolved_animation_parameter_errors (cyclomatic 18) skills/ppt-master/scripts/svg_to_pptx/animation_config.py:1081— animation_config._resolved_animation_parameter_errors has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
elements._override_run_attrs (cyclomatic 18) skills/ppt-master/scripts/svg_to_pptx/drawingml/elements.py:2295— elements._override_run_attrs has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
chart_style._legend_candidate_texts (cyclomatic 18) skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_style.py:588— chart_style._legend_candidate_texts has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
chart_xml._series_xml (cyclomatic 18) skills/ppt-master/scripts/svg_to_pptx/native_objects/chart_xml.py:320— chart_xml._series_xml has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
shape_boolean._connected_components (cyclomatic 18) skills/ppt-master/scripts/svg_to_pptx/shape_boolean.py:1080— shape_boolean._connected_components has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
diagram_read.smartart_to_markdown (cyclomatic 18) skills/ppt-master/scripts/template_fill_pptx/diagram_read.py:524— diagram_read.smartart_to_markdown has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
table_fill._apply_table_edits_to_slide (cyclomatic 18) skills/ppt-master/scripts/template_fill_pptx/table_fill.py:28— table_fill._apply_table_edits_to_slide has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
manifest.parse_theme (cyclomatic 18) skills/ppt-master/scripts/template_import/manifest.py:425— manifest.parse_theme has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
native_structure.build_native_structure (cyclomatic 18) skills/ppt-master/scripts/template_import/native_structure.py:72— native_structure.build_native_structure has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
backend_common.save_image_bytes (cyclomatic 17) skills/ppt-master/scripts/image_backends/backend_common.py:168— backend_common.save_image_bytes has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
mirror_template_materialize._flatten_fixed_group (cyclomatic 17) skills/ppt-master/scripts/mirror_template_materialize.py:1288— mirror_template_materialize._flatten_fixed_group has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
pptx_animations.validate_pptx_animation_package (cyclomatic 17) skills/ppt-master/scripts/pptx_animations.py:3568— pptx_animations.validate_pptx_animation_package has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
chart_to_svg.extract_native_chart_payload (cyclomatic 17) skills/ppt-master/scripts/pptx_to_svg/chart_to_svg.py:56— chart_to_svg.extract_native_chart_payload has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions.
effect_to_svg.convert_effects (cyclomatic 17) skills/ppt-master/scripts/pptx_to_svg/effect_to_svg.py:94— effect_to_svg.convert_effects has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
fill_to_svg._pattern_foreground (cyclomatic 17) skills/ppt-master/scripts/pptx_to_svg/fill_to_svg.py:666— fill_to_svg._pattern_foreground has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
normalized_chart_svg._render_lines_or_areas (cyclomatic 17) skills/ppt-master/scripts/pptx_to_svg/normalized_chart_svg.py:462— normalized_chart_svg._render_lines_or_areas has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
tbl_to_svg._convert_cell_text (cyclomatic 17) skills/ppt-master/scripts/pptx_to_svg/tbl_to_svg.py:1541— tbl_to_svg._convert_cell_text has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
txbody_to_svg._parse_paragraph (cyclomatic 17) skills/ppt-master/scripts/pptx_to_svg/txbody_to_svg.py:402— txbody_to_svg._parse_paragraph has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
txbody_to_svg._wrap_paragraph_into_lines (cyclomatic 17) skills/ppt-master/scripts/pptx_to_svg/txbody_to_svg.py:1023— txbody_to_svg._wrap_paragraph_into_lines has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
register_template._extract_entry (cyclomatic 17) skills/ppt-master/scripts/register_template.py:517— register_template._extract_entry has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
pdf_to_md.get_heading_level (cyclomatic 17) skills/ppt-master/scripts/source_to_md/pdf_to_md.py:89— pdf_to_md.get_heading_level has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
web_to_md.main (cyclomatic 17) skills/ppt-master/scripts/source_to_md/web_to_md.py:915— web_to_md.main has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
annotations.promote_tspan_to_text (cyclomatic 17) skills/ppt-master/scripts/svg_editor/annotations.py:146— annotations.promote_tspan_to_text has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
server._validate_edit_attrs (cyclomatic 17) skills/ppt-master/scripts/svg_editor/server.py:282— server._validate_edit_attrs has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SVGQualityChecker._check_viewbox (cyclomatic 17) skills/ppt-master/scripts/svg_quality/checker.py:1315— SVGQualityChecker._check_viewbox has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top.
SVGQualityChecker._apply_aggregated_issue_counts (cyclomatic 17) skills/ppt-master/scripts/svg_quality/checker.py:6774— SVGQualityChecker._apply_aggregated_issue_counts has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages.
Downloadable artifacts
Machine-readable and reproducible from this commit + frozen rubric — drop them straight into a contract appendix, a CRA dossier, or a downstream SCA / VEX tool.