RE

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.zip

Installs 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 issues
81 charsno explicit “when” trigger
Beginner

Key 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

You give it
repository root, coldpress.yaml (optional)
You get back
Repo Structure Audit Report

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.yaml recommended for expected structure reference

Process

  1. Structural drift check. Compare actual directory structure against expected layout from coldpress.yaml or project conventions:

    • Missing expected directories
    • Unexpected directories that don't fit the pattern
    • Files in wrong locations
  2. Duplication scan. Find files with:

    • Identical content (hash comparison)
    • Near-identical content (same purpose, different locations)
    • Overlapping documentation (same concept documented in multiple places)
  3. Dead file detection. Identify:

    • Empty files (only .gitkeep content)
    • Files not imported or referenced anywhere
    • Stale output artifacts from old workflow runs
    • Orphaned config files for removed features
  4. Submodule integrity check (if applicable):

    • Submodules are populated (not empty)
    • No uncommitted changes in submodules
    • Pinned to expected commits
  5. 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
  6. 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

VersionDateAuthorChanges
1.02026-04-08AlfredMigrated 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.

SkillInstallsUpdatedSafetyDifficulty
repo-structure-audit (this skill)03moNo flagsBeginner
effective-go3239moNo flagsBeginner
solid-principles579moNo flagsIntermediate
typescript-review392moNo flagsIntermediate

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.

323536

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.

57236

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.

39178

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.

17135

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.

1597

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.

2877

Search skills

Search the agent skills registry