Project Maintenance & Health Audit

VerifiedSafe

Performs a comprehensive 7-point audit of a codebase: structure, code hygiene, complexity, technical debt, documentation consistency, terminology drift, and test quality. Helps identify dead code, structural deviations, and documentation gaps, ensuring the project remains maintainable and aligned with architectural standards.

Sby Skills Guide Bot
DevelopmentAdvanced
6/2/2026
Claude Code
#project-maintenance#code-quality#technical-debt#code-audit#code-hygiene

Recommended for

Automated summary

Runs a comprehensive 7-phase audit of a software project: structural integrity, code hygiene, complexity, technical debt, doc/code consistency, documentation coverage, and terminology alignment.

Strengths

  • Covers seven key maintenance dimensions from structure to terminology.
  • Produces actionable fix proposals for every identified issue.
  • Adapts to any programming language with specific thresholds (500 lines per file, 50 lines per function).
  • Integrates task management via tools like todowrite to track progress through phases.

Limitations

  • Requires prior knowledge of project conventions for full effectiveness.
  • Doc/code consistency checks are limited to a sample of 3 main claims.
  • God object detection is qualitative and may lack precision.
When to use it

Use this skill at the end of a sprint or before a major release to clean up and align the codebase with architectural standards.

When not to use it

Avoid using it on code in rapid prototyping phases where technical debt is temporarily accepted.

Security analysis

Safe
Quality score95/100

The skill instructs a code audit (reading files, scanning for patterns) and writing a report to whiteboard. It uses safe task management tools and does not invoke any destructive or exfiltrating operations. No shell commands, network access, or sensitive data exposure.

No concerns found

How this analysis is made

Examples

Full project maintenance audit
Run a full project maintenance and health audit. Execute all 7 phases and write findings to the whiteboard.
Audit with specific focus on technical debt
Perform the maintenance sweep but focus primarily on technical debt: scan for TODOs, FIXMEs, HACKs, and aggregate them by module with criticality analysis.
Structural and consistency check only
Run phases 1 and 5 of the maintenance audit: check structural integrity (file placement, naming conventions) and consistency between documentation and code.

name: flow-maintenance description: >- Perform a comprehensive "Lead Engineer" audit: structure, consistency, code quality, technical debt, documentation coverage, and terminology checks. disable-model-invocation: true

Task: Project Maintenance & Health Audit

Overview

Execute a rigorous 7-point maintenance sweep to identify structural deviations, documentation inconsistencies, dead code, complexity hotspots, technical debt, missing code documentation, and terminology drift. All findings must be actionable and saved to whiteboard.

Context

<context> This command is the "Garbage Collector" and "Building Inspector" for the project. It ensures the codebase remains maintainable, documented, and aligned with architectural standards. It addresses: 1. **Structure**: Files in wrong places. 2. **Consistency**: Docs vs. Code truth. 3. **Hygiene**: Dead code, unused imports, weak tests. 4. **Complexity**: "God objects" and massive functions. 5. **Debt**: Accumulated TODOs. 6. **Language**: Inconsistent terminology. 7. **Doc Coverage**: Missing explanations in code. </context>

Rules & Constraints

<rules> 1. **Output Target**: All findings MUST be written to whiteboard. Start with a timestamped header. 2. **Precision**: Use specific thresholds (e.g., File > 500 lines). 3. **Constructive**: Every "Issue" must have a "Proposed Fix". 4. **Holistic**: Scan `documents/`, `.cursor/`, and source code directories. 5. **Mandatory**: Use a task management tool (e.g., `todo_write`, `todowrite`) to track progress through the 7 phases. 6. **Language Agnostic**: Adapt checks (imports, syntax, test patterns) to the primary language of the project (TS, JS, Py, Go, etc.). </rules>

Instructions

