Do this before downloading any MCP or Skill¶
| Category | AI Security |
| Status | โ Completed |
| Repo | nextwork-do-this-before-downloading-any-mcp-or-skill |
| Original NextWork guide | nextwork.ai |
Learning project
Practice work following a NextWork guide, separate from my production projects.
๐ NextWork learning project. This is a practice project I built while working through NextWork's Do this before downloading any MCP or Skill guide. It is part of my Learning portfolio and is fully separate from my production projects.
Category: Learning โบ AI Security
Status: โ
Completed
Overview¶
The habit this project builds: never install an MCP server or skill on vibes. SAFETY-PROMPT.md makes an AI reviewer answer six concrete risk areas with file:line evidence. vet.py gathers that evidence statically, without running anything, and skills/safety-reviewer/SKILL.md makes it automatic.
Summary¶
The six-area safety prompt, the reusable safety-reviewer skill (secret mission), and a static vetting script are built. I vetted a real skill (Anthropic's public pdf skill): Claude Code loaded the safety-reviewer skill and gathered the evidence, and a model answered the six-area prompt with file:line citations and a verdict (INSTALL WITH LIMITS). The models are substitutes for Claude.
The checks behind this are in docs/verification.txt.
Skills & tools¶
AI supply-chain security, Prompt design, Agent skills, Static analysis, Python
What I built¶
SAFETY-PROMPT.md: the six-area structured review prompt with a forced verdict.skills/safety-reviewer/SKILL.md: a skill that triggers the review when a link is pasted (secret mission).vet.py: a static evidence report across the six areas, with a suggested verdict.docs/vet-anthropic-pdf-skill.md: the report for Anthropic's publicpdfskill.docs/claude-code-session.md: a live Claude Code session (free OpenRouter model) that invokes thesafety-reviewerskill on the clonedpdfskill, lists its files, and runsvet.py. The free tier's daily limit cut it off before the written judgment.review_with_llm.py+docs/llm-safety-review.md: the judgment step, which is the guide's "paste the prompt into Claude" step. It sends SAFETY-PROMPT.md and the vet.py evidence to a local model (qwen2.5:3b via Ollama), which answers all six areas with file:line evidence and the verdict.
How to run¶
git clone --depth 1 https://github.com/anthropics/skills /tmp/skills
python vet.py /tmp/skills/skills/pdf
Verification¶
I ran the verification command on 2026-12-02. The full output is in docs/verification.txt.
rm -rf /tmp/vet-skills && git clone -q --depth 1 https://github.com/anthropics/skills /tmp/vet-skills && mkdir -p docs && python3 vet.py /tmp/vet-skills/skills/pdf | tee docs/vet-anthropic-pdf-skill.md && python3 vet.py /tmp/vet-skills/skills/pdf | grep -q 'Suggested verdict' && grep -q 'INSTALL WITH LIMITS' docs/llm-safety-review.md && grep -q '"skill": "safety-reviewer"' docs/claude-code-session.md && echo 'OK model judgment + live skill session present'
Notes¶
What "trustworthy" looked like in the vetted skill: the scripts process local PDF files the user supplies, and there's no hidden network call or credential access in the flagged lines. The flags are expected (it shells out to PDF tools and writes output files). That's why the verdict is "install with limits", not a blanket yes.
Model substitution: the guide pastes the safety prompt into Claude. I don't have a Claude account, so the conversation ran on substitute models: Claude Code on a free OpenRouter model for the skill invocation and evidence, then a local Ollama model for the written six-area judgment after the free tier hit its daily limit. The 3B model's judgment follows the evidence but adds little beyond it. A stronger model would explain why the REFERENCE.md --password=secret123 hit is a harmless doc example.
Original project: https://nextwork.ai/projects/e933f851-f343-4108-adbb-e62482dede58 ยท Part of my NextWork Learning portfolio (hub).
Verification output¶
From docs/verification.txt:
$ rm -rf /tmp/vet-skills && git clone -q --depth 1 https://github.com/anthropics/skills /tmp/vet-skills && mkdir -p docs && python3 vet.py /tmp/vet-skills/skills/pdf | tee docs/vet-anthropic-pdf-skill.md && python3 vet.py /tmp/vet-skills/skills/pdf | grep -q 'Suggested verdict' && grep -q 'INSTALL WITH LIMITS' docs/llm-safety-review.md && grep -q '"skill": "safety-reviewer"' docs/claude-code-session.md && echo 'OK model judgment + live skill session present'
# Static vetting report: /tmp/vet-skills/skills/pdf
files scanned: 12
## 1 code execution: 0 hit(s)
## 2 network/exfiltration: 2 hit(s)
- LICENSE.txt:4: http://www.apache.org/licenses/
- LICENSE.txt:196: http://www.apache.org/licenses/LICENSE-2.0
## 3 credentials/secrets: 1 hit(s)
- REFERENCE.md:341: qpdf --password=secret123 --decrypt encrypted.pdf decrypted.pdf
## 4 file-system scope: 16 hit(s)
- REFERENCE.md:77: fs.writeFileSync('modified.pdf', pdfBytes);
- REFERENCE.md:138: fs.writeFileSync('created.pdf', pdfBytes);
- REFERENCE.md:167: fs.writeFileSync('merged.pdf', mergedPdfBytes);
- REFERENCE.md:489: with open("batch_merged.pdf", "wb") as output:
- REFERENCE.md:501: with open(output_file, 'w', encoding='utf-8') as f:
- REFERENCE.md:525: with open("cropped.pdf", "wb") as output:
- REFERENCE.md:564: with open(f"chunk_{start_idx//chunk_size}.pdf", "wb") as output:
- SKILL.md:42: with open("merged.pdf", "wb") as output:
... 8 more
## 5 prompt-injection: 0 hit(s)
## 6 supply chain: 1 hit(s)
- SKILL.md:235: # Requires: pip install pytesseract pdf2image
Suggested verdict: INSTALL WITH LIMITS (review flagged lines; restrict tools/paths)
OK model judgment + live skill session present
[exit code 0]