agentsclimarketplace

Writing fortran

Skill gerph/riscos-agent-skills/skills/writing-fortran

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.From its SKILL.md

Install
npx -y skills add gerph/riscos-agent-skills --skill writing-fortran

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 3 stars3 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its file declares

Copied from the file, not written here

The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.

SKILL.md

1.7 KB, 360 tokens by cl100k_base, as published. Nobody here has run it

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,ff8

Always 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.

What ships with it: 5 files

8.7 KB alongside SKILL.md

agents/

Keep looking

Skills are one crate of 611,884. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.