Skip to content

Commit c1a7e73

Browse files
authored
Merge pull request #1 from aws-samples/docs/update-architecture-and-readme
docs: replace ASCII diagrams with images and align tool/spec names with code
2 parents a26f393 + 66198e1 commit c1a7e73

4 files changed

Lines changed: 15 additions & 190 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,8 @@ Spec-driven presentation applies the concept of Spec-Driven Development from sof
2828

2929
### Workflow
3030

31-
```
32-
Phase 1 Phase 2 Phase 3
33-
Spec Build Slides Generate + Review
34-
35-
┌──────────────────┐ ┌────────────────┐ ┌────────────────┐
36-
│ Briefing │ │ │ │ Generate PPTX │
37-
│ Outline │───▶│ Build slides │─────▶│ Visual review │
38-
│ Art direction │ │ │ │ Polish │
39-
└──────────────────┘ └────────────────┘ └────────────────┘
40-
User dialogue specs/ → JSON PPTX + Preview
41-
```
31+
32+
![workflow](./docs/assets/workflow-en.png)
4233

4334
---
4435

‎README_ja.md‎

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,8 @@
2828

2929
### ワークフロー
3030

31-
```
32-
Phase 1 Phase 2 Phase 3
33-
Spec Build Slides Generate + Review
34-
35-
┌──────────────────┐ ┌────────────────┐ ┌────────────────┐
36-
│ Briefing │ │ │ │ Generate PPTX │
37-
│ Outline │───▶│ Build slides │─────▶│ Visual review │
38-
│ Art direction │ │ │ │ Polish │
39-
└──────────────────┘ └────────────────┘ └────────────────┘
40-
User dialogue specs/ → JSON PPTX + Preview
41-
```
31+
32+
![workflow](./docs/assets/workflow-ja.png)
4233

4334
---
4435

‎docs/en/architecture.md‎

Lines changed: 6 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -12,34 +12,13 @@ data model, CDK stack structure, and deployment patterns.
1212
spec-driven-presentation-maker consists of 4 layers.
1313
Each 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

3619
Dependencies 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

8665
Additional 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

208161
spec-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

‎docs/ja/architecture.md‎

Lines changed: 5 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -12,34 +12,13 @@
1212
spec-driven-presentation-maker は 4 つのレイヤーで構成されます。
1313
各レイヤーは前のレイヤーの薄いラッパーであり、必要なレイヤーだけを選んで利用できます。
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-ja.png)
3316

3417
### レイヤー間の依存方向
3518

3619
依存は常に上から下への一方向です。
3720

38-
```
39-
web-ui ──→ api ──→ agent ──→ mcp-server ──→ engine (skill/sdpm)
40-
mcp-local ──→ engine
41-
png-worker (独立、SQS 駆動)
42-
```
21+
![dependency-direction](../assets/dependency-direction-ja.png)
4322

4423
---
4524

@@ -85,7 +64,6 @@ MCP Client → AgentCore Runtime → MCP Server コンテナ
8564

8665
Layer 2 に対する追加ツール:
8766
- `run_python` — Amazon Bedrock AgentCore Code Interpreter サンドボックスで Python を実行(デッキワークスペースの編集、データ分析)
88-
- `code_to_slide` — シンタックスハイライト付きコードブロックを S3 include ファイルとして保存
8967
- `search_slides` — Amazon Bedrock Knowledge Base によるセマンティックスライド検索(任意)
9068

9169
### ストレージ
@@ -160,33 +138,7 @@ Agent の system prompt は最小限です — ワークフロー知識は MCP S
160138

161139
### Layer 4(フルスタック)のデータフロー
162140

163-
```
164-
ユーザー(ブラウザ)
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(デッキ一覧、
175-
▼ │ テンプレート、認可)
176-
Strands Agent │
177-
│ │ S3(サムネイル取得、
178-
│ MCP Protocol │ PPTX ダウンロード)
179-
▼ │
180-
MCP Server(AgentCore Runtime) │
181-
│ │
182-
├──→ DynamoDB(デッキ CRUD) │
183-
├──→ S3(ワークスペース読み書き) │
184-
├──→ S3(PPTX 生成・保存) │
185-
└──→ SQS ──→ PNG Worker(Fargate) │
186-
│ │
187-
├──→ S3(PNG 保存) │
188-
└──→ S3(autofit 焼込) │
189-
```
141+
![data-flow](../assets/data-flow-ja.png)
190142

191143
### スライド生成の処理ステップ
192144

@@ -207,16 +159,7 @@ MCP Server(AgentCore Runtime) │
207159

208160
spec-driven-presentation-maker は OIDC 準拠の任意の IdP(Identity Provider)と連携できます。
209161

210-
```
211-
┌──────────────┐ JWT Bearer Token ┌──────────────────┐
212-
│ IdP │ ◀──────────────────────▶ │ AgentCore │
213-
│ │ │ Runtime │
214-
│ ・Cognito │ OIDC Discovery URL │ │
215-
│ ・Entra ID │ ─────────────────────── ▶│ JWT 検証 │
216-
│ ・Auth0 │ │ → user_id 抽出 │
217-
│ ・Okta │ │ → コンテナ転送 │
218-
└──────────────┘ └──────────────────┘
219-
```
162+
![jwt-auth-flow](../assets/jwt-auth-flow-ja.png)
220163

221164
- Amazon Bedrock AgentCore Runtime の `customJwtAuthorizer` が JWT を検証
222165
- JWT の `sub` クレームが `user_id` としてアプリケーションに伝播
@@ -281,29 +224,7 @@ spec-driven-presentation-maker は OIDC 準拠の任意の IdP(Identity Provid
281224

282225
### スタック依存関係
283226

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-
```
227+
![cdk-dependencies](../assets/cdk-dependencies.png)
307228

308229
### 各スタックの役割
309230

0 commit comments

Comments
 (0)