dark-code-audit

Analyze codebase comprehension gaps and generate a darkness report with per-module scores.

4|1|Updated Apr 11, 2026
One-click install
npx skills add https://github.com/m2ai-portfolio/m2ai-skills-pack --skill dark-code-audit-m2ai-portfolio
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dark-code-audit
Source: https://github.com/m2ai-portfolio/m2ai-skills-pack/tree/main/skills/dark-code-audit
Command: npx skills add https://github.com/m2ai-portfolio/m2ai-skills-pack --skill dark-code-audit-m2ai-portfolio

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Identify and quantify gaps in human comprehension across a codebase by producing a darkness report.

Core Features & Use Cases

  • Module discovery across languages and boundaries
  • Darkness scoring across Authorship Signal, Decision Trail, Behavioral Contracts, Dependency Awareness
  • Output two-fold: heat map and prioritized TODOs for remediation
  • Use Case: onboarding a new repo, auditing AI-generated code risk, or periodic health checks.

Quick Start

Scan your repository with the dark-code-audit to generate a darkness report.

Frequently Asked Questions about dark-code-audit

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

FAQPage Schema
How do I identify gaps in human comprehension across a large codebase?

To identify comprehension gaps in a codebase, you can generate a darkness report that analyzes authorship signals, decision trails, behavioral contracts, and dependency relationships to produce per-module scores and a heat map.

How do I audit AI-generated code risk in a new repository?

You can audit AI-generated code risk by scanning the repository to produce a darkness report that quantifies missing human comprehension and outputs prioritized TODOs for remediation.

Can I perform module discovery and darkness scoring across different programming languages?

Yes, the darkness scoring process performs module discovery across languages and boundaries, evaluating authorship signals and dependency awareness to quantify comprehension gaps per module.

What is the best way to visualize codebase health for periodic checks?

The best way to visualize codebase health is to generate an aggregate heat map that highlights per-module darkness scores, providing a clear view of where code understanding is missing across the repository.

Does the darkness report provide actionable remediation steps for onboarding a new repo?

Yes, the darkness report outputs prioritized TODOs for remediation alongside the heat map, making it suitable for onboarding new repositories by highlighting exactly where code comprehension needs improvement.

When should I use a codebase darkness report instead of standard code coverage analysis?

You should use a darkness report when you need to quantify human comprehension gaps rather than test execution coverage, such as when auditing AI-generated code risk or performing periodic health checks across large codebases.