SCRUM flow skill for review and quality inspection of design-code alignment.
How this skill is triggered — by the user, by Claude, or both
Slash command
/everything-claude-code:ai4pb-auditThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
**Context:**
Context: You have just completed the coding implementation for the system of this project. I need you to audit the "As-Built" architecture against the provided "As-Designed" Knowledge Graph.
Input Data:
design\KG\SystemArchitecture.json to understand the architecture.KG View Resolution Rules (MANDATORY):
elements, relationships, and views together before auditing any View.views[*].included_elements and views[*].included_relationships are ID references only, not self-contained semantics.elements[*] and every included relationship ID in relationships[*].relationships[*].Constraint:
DO NOT output the full JSON. Provide a structured Audit & Change Report in a temporary markdown file design\temp\audit.md only. I will use this report to manually update my modeling tool.
Task 1: Traceability Recovery & Architecture Audit
Compare the design\KG\SystemArchitecture.json content against your actual code implementation.
Traceability Recovery (CRITICAL):
code_paths attribute for every element. If it is missing, incorrect, or incomplete, you must flag it for update.[TRACEABILITY - UPDATE] when a change is required (code_paths missing/incorrect/incomplete, or element metadata must be corrected). If an element is already aligned, do not include it in the report.[ELEMENT - ADD] request.Elements (Add):
Elements (Modify):
name and description.code_paths and metadata.[ELEMENT - MODIFY], you MUST provide complete target-state (TOBE) content for every changed field, including full replacement text for description and full replacement value for any changed attributes.Elements (Delete vs. Future):
Relationships:
ArchiMate_Realization (Class implements Interface).ArchiMate_Serving (Infrastructure hosts App).ArchiMate_Access (App reads/writes DB).ArchiMate_Composition (Parent module contains Sub-module).ArchiMate_Triggering (Event triggers Task).Task 2: Business Layer Consulting (Gap Analysis)
Review the BusinessLayer nodes in the JSON against your code.
Task 3: Comprehensive README & Documentation Update
README.md files throughout the codebase (root and subdirectories).Task 4: Strategy & Architecture Compliance Review
Task 5: Knowledge Graph Structure Reorganization (CRITICAL) Reorganize the architecture structure proposal using Progressive Disclosure and Separation of Concerns principles.
Progressive Disclosure Rules:
Stakeholders, Concerns, Purpose, Scope as a separate standalone viewpoint section.included_elements and included_relationships IDs against the top-level arrays so View scope decisions use fully resolved semantics.Separation of Concerns Rules:
Required Reorganization Actions:
browser_path style paths. If proposing a new View, provide its exact target browser path. If modifying/splitting/merging, provide both current and target browser paths.Constraint:
elements, relationships, views, browser_path.View-local IDs only and globally resolved relationship semantics.Output Format:
Part 1: The Architecture Change Report Please use this exact format for easy parsing:
Existing Element Name (Use exact ID or Name from JSON)["path/to/implementation_file.py", "path/to/class_file.py"]New implementation / Refactoring / Correction requiredN elements verified as already aligned and omitted from [TRACEABILITY - UPDATE].Exact Code NameApplicationComponent (or other ArchiMate type)Exact View Name (Must exist in JSON)1-sentence description.code_paths = ["path/to/file.py"]Existing Element NameComplete replacement value or N/AComplete replacement description text (full content, not delta)attribute_name_1 = complete replacement valueattribute_name_2 = complete replacement valueComplete replacement path or N/AElement AElement BServing (or other ArchiMate relationship)Exact View Name (Must exist in JSON)Why this exists.Part 2: Business Gap Analysis
Part 3: Documentation & README Synchronization
path/to/README.mdPart 4: Strategy & Architecture Compliance Report
Part 5: KG Reorganization Plan (Progressive Disclosure + SoC)
PASS / PARTIAL / FAIL with rationale.PASS / PARTIAL / FAIL with rationale.New View NameModel/.../.../New View NameSingle concern this view explainsMust include Stakeholders / Concerns / Purpose / Scope in plain text["id1", "id2", ...]["id1", "id2", ...]Why this reduces cognitive loadExisting View NameModel/.../.../Existing View NameModel/.../.../Updated View NameRename / Narrow Scope / Re-layoutCurrent concern mixNew focused concernInclude Stakeholders / Concerns / Purpose / Scope in plain textExisting overloaded ViewModel/.../.../Existing overloaded View["View A", "View B", ...]["Model/.../.../View A", "Model/.../.../View B", ...]Concern boundaries used for splitFor each new View, include Stakeholders / Concerns / Purpose / Scope in its description["View A", "View B"]["Model/.../.../View A", "Model/.../.../View B"]Merged View NameModel/.../.../Merged View NameWhy these views are redundantMerged target View description must include Stakeholders / Concerns / Purpose / ScopeID or Namecurrent/pathtarget/pathOwnership clarity / SoCID or statementView NameView NameReadability / clutter reductionnpx claudepluginhub derekhu0002/ai4pb-orchestratorCreates structured, bite-sized implementation plans from specs or requirements before writing code. Useful for breaking down multi-step tasks into testable steps with file structure and task boundaries.