invest-architecture

Audit codebases against ARCHITECTURE.md doctrine with optional --fix remediation.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/robjonesdesigns/portfolio --skill invest-architecture-robjonesdesigns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: invest-architecture
Source: https://github.com/robjonesdesigns/portfolio/tree/main/.claude/skills/invest-architecture
Command: npx skills add https://github.com/robjonesdesigns/portfolio --skill invest-architecture-robjonesdesigns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Audits the codebase to verify it conforms to the project's architecture doctrine defined in ARCHITECTURE.md. It reads the declared layers, naming conventions, stack, and constraints, and checks the codebase against what YOU declared.

Core Features & Use Cases

  • Doctrine-driven validation: compares the actual architecture against ARCHITECTURE.md, VECTOR.md, and CLAUDE.md.
  • Layer, naming, and import checks: detects misplacements and prohibited imports.
  • Scope-aware auditing: runs on the full project or a specified path, with optional --fix for safe remediation.

Quick Start

Run the audit from the repository root to compare against ARCHITECTURE.md, optionally specifying a path scope and using --fix for safe auto-remediation.

Frequently Asked Questions about invest-architecture

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

FAQPage Schema
How do I audit my codebase against my architecture doctrine?

To audit your codebase against your architecture doctrine, run the tool from the repository root. It reads your declared layers, naming conventions, and import rules from ARCHITECTURE.md, VECTOR.md, and CLAUDE.md, then reports violations for remediation.

What is architecture doctrine validation for a codebase?

Architecture doctrine validation is the process of comparing your actual codebase structure against the rules declared in your ARCHITECTURE.md. It checks layer constraints, naming conventions, stack requirements, and import rules to detect misplacements and prohibited imports.

Can I automatically fix import violations and layer misplacements in my project?

Yes, you can automatically fix import violations and layer misplacements by running the audit with the optional --fix mode. This applies safe, mechanical remediation to resolve detected issues against your declared architecture doctrine.

Does the codebase audit work on a specific path or the entire project?

The codebase audit supports both full project and specified path scopes. You can run it on the entire repository to validate everything against ARCHITECTURE.md, or limit the audit to a specific path to check a targeted section of your codebase.

Why does my codebase audit report prohibited imports after adding new layers?

Your codebase audit reports prohibited imports because the new code violates the import rules declared in your ARCHITECTURE.md. The audit extracts your layer table and constraints, then detects any imports between layers that your doctrine explicitly forbids.