Skip to content

Commit 72e9f8b

Browse files
committed
Refactor code structure for improved readability and maintainability
1 parent 50c9fb8 commit 72e9f8b

13 files changed

Lines changed: 47 additions & 18 deletions
348 KB
Loading
201 KB
Loading
545 KB
Loading
178 KB
Loading
492 KB
Loading
514 KB
Loading
252 KB
Loading
283 KB
Loading
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
graph TB
2+
subgraph invoke["Invocation Layer"]
3+
direction LR
4+
USER["👤 Developer\n(Copilot Chat)"]
5+
PROMPT["📋 Prompt\nOn-demand template\ne.g. a11y-scan.prompt.md"]
6+
end
7+
8+
subgraph agents["Agent Layer"]
9+
direction LR
10+
AGENT["🤖 Agent\nInvoked via @agent-name\nPerforms analysis & decisions"]
11+
ORCH["🎯 Orchestrator Agent\nDelegates to sub-agents\ne.g. SecurityAgent"]
12+
SUB1["🔍 Sub-Agent 1\ne.g. SecurityReviewer"]
13+
SUB2["🔍 Sub-Agent 2\ne.g. PipelineSecurity"]
14+
end
15+
16+
subgraph context["Context Layer"]
17+
direction LR
18+
SKILL["📚 Skill\nLoaded on demand\nDomain knowledge package"]
19+
INSTR["📏 Instruction\nAlways active\nRules via applyTo patterns"]
20+
end
21+
22+
USER -- "@agent-name" --> AGENT
23+
USER -- "Run prompt" --> PROMPT
24+
PROMPT -- "Specifies agent" --> AGENT
25+
AGENT -- "Loads when needed" --> SKILL
26+
INSTR -. "Auto-applied to\nmatching files" .-> AGENT
27+
ORCH -- "Handoff" --> SUB1
28+
ORCH -- "Handoff" --> SUB2
29+
SUB1 -- "Loads when needed" --> SKILL
30+
31+
style AGENT fill:#4A90D9,stroke:#2C5F8A,color:#fff
32+
style ORCH fill:#4A90D9,stroke:#2C5F8A,color:#fff
33+
style SUB1 fill:#6BA3D6,stroke:#2C5F8A,color:#fff
34+
style SUB2 fill:#6BA3D6,stroke:#2C5F8A,color:#fff
35+
style SKILL fill:#7BC67E,stroke:#3A7D3C,color:#fff
36+
style INSTR fill:#F5A623,stroke:#C47D0E,color:#fff
37+
style PROMPT fill:#9B59B6,stroke:#6C3483,color:#fff
38+
style USER fill:#34495E,stroke:#1C2833,color:#fff
59.6 KB
Loading

0 commit comments

Comments
 (0)