GiovanniPasq/cognitive-gap
GiovanniPasq/cognitive-gap has 7 GitHub stars and 0 forks. Star changes are not measured yet. Last checked 2026-11-14 05:09 UTC. Last push 2026-11-07.
Gemessener Sternzuwachs
- in 24h
- Verlauf wird gesammelt
- in 7 days
- Verlauf wird gesammelt
- in 15 days
- Verlauf wird gesammelt
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
Über uns
An open-source Agent Skill that helps developers understand, verify, and maintain the code they build with AI.
EntwicklerwerkzeugeREADME.md
Original
Cognitive Gap
Don't just ship AI-generated code. Understand it.
An open-source Agent Skill that helps you understand and maintain the code you build with AI. It accompanies the whole task, from choosing an approach through implementation, debugging, and verification, across files and commits.
Quick start in VS Code
Open your project folder in VS Code, then open Terminal → New Terminal. Run the command for your agent:
GitHub Copilot:
mkdir -p .github/skills
git clone --depth 1 https://github.com/GiovanniPasq/cognitive-gap.git .github/skills/cognitive-gap
Codex extension:
mkdir -p .agents/skills
git clone --depth 1 https://github.com/GiovanniPasq/cognitive-gap.git .agents/skills/cognitive-gap
Open your agent's chat and give it a task:
Use cognitive-gap to implement team invitations in this project.
Explain the approach before editing, then explain important decisions
as you work. Show how the main flow fits together and verify the result.
Leave me able to debug and maintain the feature.
Use /cognitive-gap in Copilot or $cognitive-gap in Codex to invoke it explicitly. Installation for other agents.
Why Cognitive Gap?
We give coding agents specs, documentation, and existing code, then ask them to ship features quickly. As changes accumulate, it becomes harder to track which assumptions became implementation decisions, where behavior diverged from the spec, and why.
A cognitive gap opens when the code grows beyond what we can explain, verify, or confidently change. Cognitive debt is the effort future work inherits when those decisions must be reconstructed.
Cognitive Gap keeps the original intent, important decisions, and verification visible while the agent works, so you can follow and maintain the result.
Further reading: Anthropic's research on AI assistance and coding skills and Microsoft Research and Carnegie Mellon's survey on AI and critical thinking.
How it works
- Start from your intent. Inspect the project, connect the request to observable behavior, and state material assumptions before modifying code.
- Build and explain through mechanisms. Complete the change while explaining key tradeoffs, state transitions, and boundaries. Add a visual diagram when interactions are complex.
- Verify and hand back ownership. Ground explanations in actual checks, separate verified facts from inferences, and highlight the exact files and failure points to watch.
Depth naturally follows the task: a one-line bug fix gets a concise summary; a distributed transaction gets a detailed failure-boundary trace. Routine edits keep moving without blocking approval gates.
Example outputs
Examples from local test projects.
A retry after the charge already committed
Request: “Explain this checkout implementation with a diagram. Show existing behavior, including the bug. Don't edit anything.”
A timeout does not mean rollback. This implementation can charge the same order twice because each retry changes the idempotency key.
sequenceDiagram
participant C as CheckoutService.charge
participant R as RetryClient.execute
participant G as Gateway.send
C->>R: Charge order, base key charge:1250
R->>G: Attempt 0, key charge:1250:0
G->>G: Commit charge 1
G--xR: Response lost after commit
R->>G: Attempt 1, key charge:1250:1
G->>G: Different key, commit charge 2
G-->>R: Return charge 2
- Mechanism:
CheckoutService.chargebuilds an amount-based key;RetryClient.executeappends the attempt counter.Gateway.sendcommits before simulating response loss. - Proposed repair: Use a stable key identifying the order within its tenant and preserve it across retries.
- Evidence: Both existing fixture tests passed, but a separate post-commit timeout simulation reproduced two charges.
A rolling migration with green tests
Request: “Review only the staged rollout. Can old workers and queued events coexist with the new version? Don't edit anything.”
Do not ship this staged rollout under the documented compatibility contract.
The migration renames a column that live old workers still read. New producers emit an event format that old consumers cannot read, while new consumers reject queued old events. Converting integer cents through floating point also loses precision:
9007199254740993becomes9007199254740992. The new outbox key omits the tenant ID, allowing cross-tenant key collisions.All three local tests passed. Separate in-memory reproductions demonstrated those failures. The passing suite covers ordinary new-version behavior; it does not establish mixed-version rollout safety.
The review distinguishes the staged candidate from unstaged repairs and leaves working-tree drafts intact.
Install
The skill uses the open Agent Skills format. Choose the directory and invocation for your agent:
| Agent | Project skills directory | User skills directory | Invoke |
|---|---|---|---|
| GitHub Copilot | .github/skills/ |
~/.copilot/skills/ |
/cognitive-gap |
| Codex | .agents/skills/ |
~/.agents/skills/ |
$cognitive-gap |
| Claude Code | .claude/skills/ |
~/.claude/skills/ |
/cognitive-gap |
| Cursor | .cursor/skills/ or .agents/skills/ |
~/.cursor/skills/ |
/cognitive-gap |
| Antigravity | .agents/skills/ |
~/.gemini/config/skills/ |
Mention cognitive-gap by name |
| Windsurf / Devin | .devin/skills/ or .agents/skills/ |
~/.config/devin/skills/ |
/cognitive-gap |
Cursor and Antigravity: use the .agents/skills/ command in the quick start.
Claude Code:
mkdir -p .claude/skills
git clone --depth 1 https://github.com/GiovanniPasq/cognitive-gap.git .claude/skills/cognitive-gap
Devin Desktop:
mkdir -p .devin/skills
git clone --depth 1 https://github.com/GiovanniPasq/cognitive-gap.git .devin/skills/cognitive-gap
Existing Windsurf setups can use .windsurf/skills/cognitive-gap/. For all projects, clone into the user directory in the table. Keep SKILL.md, LICENSE, and references/ together when copying manually. The skill needs no runtime dependencies or additional API keys.
Use it
Alongside building features, you can ask:
- Debug: “Use cognitive-gap to fix this retry bug. Explain the cause and verify the repair.”
- Understand existing code: “Use cognitive-gap to explain this cache PR. Trace the flow and compatibility boundary. Don't edit the code.”
- Draft a PR description: “Use cognitive-gap to draft a PR title and description for this branch. Explain the mechanism, important invariants, and verification evidence.”
Ähnliche Projekte entdecken
codecrafters-io/build-your-own-x
Meistere das Programmieren, indem du deine Lieblingstechnologien von Grund auf neu erschaffst.
562,376 Sternepublic-apis/public-apis
Eine gemeinschaftliche Liste kostenloser APIs
498,824 Sternemorluto/rea
Mit Agenten alles per Reverse Engineering untersuchen, vom Verhalten der Anwendung bis hin zu nativen Binärdateien.
458,004 Sterneopenclaw/openclaw
Die KI, die wirklich Dinge erledigt. Jedes Betriebssystem, jede Plattform. Auf die Hummer-Art. 🦞
394,405 Sterne