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'