comprehension-gate

Run a seven-dimension pre-merge review and generate a COMPREHENSION_ARTIFACT.md verdict.

Updated Apr 13, 2026
One-click install
npx skills add https://github.com/az9713/dark-code-skills --skill comprehension-gate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: comprehension-gate
Source: https://github.com/az9713/dark-code-skills/tree/main/skills/comprehension-gate
Command: npx skills add https://github.com/az9713/dark-code-skills --skill comprehension-gate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automated, multi-dimensional pre-merge reviews to detect dark-code risk and ensure changes are explainable and auditable.

Core Features & Use Cases

  • Seven-dimension analysis: credential exposure, cross-service side effects, blast radius, state/persistence, token TTL management, implicit assumptions, and explainability.
  • COMPREHENSION_ARTIFACT.md generation: produces a findings table and a verdict (CLEAR / REVIEW REQUIRED / HOLD).
  • Pre-merge governance for AI-generated code and for changes that touch shared resources, authentication flows, or token handling.

Quick Start

Run the comprehension gate against the current diff to generate a COMPREHENSION_ARTIFACT.md and a verdict.

Frequently Asked Questions about comprehension-gate

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is a pre-merge code comprehension review and why is it needed?

A pre-merge code comprehension review analyzes changes across seven dimensions to prevent dark-code risk. It ensures modifications to shared resources or authentication flows are explainable, auditable, and safe before deployment.

How do I perform a multi-dimensional pre-merge review on AI-generated code?

Run the comprehension gate against your current diff to perform multi-dimensional pre-merge review on AI-generated code. It guides context gathering, analyzes credential exposure and side effects, then generates a COMPREHENSION_ARTIFACT.md with a final verdict.

Does pre-merge comprehension analysis work for changes touching authentication flows and token TTL management?

Yes, pre-merge comprehension analysis explicitly handles changes touching authentication flows and token TTL management. It evaluates these specific areas during its seven-dimension review to identify implicit assumptions and verify safe state persistence.

What does the COMPREHENSION_ARTIFACT.md file contain after a code review?

The COMPREHENSION_ARTIFACT.md contains a detailed findings table from the seven-dimension analysis and a final deployment verdict. The verdict is either CLEAR, REVIEW REQUIRED, or HOLD to support safe deployment decisions.

How does seven-dimension code review detect dark-code risk in shared resources?

Seven-dimension code review detects dark-code risk by analyzing blast radius, cross-service side effects, and explainability for changes in shared resources. This structured analysis exposes hidden implicit assumptions that automated tests often miss.

When should I use a comprehension gate instead of a standard code review?

Use a comprehension gate instead of standard code review when evaluating complex changes across modules, especially AI-generated code or modifications to shared resources. It provides a rigorous seven-dimension analysis to prevent unexplainable dark-code from reaching production.