ai4pb-audit

Audit As-Built architecture against the As-Designed Knowledge Graph.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/derekhu0002/ai4pb-orchestrator --skill ai4pb-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ai4pb-audit
Source: https://github.com/derekhu0002/ai4pb-orchestrator/tree/main/.opencode/skills/ai4pb-audit
Command: npx skills add https://github.com/derekhu0002/ai4pb-orchestrator --skill ai4pb-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Audits design-code alignment by comparing the As-Built architecture with the As-Designed Knowledge Graph to ensure traceability and consistency across the codebase and architecture model.

Core Features & Use Cases

  • Traceability recovery: verify each application component, service, and interface links to concrete code files and update missing code_paths.
  • Architecture-aware auditing: resolve view references by reversing IDs against elements, relationships, and views before drawing conclusions.
  • Actionable reporting: generate an Audit & Change Report in design\temp\audit.md without exposing full JSON, for manual model updates.

Quick Start

Provide the current codebase and the As-Designed KG to start the audit process and generate the temporary audit file.

Frequently Asked Questions about ai4pb-audit

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

FAQPage Schema
How do I audit my codebase against the As-Designed architecture?

To audit your codebase against the As-Designed architecture, provide your current code and the SystemArchitecture.json knowledge graph. The audit resolves element and relationship IDs, verifies traceability, and outputs a structured markdown report.

What is design-code architectural traceability recovery?

Design-code traceability recovery verifies that each application component, service, and interface in your knowledge graph links to concrete code files. It identifies missing code_paths to ensure your built architecture matches the designed model.

How do I generate an architecture audit report without exposing the full JSON?

Generate an architecture audit report by running the audit against your knowledge graph and codebase. It outputs a structured Audit & Change Report in a temporary markdown file at design\temp\audit.md, avoiding full JSON exposure.

Does the architectural audit resolve references across elements, relationships, and views?

Yes, the architectural audit performs architecture-aware auditing by reversing view references against elements, relationships, and views. This full ID resolution ensures accurate traceability checks before drawing compliance conclusions.

Can I use this audit to update missing code paths in my architecture model?

Yes, you can use this audit to identify and update missing code paths in your architecture model. The audit verifies that components link to concrete code files and outputs an actionable Change Report for manual model updates.