riscos-wimp-templates
Skill4 starsChanged 7 months agoMITView on GitHub
Create or update RISC OS Wimp template descriptions as `TemplateText` files using `riscos-ccres`. Use when an agent needs to build a window template from user-specified windows, follow standard RISC OS dialogue patterns, or copy bundled window template assets such as save boxes into a new template file.
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Use this skill when creating or editing Wimp template descriptions stored as TemplateText.
- Very specific: line 14
If the window matches a bundled type, read only that type's reference in references/ and copy the matching asset from assets/.
- Very specific: line 15
If the window should follow a standard RISC OS pattern rather than a bundled asset, use the riscos-style skill and read only the relevant …
- Very specific: line 53
Keep each bundled asset as a complete wimp_window block that can be copied into a larger TemplateText file.
- Distinctive: line 56
When laying out a dialogue, measure the content spacing from the visible work area, not from the outer title bar or screen position.
- Distinctive: line 58
Keep related clickable icons in the same logical set the same width and height where practical, usually by sizing the whole set to the …
- Very specific: line 59
Do not normalise paired R5/R6 buttons to the same size.
- Distinctive: line 60
Prefer one reference file per window type so only the relevant window description is loaded.
- Distinctive: line 61
When the user asks for multiple windows, combine only the required assets instead of loading every reference.
- Distinctive: line 65
When adding a new window type to the skill, read references/updating-the-skill.md and follow that process exactly.
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
RISC OS Wimp templates
Use this skill when creating or editing Wimp template descriptions stored as TemplateText.
The expected workflow is:
- Decide which window templates the user needs.
- If the window matches a bundled type, read only that type's reference in
references/and copy the matching asset fromassets/. - If the window should follow a standard RISC OS pattern rather than a bundled asset, use the
riscos-styleskill and read only the relevant dialogue guidance there. - Assemble the required
wimp_windowblocks into aTemplateTextfile. - Convert between binary template/resource files and text form with
riscos-ccres.
Converting with riscos-ccres
- To create
TemplateTextfrom an&FECTemplate file, runriscos-ccres Templates,fec TemplateText. - To create an
&FECTemplate file fromTemplateText, runriscos-ccres TemplateText Templates,fec. riscos-ccresdetects the conversion direction from the input file format.
Bundled window types
- For a fully user-redrawn document window copied from
Templates,fec, read references/document.md and use assets/window_document.txt. - For a simple document or object information window copied from
Templates,fec, read references/fileinfo.md and use assets/window_fileinfo.txt. - For a ratio-based scaling popup copied from
Templates,fec, read references/magnifier.md and use assets/window_magnifier.txt. - For a composite multi-page choices window copied from
Templates,fec, read references/multichoices.md and use assets/window_multichoices.txt with assets/window_mutlichoices_pane.txt. - For a standard save box copied from
Templates,fec, read references/savebox.md and use assets/window_savebox.txt. - For a modified-document close confirmation copied from
Templates,fec, read references/close.md and use assets/window_close.txt. - For an iconbar-menu program information window copied from
Templates,fec, read references/proginfo.md and use assets/window_proginfo.txt. - For a modified-document quit confirmation copied from
Templates,fec, read references/quit.md and use assets/window_quit.txt.
Supporting layout references
- For standard ordinary-window defaults, grouped-box spacing, and practical grey-colour notes, read references/window_defaults.md.
- For grouped icon boxes, read references/icons_grouped.md.
- For grouped radio-icon sets, read references/icons_groupedradios.md.
- For colour-selector label, swatch, and menu-button placement, read references/icons_colourselector.md.
- For a compact four-choice radio-icon layout, read references/icons_compactradios.md.
- For a label, value field, and chooser/menu button row, read references/icons_menuselector.md.
- For a slider-style selector with decrement and increment arrows, read references/icons_sliderselector.md.
- For a numeric selector with bump icons and a units suffix, read references/icons_numericselector.md.
- For the standard bottom-of-dialogue action-button row with a divider and right-aligned default button, read references/icons_dialoguebuttons.md.
- For option icons that toggle between off and on states, read references/icons_option.md.
- For a simple label-plus-display informational row, read references/icons_infobox.md.
- For a label-plus-arbitrary-input row, read references/icons_input.md.
Output rules
- Keep each bundled asset as a complete
wimp_windowblock that can be copied into a largerTemplateTextfile. - Preserve the icon order from the source template and record icon numbers in the matching reference file.
- Any plain text longer than
11characters should normally be encoded as indirected text, even for static labels, to avoid template-string truncation. - When laying out a dialogue, measure the content spacing from the visible work area, not from the outer title bar or screen position.
- For simple stacked dialogue content, balance the vertical layout so the gap from the top of the visible work area to the first row matches the gap from the last content row to the divider or button-row separator.
- Keep related clickable icons in the same logical set the same width and height where practical, usually by sizing the whole set to the largest required hit area, except where differing control styles are intentionally signalling different actions.
- Do not normalise paired
R5/R6buttons to the same size; check the style-guide sizing rules for those button types first. - Prefer one reference file per window type so only the relevant window description is loaded.
- When the user asks for multiple windows, combine only the required assets instead of loading every reference.
Maintaining this skill
When adding a new window type to the skill, read references/updating-the-skill.md and follow that process exactly.
In this repository47 other files it gives its agents.
- allocating-resourcesSkill
- ci-testingSkill
- creating-pull-requestsSkill
- designing-modulesSkill
- porting-to-riscos-cSkill
- reading-assemblySkill
- riscos-commandsSkill
- riscos-desktop-fileractionSkill
- riscos-filer-likeSkill
- riscos-filesystemSkill
- riscos-graphics-convertersSkill
- riscos-network-dcistatisticsSkill
- riscos-network-resolverSkill
- riscos-outputSkill
- riscos-reSkill
- riscos-styleSkill
- riscos-throwbackSkill
- riscos-urls-fetchingSkill
- riscos-urls-launchingSkill
- riscos-wimp-appSkill
- riscos-wimpSkill
- updating-robe-skillsSkill
- using-bbcbasicSkill
- using-cmhgSkill
- using-ghSkill
- using-gitSkill
- using-libasmSkill
- using-libgcontextSkill
- using-liboslibSkill
- using-libriscoslibSkill
- using-libtoolboxSkill
- using-makefilesSkill
- using-perlSkill
- using-stronghelpSkill
- using-toolbox-imagefilegadgetSkill
- using-tooltesterSkill
- writing-assemblySkill
- writing-assembly-testsSkill
- writing-cmodulesSkill
- writing-cplusplusSkill
- writing-cSkill
- writing-fortranSkill
- writing-oslib-defsSkill
- writing-pascalSkill
- writing-prminxmlSkill
- writing-pymodulesSkill
- writing-pyromaniac-integration-testsSkill
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

