stage-dsl
Skill by THU-MAIC
Maps the stage document of OpenMAIC so an assistant can read and edit lesson pages safely. It explains the scene structure, the read_stage, patch_stage and grep_stage tools, and which reference to load for each field type.
Install stage-dsl
Built from the published package, never by AI.
git clone --depth 1 https://github.com/THU-MAIC/OpenMAIC /tmp/OpenMAIC && mkdir -p ~/.claude/skills && cp -r /tmp/OpenMAIC/skills/agent-runtime/stage-dsl ~/.claude/skills/stage-dslRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/THU-MAIC/OpenMAIC /tmp/OpenMAIC && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/OpenMAIC/skills/agent-runtime/stage-dsl ~/.gemini/antigravity-cli/skills/stage-dslAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Stage DSL is a skill that maps the stage document used by OpenMAIC, an AI classroom tool. It explains how a stage is split into an outline and ordered scenes, which scene types exist (slide, quiz, interactive, pbl), and how to find the path to a given field. It tells the assistant to read a scene before writing, to use JSON Pointer paths rooted at the scene, and to make atomic patches with patch_stage.
It also routes to field-level references for quizzes, interactive widgets, actions and PBL projects, and points to the installed slide-dsl skill for slide canvas editing. Inserting, deleting, reordering and retitling pages stays with edit_deck. It suits developers and AI assistants that edit OpenMAIC lesson pages.
Written from the project's SKILL.md and checked against it.
What it can do
- read_stageReads a whole stage, the outline, or a single scene in tree, source or text form.
- patch_stageApplies atomic set, remove, str_replace, add_element and delete_element operations to one scene.
- grep_stageRuns a literal, case-insensitive search over visible text or serialized scene source.
- edit_deckInserts, deletes, reorders and retitles pages, which patch_stage cannot do.
- list_folder_stagesLists stages in folders and returns the stageId required by stage tools.
- set_rosterWrites the settled classroom cast before page generation.
- Field reference routingSends the assistant to reference chapters for quizzes, widgets, actions and PBL projects.
What you need
- OpenMAIC with its stage tools available
- The slide-dsl skill installed for slide canvas editing
Try asking
- Change the answer option on question 2 of scene 3 in my OpenMAIC stage.
- Find every place the old course name appears in this stage.
- Replace the percentage in the HTML widget on page 4 without rewriting it.
Good to know
- patch_stage cannot insert, delete, reorder or retitle pages; use edit_deck.
- Read-side media placeholders are read-only and cannot be written back.
- grep_stage returns at most 10 matches per scene and 30 overall, with a cursor to continue.
- The slide canvas is covered by the separate slide-dsl skill, not this map.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/agent-runtime/stage-dsl/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB -
references/actions.md11 KB -
references/pbl.md14 KB -
references/quiz.md10 KB -
references/widget.md13 KB
Alternatives to stage-dsl
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
stage-dsl: common questions
Which tools does the stage DSL skill cover?
It covers read_stage, patch_stage and grep_stage for reading and editing an OpenMAIC stage document. It also refers to edit_deck, list_folder_stages and set_roster for page-level and roster tasks.
Can it edit slide designs?
Slide canvas editing is handled by the installed slide-dsl skill, which the source describes as the complete slide canvas manual. This skill covers the scene structure and points to it.
Why does a rejected patch change nothing?
Operations in one patch_stage call are applied to a clone and validated together, then written once. If any operation fails, none of them are saved.
How do I install stage-dsl?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is stage-dsl free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is stage-dsl safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to stage-dsl?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
