understando
Pre-commit quiz that tests your understanding of code changes before allowing commits. Use when committing code through Claude Code to ensure engineers understand what they're committing. Requires hook installation - see repository README for setup.
Best use case
understando is best used when you need a repeatable AI agent workflow instead of a one-off prompt.
Pre-commit quiz that tests your understanding of code changes before allowing commits. Use when committing code through Claude Code to ensure engineers understand what they're committing. Requires hook installation - see repository README for setup.
Teams using understando should expect a more consistent output, faster repeated execution, less prompt rewriting.
When to use this skill
- You want a reusable workflow that can be run more than once with consistent structure.
When not to use this skill
- You only need a quick one-off answer and do not need a reusable workflow.
- You cannot install or maintain the underlying files, dependencies, or repository context.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/understando/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How understando Compares
| Feature / Agent | understando | Standard Approach |
|---|---|---|
| Platform Support | Not specified | Limited / Varies |
| Context Awareness | High | Baseline |
| Installation Complexity | Unknown | N/A |
Frequently Asked Questions
What does this skill do?
Pre-commit quiz that tests your understanding of code changes before allowing commits. Use when committing code through Claude Code to ensure engineers understand what they're committing. Requires hook installation - see repository README for setup.
Where can I find the source code?
You can find the source code on GitHub using the link provided at the top of the page.
SKILL.md Source
# Understando - Pre-Commit Code Understanding Quiz You are running a quiz to verify the user understands the code changes they are about to commit. > **Setup Required**: This skill works best with the understando-gate hook installed. See the [repository](https://github.com/claytonkim/understando) for hook installation instructions. ## Quiz Flow ### Step 1: Load Configuration Read `.understando.json` from the project root. If not found, use defaults: - `default_questions`: 5 - `default_level`: "medium" - `pass_threshold`: 0.8 ### Step 2: Get the Diff Run `git diff --staged` to get the changes being committed. If no staged changes, inform the user and exit. ### Step 3: Ask Difficulty Level Prompt the user: ``` Select quiz difficulty: 1. Easy - Surface-level understanding 2. Medium - Moderate depth, some context required 3. Hard - Deep understanding, edge cases, architectural implications Enter choice (1/2/3) or press Enter for default: ``` ### Step 4: Generate Questions Based on the diff and difficulty level, generate questions that test understanding: **Easy questions** test: - What a function/component does - What files were modified - Basic "what changed" comprehension **Medium questions** test: - Why a change was made (intent) - How the change affects related code - What the expected behavior is **Hard questions** test: - Edge cases the change might introduce - Architectural implications - Potential bugs or issues - How this integrates with the broader system **Question format mix:** - ~60% multiple choice (4 options, one correct) - ~40% free-text (short answer) Present questions one at a time. For multiple choice, show options labeled A-D. ### Step 5: Judge Answers **Multiple choice:** Exact match (A/B/C/D) **Free-text:** Evaluate if the answer demonstrates understanding. Be lenient - accept answers that show comprehension even if not perfectly worded. Look for: - Key concepts mentioned - Correct understanding of the change - Reasonable explanation ### Step 6: Calculate Results After all questions: - Calculate percentage correct - If >= pass_threshold: PASS - If < pass_threshold: FAIL ### Step 7: Show Results **If PASSED:** ``` Quiz Complete! You scored X/Y (Z%) Proceeding with commit... ``` Create a marker file `.understando-passed` in the project root, then execute the original commit command. The hook will see this marker and allow the commit through. **If FAILED:** ``` Quiz Complete. You scored X/Y (Z%) You need 80% to pass. Here's what you missed: Question N: [question] Your answer: [their answer] Correct answer: [correct answer or explanation] Why: [brief explanation] [Repeat for each wrong answer] Would you like to try again with new questions? (yes/skip) ``` - If "yes" or "y": Generate NEW questions (not the same ones), go back to Step 4 - If "skip": Show shame message, create `.understando-passed` marker, then execute the commit ### Shame Message When user skips: ``` Skipping quiz... Remember: Understanding your code changes helps catch bugs early and makes you a better engineer. Consider reviewing the diff before your next commit. Proceeding with commit anyway... ``` ## Important Notes 1. **Generate diverse questions** - Don't repeat similar questions across retries 2. **Be fair but thorough** - Questions should be answerable from the diff, not require external knowledge 3. **Keep it interactive** - Wait for user input after each question 4. **Create marker file** - Before committing, create `.understando-passed` file so the hook allows the commit through. The hook will automatically delete this file after the commit. ## Example Questions by Difficulty **Easy:** - "What function was modified in `src/utils.js`?" (MCQ) - "How many files were changed in this commit?" (MCQ) - "What is the new return type of the `calculate` function?" (Free-text) **Medium:** - "Why was the error handling added to `fetchUser`?" (Free-text) - "Which component will be affected by this props change?" (MCQ) - "What problem does the new validation logic solve?" (Free-text) **Hard:** - "What edge case could cause the new `parseInput` function to fail?" (Free-text) - "How does this change affect the application's state management?" (Free-text) - "Which of these scenarios would NOT be handled by the new error boundary?" (MCQ)
Related Skills
bgo
Automates the complete Blender build-go workflow, from building and packaging your extension/add-on to removing old versions, installing, enabling, and launching Blender for quick testing and iteration.
1k-error-handling
Error handling patterns and best practices for OneKey. Use when implementing try/catch blocks, handling async errors, showing error messages, or managing error states in UI. Triggers on error, try, catch, exception, throw, fail, failure, error handling, error boundary, useAsyncCall, toast, fallback, error state.
1k-dev-commands
Development commands for OneKey monorepo. Use when running dev servers, building apps, linting, testing, or troubleshooting build issues. Triggers on yarn, dev, build, lint, test, desktop, mobile, web, extension, ios, android, compile, bundle.
1k-date-formatting
Date and time formatting for OneKey applications. Use when displaying dates, timestamps, or formatting time in UI components. Always use OneKey utilities instead of native JS date methods. Triggers on date, time, timestamp, formatDate, formatTime, toLocaleDateString, toLocaleString, dateUtils, locale, format, display date, show time, datetime, calendar.
1k-cross-platform
Cross-platform development patterns for OneKey. Use when writing platform-specific code, handling platform differences, or working with native/web/desktop/extension platforms. Triggers on platform, native, web, desktop, extension, iOS, Android, Electron, platformEnv, .native.ts, .web.ts, .desktop.ts, .ext.ts, cross-platform, multi-platform.
1k-coding-patterns
Coding patterns and best practices for OneKey development. Use when writing React components, handling promises, error handling, or following code conventions. Triggers on react, component, hooks, promise, async, await, error, pattern, convention, typescript.
1k-architecture
OneKey monorepo architecture and code organization. Use when understanding project structure, package relationships, import rules, or component organization. Triggers on architecture, structure, packages, imports, hierarchy, dependencies, monorepo, organization.
1k-app-upgrade-test
Create test versions to verify app auto-update functionality. Use when testing update flows, version migration, or validating app upgrade mechanisms. Automates version number and build number configuration for testing the auto-update system. Triggers on auto update, app upgrade, update testing, upgrade flow, version migration, test build, 9XXX version.
1k-adding-socket-events
Adds new WebSocket event subscriptions to OneKey. Use when implementing new socket events, handling server push messages, or adding real-time data subscriptions. Socket, WebSocket, event, subscription, push, real-time.
1d-cutting-stock
When the user wants to cut 1D materials optimally, minimize waste in linear cutting, or solve one-dimensional cutting stock problems. Also use when the user mentions "1D cutting," "linear cutting optimization," "rod cutting," "pipe cutting," "beam cutting," "trim loss," "cutting stock problem," "pattern generation," or "column generation for cutting." For 2D problems, see 2d-cutting-stock. For general trim loss, see trim-loss-minimization.
1c-bsl-code-generation
Skill for generating 1C:Enterprise (BSL) code with mandatory validation through MCP tools to prevent hallucinations. Use when generating, editing, or validating 1C BSL code, working with 1C metadata, or answering questions about 1C platform API.
128-java-generics
Use when you need to review, improve, or refactor Java code for generics quality — including avoiding raw types, applying the PECS (Producer Extends Consumer Super) principle for wildcards, using bounded type parameters, designing effective generic methods, leveraging the diamond operator, understanding type erasure implications, handling generic inheritance correctly, preventing heap pollution with @SafeVarargs, and integrating generics with modern Java features like Records, sealed types, and pattern matching. Part of the skills-for-java project