pyobfus-protect SKILL.md skillB

pyobfus-protect from zhurong2020/pyobfus is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add zhurong2020/pyobfus/pyobfus-protect@git:20261012.07c5a0a

Pins git:20261012.07c5a0a in mdr.lock. Pin the fingerprint instead.

Audit grade
B, 16 of 17 checks passed
Kind
SKILL.md skill
Repository
zhurong2020/pyobfus
Path
skills/pyobfus-protect/SKILL.md
Versions recorded
6
Latest version
git:20261012.07c5a0a, committed Oct 12, 2026
First version recorded
Jun 11, 2026
Size
7,938 bytes
Repository stars
11
License
Apache-2.0

Obfuscate / protect Python source before shipping it, and verify the obfuscated output still runs. Use when the user wants to protect, obfuscate, harden, or "make it hard to read / reverse-engineer" a Python package, CLI, or service before publishing to PyPI, sending a build to a client, or shipping an evaluation copy — especially when they want confidence the transform didn't break the code. Powered by pyobfus (an AST-based, framework-aware, AI-debuggable obfuscator). Not for minification…

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Protect a Python project with pyobfus

Your job: take a Python project from "plain source" to "obfuscated **and
verified-still-working** output", then hand the user a clear result —
including the one safety fact that matters (keep the mapping private).

## Decision: MCP tool or CLI?

First check whether the `pyobfus-mcp` server is connected (look for a
`protect_project` / `check_obfuscation_risks` tool).

- **If the MCP server is available → use it.** It is the shortest, most
  reliable path and it self-verifies.
- **If not → use the `pyobfus` CLI** (`pip install pyobfus`). Every command
  supports `--json` with a stable schema.

Confirm the target path and the output directory with the user before writing
anything. Never obfuscate into the source tree.

## Path A — MCP (preferred): one call

Call **`protect_project`** with the source path. It runs the whole pipeline
and self-verifies:

```
protect_project(path="src", output_dir="dist")
```

Read the result:

- `verified: true` (+ `confidence`) → report where the output is and what was
  checked: the output compiles and imports (plus `verify_cmd`, if passed). It
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add zhurong2020/pyobfus/pyobfus-protect@sha256:e6f4108fdc889c7d

The line at the top of this page pins the label git:20261012.07c5a0a, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_giqiapxhkd5tqg4c.svg)](https://markdownregistry.com/a/art_giqiapxhkd5tqg4c)

3 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 6 versions of this file, between Jun 11, 2026 and Oct 12, 2026, about one every 25 days.

versioncommittedcommitsizeaudit
git:20261012.07c5a0a latest2026-10-12 07c5a0a 7,938 BB view · diff
git:20261011.0a7635a2026-10-11 0a7635a 7,952 BB view · diff
git:20261007.8f25d632026-10-07 8f25d63 7,723 BB view · diff
git:20260910.7b7befd2026-09-10 7b7befd 7,495 BB view · diff
git:20260822.c864bdf2026-08-22 c864bdf 7,114 BB view · diff
git:20260611.d9640cc2026-06-11 d9640cc 5,671 BB view

Audit of the latest version

B  16 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • fail: No prompt-injection phrasing (matched: do NOT tell the user)
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (7938 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Starting a new one? Use a template for SKILL.md on mdpantry, which passes every one of these checks and says what to change in it.

Source

GitHub

zhurong2020/pyobfus · 11 stars · license Apache-2.0 · pushed 2026-10-21 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_giqiapxhkd5tqg4c
GET https://markdownregistry.com/api/v1/resolve?ref=zhurong2020/pyobfus/pyobfus-protect
GET https://markdownregistry.com/api/v1/blob/e6f4108fdc889c7d2ae0f4f6102db02948e29df282dc3059dc11e460375ed090

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from zhurong2020/pyobfus

AGENTS.md AGENTS.md file
zhurong2020/pyobfus · AGENTS.md
git:20261021.cc145b2 · audit A · 11 stars
CLAUDE.md CLAUDE.md file
zhurong2020/pyobfus · CLAUDE.md
git:20261021.316e752 · audit A · 11 stars
llms.txt@docs llms.txt file
zhurong2020/pyobfus · docs/llms.txt
git:20261020.baae6ee · audit A · 11 stars
llms-full.txt llms.txt file
zhurong2020/pyobfus · llms-full.txt
git:20261020.baae6ee · audit A · 11 stars
llms.txt llms.txt file
zhurong2020/pyobfus · llms.txt
git:20261020.baae6ee · audit A · 11 stars
pyobfus-review SKILL.md skill
zhurong2020/pyobfus · skills/pyobfus-review/SKILL.md · Review a Python project for source-protection readiness without changing anything: what would break under obfuscation…
git:20260912.54b270c · audit B · 11 stars
.cursorrules Cursor rule
zhurong2020/pyobfus · templates/ai-integration/.cursorrules
git:20260611.bdfaad3 · audit A · 11 stars
AGENTS.md@templates/ai-integration AGENTS.md file
zhurong2020/pyobfus · templates/ai-integration/AGENTS.md
git:20261007.8f25d63 · audit A · 11 stars
CLAUDE.md@templates/ai-integration CLAUDE.md file
zhurong2020/pyobfus · templates/ai-integration/CLAUDE.md
git:20261007.8f25d63 · audit A · 11 stars

Every file in zhurong2020/pyobfus

Browse by kind, by grade B, or by owner.