사용 방법
- 설치 명령을 복사하고 자신의 에이전트 환경에 설치하기 전에 소스 패키지를 확인하세요.
- 필요한 도구, 인증 정보, 지원 환경은 원본 문서에서 확인하세요.
- 입력과 원하는 산출물을 설명하고 출처와 결과를 대조하세요.
npx skills add https://github.com/ntanh1402/sdlc-skills --skill sdlc-convert-doc시작 전 확인
- 설치에는 모델 구독, API 한도, 파일 접근 권한이 포함되지 않습니다.
- 별점 수와 설치 수는 활동 지표이며 독립적인 품질·보안 검증이 아닙니다.
원본 저장소의 제목, 예시, 코드, 표, 링크, 이미지를 유지해 표시합니다.
SDLC Doc to Markdown
Convert local files with the bundled router. Prefer MarkItDown for lightweight structured extraction and Marker when OCR or document-layout recovery is needed.
Workflow
Resolve SKILL_DIR to the directory containing this SKILL.md; do not assume the current working directory is the skill directory.
- Confirm the input is a local file and choose a separate
.mdoutput path. - Run the dependency preflight:
python3 "$SKILL_DIR/scripts/check_dependencies.py" --engine auto- Preview the routing decision when the file type or OCR need is uncertain:
python3 "$SKILL_DIR/scripts/convert_to_markdown.py" INPUT \
--output OUTPUT.md --dry-run- Convert with automatic routing:
python3 "$SKILL_DIR/scripts/convert_to_markdown.py" INPUT --output OUTPUT.md- Read the generated Markdown. Check headings, reading order, tables, equations,
image links, missing text, and OCR corruption before reporting success.
- If a digital PDF produces sparse text, let the script retry it with Marker and
forced OCR. If quality is still poor, rerun explicitly:
python3 "$SKILL_DIR/scripts/convert_to_markdown.py" INPUT.pdf --output OUTPUT.md \
--engine marker --force-ocr --overwriteNever overwrite an existing output unless the user approved replacement. The script enforces this unless --overwrite is passed.
Engine selection
| Input or condition | Engine | Reason |
|---|---|---|
| DOCX, PPTX, XLSX/XLS, HTML, EPUB, email, CSV, JSON, XML, ZIP, and ordinary text-bearing files | MarkItDown | Fast, lightweight structured extraction |
| PNG, JPEG, TIFF, BMP, GIF, or WebP | Marker | Image inputs require OCR and layout recovery |
| PDF with usable embedded text | MarkItDown first | Avoid unnecessary model loading |
| Scanned, image-only, sparse, or garbled PDF | Marker with OCR | Recover text and reading order |
| Layout-heavy PDF, equations, or complex tables | Marker | Stronger layout and math handling |
Use --engine markitdown or --engine marker only to override this policy. Use --page-range, --force-ocr, --strip-existing-ocr, --use-llm, or --disable-image-extraction for Marker-specific work. Marker-specific options make automatic routing choose Marker directly.
Output rules
- Keep the source file unchanged.
- Preserve Marker-generated images beside the Markdown so relative links remain valid.
- Treat conversion as extraction, not proof of correctness. Compare critical values,
names, dates, tables, and formulas against the source.
- Do not enable
--use-llmwithout confirming the configured service and whether the
document may be sent to it.
- Do not process an untrusted path or URL. The router accepts local files only.
Dependencies and troubleshooting
Require markitdown[all]==0.1.6 and marker-pdf==1.10.2; treat a missing or mismatched version as a failed preflight. Do not upgrade these pins implicitly.
Read references/converters.md when installing converters, choosing optional packages, reviewing supported formats, handling model downloads, or evaluating Marker licensing and compute requirements.
Run python3 "$SKILL_DIR/scripts/convert_to_markdown.py" --help for all conversion options.