
gordensun/math2ggb
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
실제 GeoGebra 엔진을 구동함으로써 math problem (esp. geometry)를 믿고 + Interactive GeoGebra .ggb 파일로 변환하는 Cursor Agent Skills.
개요
를 돌리는 커서 에이전트 스킬. 각 그림에 대해 SAME 의존성 제한 구조에서 내장 된 파일을 생성합니다. - (정적 충실) - 인쇄 된 그림은 정확히 재현 (점, 세그먼트 및 각도 표, 더 적은 없음); - (클래식 상호 작용) - 텍스트 / 보조 / 보이지 않는 도우미 원과 동일한 인쇄 식별 모양, 그러나 모든 조건 보존으로 완전히 드래그 할 수 있습니다; - (동적 가르침) - 동일한 기본 플러스 보조 라인, 정각을 반환하고, 정각을 반환합니다. 모든 세는 실제 제약 (콘크롤, 교차, 반사, 중간 지점, 나선형 유사성, locus...)로 문제의 조건을 인코딩하므로 드라이버 포인트를 드래그하면 모든 조건을 만족시킵니다. 정확한 재생산은 (never eyeballing)에 의해 시행되고 이렇게 마지막 파일이 본래 정확하게 일치한다는 것을 협조/lengths/angles를 확인하기 위하여 임시 측정 목표를 추가해서.
개요(AI 번역)
** 수학 문제 (특히 기하학)로 전환하는 Cursor Agent Skill
GeoGebra .ggb 파일**. 각 그림에 대해 ** 세** 파일을 내장
SAME 의존성 변형된 건축:
- a ** a** (정밀한) - 인쇄 된 그림은 정확히 재현 (점, 세그먼트 및 각도 마크 만 더 적은);
- a** a** (클립 인터렉티브) — text/aids/visible helper circle이 없는 동일한 print-identical 보기, 그러나 완전히 보존된 각 조건으로 끌기;
- a ** a理 a** (dynamic teaching) - 동일한 기본 플러스 보조 라인, 주석, 및 [
显示辅助toggle에 라이브 각도 / 길이 읽기 - 정확한 원본에 반환하지.
모든 3은 실제 제약으로의 상태를 인코딩합니다 (콘크롤, 교차로, 반사, 중간 지점, 나선형 유사성, locus…), 그래서 드라이버 포인트를 드래그 만족한 각 상태. 정확한 재생은 Measuring에 의해 시행됩니다. 원본 이미지 (never eyeballing) 및 임시 측정 개체를 추가하여 수출하기 전에 ** 완료된 **가 있는 좌표/장/각을 확인합니다. 파일은 원본을 정확히 일치합니다.
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
Math2GGB
A Cursor Agent Skill that turns a math problem (especially geometry) into
GeoGebra .ggb files. For each figure it produces three files built from the
SAME dependency-constrained construction:
- a 静态复刻图 (static faithful) — the printed figure reproduced exactly (only its points, segments, and angle marks, no more no less);
- a 干净可交互图 (clean interactive) — the same print-identical look with no text/aids/visible helper circles, but fully draggable with every condition preserved;
- a 动态理解图 (dynamic teaching) — the same base plus auxiliary lines, annotations, and live angle/length readouts on a
显示辅助toggle — unchecking it returns to the exact original.
All three encode the problem’s conditions as real constraints (concyclic, intersection, reflection, midpoint, spiral similarity, locus…), so dragging a driver point keeps every condition satisfied. Precise reproduction is enforced by measuring the original image (never eyeballing) and by adding temporary measurement objects to verify coordinates/lengths/angles, which are deleted before export so the final file matches the original exactly.
It works by driving the real GeoGebra engine in a browser (GeoGebra’s own JS
API) and exporting with getBase64(), so the produced files always open in
GeoGebra — no fragile hand-written XML.
Install
Copy this folder into your Cursor skills directory:
# Personal (all projects):
cp -R Math2GGB ~/.cursor/skills/math2ggb
# or Project (this repo only):
cp -R Math2GGB /.cursor/skills/math2ggb
Then just ask the agent, e.g. “把这道几何题做成 GeoGebra 文件” / “make an interactive GeoGebra of this problem”.
Layout
Math2GGB/
├── SKILL.md # main orchestration (stages A–E)
├── references/
│ ├── geogebra-recipes.md # commands, JS API, image-measuring, condition→constraint table, gotchas
│ └── example-hidden-circle.md # verified example (静态复刻图 + 干净可交互图 + 动态理解图)
├── scripts/
│ └── ggb_server.py # serves generator + receives exported .ggb
└── templates/
└── generator.html # loads the real GeoGebra engine (AG layout)
Requirements
- A browser tool (navigate, evaluate JS, screenshot).
- Internet (the generator page loads GeoGebra from geogebra.org’s CDN).
python3.
Opening the output on macOS
The App Store GeoGebra Classic 6 is sandboxed: double-clicking a .ggb (or
passing it on the command line) shows a blank window. Open via
☰ menu → Open → From this device → pick the file, or drag the file onto the
GeoGebra window. The web app (geogebra.org/classic) opens files normally.
추천 도구
다른 키워드를 입력하거나 필터를 제거해 보세요.
설치
npx skillfish add gordensun/math2ggb