%%{init: {'theme':'base', 'themeVariables': {'lineColor':'#888888', 'edgeLabelBackground':'#ffffff', 'clusterBorder':'#b0b0b0', 'clusterBkg':'#d4e8fb', 'primaryColor':'#ffe9b3'}}}%%
graph LR
    Root(["AGDT<br/>convenience<br/>functions"])

    Root --> Doc["📄 Documentation"]
    Doc --> D1["Keep docs in sync with code"]
    Doc --> D2["Auto-generate architecture views"]
    Doc --> D3["Detect stale README / ADRs"]

    Root --> Iss["🔎 Issue analysis"]
    Iss --> I1["Crawl App Insights logs"]
    Iss --> I2["Correlate traces to a Jira issue"]
    Iss --> I3["Draft reproduction + root cause"]

    Root --> Best["✅ Best-practice checks"]
    Best --> B1["Design principles (SOLID, DDD)"]
    Best --> B2["Tech-stack design patterns"]
    Best --> B3["Security / OWASP scans"]

    Root --> Agent["🤖 Agentic-readiness of a repo"]
    Agent --> A1["Required dirs & files present"]
    Agent --> A2["copilot-instructions.md up to date"]
    Agent --> A3["AGENTS.md / skills / prompts valid"]

    Root --> Hyg["🧹 Delivery hygiene"]
    Hyg --> H1["One-commit-per-PR"]
    Hyg --> H2["Conventional commits + issue refs"]
    Hyg --> H3["Branch naming conventions"]
