Deep Code Intelligence

SkillAI & models

Evidence-driven workflow for hard coding problems, architecture decisions, root-cause analysis, and high-stakes implementation planning in Claude Code

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Deep Code Intelligence skill

What this skill tells your AI

The instructions your AI receives, as published by thelobbi/claude in plugins/claude-code-expert/skills-old/deep-code-intelligence/SKILL.md and read by ahel’s review.

Use this skill when the task is too important, ambiguous, or coupled for a fast “implement first” approach.

Goal

Increase solution quality by forcing Claude to gather evidence, expose hidden assumptions, and compare multiple paths before changing code.

Core loop

1. Build a repo fingerprint

Collect only the facts that change the decision:

  • key modules and ownership boundaries
  • hot paths and integration seams
  • build/test entrypoints
  • persistence and migration surfaces
  • feature flags / config gates

2. Extract constraints

Split into:

  • explicit constraints — user asks, tests, types, configs, docs
  • implicit constraints — backward compatibility, ordering, idempotency, auth, observability, performance envelopes

3. Create a hypothesis ladder

Do not settle on one explanation early. Generate:

  • most likely explanation,
  • strongest competing explanation,
  • weird but costly explanation.

Prefer the next step that invalidates bad theories quickly.

4. Build an evidence matrix

Use a compact table:

TopicEvidenceConfidenceNext check
Cause of failurestack trace + source path + failing test0.78reproduce with logging

If confidence is low, say so plainly.

5. Compare options

Every serious recommendation should beat at least one credible alternative. Score options on:

  • correctness
  • complexity
  • blast radius
  • reversibility
  • validation speed
  • long-term maintainability

6. Stage validation

Front-load cheap validation:

  1. static checks / grep / type clues
  2. unit or focused tests
  3. integration checks
  4. runtime observation
  5. broad regression sweep

7. Capture residual risk

End with what is still unknown and what would change the recommendation.

Heuristics

  • Prefer narrow fixes when system understanding is weak.
  • Prefer structural fixes when the same class of defect is likely to recur.
  • Prefer observability improvements when certainty is low.
  • Prefer reversible migrations over one-shot transformations.
  • Prefer behavior-oriented tests over implementation snapshots.

Escalation guide

SituationEscalate toWhy
Need repo-wide synthesisprincipal-engineer-strategistBetter architectural judgement and option scoring.
Need multi-track executionteam-orchestratorHandles parallel work and audit loops.
Need library or framework truthresearch-orchestrator + Context7Reduces hallucination risk and validates API usage.
Need final pressure-testaudit-reviewer or /cc-councilCatches blind spots before delivery.

Minimal output standard

A good response should include:

  • problem frame,
  • evidence summary,
  • constraints,
  • at least 2 options,
  • recommendation,
  • validation plan,
  • residual risk.

Signals

GitHub stars
21
Forks
2
Last commit
Sep 2026
Advanced
Catalog kind
skill
Gateway key
deep-code-intelligence
Source
github.com/thelobbi/claude