edu-design
/edu-design
Change the look of an edu.by school site through the constructor's design area – page templates, modules (menus, breadcrumbs, news lists, language switcher), style sets (CSS), scripts and resource strings – safely, on copies, with a backup and a rollback. Use when the user wants to restyle the site, change the header, footer or menu markup, add CSS or JS, switch page templates, or back up / restore the design.
- Author
- Severnbli ↗
- Repository
- edu-by-agent ↗
- Licence
- GPL-3.0
- Last repository change
- 13.11.2026
Assessment and security
- Files in this package
- 2
- Scripts
- 0
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 13.11.2026, without references to retired models or APIs.
GPL-3.0, otwarta.
What it does and when to use it
Change the look of an edu.by school site through the constructor's design area – page templates, modules (menus, breadcrumbs, news lists, language switcher), style sets (CSS), scripts and resource strings – safely, on copies, with a backup and a rollback. Use when the user wants to restyle the site, change the header, footer or menu markup, add CSS or JS, switch page templates, or back up / restore the design.
Original author description
Change the look of an edu.by school site through the constructor's design area – page templates, modules (menus, breadcrumbs, news lists, language switcher), style sets (CSS), scripts and resource strings – safely, on copies, with a backup and a rollback. Use when the user wants to restyle the site, change the header, footer or menu markup, add CSS or JS, switch page templates, or back up / restore the design.
How it works
- Rules
- Read
- Change (on a copy)
- Test before switching
- Switch and roll back
- Verify
- Common errors
SKILL.md preview
---
name: edu-design
description: Change the look of an edu.by school site through the constructor's design area – page templates, modules (menus, breadcrumbs, news lists, language switcher), style sets (CSS), scripts and resource strings – safely, on copies, with a backup and a rollback. Use when the user wants to restyle the site, change the header, footer or menu markup, add CSS or JS, switch page templates, or back up / restore the design.
---
# Site design
Everything here is **site-wide**: a saved template, module, style set or string changes every page that uses it at once. There is no draft. Details: `knowledge/endpoints/design.md`.
## Rules
- **Back up first**: `./edu design export .session/design/export-<date>/design.zip` (read-only, asks the server for the full design archive). The server's export fails now and then (`server error 500`, cause unknown) – retry later or export by hand in the constructor (Утилиты → Экспорт в архив); don't hammer it.
- **Work on copies**, never on live items: copy with a «Редизайн <year>. …» name, change the copy, test it on a hidden section, switch last.
- Show every preview to the user and apply only after their OK (`--yes`; deletes need `--token`).
- Deletes are immediate, no trash. The tool deletes only «Редизайн…» / «Тест…» items unless `--force`; use `--force` only for an item the user named.
- New CSS must not apply in the low-vision mode: scope it under `html:not(.special)` (the mode adds class `special` to `<html>` and its own `!important` colours). A `<style>` in an HTML block is page-wide – scope it under a wrapper class.
- Web fonts can't be uploaded: use an external host (`@import` in a style set) or system fonts.
- A module copy must keep «Язык: Русский» (`CheckBoxListAccess$0=on`) – without it the module renders nothing. `design copy` carries it over; check with `design show`.
- When a copy gets new markup, look at its `Text_Before` / `Text_After` too: leftovers of the old wrapper (`</div></div>`) break the page layout.
## Read
```bash
./edu design list Master # also Head, Normal, 404, NotUseTemplate, Actual, Old, NotUse,
# CssPacked, JavaScript, ResourceString, TemplateGlobal
./edu design show template 1164 # master, attached JS / CSS (in load order), body parts,
# lists: ClassifierL = sections using it (1001 = whole site)
./edu design show control 2601 # module settings: Text_Before/After, ASD_* markup, section lists
./edu design show css 1212 --full # name, body; also js, string (resource string <{id}>)
```
Field names shown in `[brackets]` are what `design set --set` takes. Templates: `title`, `master` (Главный / Обычный / 404 only), `head`, `body` (masters), `body1`…`body4` (master placeholders). Modules: `title`, `Text_Before`, `Text_After`, `ASD_<setting>` (e.g. `ASD_m_a`, `ASD_m_ItemStart`, news lists `ASD_Format$TextBoxXslt`); checkboxes (`ASD_page_Use`, `ASD_D_Parent`, …) take `on` / `off`. Style sets / scripts: `name`, `body`. Strings: `title`, `text`.
## Change (on a copy)
```bash
./edu design add css --name "Редизайн 2026. Основной" --body @.session/design/new.css # preview, then --yes → new_id
./edu design copy template 1144 --name "Редизайн 2026. Мастер" # --yes → new_id
./edu design set template <copy> --attach-css <css id> --yes # attached last = loads last
./edu design set template <copy> --set body=@.session/design/master-body.html --yes
./edu design copy template 1164 --name "Редизайн 2026. Обычный" --yes
./edu design set template <normal copy> --set master=<master copy> --yes
./edu design copy control 2601 --name "Редизайн 2026. Главное меню" --yes
./edu design set control <copy> --set 'ASD_m_ItemStart=<li class="nav__item [[class]]">' --yes
./edu cache clear --yes # public pages rebuilt from the new state
```
Module calls in template bodies are `LoadModule(<id>,<title>)`; point them at the module copies. Resource strings appear as `<{id}>`.
## Test before switching
Give a hidden test section the copied template: `./edu section set 1011/<test section> --template <normal copy> --yes`, clear the cache and look at the public page (desktop and 375 px, the low-vision modes). Show the user.
## Switch and roll back
Switch only after the user's OK, one write at a time, e.g. point the live Главный / Обычный / 404 templates at the new master (`--set master=…`) or attach the new style set to the live master. Write the rollback down **before** switching: the reverse `design set` commands (old master id, `--detach-css`), and as the last resort the archive from the backup (constructor «Утилиты» → «Импорт из архива», by hand). Clear the cache after each step.
## Verify
Every write re-reads the item: `Applied and verified.` with the new values. A template save is checked ignoring whitespace (the server re-spaces `LoadModule` calls). If verified is false, `design show` the item and tell the user.
## Common errors
- `has no field(s) …; fields: …` – use a name from the list (they differ per module type).
- `the CSS / JS lists are not on the page – refusing` – the template page changed or the session expired; don't save it by other means (it would detach all styles).
- `section lists …: give them as lists` – a module's section lists (`ASD_ClassifierList`, …) are set with `--list NAME=ID,ID` (e.g. `--list ASD_ClassifierList=1001` together with `--set ASD_ViewType=ClassifierList`; the site root `/` has no current section, so home-page modules must list 1001). A template's sections (`ClassifierL`) are not set here: give a section its template with `edu section set … --template`.
- `its section list (ClassifierL) is not on the page – refusing` – never save that template another way: an empty list detaches every section using it (the whole site for the live Обычный template).
- `verified: false` with `lists` before / after – a section list changed on save: `design show` the item and tell the user at once.
- `refusing without force` – not a redesign / test item; ask the user before `--force`.
- `Session expired` (exit 2) – the user runs `./edu session login`.
Files in this package (2)
- SKILL.md 6 KB
- mcp.md 4 KB
Versions
The database has no other skills named edu-design.
Database snapshot: 13.11.2026 · package version 84121259558c (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 100edu-find-content
Find sections, pages and content objects on an edu.by school site and read them (titles, HTML, publication state, public URL) – read-only. Use when the user asks what is on the site, where a page or text lives, which object shows something on a public page, or before any edit to locate its target. - 100edu-edit-content
Change content on an edu.by school site – edit page text (HTML blocks), publish or unpublish objects, create, copy, move, reorder or delete objects, and add, rename, move or delete sections (pages in the menu). Use when the user asks to update a page, fix a text, add a page or… - 100tiangong-kb-edu-search
Search Tiangong knowledge-base general education sources through the Tiangong AI CLI. Use for broad education knowledge sources only. This skill searches only the edu source, not course or textbook. - 90edu-award-material-revision
教育系统先进人物(优秀教师/优秀班主任/优秀乡村教师/优秀教育工作者等)申报材料的按需修改与归档。当用户给出一套申报材料(申报表、汇总表、征求意见表、事迹材料、参评封面、佐证材料、目录、公示、鉴定意见等)以及修改要求(录音或文字,如更换申报类别、调整时间/年限、删除某年及以后的内容等),需要"只在原表上修改、保持原格式、分类归档到知识库"时触发。不适用于从零生成申报材料(用 edu-advanced-figure-application-form)、通用文档排版或内容创作。 - 100edu-deck-series
Use when the user wants a multi-episode education or training series as HTML (예: \"사내 교육 시리즈 만들어\", \"여러 편으로 나눠 교육 자료\", \"N편짜리 교육\", \"진도 관리되는 교육\", \"시리즈 포털\"), or when the entry skill edu-deck 판별이 시리즈(2편 이상 + 진도·허브)로 내려온다. 한 주제 한 덱은 edu-deck-solo 스킬이다. 결과물은 목차(허브)에서 편을 골라 보고,… - 100claspider
北京大学课程信息爬取 CLI (dean.pku.edu.cn 教务部 + elective.pku.edu.cn 选课网 + onlineroomse.pku.edu.cn 智云课堂)。当用户提及 claspider、课程爬虫、课程信息爬取、课程目录、全校开课、按院系/教师/关键词查课、合并课程数据 时使用此 skill。适用于要批量导出某学期全部课程(课号/名称/学分/教师/时间地点/简介)做离线查询、语义搜索、选课决策的场景。Also use when dealing with 教务部课表查询 HTML 抓取、选课网分类遍历、智云课堂 JWT…