LEVEL 3 · ENGINEER

Skill Supply-Chain Scanner

Build an offline advisory scanner that preserves UTF-8 offsets, reports explicit policy patterns, scores distinct findings and emits a review gate. It is a transparent heuristic, not a malware detector or a promise that unflagged skills are safe.

4 stages~8 hoursRustcore
Retain byte-accurate source spansDetect named advisory patternsScore distinct evidence without inflationBuild an explicit review gate
YOU END UP WITH

A skill-change review assistant quoting newly introduced capabilities.

USEFUL FOR
  • A skill-change review assistant quoting newly introduced capabilities.
  • The scanner emits versioned JSON with file paths, exact UTF-8 byte spans and advisory rules.
PROJECT OUTLINE

Skill Supply-Chain Scanner in 4 stages

Find risky instruction patterns with exact source evidence.

  1. Retain byte-accurate source spans

    Split UTF-8 source into numbered lines and retain exclusive byte offsets into the original buffer.

    starter · ~2 hours · Rust

    Read bytesSplit terminatorsTrack offsetsExact source slice
  2. Detect named advisory patterns

    Rules inspect lowercase line text but report original offsets.

    core · ~2 hours · Rust

    Normalize viewMatch named ruleRetain evidenceEmit findings
  3. Score distinct evidence without inflation

    Count each rule once per source line even if a collector repeats a finding.

    core · ~2 hours · Rust

    Validate findingRule-line identityDeduplicateChecked score
  4. Build an explicit review gate

    A threshold crossing requests review; below threshold means only that these rules did not cross the configured threshold.

    core · ~2 hours · Rust

    Check boundsValidate slicesCompare thresholdHuman review report

Lessons this project uses

All projects · Course catalog · Source on GitHub