codebase-integrity
Audit the codebase for dependency conflicts, loose types, duplicated patterns, and import boundary violations.
Skill by dotlas
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/dotlas-codebase-integrity
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: security
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/codebase-integrity
What's inside
- Skill name
codebase-integrity- Description
- Audit the codebase for dependency conflicts, loose types, duplicated patterns, and import boundary violations. Use when reviewing code quality or before major refactors.
- License
- MIT
- Instructions
- 105 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Codebase Integrity Audit You are a **Codebase Integrity Auditor**. Your job is to systematically check this codebase for structural health issues, import/boundary violations, and convention drift — whatever its language, framework, or layout. * * * ## 1. SCOPE Run this audit when asked to check code quality, before a major refactor, or when something “feels off” about the codebase structure. **Always orient first.** Before auditing, learn the project’s actual shape: package manager and workspace layout (single package vs. monorepo), language(s), framework(s), how modules expose their public API, and the conventions the codebase already follows. Read the README, the manifest/config files (e.g. `package.json`, the lockfile, `tsconfig`, workspace/build config), and a few representative modules. Adapt every check below to what you find — never assume a stack the repo doesn’t use. * * * ## 2. AUDIT CHECKLIST Apply the categories that fit the project. For each, derive the concrete rules from the codebase’s own conventions rather than a fixed template. ### 2a. Module / Package Boundary Violations Look for imports that reach past a module or package’s intended public API into its internals: - Deep imports into another package’s internal paths instead of its public entry point. - Bypassing an abstraction the codebase provides (e.g. importing a low-level client directly where a shared wrapper or context is the sanctioned access path). - Cross-layer imports that violate the intended direction of dependency (UI importing data-layer internals, a shared library importing app code, etc.). In a monorepo, scan workspace packages for deep imports across package boundaries. In a single package, check that internal layers don’t reach around their intended interfaces. ### 2b. Validation / Schema Discipline If the project uses a validation or schema layer (e.g. Zod, JSON Schema, types-as-contracts): - Reusable schemas/validators live in a shared location, not duplicated inline at call sites. - Schemas are derived from a single source of truth rather than hand-maintained in parallel with the thing they describe. - Inputs crossing a trust boundary (API handlers, forms, external data) are validated before use. ### 2c. Type Safety - No casts or escape hatches that bypass validation or silence the type checker (`as`, non-null assertions, `@ts-ignore`/`@ts-nocheck`, `any`) on public API surfaces. - Types derived from a single source rather than manually restated where the language supports inference. - Run the project’s type checker if one exists, and treat new errors as findings. ### 2d. Dependency Health - Internal/workspace dependencies use the project’s sanctioned mechanism (e.g. `workspace:*`) rather than ad-hoc version pins or relative paths. - Shared foundational dependencies sit on a consistent version across the project. - No declared dependencies that go unused, and no used dependencies that aren’t declared. ### 2e. Convention Drift - Code living at the wrong layer (business logic in presentational/shared components, app-specific logic in a shared library). - Files in unexpected locations versus where the codebase otherwise colocates them. - State management, error handling, or data-access patterns that diverge from how the rest of the codebase does it. * * * ## 3. OUTPUT FORMAT Present findings as a table: ``` | Severity | Category | File | Issue | Fix | |----------|----------|---------------|------------------|------------------| | 🔴 High | Boundary | <file:line> | <what's wrong> | <how to fix> | | 🟡 Med | Schema | <file:line> | <what's wrong> | <how to fix> | | 🟢 Low | Style | <file:line> | <what's wrong> | <how to fix> | ``` Group by severity, then by category. Include actionable fix descriptions grounded in the codebase’s own conventions. * * * ## 4. AUTO-FIX RULES For low-risk fixes (import-path corrections, type annotations), offer to fix them automatically. For structural changes (moving code between layers, refactoring schemas), present the plan and wait for approval.
From dotlas/skills, MIT.
More from dotlas/skills
- 0.507score
tidy-next-codebase
dotlas
Audit a Next.js codebase for stale/dead code and duplication, turn the findings into a fully deterministic cleanup plan, then execute it as a gated…
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
import-skill
dotlas
Import a third-party skill into this owned catalog (dotlas/skills) from a skills.sh URL, a GitHub repo/subdir, or a pasted `npx skills add` command.
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
commit
dotlas
Commit local changes — inspect the working tree, group into atomic conventional commits, and write messages that match the repo's conventions.
SkillCFreshness: C★ 2Claude Code +9 - 0.487score
impeccable
dotlas
Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or…
SkillCFreshness: C★ 2Claude Code +9 - 0.479score
improve-codebase-architecture
dotlas
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
SkillCFreshness: C★ 2Claude Code +9 - 0.477score
grilling
dotlas
Grill the user relentlessly about a plan, decision, or idea.
SkillCFreshness: C★ 2Claude Code +9 - 0.476score
resolving-merge-conflicts
dotlas
Use when you need to resolve an in-progress git merge/rebase conflict.
SkillCFreshness: C★ 2Claude Code +9 - 0.476score
teach
dotlas
Teach the user a new skill or concept, within this workspace.
SkillCFreshness: C★ 2Claude Code +9 - 0.471score
handoff
dotlas
Compact the current conversation into a handoff document for another agent to pick up.
SkillCFreshness: C★ 2Claude Code +9 - 0.350score
vercel-react-best-practices
vercel
React and Next.js performance optimization guidelines from Vercel Engineering.
SkillCFreshness: C★ 2Claude Code +9
Signals
- Stars
- 2
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jul 23, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/dotlas/skills
- Website
- www.skills.sh/dotlas/skills
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from dotlas
- 0.507score
commit
dotlas
Commit local changes — inspect the working tree, group into atomic conventional commits, and write messages that match the repo's conventions.
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
tidy-next-codebase
dotlas
Audit a Next.js codebase for stale/dead code and duplication, turn the findings into a fully deterministic cleanup plan, then execute it as a gated…
SkillCFreshness: C★ 2Claude Code +9 - 0.507score
import-skill
dotlas
Import a third-party skill into this owned catalog (dotlas/skills) from a skills.sh URL, a GitHub repo/subdir, or a pasted `npx skills add` command.
SkillCFreshness: C★ 2Claude Code +9 - 0.487score
impeccable
dotlas
Use when the user wants to design, redesign, shape, critique, audit, polish, clarify, distill, harden, optimize, adapt, animate, colorize, extract, or…
SkillCFreshness: C★ 2Claude Code +9 - 0.479score
improve-codebase-architecture
dotlas
Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.
SkillCFreshness: C★ 2Claude Code +9 - 0.477score
grilling
dotlas
Grill the user relentlessly about a plan, decision, or idea.
SkillCFreshness: C★ 2Claude Code +9
Cite this page
codebase-integrity skill. Agent Mart. https://agentmart.dev/skills/dotlas-codebase-integrity (last updated 2026-10-24)