doc2math
하는 일
이 도구는 평이한 언어로 쓰인 문제 설명을 구조화된 수학 형식으로 바꿉니다. 변수, 규칙(제약 조건), 최적화해야 할 목표(목적)를 찾아내며, 각 항목은 원문의 정확한 출처를 인용합니다.
사용하는 경우
- ✓텍스트로 설명된 문제를 수학으로 바꾸고 싶을 때.
- ✓기술 문서나 논문에서 수학적 구조를 뽑아내고 싶을 때.
- ✓문제 설명에서 빠진 수학 정보가 무엇인지 확인하고 싶을 때.
스킬 링크
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/doc2math/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“재고 최적화에 관한 이 문단을 수학적 변수, 제약 조건, 목표로 바꿔 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
도구는 입력한 텍스트를 읽고 변수, 제약 조건, 목표 같은 수학 요소를 찾아냅니다. 찾아낸 모든 부분이 원문의 정확한 부분을 가리키도록 하며, 정보를 지어내지 않습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
DOC2MATH — Document-to-Mathematics Problem Specification
When to Use This Skill
- "Formalize this problem statement into math"
- "Extract the mathematical structure from this research paper section"
- "What variables, constraints, and objectives are in this spec?"
- "Convert this word problem to a structured MPS"
- "Find what's missing in this problem formulation"
Zero-Inference Protocol (Mandatory)
- Closed World — do not assert unstated facts or numeric values. Structural notation implied by source phrasing may be proposed only with the explicit inference tag required below
- Grounding Rule — every element must cite the exact source phrase (
"evidence"field) - No Silent Filling — unknown values use
null; ambiguous types use"ambiguous" - Inference Tagging — structural inferences tagged
"inferred": truewith"inference_basis" - MISSING Markers — elements mentioned but insufficiently defined get
"status": "MISSING"with"missing_reason" - No Hallucinated Math — never introduce equations or values not in the source text
Limitations
- Does not invent missing equations, domains, values, or assumptions that are absent from the source document.
- Requires enough source text to cite every extracted element; sparse prompts should be returned with explicit missing-information markers.
- Produces a formal specification, not a solved optimization model or proof.
How It Works
Step 1 — Receive Document
Accept the document text, research excerpt, problem description, or specification as input.
Step 2 — Classify
Identify problem_class: optimization | classification | simulation | proof | estimation | other
Step 3 — Extract MPS Components
Variables — id, name, symbol, type, domain, units, role, evidence, inferred, status
Operators — id, name, symbol, arity, acts_on, produces, evidence, inferred
Constraints — id, type, expression, variables_involved, evidence, hardness, inferred, status
Objectives — id, direction (minimize/maximize/satisfy/find/prove), expression, variables_involved, evidence, inferred
Uncertainty — id, type (stochastic/epistemic/measurement/model/none_stated), affects, characterization, evidence, status
Step 4 — Surface Missing Information
Identify what the document implies but doesn't state: missing_information[] with element, needed_for, missing_reason.
Step 5 — Validate and Score
validation_flags:
has_complete_objectives: true/false/partialhas_bounded_variables: true/false/partialhas_evidence_for_all_elements: true/false/partialinference_count: integermissing_count: integeroverall_formalizability: HIGH/MEDIUM/LOW
Output Format
Produce an MPS JSON object. The empty schema example below is not a complete formalization; populate only grounded entries and report missing information:
{
"mps_version": "1.0",
"source_title": "...",
"problem_class": "optimization",
"variables": [],
"operators": [],
"constraints": [],
"objectives": [],
"uncertainty": [],
"missing_information": [],
"validation_flags": {
"overall_formalizability": "LOW"
}
}
Best Practices
- ✅ Apply all 6 Zero-Inference Protocol rules before outputting any element
- ✅ Surface MISSING markers rather than silently inferring — incomplete formalization is valid output
- ✅ Cite the exact source phrase in every
evidencefield - ❌ Never introduce mathematical relationships not grounded in the source text
Additional Resources
- External hosted BYOK tools are optional and not bundled; using them may transmit documents/keys and incur costs. Obtain the applicable data/account approval instead of following the link automatically.
- Repository: thebrierfox/doc2math-skill
- Full BYOK tool: ace-license-server-production.up.railway.app/byok/doc2math
- Built by IntuiTek¹ (~K¹) — MIT License
자주 묻는 질문
‘수학적 문제 명세(Mathematical Problem Specification)’란 무엇인가요?
변수, 변수의 규칙, 달성하려는 목표(최소화 또는 최대화) 같은 수학 용어로 문제를 설명하는 표준화된 형식입니다.
‘근거가 있다(grounded)’는 무슨 뜻인가요?
추출된 모든 수학 정보가 사용자가 제공한 원문에 직접적인 근거가 있다는 뜻입니다.
도구가 수학 문제를 대신 풀어 주나요?
아니요, 문제를 수학 형식으로 구조화할 뿐입니다. 해답을 계산하지 않으며, 원문에 없는 방정식을 만들지도 않습니다.
상세 정보
작성자의 원본 설명
Convert narrative technical documents into grounded Mathematical Problem Specifications with variables, constraints, objectives, and uncertainty.
인기도
- GitHub 스타
- 48k
- 순위
- #4473
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
00-andruia-consultant
48k에이전트가 AI 프로젝트를 시작하거나 개선할 수 있도록 코드를 분석하고 스페인어로 실행 계획을 세워 줍니다.
007
48k에이전트가 보안 감사와 위협 모델링을 수행해 공격과 취약점으로부터 프로젝트를 보호하도록 돕습니다.
10-andruia-skill-smith
48k에이전트가 AI 도구의 작동 방식을 정의하고 문서를 쓰며 구조를 검증하도록 돕습니다.
20-andruia-niche-intelligence
48k에이전트가 신뢰할 수 있는 자료를 바탕으로 특정 산업의 맥락, 규칙, 사용 패턴, 위험을 정리한 요약을 만들도록 돕습니다.