learn-quiz
Test understanding of recently written or accepted code
What this skill does
# Quiz Me Test understanding of recently written or accepted code. ## Usage ``` /learn:quiz # Quiz on last code worked with /learn:quiz error handling # Focus on specific aspect /learn:quiz --hard # More challenging questions ``` ## Instructions 1. Identify the last code I worked with (wrote, edited, or accepted from AI) 2. Generate 3-5 questions that test understanding at different levels: - **Recall**: What does this code do? - **Understanding**: Why was this approach chosen? - **Application**: What would happen if X changed? - **Analysis**: What are the trade-offs of this approach? - **Synthesis**: How would you extend this? 3. Present questions one at a time 4. Wait for my answer before revealing the correct response 5. Provide explanations with each answer, not just "correct/incorrect" ## Question Types ### Level 1: Recall - "What does the function X return?" - "What parameters does Y accept?" - "What happens when Z is called?" ### Level 2: Understanding - "Why do we use X instead of Y here?" - "What problem does this pattern solve?" - "Why is this line necessary?" ### Level 3: Application - "What would happen if we removed line X?" - "How would you add feature Y to this code?" - "What would break if input Z was provided?" ### Level 4: Analysis - "What are the performance implications of this approach?" - "What edge cases might cause issues?" - "How does this compare to alternative X?" ### Level 5: Synthesis - "How would you refactor this for better testability?" - "What would need to change to support X?" - "Design an extension that adds Y" ## Focus Areas When focus is specified (e.g., `/learn:quiz error handling`), prioritize questions about: | Focus | Question Themes | |-------|-----------------| | `error handling` | Try/catch, error types, recovery strategies | | `performance` | Big-O, optimization, bottlenecks | | `security` | Input validation, XSS, injection | | `testing` | Test cases, edge cases, mocking | | `architecture` | Patterns, separation of concerns, SOLID | | `types` | TypeScript types, inference, generics | ## Difficulty Modes ### Default - 3 questions - Mix of Level 1-3 - Focus on understanding current code ### `--hard` - 5 questions - Levels 3-5 - Include hypothetical modifications - Ask about trade-offs and alternatives ## Response Format For each question: ``` ## Question 1 of 3 [Question text] What's your answer? --- (After user responds) ### Feedback [Whether correct and why] **Key insight**: [The concept this tests] **Related concept**: [Something to explore further] Ready for the next question? ``` ## After Quiz Complete Summarize: - Score: X/Y correct - Strengths: [Topics understood well] - Review needed: [Topics to revisit] - Suggested practice: [Specific exercise] ## Example Session ``` User: /learn:quiz Claude: Looking at your last code - the useEffect hook for data fetching. ## Question 1 of 3 In your useEffect, you have an empty dependency array []. What does this mean for when the effect runs? User: It runs only once when the component mounts Claude: ### Feedback Correct! An empty dependency array means the effect runs only on mount (and cleanup on unmount). **Key insight**: The dependency array controls WHEN effects re-run. **Related concept**: What happens with no array vs. [someValue]? Ready for Question 2? ``` ## Tips for Users 1. **Be honest**: Wrong answers are learning opportunities 2. **Explain your reasoning**: Helps identify gaps even in correct answers 3. **Ask follow-ups**: If feedback is unclear, dig deeper 4. **Track weak areas**: Note topics that need more practice $ARGUMENTS
Related in Code Review
gstack
IncludedFast headless browser for QA testing and site dogfooding. Navigate pages, interact with elements, verify state, diff before/after, take annotated screenshots, test responsive layouts, forms, uploads, dialogs, and capture bug evidence. Use when asked to open or test a site, verify a deployment, dogfood a user flow, or file a bug with screenshots. (gstack)
startup-due-diligence
IncludedLegal due diligence review for seed-stage and Series A startups (US, Delaware C-Corp focus). Supports both investor and founder perspectives. Capabilities include: (1) Interactive document review and issue spotting; (2) Document request list generation; (3) Cap table and SAFE/convertible note analysis; (4) Red flag identification with severity ratings; (5) Diligence report generation. TRIGGERS: due diligence, DD, startup investment, cap table review, Series A, seed round, investor diligence, legal review startup, SAFE analysis, convertible note, 409A, founder vesting.
interview-master
IncludedThis skill should be used when the user asks to "generate interview questions", "prepare for interview", "optimize resume", "conduct mock interview", "analyze git commits for resume", "generate resume from code", "review my resume", or mentions interview preparation, career assistance, or extracting project experience from git history. Provides comprehensive interview and career development guidance for both job seekers and interviewers.
fix-issue
IncludedFixes GitHub issues using parallel analysis agents for root cause investigation, code exploration, and regression detection. Reads issue context from gh CLI, searches codebase and memory for related patterns, generates a fix with tests, and links the resolution back to the issue via PR. Includes prevention analysis to avoid recurrence. Use when debugging errors, resolving regressions, fixing bugs, or triaging issues.
sf-apex
IncludedGenerates and reviews Salesforce Apex code with 150-point scoring. TRIGGER when: user writes, reviews, or fixes Apex classes, triggers, test classes, batch/queueable/schedulable jobs, or touches .cls/.trigger files. DO NOT TRIGGER when: LWC JavaScript (use sf-lwc), Flow XML (use sf-flow), SOQL-only queries (use sf-soql), or non-Salesforce code.
swift-development
IncludedComprehensive Swift development for building, testing, and deploying iOS/macOS applications. Use when Claude needs to: (1) Build Swift packages or Xcode projects from command line, (2) Run tests with XCTest or Swift Testing framework, (3) Manage iOS simulators with simctl, (4) Handle code signing, provisioning profiles, and app distribution, (5) Format or lint Swift code with SwiftFormat/SwiftLint, (6) Work with Swift Package Manager (SPM), (7) Implement Swift 6 concurrency patterns (async/await, actors, Sendable), (8) Create SwiftUI views with MVVM architecture, (9) Set up Core Data or SwiftData persistence, or any other Swift/iOS/macOS development tasks.