<step_by_step>

  1. Initialize & Plan

    • Use a task management tool (e.g., todo_write, todowrite) to create a plan covering the 7 phases below.
    • Read project whiteboard to preserve existing long-term notes (if any), but clear old automated reports.
    • Identify project's primary language and source directories.
  2. Phase 1: Structural Integrity

    • File placement: Check that all source files reside in expected directories per project conventions (e.g., src/, lib/, scripts/). Flag files at wrong levels.
    • Dead directories: Identify empty or orphaned directories with no purpose.
    • Naming conventions: Verify file and directory names follow project conventions (case, separators).
    • Config files: Ensure project config files (deno.json, package.json, etc.) are at expected locations.
  3. Phase 2: Code Hygiene & Dependencies

    • Dead Code: Identify exported/public symbols in source directories that are never imported/called elsewhere.
    • Unused Imports: Scan source files for imports/includes that are not used in the file body.
    • Test Quality: Read test files (e.g., *.test.*, *_test.*, test_*.py). Flag tests that:
      • Have no assertions.
      • Use trivial assertions (e.g., expect(true).toBe(true), assert True).
      • Are commented out.
  4. Phase 3: Complexity & Hotspots

    • Files: Flag any source file exceeding 500 lines.
    • Functions: Scan for functions/methods exceeding 50 lines.
    • God Objects: Identify classes/modules with mixed concerns (e.g., logic + UI + database in one file).
  5. Phase 4: Technical Debt Aggregation

    • Scan: Search for TODO, FIXME, HACK, XXX tags in the codebase.
    • Group: Organize by file/module.
    • Analysis: Flag any that look critical or like "temporary" fixes that became permanent.
  6. Phase 5: Consistency (Docs vs. Code)

    • Terminology: Extract key terms from README.md and documents/. Check if code uses different synonyms (e.g., "User" in docs vs "Customer" in code).
    • Drift: Pick 3 major claims from documents/*.md (e.g., "The system handles X asynchronously"). Verify if the code actually does that.
  7. Phase 6: Code Documentation Coverage

    • Rule: Every file, class, method, and exported function MUST have documentation (JSDoc, Docstring, Rustdoc, etc.).
    • Check:
      • Responsibility: Does the comment explain what it does?
      • Nuances: For complex logic (cyclomatic complexity > 5 or > 20 lines), are there examples or edge case warnings?
    • Scan: primary source directories.
    • Report: List undocumented symbols.
  8. Phase 7: Reporting

    • Compile all findings into whiteboard with the following format:
      # Maintenance Report (YYYY-MM-DD)
      
      ## 1. Structural Issues
      
      - [ ] File X is in root but should be in Y. (Fix: Move file)
      
      ## 2. Hygiene & Quality
      
      - [ ] Unused export `myFunc` in `utils.*`. (Fix: Delete)
      - [ ] `main.*` is 550 lines. (Fix: Extract `processLogic` to new file)
      
      ## 3. Technical Debt
      
      - [ ] 5 TODOs in `api.*` regarding error handling.
      
      ## 4. Consistency
      
      - [ ] Docs say "User", code says "Client". (Fix: Standardize on User)
      
      ## 5. Documentation Coverage
      
      - [ ] `utils.*` - function `parseData` missing docs. (Fix: Add docs)
      - [ ] `ComplexClass` missing usage example. (Fix: Add example)
      

</step_by_step>

Verification

<verification> [ ] Checked structural integrity (file placement, naming, configs). [ ] Scanned for dead code and unused imports. [ ] Checked file/function length limits (500/50 lines). [ ] Aggregated all TODO/FIXME tags. [ ] Verified documentation terminology vs code usage. [ ] Checked for missing code documentation (File/Class/Method). [ ] Saved structured report to whiteboard. </verification>

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/project-maintenance-health-audit-mma3jsw1/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/project-maintenance-health-audit-mma3jsw1' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/project-maintenance-health-audit-mma3jsw1/download' --output '.skill-downloads/project-maintenance-health-audit-mma3jsw1/SKILL.md.part' && mv '.skill-downloads/project-maintenance-health-audit-mma3jsw1/SKILL.md.part' '.skill-downloads/project-maintenance-health-audit-mma3jsw1/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/project-maintenance-health-audit-mma3jsw1/SKILL.md' && test -s '.skill-downloads/project-maintenance-health-audit-mma3jsw1/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/flow-maintenance' && cp -R '.skill-downloads/project-maintenance-health-audit-mma3jsw1' '.claude/skills/flow-maintenance'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/project-maintenance-health-audit-mma3jsw1'

openskills read 'project-maintenance-health-audit-mma3jsw1'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/project-maintenance-health-audit-mma3jsw1/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills