writing-fortran
Skill4 starsChanged 7 months agoMITView on GitHub
Use when writing, reading, updating, building, or reviewing Fortran code in the RISC OS build environment, especially when compiling with riscos64-fortran, linking with C, passing _kernel_swi_regs, handling C/control-terminated strings, or generating Fortran modules from RISC OS header constants.
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
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
- Distinctive: line 11
Use this skill for Fortran work in the RISC OS build environment.
- Distinctive: line 13
Read only the reference files needed for the task:
- Very specific: line 30
Always link -lgfortran when any Fortran object is present.
- Very specific: line 32
Always use implicit none in every program, module, function, and subroutine.
- Very specific: line 35
Use modules for shared constants and library code.
- Very specific: line 41
Use value in Fortran for scalar arguments passed by value from C.
- Very specific: line 45
Do not read or write generated .rotransform files.
≈ “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
Writing Fortran for RISC OS
Use this skill for Fortran work in the RISC OS build environment.
Read only the reference files needed for the task:
- Build, source layout, modules, and command lines:
references/building.md - C/Fortran interworking, C strings, and
_kernel_swi_regs:references/c-interop.md - Generated constants and Fortran modules from RISC OS headers:
references/generated-constants.md - Common RISC OS build pitfalls and review checks:
references/pitfalls.md
Core Rules
Fortran source files live in f90/ and do not have a .f90 suffix in the
host filesystem. Use RISC OS-style names with the wrappers, for example:
riscos64-fortran -c -o o.name f90.name
riscos64-link o.name -lgfortran -o name,ff8Always link -lgfortran when any Fortran object is present.
Always use implicit none in every program, module, function, and
subroutine.
Use modules for shared constants and library code. Fortran module names are
flat; there is no use riscos/WimpSpace path syntax. Prefer namespaced module
names such as riscos_wimpspace.
For C-facing interfaces, use iso_c_binding and bind(C, name="...").
Use value in Fortran for scalar arguments passed by value from C.
For _kernel_swi_regs, C regs.r[0] maps to Fortran regs(1).
Do not read or write generated .rotransform files.
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-libtoolboxSkill
- using-makefilesSkill
- using-perlSkill
- using-stronghelpSkill
- using-toolbox-imagefilegadgetSkill
- using-tooltesterSkill
- writing-assemblySkill
- writing-assembly-testsSkill
- writing-cmodulesSkill
- writing-cplusplusSkill
- writing-cSkill
- 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.
Reviews can't be read right now.
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.

