using-libtoolbox
Skill4 starsChanged 7 months agoMITView on GitHub
Use the installed Toolbox veneer headers and the public Toolbox manual to create, inspect, and understand RISC OS Toolbox applications, windows, menus, dialogues, and gadget extensions. Use when code includes headers from `/riscos-resources/Export/Lib/tboxlibs/h/`, when a task needs Toolbox object methods/events/types, or when an agent must choose the right calls for SaveAs, Window, Menu, Iconbar, or Toolbox gadget work.
We split this skill into the rules it gives an agent
12 rules. About 0 are common, 9 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈9
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this skill when working with the installed Toolbox veneer headers and related Toolbox object modules.
- Distinctive: line 21
Read references/core-toolbox.md if the task involves application startup, object lifecycle, event flow, resource files, or generic Toolbox …
- Distinctive: line 22
Read references/simple-application.md if the task is a small Toolbox application or iconbar utility and you need an end-to-end structure to …
- Distinctive: line 23
Read references/application-structure.md if the task needs generic Toolbox application wiring such as object creation, event registration, …
- Distinctive: line 24
Read references/header-map.md and then load only the per-header reference files that match the object classes, gadgets, or support headers …
- Distinctive: line 25
If the task is about standard dialogues, iconbar objects, or menus, read references/dialogues-and-menus.md.
- Distinctive: line 26
If the task is about windows, toolbars, redraw, or gadget composition, read references/windows-and-gadgets.md.
- Very specific: line 27
If the task uses non-core gadget or object modules such as textarea, scrolllist, imagefilegadget, ToolAction, or optionswindow, read …
- Distinctive: line 31
Treat the installed headers as the concrete API reference for function names, types, constants, method numbers, and event structures.
- Distinctive: line 32
Treat the RISCOS.com Toolbox manual as the behavioural reference for how the standard Toolbox classes are intended to be used.
- Very specific: line 33
Prefer object-level Toolbox methods and events over raw Wimp manipulation unless the code clearly needs the bridge points exposed by …
- Very specific: line 34
When reading existing code, expect a mixture of Toolbox and Wimp APIs.
≈ “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
using-libtoolbox
Use this skill when working with the installed Toolbox veneer headers and related Toolbox object modules.
Primary locations:
- Installed veneers:
/riscos-resources/Export/Lib/tboxlibs/h/ - Core Toolbox header:
/riscos-resources/Export/Export/Lib/tboxlibs/h/toolbox - Public behavioural manual:
http://www.riscos.com/support/developers/toolbox/index.html
Workflow
- Read references/overview.md.
- Read references/core-toolbox.md if the task involves application startup, object lifecycle, event flow, resource files, or generic Toolbox SWIs.
- Read references/simple-application.md if the task is a small Toolbox application or iconbar utility and you need an end-to-end structure to follow.
- Read references/application-structure.md if the task needs generic Toolbox application wiring such as object creation, event registration, iconbar/menu linkage, background null-event work, or runtime state updates.
- Read references/header-map.md and then load only the per-header reference files that match the object classes, gadgets, or support headers used by the task.
- If the task is about standard dialogues, iconbar objects, or menus, read references/dialogues-and-menus.md.
- If the task is about windows, toolbars, redraw, or gadget composition, read references/windows-and-gadgets.md.
- If the task uses non-core gadget or object modules such as
textarea,scrolllist,imagefilegadget,ToolAction, oroptionswindow, read references/extensions.md and then the specific generated header reference inreferences/.
Rules
- Treat the installed headers as the concrete API reference for function names, types, constants, method numbers, and event structures.
- Treat the RISCOS.com Toolbox manual as the behavioural reference for how the standard Toolbox classes are intended to be used.
- Prefer object-level Toolbox methods and events over raw Wimp manipulation unless the code clearly needs the bridge points exposed by
window,gadgets, orwimp. - When reading existing code, expect a mixture of Toolbox and Wimp APIs. Confirm whether the code is operating on a Toolbox
ObjectIdor a raw Wimp handle before proposing changes. - For SaveAs work, pay attention to the Toolbox-managed save protocol rather than assuming the application handles raw Wimp data-transfer messages itself.
- For composite gadgets such as
NumberRangeandStringSet, prefer the family API before reaching into child components. - For extension headers that are not part of the classic Toolbox chapters, rely on the generated per-header references first; they are the primary source in this skill for those modules.
Generated References
The per-header Markdown files in references/ are generated from the installed headers by:
scripts/generate_header_refs.py
Re-run that script if the installed header set changes and the per-header references need to be refreshed.
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
- riscos-wimp-templatesSkill
- updating-robe-skillsSkill
- using-bbcbasicSkill
- using-cmhgSkill
- using-ghSkill
- using-gitSkill
- using-libasmSkill
- using-libgcontextSkill
- using-liboslibSkill
- using-libriscoslibSkill
- 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.

