ownership-gate
Verify the junior can explain and defend every line of code they wrote. This gate BLOCKS completion if failed.
Best use case
ownership-gate is best used when you need a repeatable AI agent workflow instead of a one-off prompt. It is especially useful for teams working in multi. Verify the junior can explain and defend every line of code they wrote. This gate BLOCKS completion if failed.
Verify the junior can explain and defend every line of code they wrote. This gate BLOCKS completion if failed.
Users should expect a more consistent workflow output, faster repeated execution, and less time spent rewriting prompts from scratch.
Practical example
Example input
Use the "ownership-gate" skill to help with this workflow task. Context: Verify the junior can explain and defend every line of code they wrote. This gate BLOCKS completion if failed.
Example output
A structured workflow result with clearer steps, more consistent formatting, and an output that is easier to reuse in the next run.
When to use this skill
- Use this skill when you want a reusable workflow rather than writing the same prompt again and again.
When not to use this skill
- Do not use this when you only need a one-off answer and do not need a reusable workflow.
- Do not use it if you cannot install or maintain the related files, repository context, or supporting tools.
Installation
Claude Code / Cursor / Codex
Manual Installation
- Download SKILL.md from GitHub
- Place it in
.claude/skills/ownership-gate/SKILL.mdinside your project - Restart your AI agent — it will auto-discover the skill
How ownership-gate Compares
| Feature / Agent | ownership-gate | 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?
Verify the junior can explain and defend every line of code they wrote. This gate BLOCKS completion if failed.
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
# Gate 1: Ownership Verification > "If you can't explain it, you don't own it. And code you don't own will haunt you in interviews." ## Purpose This gate ensures the junior truly understands the code they've written. It's the only gate that can **BLOCK** task completion, because ownership is non-negotiable. ## Gate Status - **BLOCKED** — Junior cannot explain the code → Must review and understand before proceeding - **PASS** — Junior demonstrates clear understanding --- ## Gate Questions Ask these questions in sequence. If the junior struggles significantly, mark as BLOCKED. ### Question 1: Walk-Through > "Walk me through what this code does, step by step." **Looking for:** - Accurate description of the flow - Understanding of data transformations - Awareness of async operations - Correct terminology **Red flags:** - "I'm not sure, I just copied this pattern" - "The AI suggested this" - Significant inaccuracies in description ### Question 2: Why This Approach > "Why did you choose this approach? What alternatives did you consider?" **Looking for:** - Awareness of trade-offs - Consideration of alternatives - Reasoning about the decision - Connection to requirements **Red flags:** - "It was the first thing that worked" - "This is how it's done" - No awareness of alternatives ### Question 3: Change Scenario > "If the requirements changed to [specific scenario], what would you modify?" **Looking for:** - Understanding of which parts are flexible - Awareness of dependencies - Ability to reason about modifications - Confidence in the architecture **Red flags:** - "I'd have to rewrite everything" - Complete uncertainty about where to change - Inability to identify the affected areas ### Question 4: Edge Case > "What happens if [edge case specific to their code]?" **Looking for:** - Awareness of edge cases - Understanding of failure modes - Knowledge of error handling in the code **Red flags:** - "I didn't think about that" - Complete surprise at the scenario - No error handling for obvious cases --- ## Response Templates ### If BLOCKED ``` 🛑 OWNERSHIP GATE: BLOCKED I noticed some gaps in understanding this code. Before we proceed: 1. **Review these sections:** [specific lines/functions] 2. **Understand the flow:** Trace through with sample data 3. **Research if needed:** [specific concept to review] This isn't about perfection — it's about ensuring YOU own this code. Take 15-20 minutes to review, then let's try again. Remember: In an interview, you'll need to explain this confidently. ``` ### If PASS ``` ✅ OWNERSHIP GATE: PASSED You clearly understand what you built and why. Nice work. Key points you demonstrated: - [Specific thing they explained well] - [Understanding they showed] Moving to the next gate... ``` --- ## Socratic Recovery If the junior struggles, don't just block them. Guide them: 1. **Point to the confusion:** "Let's focus on this function. What does line X do?" 2. **Break it down:** "What data comes in? What comes out?" 3. **Connect to concepts:** "This is a [pattern]. Have you seen this before?" 4. **Rebuild understanding:** "Now, can you walk through it again?" Only BLOCK if they still cannot explain after guided review. --- ## Why This Gate Matters | Without Ownership | With Ownership | |-------------------|----------------| | Copy-paste without understanding | Learn patterns for reuse | | Can't debug when it breaks | Can reason about failures | | Fails in interviews | Tells compelling stories | | Dependent on AI | Independent problem solver | --- ## Interview Connection > "Every code review is interview prep." After passing this gate, note: - What concept did they explain well? (Future interview talking point) - What initially confused them? (Area for deeper learning) - What pattern did they use? (Add to their vocabulary)
Related Skills
clarity-gate
Pre-ingestion verification for epistemic quality in RAG systems with 9-point verification and Two-Round HITL workflow
azure-aigateway
Configure Azure API Management (APIM) as AI Gateway to secure, observe, control AI models, MCP servers, agents. Helps with rate limiting, semantic caching, content safety, load balancing. USE FOR: AI Gateway, APIM, setup gateway, configure gateway, add gateway, model gateway, MCP server, rate limit, token limit, semantic cache, content safety, load balance, OpenAPI import, convert API to MCP. DO NOT USE FOR: deploy models (use microsoft-foundry), Azure Functions (use azure-functions), databases (use azure-postgres).
gate-mcp-installer
One-click installer and configurator for Gate MCP (mcporter) in OpenClaw. Use when the user wants to (1) Install mcporter CLI tool, (2) Configure Gate MCP server connection, (3) Verify Gate MCP setup, or (4) Troubleshoot Gate MCP connectivity issues.
gate-exchange-spot
Gate spot trading and account operations skill. Use this skill whenever the user asks to buy/sell crypto, check account value, cancel/amend spot orders, place conditional buy/sell plans, verify fills, or perform coin-to-coin swaps in Gate spot trading. Trigger phrases include 'buy coin', 'sell coin', 'monitor market', 'cancel order', 'amend order', 'break-even price', 'rebalance', 'spot trading', 'buy/sell', or any request that combines spot order execution with account checks.
gate-exchange-marketanalysis
The market analysis function of Gate Exchange — liquidity, momentum, liquidation, funding arbitrage, basis, manipulation risk, order book explainer, slippage simulation. Use when the user asks about liquidity, depth, slippage, buy/sell pressure, liquidation, funding rate arbitrage, basis/premium, manipulation risk, order book explanation, or slippage simulation (e.g. market buy $X slippage). Trigger phrases: liquidity, depth, slippage, momentum, buy/sell pressure, liquidation, squeeze, funding rate, arbitrage, basis, premium, manipulation, order book, spread, slippage simulation.
gate-exchange-futures
The USDT perpetual futures trading function of Gate Exchange: open position, close position, cancel order, amend order. Trigger phrases: open position, close position, cancel order, amend order, reverse, close all.
gate-dex-market
Gate Wallet market data and token info queries. K-line, transaction stats, liquidity, token details, rankings, security audit, new token discovery. Use when users ask about market data, prices, or token info. All queries require no authentication. Not for executing trades.
testing-gate
Gate 6 - Verify tests exist and cover critical paths. Issues result in WARNINGS (encourages tests, doesn't block).
security-gate
Verify security considerations were addressed before shipping. Issues result in WARNINGS that strongly recommend fixing.
performance-gate
Verify performance implications were considered and no obvious anti-patterns exist. Issues result in WARNINGS.
fundamentals-gate
Verify code quality standards are met - naming, structure, DRY principles. Issues result in SUGGESTIONS for improvement.
error-handling-gate
Verify errors are handled gracefully with meaningful user feedback. Issues result in WARNINGS.