element-backwards-compat
БесплатноБез исполняемых скриптовНе проверенBackwards compatibility rules when changing element controllers in `apps/prairielearn/elements/`.
от PrairieLearn★ 539 звёзд на GitHubОб этом скилле
Several dict-shaped fields on the data dict that an element controller receives are persisted to the database and read back by future invocations. Existing variants and submissions are not re-generated when element code changes, so any new key added to a persisted dict will be missing on rows written before the change. Reading it with dict[key] throws KeyError and breaks every existing question that uses the element. This has happened twice in pl-order-blocks alone (ordering_feedback, initially_placed).
The persisted dict-shaped fields are:
- On the variant row:
data["params"],data["correct_answers"]. - On submission rows:
data["submitted_answers"],data["raw_submitted_answers"],data["partial_scores"],data["feedback"],data["format_errors"].
Rules
Adding a new key to a persisted dict? Every reader in every element function must use
dict.get(key, default)with a sensible default, neverdict[key]. This applies to top-level keys and to keys inside any nested per-block / per-answer dict stored inside a persisted field. If the element uses aTypedDictfor the nested shape, mark the new fieldNotRequired[...]fromtypingso pyright catches unguarded reads.Renaming, removing, or changing the semantics of a persisted key? Don't. Keep the old key alongside the new one and have readers fall back to it when the new one is missing. Old rows still hold the old shape forever.
Установить element-backwards-compat в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл element-backwards-compat?
Backwards compatibility rules when changing element controllers in `apps/prairielearn/elements/`.
Как установить скилл element-backwards-compat?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл element-backwards-compat запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic