/pyobfus:pyobfus-reviewfrom pyobfus
Reviews a Python project for obfuscation readiness without modifying files. Reports what would break, which framework preset fits, config exclusions, and build artifacts. Use before shipping or as a CI check.
Ships in pyobfus. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Your job: tell the user what protecting this project would cost them, before anyone changes a byte. You produce a judgement, not an artifact.
This skill is read-only. Within it:
--check, --dry-run and
--sarif are the only pyobfus modes you use here. --sarif PATH writes one
report file, so only use it when the user asked for CI output and name the
path they chose.Prefer the MCP tool if the pyobfus-mcp server is connected:
check_obfuscation_risks(path="src")
Otherwise use the CLI (pip install pyobfus):
pyobfus --check src/ --json
Both return the same shape: severity_counts, per-finding file/line/
category, detected frameworks, a suggested_preset, the
effective_config that was applied, and the files that config already
excludes.
The scan is config-aware by default: it reads the project's pyobfus.yaml and
reports findings that the configuration already mitigates separately from the
ones that still stand. Do not present a mitigated finding as an open risk.
The two front ends differ on network access, so check which one you are
using before telling the user anything about it. The CLI's --check runs
the dependency-hallucination advisory by default, which looks each declared
dependency up on PyPI; pass --offline to skip it. The MCP tool is the
opposite: it makes no network call unless you pass
verify_dependencies_online=true. If the user is on a restricted network or
cares that nothing leaves the machine, say --offline explicitly.
pyobfus src/ -o dist/ --dry-run --json
--dry-run writes nothing. It returns a versioned plan: the effective
configuration, every file selected or excluded and why, and the artifacts a
real build would emit, each tagged ship, retain-internal or optional.
Read the artifact roles back to the user. The one that matters: a mapping file
is tagged retain-internal, meaning it is the de-obfuscation key and must
never be shipped or committed publicly.
Give the user four things, in this order:
eval/exec, framework reflection, model loading.
Name the file and line for each; the user has to go look.retain-internal role stated explicitly.Quote the numbers from the JSON. Do not estimate, and do not soften a high-severity count into "a few issues".
Read-only Community scans need no CI authorization. Since 0.14.0: licensed
environment-key builds require request-bound, issuer-signed admission with no
unsigned fallback. The license server serves the signed endpoint; older clients
keep using the legacy endpoint. This review and workstation/offline use are unchanged.
Signed endpoint denials disable caching and hide internal inactive-state values;
do not treat a denial as permission to bypass verification.
Since Core 0.16.0, directory delivery checks inspect detected top-level PyInstaller executables. A frozen delivery with an L3 build report may return delivery.l3_unverified_frozen; report the warning when reviewing the artifact.
Since 0.15.0, clients trust a standby issuer key ahead of future rotation and report an upgrade hint for unknown issuer keys while still denying the build.
pyobfus --check src/ --sarif pyobfus.sarif
SARIF 2.1.0 uploads to GitHub code scanning. Exit code is 1 when
high-severity findings exist, which is the intended gate.
There is also a published GitHub Action that handles the exit-code trap
correctly (findings and tool errors are separated, so || true is not
needed): uses: zhurong2020/pyobfus-action@v1.
--check does not promise the build will work. It means the known
breakage patterns were not found. Verification happens in a real build, and
that belongs to the pyobfus-protect skill.Copy it into whichever location your agent reads:
# Claude Code
mkdir -p ~/.claude/skills && cp -r skills/pyobfus-review ~/.claude/skills/
# Repository-scoped, picked up by agents that follow the .github/skills
# convention (GitHub Copilot, Cursor, Codex CLI and others)
mkdir -p .github/skills && cp -r skills/pyobfus-review .github/skills/
What SKILL.md sets; muted values are Claude Code's defaults
2 skills in this plugin
npx claudepluginhub zhurong2020/pyobfus --plugin pyobfusOther plugins' skills for the same job