agentleFS
gerphgerph/riscos-agent-skills/skills/using-libtoolbox/SKILL.md

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
  1. Distinctive:

    Use this skill when working with the installed Toolbox veneer headers and related Toolbox object modules.

    line 10
  2. Distinctive:

    Read references/core-toolbox.md if the task involves application startup, object lifecycle, event flow, resource files, or generic Toolbox …

    line 21
  3. Distinctive:

    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 …

    line 22
  4. Distinctive:

    Read references/application-structure.md if the task needs generic Toolbox application wiring such as object creation, event registration, …

    line 23
  5. Distinctive:

    Read references/header-map.md and then load only the per-header reference files that match the object classes, gadgets, or support headers …

    line 24
  6. Distinctive:

    If the task is about standard dialogues, iconbar objects, or menus, read references/dialogues-and-menus.md.

    line 25
  7. Distinctive:

    If the task is about windows, toolbars, redraw, or gadget composition, read references/windows-and-gadgets.md.

    line 26
  8. Very specific:

    If the task uses non-core gadget or object modules such as textarea, scrolllist, imagefilegadget, ToolAction, or optionswindow, read …

    line 27
  9. Distinctive:

    Treat the installed headers as the concrete API reference for function names, types, constants, method numbers, and event structures.

    line 31
  10. Distinctive:

    Treat the RISCOS.com Toolbox manual as the behavioural reference for how the standard Toolbox classes are intended to be used.

    line 32
  11. Very specific:

    Prefer object-level Toolbox methods and events over raw Wimp manipulation unless the code clearly needs the bridge points exposed by …

    line 33
  12. Very specific:

    When reading existing code, expect a mixture of Toolbox and Wimp APIs.

    line 34

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

  1. Read references/overview.md.
  2. Read references/core-toolbox.md if the task involves application startup, object lifecycle, event flow, resource files, or generic Toolbox SWIs.
  3. 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.
  4. 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.
  5. 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.
  6. If the task is about standard dialogues, iconbar objects, or menus, read references/dialogues-and-menus.md.
  7. If the task is about windows, toolbars, redraw, or gadget composition, read references/windows-and-gadgets.md.
  8. If the task uses non-core gadget or object modules such as textarea, scrolllist, imagefilegadget, ToolAction, or optionswindow, read references/extensions.md and then the specific generated header reference in references/.

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, or wimp.
  • When reading existing code, expect a mixture of Toolbox and Wimp APIs. Confirm whether the code is operating on a Toolbox ObjectId or 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 NumberRange and StringSet, 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.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.