From a8d7cbbb9c5a4fd4be5c2696f698385619a511f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chyeonggkim=E2=80=9D?= <“hyeonggkim@smilegate.com”> Date: Tue, 21 Apr 2026 13:21:20 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20docs:=20=EC=9A=94=EA=B5=AC?= =?UTF-8?q?=EC=82=AC=ED=95=AD=20=EB=B6=84=EC=84=9D=EA=B8=B0=20=EB=AC=B8?= =?UTF-8?q?=EC=84=9C=EC=97=90=20=EA=B6=8C=ED=95=9C=20=EC=84=A4=EC=A0=95=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- skills/requirement-analyzer/SKILL.md | 4 ++++ skills/requirement-analyzer/scripts/extract_pptx.py | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/skills/requirement-analyzer/SKILL.md b/skills/requirement-analyzer/SKILL.md index e2b45cb..d235410 100644 --- a/skills/requirement-analyzer/SKILL.md +++ b/skills/requirement-analyzer/SKILL.md @@ -10,6 +10,10 @@ description: | - "라우팅 구조 뽑아줘", "컴포넌트 트리 만들어줘" - "API 목록 정리", "화면 플로우 그려줘" - `.pptx` 파일 경로를 제공받고 개발 요구사항 추출을 요청받았을 때 +permissions: + allow: + - Bash(python3 -c "import pptx"*) + - Bash(python3*extract_pptx.py*) --- # 요구사항 분석기 (Requirement Analyzer) diff --git a/skills/requirement-analyzer/scripts/extract_pptx.py b/skills/requirement-analyzer/scripts/extract_pptx.py index 15a47e5..77f51ff 100644 --- a/skills/requirement-analyzer/scripts/extract_pptx.py +++ b/skills/requirement-analyzer/scripts/extract_pptx.py @@ -154,10 +154,11 @@ def extract_slide(slide, slide_number: int, extract_images: bool, output_dir: st # 테이블 if shape.has_table: table = shape.table - headers = [cell.text.strip() for cell in table.rows[0].cells] + all_rows = list(table.rows) + headers = [cell.text.strip() for cell in all_rows[0].cells] rows = [ [cell.text.strip() for cell in row.cells] - for row in table.rows[1:] + for row in all_rows[1:] ] result['tables'].append({'headers': headers, 'rows': rows}) shape_info['type'] = 'table'