repo-distillation-preflightlisted
Install: claude install-skill qingsongcui/claude-code-skills
# Repository distillation preflight
Run a deterministic, **local-only** first gate before creating an Agent Skill from a repository. It reads the directory you provide; it does not clone remote URLs, copy source, generate a skill, or grant commercial permission.
## Run it
From this skill directory:
```bash
python3 scripts/audit_repo_for_distillation.py --repo /absolute/path/to/repository
```
The program prints JSON. Capture that output in your decision record rather than paraphrasing it.
## Interpret the verdict conservatively
| `distillation_verdict` | What the script observed | What to do next |
|---|---|---|
| `DISTILL` | A recognized permissive license signal (MIT, Apache-2.0, BSD, or ISC) | Check provenance, notices, file-level exceptions, and your authorization before reusing anything. |
| `INTERNAL_ONLY` | GPL, LGPL, or AGPL terms detected | Do not package derived material as a commercial skill. Keep it internal or obtain qualified legal guidance. |
| `NEEDS_REVIEW` | Missing/unknown license or incomplete evidence | Stop. Locate the authoritative license and scope before distilling. |
| `BLOCKED` | `--repo` is not a directory | Correct the path. No generated artifact is a valid result here. |
`DISTILL` does **not** mean:
- the repository is high quality;
- every file has the same license;
- its authors authorized your commercial distribution;
- an agent can turn it into a complete workflow;
- the output will load in every coding-agent host.
## Minimum decisio