repo-structure-audit
Scans the codebase for file duplication, structural drift, and stale artifacts to improve repository health.
Install
mkdir -p .claude/skills/repo-structure-audit && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/11615" && unzip -o skill.zip -d .claude/skills/repo-structure-audit && rm skill.zipInstalls to .claude/skills/repo-structure-audit
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Scan repository for file duplication, structural drift, and organizational issuesKey capabilities
- →Compare actual directory structure against expected layout.
- →Find files with identical or near-identical content.
- →Identify empty, unreferenced, or stale output files.
- →Check submodule integrity, ensuring they are populated and pinned.
- →Look for old build artifacts not in .gitignore.
- →Generate a report with critical, advisory, and clean findings.
How it works
The skill compares the repository structure to conventions, scans for duplication and dead files, checks submodule integrity, and generates a detailed report.
Inputs & outputs
When to use repo-structure-audit
- →Scan repo for duplication
- →Check for structural drift
- →Clean up orphaned files
About this skill
Purpose
Scans the project repository for file duplication, stale artifacts, documentation overlap, submodule integrity, dead files, and structural drift from the expected project layout.
When to Use
- "audit repo structure"
- "check for overlaps"
- "scan for duplication"
- Periodically during development to catch structural drift
- After large refactors or reorganizations
- When the repo feels "messy" and needs inventory
Prerequisites
- Must be run from a git repository root
coldpress.yamlrecommended for expected structure reference
Process
-
Structural drift check. Compare actual directory structure against expected layout from
coldpress.yamlor project conventions:- Missing expected directories
- Unexpected directories that don't fit the pattern
- Files in wrong locations
-
Duplication scan. Find files with:
- Identical content (hash comparison)
- Near-identical content (same purpose, different locations)
- Overlapping documentation (same concept documented in multiple places)
-
Dead file detection. Identify:
- Empty files (only
.gitkeepcontent) - Files not imported or referenced anywhere
- Stale output artifacts from old workflow runs
- Orphaned config files for removed features
- Empty files (only
-
Submodule integrity check (if applicable):
- Submodules are populated (not empty)
- No uncommitted changes in submodules
- Pinned to expected commits
-
Stale artifact check. Look for:
- Old build artifacts not in
.gitignore - Accumulated output files from previous skill runs
- Temporary files that should have been cleaned up
- Old build artifacts not in
-
Generate report with:
- Summary of findings
- Critical findings (duplication, drift)
- Advisory findings (stale files, minor issues)
- Clean areas (what's well-organized)
- Recommended actions
Output
A repo structure audit report with findings categorized as critical, advisory, or clean, with specific recommended actions.
Version Control
| Version | Date | Author | Changes |
|---|---|---|---|
| 1.0 | 2026-04-08 | Alfred | Migrated from repo-structure-audit, adapted to coldpress-os schema |
When not to use it
- →When not run from a git repository root.
- →When the user does not want a report on structural issues.
Limitations
- →Must be run from a git repository root.
- →The skill scans the project repository for file duplication, stale artifacts, documentation overlap, submodule integrity, dead files, and structural drift.
How it compares
This skill provides a structured audit report with categorized findings and recommended actions, unlike a manual review of repository files.
Compared to similar skills
repo-structure-audit side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| repo-structure-audit (this skill) | 0 | 3mo | No flags | Beginner |
| effective-go | 323 | 9mo | No flags | Beginner |
| solid-principles | 57 | 9mo | No flags | Intermediate |
| typescript-review | 39 | 2mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
effective-go
openshift
Apply Go best practices, idioms, and conventions from golang.org/doc/effective_go. Use when writing, reviewing, or refactoring Go code to ensure idiomatic, clean, and efficient implementations.
solid-principles
SmidigStorm
Enforce SOLID principles (Single Responsibility, Open/Closed, Liskov Substitution, Interface Segregation, Dependency Inversion) in object-oriented design. Use when writing or reviewing classes and modules.
typescript-review
metabase
Review TypeScript and JavaScript code changes for compliance with Metabase coding standards, style violations, and code quality issues. Use when reviewing pull requests or diffs containing TypeScript/JavaScript code.
ast-grep
ast-grep
Guide for writing ast-grep rules to perform structural code search and analysis. Use when users need to search codebases using Abstract Syntax Tree (AST) patterns, find specific code structures, or perform complex code queries that go beyond simple text search. This skill should be used when users ask to search for code patterns, find specific language constructs, or locate code with particular structural characteristics.
serena
massgen
This skill provides symbol-level code understanding and navigation using Language Server Protocol (LSP). Enables IDE-like capabilities for finding symbols, tracking references, and making precise code edits at the symbol level.
typescript
lobehub
TypeScript code style and optimization guidelines. Use when writing TypeScript code (.ts, .tsx, .mts files), reviewing code quality, or implementing type-safe patterns. Triggers on TypeScript development, type safety questions, or code style discussions.