devils-advocate · pedrohcgs — Claude Code skill: what it does, how to install
Challenges lecture decks from a skeptical student's perspective with five to seven targeted critiques on narrative flow and cognitive load.
npx skills add pedrohcgs/claude-code-my-workflow --skill devils-advocate -a claude-codeWhat devils-advocate does
The skill stress-tests slide decks and lecture notes before class. It looks for gaps in intuition, prerequisite jumps, and confusing notation. The review remains lighter than /pedagogy-review, focusing on where students might get stuck.
The assistant operates strictly read-only using Read, Grep, and Glob. It cannot modify your slides because Edit and MultiEdit tools are blocked. The skill inspects your deck, reads notation rules in .claude/rules/, and checks neighboring lectures for narrative continuity.
The generated report highlights affected slide numbers, severity rankings, and concrete resolution steps. It concludes with an actionable verdict separating essential pre-class changes from optional refinements.
What it helps with
- catch conflicting mathematical notation across lecture files
- pinpoint slides carrying too much cognitive load
- spot missing intuitive examples before formal proofs
- verify prerequisites and narrative continuity across lectures
Example prompts for the agent
- Play devil's advocate for
lecture-04.md - Poke holes in the pedagogical design of
ml-foundations.deck - What would a skeptical student ask about
linear-algebra-recap.md?
How to install devils-advocate
1Skills CLI (Vercel)
npx skills add pedrohcgs/claude-code-my-workflow --skill devils-advocate -a claude-code2Manually: put the files in place
~/.claude/skills/devils-advocate/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/devils-advocate/
1Skills CLI (Vercel)
npx skills add pedrohcgs/claude-code-my-workflow --skill devils-advocate -a codex2Manually: put the files in place
.agents/skills/devils-advocate/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add pedrohcgs/claude-code-my-workflow --skill devils-advocate -a cursor2Manually: put the files in place
.cursor/skills/devils-advocate/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install pedrohcgs/claude-code-my-workflow devils-advocate2Manually: put the files in place
.github/skills/devils-advocate/SKILL.md1Skills CLI (Vercel)
npx skills add pedrohcgs/claude-code-my-workflow --skill devils-advocate -a gemini-cli2Platform CLI
gemini skills install https://github.com/pedrohcgs/claude-code-my-workflow --path .claude/skills/devils-advocateManually: put the files in place
.devin/skills/devils-advocate/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add pedrohcgs/claude-code-my-workflow --skill devils-advocate -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about devils-advocate
How do I install devils-advocate in Claude Code?
Run npx skills add pedrohcgs/claude-code-my-workflow --skill devils-advocate -a claude-code. The skill installs into ~/.claude/skills/devils-advocate/SKILL.md.
Can devils-advocate overwrite presentation files?
No. The skill configuration explicitly disables Edit and MultiEdit, restricting file access to read-only operations.
What categories of challenges does the skill generate?
It targets 5 to 7 specific questions across ordering, prerequisites, notation conflicts, alternative explanations, and cognitive load.
Source text
SKILL.md · MIT
--- name: devils-advocate description: Adversarial 5-7 question challenge to a deck's pedagogical choices — ordering, prerequisites, cognitive load, motivation. Use when user says "devil's advocate", "poke holes in this deck", "push back on my slides", "stress-test the design", "what would a skeptical student ask?". Read-only; surfaces questions to force rethinking. Lighter than `/pedagogy-review`. argument-hint: "[Lecture filename]" allowed-tools: ["Read", "Grep", "Glob"] disallowed-tools: ["Edit", "MultiEdit"] --- # Devil's Advocate Review Critically examine a slide deck and challenge its design with 5-7 specific pedagogical questions. **Philosophy:** "We arrive at the best possible presentation through active dialogue." --- ## Setup 1. **Read the target file** (the lecture being challenged) 2. **Read the knowledge base** in `.claude/rules/` for notation conventions and narrative arc 3. If applicable, **read adjacent lectures** for narrative continuity --- ## Challenge Categories Generate 5-7 challenges from these categories: ### 1. Ordering Challenges > "Could students understand this better if we showed X before Y?" ### 2. Prerequisite Challenges > "Do students have the background for this notation at this point?" ### 3. Gap Challenges > "Should we include an intuitive example before this formal proof?" ### 4. Alternative Presentation Challenges > "Here are 2 other ways to visualize/present this concept." ### 5. Notation Conflict Challenges > "This symbol conflicts with earlier lecture usage." ### 6. Cognitive Load Challenges > "This slide has too many new symbols. Can we split?" ### 7. Book Vision Challenges > "If this becomes a book chapter, does this section stand alone?" --- ## Output Format ```markdown # Devil's Advocate: [Lecture Title] ## Challenges ### Challenge 1: [Category] — [Short title] **Question:** [The specific pedagogical question] **Why it matters:** [What could go wrong] **Suggested resolution:** [Specific action] **Slides affected:** [Numbers or titles] **Severity:** [High / Medium / Low] [Repeat for 5-7 challenges] ## Summary Verdict **Strengths:** [2-3 things done well] **Critical changes:** [0-2 changes before teaching] **Suggested improvements:** [2-3 nice-to-have changes] ``` --- ## Principles - **Be specific:** Reference exact slides and notation - **Be constructive:** Every challenge has a suggested resolution - **Be honest:** If the deck is good, say so - **Prioritize:** Notation conflicts > missed metaphors - **Think like a student:** Where do they get lost?
© pedrohcgs · MIT · pedrohcgs/claude-code-my-workflow
Similar skills
All skills for Writing and docs →devils-advocate by other authors comes first.