ワンクリックで
ba-export
[Agentic] Enterprise Document Export - convert MD requirements to DOCX for Bank/Government compliance (SKILL-21)
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
[Agentic] Enterprise Document Export - convert MD requirements to DOCX for Bank/Government compliance (SKILL-21)
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
[Meta] How to use BA-Kit effectively. Use when starting with BA-Kit, unsure which agent to invoke, or when an AI agent needs to map user intent to the right skill.
[Agentic] Agile BA Practices - User Story Mapping, MVP Definition, Hypothesis-Driven Development
[Agentic] Business Rules Management - decision tables, decision trees, rule catalog, conflict detection
[Agentic] Change Management - ADKAR, readiness assessment, training needs, go-live planning, benefits realization
[Agentic] Communication & Reporting - audience-adapted messaging, status reports, executive summaries
[Agentic] Conflict Resolution & Negotiation - resolve stakeholder disagreements (SKILL-06)
| name | ba-export |
| description | [Agentic] Enterprise Document Export - convert MD requirements to DOCX for Bank/Government compliance (SKILL-21) |
| version | 1.0.0 |
If input is unclear, incomplete, or out-of-scope:
When NOT to use:
When activated via @ba-export, perform the following cognitive loop:
{{TODO}}), broken links, and header nesting errors.Prepare the Pandoc/Conversion arguments and mapped variables.
STOP & THINK. Don't embarrass the team.
[Insert Date Here] on page 1. Must fix."Execute the export command or confirm readiness.
Don't stop here. Recommend the next step:
@ba-traceability to baseline this version."@ba-master to close the project."@ba-quality-gate to verify export readiness before publishing."@ba-confluence to publish to Confluence wiki."| Rationalization | Reality |
|---|---|
| "Client won't notice a few placeholders" | They will. [TBD] in a signed BRD = unprofessional + contract ambiguity. Scan before every export. |
| "Pandoc output is good enough as-is" | Good enough = broken table borders, lost diagrams, and wrong font encoding for Vietnamese. QA the output file before sending. |
| "We'll fix formatting manually in DOCX after export" | Manual DOCX edits are lost the next time you re-export from source. Fix in Markdown so every export is clean. |
| "Version control is git — no need for version in the document" | Client doesn't have git access. Version number + date in the footer is the only way they know what revision they're reading. |
| "Mermaid diagrams are fine as code blocks in DOCX" | Code blocks in a DOCX delivered to a bank reviewer = immediate credibility loss. Render to images before export. |
{{TODO}}, [TBD], XXX, or FIXME present in exported document (grep check failed or skipped)After completing this skill's process, confirm:
{{TODO}}|TBD|XXX|FIXME (grep command run)run_command: To execute pandoc hoặc python3 .agent/scripts/gen_docx.py.find_by_name: To locate the correct reference.docx template.Step 1 — Lint Check: Quét toàn bộ file Markdown nguồn. Kiểm tra:
{{TODO}}, [Insert Date Here], TBD[Xem mục 4.2](#section-42)Step 2 — Template Mapping: Xác định template .docx phù hợp. Gọi find_by_name để định vị reference.docx. Map các biến Pandoc: --metadata title=, --metadata author=, --metadata date=.
Step 3 — Build Command: Tổng hợp lệnh export hoàn chỉnh. Với tài liệu ngân hàng/chính phủ, ưu tiên script Python gen_docx.py thay Pandoc thuần để xử lý font tiếng Việt và watermark.
Step 4 — Execute: Chạy lệnh qua run_command. Kiểm tra output: file size hợp lý (> 10KB), không có lỗi stderr. Báo cáo kết quả với đường dẫn file đã tạo.
=== EXPORT REPORT ===
Document Title : [Tên tài liệu]
Source File : [path/to/source.md]
Output File : [path/to/output.docx]
Template Used : [path/to/reference.docx]
Export Timestamp : [DD/MM/YYYY HH:MM]
Exported by : @ba-export
--- PRE-EXPORT LINT RESULTS ---
Placeholders Found : [N items — listed below OR "None"]
Broken Links : [N items OR "None"]
Missing Metadata : [Fields OR "None"]
Heading Errors : [N items OR "None"]
--- EXPORT RESULT ---
Status : SUCCESS / FAILED
File Size : [XX KB]
Pages : [~N pages estimated]
Command : [Lệnh đã chạy]
--- POST-EXPORT CHECKLIST ---
[ ] Confidentiality footer trên mọi trang
[ ] Table of Contents được tạo tự động
[ ] Page numbering bắt đầu từ đúng trang
[ ] Font tiếng Việt render đúng
[ ] Watermark "DRAFT" / "CONFIDENTIAL" (nếu yêu cầu)
Next Handoff: [@ba-traceability để baseline / @ba-quality-gate để review]
=====================
Tình huống: Xuất BRD của dự án EAMS thành .docx theo template của Ngân hàng.
Lệnh thực tế:
python3 .agent/scripts/gen_docx.py \
docs/requirements/eams-brd-v1.2.md \
--template templates/bank-reference.docx \
--output outputs/EAMS-BRD-v1.2-20260410.docx \
--metadata "title=Tài liệu Yêu cầu Nghiệp vụ — EAMS" \
--metadata "author=BA Team" \
--metadata "version=1.2" \
--metadata "classification=CONFIDENTIAL"
Kết quả mong đợi:
[INFO] Lint check passed: 0 placeholders, 0 broken links
[INFO] Template loaded: templates/bank-reference.docx
[INFO] Generating DOCX...
[SUCCESS] Output: outputs/EAMS-BRD-v1.2-20260410.docx (248 KB, ~34 pages)
Nếu dùng Pandoc thuần (không cần script):
pandoc docs/requirements/eams-brd-v1.2.md \
--reference-doc=templates/bank-reference.docx \
--toc --toc-depth=3 \
--metadata title="Tài liệu Yêu cầu Nghiệp vụ — EAMS" \
-o outputs/EAMS-BRD-v1.2-20260410.docx
Before drafting, search for relevant knowledge:
run_command: python3 .agent/scripts/ba_search.py "<topic keywords>" --domain writingpython3 .agent/scripts/ba_search.py "<query>" --multi-domain.agent/templates/brd-template.md — Business Requirements Document.agent/templates/srs-template.md — Software Requirements Specification.agent/templates/frd-template.md — Functional Requirements Document.agent/templates/continuity-template.md — Squad Shared MemoryActivation Phrase: "Export Protocol Initiated. Checking compliance headers."