Detects which AI coding agent is running and maps the Exam Prompt skill system to the agent's native configuration format. Supports 20+ coding agents. Run first when onboarding a new agent or if skills fail to load.
Ships in pinakdhabu-exam-prompt. 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.
Activate this skill when:
<available_skills> or SKILL.md formatThis skill is the first line of defense for agent compatibility.
Detect which agent is running by checking environment variables and config files:
# Quick detection — prints the primary agent name
bash scripts/detect-agent.sh
node scripts/detect-agent.js
# JSON output with full details
bash scripts/detect-agent.sh --json
node scripts/detect-agent.js --json
# List all detected agents with confidence scores
bash scripts/detect-agent.sh --all
node scripts/detect-agent.js --all
| # | Agent | Type | Detection Clues | Config File | Skill Mechanism |
|---|---|---|---|---|---|
| 1 | Claude Code 2.1 | Terminal-native | CLAUDE.md, .claude/ dir, ANTHROPIC_API_KEY | CLAUDE.md, .claude/settings.json | .claude/settings.json agents list |
| 2 | OpenCode | Terminal-native | .opencode/ dir, OPENCODE_API_KEY | AGENTS.md | <available_skills> XML in system prompt |
| 3 | Codex CLI (OpenAI) | Terminal-native | .codex/ dir, OPENAI_API_KEY, CODEX_* | .codex/config.yaml | CODEX.md instructions |
| 4 | Gemini CLI / Antigravity | Terminal-native | .antigravity/ dir, GEMINI_API_KEY | .antigravity/config.yaml | GEMINI.md instructions |
| 5 | Grok Build (xAI) | Terminal-native | .grok/ dir, XAI_API_KEY, GROK_* | .grok/config.yaml | GROK.md instructions |
| 6 | Aider | Terminal-native | .aider.conf.yml, AIDER_* env vars | .aider.conf.yml | Read-only files + chat modes |
| 7 | Cursor 3.5 | IDE-fork | .cursor/rules/ dir, CURSOR_* env | .cursor/rules/*.mdc | Rules files with glob patterns |
| 8 | Windsurf / Cascade | IDE-fork | .windsurfrules, Windsurf dir | .windsurfrules | Skill listing in .windsurfrules |
| 9 | Void AI | IDE-fork | .void/ dir, VOID_* env | .void/config.json | .void/rules/ rule files |
| 10 | Kiro | VS Code ext | .kiro/ dir, KIRO_* env | .kiro/config.json | VS Code extension settings |
| 11 | Cline 3.85 | VS Code ext / BYOK | .clinerules, cline_docs/ dir | .clinerules | Rules file + memory bank |
| 12 | Roo Code | VS Code ext / BYOK | .roorules, roo_docs/ dir | .roorules | Rules file (Cline fork) |
| 13 | Kilo Code | VS Code ext / BYOK | .kilorules, kilo_docs/ dir | .kilorules | Rules file + no-markup gateway |
| 14 | Continue.dev | VS Code ext | .continue/ dir, CONTINUE_* env | .continue/config.yaml | Context providers + slash commands |
| 15 | Goose | BYOK shell | .goose/ dir, GOOSE_* env | .goose/config.yaml | MCP-based tool discovery |
| 16 | GitHub Copilot (agent mode) | Cloud / IDE | .github/copilot-instructions.md | .github/copilot-instructions.md | Instructions + GitHub Issues |
| 17 | Codegen | Cloud | .codegen/ dir, CODEGEN_* env | .codegen/config.yaml | Agent orchestration DSL |
| 18 | Devin (Cognition) | Cloud | DEVIN_* env, .devin/ dir | .devin/config.yaml | Cloud IDE + spec-driven |
| 19 | Sourcegraph Amp | Cloud | .amp/ dir, AMP_* env | .amp/config.yaml | Repo-graph context |
| 20 | Fabrik | Cloud | .fabrik/ dir, FABRIK_* env | .fabrik/config.yaml | Agent workflow engine |
Claude Code reads CLAUDE.md for project instructions and .claude/settings.json for agent
definitions.
bash scripts/generate-agent-config.sh # Regenerates all agent configs from skills.json
Verify: .claude/settings.json has skills.autoLoad: true and an agents array referencing
SKILL.md paths.
If skills don't load: Ensure CLAUDE.md mentions the skill system. Check
.claude/settings.json has correct paths.
Skills are loaded from <available_skills> XML in AGENTS.md.
bash scripts/generate-agents-md.sh # Regenerates AGENTS.md
Verify: AGENTS.md has a single <available_skills> block with <skill><name>,
<description>, <location> tags for all 30+ skills.
If skills don't load: Run generate-agents-md.sh. Ensure AGENTS.md is at repo root.
Codex reads .codex/config.yaml and a CODEX.md instruction file.
Setup suggestion:
# Create Codex config pointing to AGENTS.md
mkdir -p .codex
echo 'instructions: AGENTS.md' > .codex/config.yaml
Verification: Create .codex/config.yaml referencing the skills manifest.
Gemini CLI reads .antigravity/config.yaml (or .gemini/config.yaml).
Setup suggestion:
# Reference the skill manifest
mkdir -p .antigravity
echo 'docs:
- AGENTS.md
- CLAUDE.md' > .antigravity/config.yaml
Grok runs as a terminal agent with parallel sub-agents.
Setup suggestion:
# Reference project instructions
mkdir -p .grok
echo 'instructions: skill system in skills/ directory' > .grok/config.yaml
Aider reads .aider.conf.yml for config. Files in read and read-only settings are loaded as
context.
# Aider already configured via generate-agent-config.sh
bash scripts/generate-agent-config.sh
Verify: .aider.conf.yml has read: [AGENTS.md, CLAUDE.md] and
read-only: [skills/**/SKILL.md].
Cursor reads .cursor/rules/*.mdc files — regenerated from skills.json.
bash scripts/generate-agent-config.sh # Regenerates .cursor/rules/000-global.mdc
Verify: .cursor/rules/000-global.mdc has the skill directory tree with descriptions.
Windsurf reads .windsurfrules for available skills.
bash scripts/generate-agent-config.sh # Regenerates .windsurfrules
Verify: .windsurfrules has a numbered skill list.
Void reads .void/rules/ for rule files (similar to Cursor's .mdc format).
Setup suggestion: Symlink or copy rules from .cursor/rules/ or generate a VOID.md
instruction file.
Cline reads .clinerules for project rules and cline_docs/ for memory bank.
bash scripts/generate-agent-config.sh # Regenerates .clinerules
Verify: .clinerules references key skill directories and cline_docs/ has project context.
Roo Code (Cline fork) reads .roorules and roo_docs/.
Setup suggestion: Create .roorules pointing to the Exam Prompt skill system, or symlink from
.clinerules.
Kilo Code reads .kilorules and kilo_docs/.
Setup suggestion: Create .kilorules referencing the skills directory:
Always refer to skills/ directory for available skills. Load SKILL.md from the relevant skill directory when the user asks a question that matches a skill description.
Continue.dev reads .continue/config.yaml for context providers and slash commands.
# Already configured — uses AGENTS.md as custom instructions
Verify: .continue/config.yaml has correct customInstructions path.
Goose is MCP-native — it discovers tools through MCP servers.
Setup suggestion: No config needed — invoke skills by name when loaded in context.
Copilot reads .github/copilot-instructions.md for project knowledge — loaded automatically.
Verify: .github/copilot-instructions.md references the skill system architecture.
Codegen uses a DSL for agent orchestration.
Setup suggestion: Create .codegen/config.yaml referencing skill manifests.
Devin uses a cloud IDE with spec-driven development.
Setup suggestion: Upload relevant SKILL.md files or reference the repo — Devin reads the codebase automatically.
Amp indexes the full repo graph.
Setup suggestion: No config needed — Amp reads the entire codebase context.
Fabrik is an agent workflow engine.
Setup suggestion: Create .fabrik/config.yaml pointing to skill definitions.
Regardless of which agent is running, the Exam Prompt workflow is the same:
# Auto-detect agent + install deps + create session profile
bash scripts/init-project.sh
# Or manually
node scripts/detect-agent.js # See which agent you're running
npm install # Install Node dependencies
pip install -r requirements.txt # Install Python dependencies
The session profile (deps/session-profile.json) stores your university, subject, and preferences:
bash scripts/init-project.sh # Interactive setup
# OR
node scripts/detect-university.js --active # See active university config
All 30+ skills read from the session config automatically.
For the detected agent, skills are loaded through the agent's native mechanism. If the agent falls
back to generic instruction files, it reads AGENTS.md — the universal skill registry.
Once loaded, invoke skills by name:
"Write an A+ answer about [topic]" →
universal-a-plus-answer-writer"Generate notes on [subject]" →universal-notes-generator"Analyze these PYQs" →universal-pyq-analyzer"Find important topics" →universal-imp-topics-generator"Solve this assignment" →universal-assignment-writer"Generate a question paper" →universal-exam-paper-generator
If the agent doesn't recognize the skill name, explicitly reference the SKILL.md file:
"Read skills/answer-writer/SKILL.md, then write an A+ answer about process synchronization."
Dependencies are managed through deps/manifest.json, auto-generated by deps/resolve.sh.
# Check all dependencies
bash deps/resolve.sh
# Install missing dependencies
bash deps/resolve.sh --install
# JSON output for agent consumption
bash deps/resolve.sh --json
Works cross-platform (Linux, macOS, Windows) — detects system tools, Node packages, and Python packages.
| Skill | Integration |
|---|---|
| universal-university-adapter | Entry point for university detection — routes to correct skills |
| universal-session-config | Stores the persistent session profile read by all skills |
| setup-exam-prompt | First-time setup — creates session profile and validates deps |
| universal-qp-fetcher | Downloads question papers — works with any agent's fetch tools |
| universal-document-reader | Document → text conversion — first step in any skill pipeline |
| universal-a-plus-answer-writer | Generates exam-ready answers — the most frequently used skill |
bash scripts/detect-agent.sh to confirm which agent is detectedbash scripts/generate-agent-config.sh to regenerate configsdeps/session-profile.json exists (run bash scripts/init-project.sh)deps/manifest.json is up to date (bash deps/resolve.sh)node scripts/detect-agent.js instead of .sh).ps1 scripts)bash deps/resolve.sh --platform windows for Windows-specific install commands_TEMPLATE_ conventionsdeps/manifest.json agent_configs arrayscripts/detect-agent.sh and scripts/detect-agent.jsbash scripts/generate-agent-config.sh to regenerate| Situation | Action |
|---|---|
| Unknown agent detected | Run bash scripts/detect-agent.sh --all to list all detected agents with confidence scores; check environment variables for agent-specific keys |
| Config write failure | Verify write permissions on target config file; run bash scripts/generate-agent-config.sh to regenerate and retry |
| Config file parse error | Check config file syntax for YAML/JSON errors; regenerate with bash scripts/generate-agent-config.sh |
| Unsupported agent version | Add detection logic to scripts/detect-agent.sh and submit a PR; as workaround, manually create agent config following _TEMPLATE_ conventions |
<available_skills>, agent rules, etc.) point to existing SKILL.md
files| Condition | Action |
|---|---|
| New agent onboarding | Auto-run — run Parts 1-3 (detect, generate config, verify) |
| Skills fail to load | Auto-run — run Part 2 regeneration + Part 6 troubleshooting |
| User asks "Will this work with X?" | Auto-run — run Part 1 detection, then check Part 2 for that agent |
| Routine Exam Prompt usage | Do NOT run — only invoke on symptom or explicit request |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
agent-detection, skill-compatibility, onboarding, multi-agent
Other plugins' skills for the same job
/pinakdhabu-exam-prompt:universal-agent-normalizerfrom pinakdhabu-exam-prompt
pinakdhabu-exam-prompt@awesome-skills-plugins-for-students is listed by studentsuite/awesome-skills-plugins-for-students — review the source before installing
npx claudepluginhub studentsuite/awesome-skills-plugins-for-students --plugin pinakdhabu-exam-prompt30 skills in this plugin
/universal-a-plus-answer-writerGenerates exam-ready A+ answers for ANY university worldwide — SPPU, VTU, IITs, NITs, MIT, Oxford, Cambridge, Harvard, NUS, and 50+ more. Covers ALL question types (theory, numerical, MCQ, case study, derivation, diagram, design, etc.), ALL mark levels (1-100+), ALL exam conditions (closed/open book, online, oral, lab, take-home), ALL Bloom's levels, and ALL command words. Pre-configured with SPPU Computer Engineering intelligence. Universally adaptable via syllabus PDF input. Trigger on ANY exam answer request. Never trigger for lab practical reports, project documentation, or coding assignments unless asked.
/universal-assignment-writerGenerates assignment-ready content for any university worldwide across all assignment types (theory, numerical, case study, research, literature review, project proposals, design, analysis, comparison, critical review, problem-solving, and diagram/illustration). Supports multiple output formats, evaluation depth mapping, marking scheme generation, and citation requirements. University-agnostic.
/universal-case-study-solverSolves ANY case study type for ANY university worldwide. Covers business, engineering, medical, legal, ethical, social science, and technical case studies. Uses structured frameworks (SWOT, PESTEL, 5 Whys, Root Cause Analysis, Ethical Matrix, Fishbone, etc.) with per-section marking allocation./universal-cheat-sheet-generatorGenerates compact, exam-ready cheat sheets (micro notes) for ANY university worldwide. Produces single-page dense reference sheets matching the official SPPU Micro format — Letter portrait, 3-column layout, continuous definition text, unit-wise organization. Supports ALL subjects, ALL patterns, ALL exam types.
/universal-code-solution-generatorGenerates step-by-step solutions for coding problems, numericals, and programming assignments for ANY university worldwide. Produces explanation, algorithm, pseudocode, actual code, complexity analysis, and test cases. Works for ALL programming languages, ALL subjects, ALL exam patterns.
/universal-cross-subject-mapperMaps conceptual connections across subjects for ANY university worldwide. Shows how topics from one course relate to and build upon topics from other courses. Provides integrated learning paths, dependency graphs, and cross-referenced study materials. Essential for comprehensive exams and interdisciplinary understanding.