@@ -12,34 +12,13 @@ data model, CDK stack structure, and deployment patterns.
1212spec-driven-presentation-maker consists of 4 layers.
1313Each layer is a thin wrapper around the previous one — use only the layers you need.
1414
15- ```
16- ┌─────────────────────────────────────────────────────────────┐
17- │ Layer 4: Agent + Web UI │
18- │ Strands Agent, React UI, REST API │
19- │ ┌─────────────────────────────────────────────────────────┐│
20- │ │ Layer 3: Remote MCP Server ││
21- │ │ AgentCore Runtime, DDB + S3, JWT auth ││
22- │ │ ┌─────────────────────────────────────────────────────┐││
23- │ │ │ Layer 2: Local MCP Server │││
24- │ │ │ stdio MCP tools │││
25- │ │ │ ┌─────────────────────────────────────────────────┐│││
26- │ │ │ │ Layer 1: Skill (Engine) ││││
27- │ │ │ │ python-pptx, references, templates ││││
28- │ │ │ └─────────────────────────────────────────────────┘│││
29- │ │ └─────────────────────────────────────────────────────┘││
30- │ └─────────────────────────────────────────────────────────┘│
31- └─────────────────────────────────────────────────────────────┘
32- ```
15+ ![ 4layer-architecture] ( ../assets/4layer-architecture-en.png )
3316
3417### Dependency Direction
3518
3619Dependencies always flow top-down.
3720
38- ```
39- web-ui ──→ api ──→ agent ──→ mcp-server ──→ engine (skill/sdpm)
40- mcp-local ──→ engine
41- png-worker (independent, SQS-driven)
42- ```
21+ ![ dependency-direction] ( ../assets/dependency-direction-en.png )
4322
4423---
4524
@@ -85,7 +64,6 @@ MCP Client → AgentCore Runtime → MCP Server Container
8564
8665Additional tools over Layer 2:
8766- ` run_python ` — Execute Python in Amazon Bedrock AgentCore Code Interpreter sandbox (edit deck workspace, analyze data)
88- - ` code_to_slide ` — Syntax-highlighted code block saved as S3 include file
8967- ` search_slides ` — Semantic slide search via Amazon Bedrock Knowledge Base (optional)
9068
9169### Storage
@@ -160,33 +138,8 @@ The agent's system prompt is minimal — workflow knowledge is dynamically retri
160138
161139### Layer 4 (Full Stack) Data Flow
162140
163- ```
164- User (Browser)
165- │
166- │ HTTPS (JWT Bearer)
167- ▼
168- CloudFront + S3 (React SPA)
169- │
170- │ REST API / SSE
171- ▼
172- API Gateway + Lambda ─────────────────────┐
173- │ │
174- │ AgentCore Runtime │ DynamoDB (deck list,
175- ▼ │ templates, authorization)
176- Strands Agent │
177- │ │ S3 (thumbnail retrieval,
178- │ MCP Protocol │ PPTX download)
179- ▼ │
180- MCP Server (AgentCore Runtime) │
181- │ │
182- ├──→ DynamoDB (deck CRUD) │
183- ├──→ S3 (workspace read/write) │
184- ├──→ S3 (PPTX generation/storage) │
185- └──→ SQS ──→ PNG Worker (Fargate) │
186- │ │
187- ├──→ S3 (PNG storage) │
188- └──→ S3 (autofit bake) │
189- ```
141+
142+ ![ data-flow] ( ../assets/data-flow-en.png )
190143
191144### Slide Generation Steps
192145
@@ -207,16 +160,7 @@ MCP Server (AgentCore Runtime) │
207160
208161spec-driven-presentation-maker integrates with any OIDC-compliant IdP (Identity Provider).
209162
210- ```
211- ┌──────────────┐ JWT Bearer Token ┌──────────────────┐
212- │ IdP │ ◀──────────────────────▶ │ AgentCore │
213- │ │ │ Runtime │
214- │ · Cognito │ OIDC Discovery URL │ │
215- │ · Entra ID │ ─────────────────────── ▶│ JWT validation │
216- │ · Auth0 │ │ → user_id │
217- │ · Okta │ │ → forwarded │
218- └──────────────┘ └──────────────────┘
219- ```
163+ ![ jwt-auth-flow] ( ../assets/jwt-auth-flow-en.png )
220164
221165- Amazon Bedrock AgentCore Runtime's ` customJwtAuthorizer ` validates the JWT
222166- The JWT ` sub ` claim is propagated as ` user_id ` to the application
@@ -281,29 +225,7 @@ To add custom roles (e.g., team-based access), modify the `resolve_role` functio
281225
282226### Stack Dependencies
283227
284- ```
285- ┌──────────────┐
286- │ AuthStack │
287- │ (Cognito) │
288- └──────┬───────┘
289- │
290- ┌──────────────┐ │ ┌─────────────────┐
291- │ DataStack │───────────┼────────▶│ RuntimeStack │
292- │ (DDB + S3) │──┐ │ │ (MCP Server) │
293- └──────────────┘ │ │ └────────┬────────┘
294- │ │ │
295- ┌────────────────┐│ │ ▼
296- │ PngWorkerStack ├┘ │ ┌─────────────────┐
297- │ (Fargate + SQS)│ │ │ AgentStack │
298- └────────────────┘ │ │ (Strands Agent)│
299- │ └────────┬────────┘
300- │ │
301- │ ▼
302- │ ┌─────────────────┐
303- └────────▶│ WebUiStack │
304- │ (React SPA) │
305- └─────────────────┘
306- ```
228+ ![ cdk-dependencies] ( ../assets/cdk-dependencies.png )
307229
308230### Stack Roles
309231
0 commit comments