Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

fobis

БесплатноБез исполняемых скриптовНе проверен

Expert knowledge of FoBiS.py (Fortran Building System for poor men) — an automatic Fortran build tool that resolves module dependency hierarchies without…

szaghiот szaghi★ 143 звезды на GitHub

Об этом скилле

FoBiS.py Expert Knowledge

FoBiS.py is a CLI tool that auto-builds modern Fortran projects by parsing source files and resolving inter-module dependency hierarchies. It eliminates manual makefile dependency tracking.

Currency: This reflects FoBiS.py 3.8.x (16-subcommand Typer CLI). The canonical CLI binary is fobis; FoBiS.py remains a legacy alias. Flags use double-dash long form (--mode, --ex, --ls, --lmodes). Legacy single-dash multi-char forms (-mode, -ex) are auto-normalized but should not be written in new scripts/docs.

Core Concept

FoBiS.py scans your source directories, parses every .f90 (and related) file for module, use, and include statements, builds a dependency graph, and compiles in the correct order. The only file you need is fobos — the project configuration file (INI format, auto-loaded from the current directory).


CLI Commands

20 subcommands, grouped by purpose. Every command except commit, kb, mcp, llm and the scaffold/ecosystem sub-apps accepts --fobos/-f <path> (non-default fobos file) and --mode <name> (select a build mode).

Build & run

fobis build              # compile and link (the default workhorse)
fobis run [TARGET] [-- ARGS...]   # build if needed, then execute (passthrough args after --)
fobis test [--quiet] [-- ARGS...]  # discover, build, run Fortran test programs (passthrough; --quiet: no build settings per test)
fobis coverage           # generate coverage reports from instrumented runs
fobis check              # validate the dependency graph without building
  • build: every compiler/dir/file/preproc option plus profiles, features, varsets, multi-target, hooks, externals — see the fobos option table below. Supports --json.
  • run: positional TARGET optional (defaults to the mode's output). --no-build, --dry-run, --example NAME. Args after -- are forwarded to the executed binary.
  • test: --suite NAME, --filter GLOB, --timeout SEC (default 60), --no-build, --list, --coverage. Args after -- forwarded to test binaries.
  • run/test launcher: --launcher "mpirun -np {ranks}" (or "gdb --args", "valgrind --error-exitcode=1"), --ranks N replaces {ranks} (default 1; --ranks alone = mpirun -np N). Precedence: --launcher > mode key launcher > [test] launcher. Not on PATH, or ranks on a [scheduler] login_nodes host -> exit 2 before building. test --runner slurm: launcher inside the job script, --ranks alone uses srun + --ntasks.
  • test -j N ([test] jobs): tests built one after the other, then up to N programs at once (a test with --ranks R takes R slots); results in discovery order; summary/JSON add the elapsed time (jobs, elapsed). Same working directory as serial runs: tests writing the same file need distinct names or -j 1. test --no-build runs what a previous fobis test built (<build_dir>/test/<name>).
  • coverage: --format html|xml|text|all (repeatable, default html), --output-dir, --source-dir, --exclude GLOB, --fail-under N, --tool gcovr|lcov.
  • check: --strict (warnings → errors, exit 1), --varset, --src.

Project

fobis fetch              # clone + build GitHub deps from the [dependencies] section
fobis install [REPO]     # install built local files, or clone+build+install a GitHub repo
fobis introspect         # emit machine-readable project metadata (JSON/TOML)
fobis tree               # print the resolved inter-project dependency tree
  • fetch: --update, --no-build, --frozen (enforce lockfile), --no-dev. The clone directory is [dependencies] deps_dir only. Supports --json.
  • install: positional REPO (user/repo or full URL) optional. Local mode (no REPO) installs previously built artifacts to --prefix/-p (default ./) under --bin/--lib/--include. GitHub mode: --branch, --tag, --rev, --update, --no-build, --deps-dir (default ~/.fobis/).
  • introspect: --sources, --compiler, --dependencies, --targets, --include-dirs, --buildoptions, --projectinfo, --varsets, --all, --write (to .fobis-info/), --format json|toml, --varset. --compile-commands (alone): the mode's compilation database as a JSON list, nothing built.
  • Compilation database (opt-in): compile_commands = True in a mode or fobis build --compile-commands writes <build_dir>/compile_commands.json (every compiled source: directory, file, exact arguments, output) before compiling, linked as ./compile_commands.json (never over a file FoBiS did not write; .fobis/ builds leave the root alone); fobis clean removes it. Add it to .gitignore (a new root file breaks clean-tree release checks).
  • tree: --depth/-d N, --no-dedupe.

Utilities

fobis clean              # remove compiled objects/mods (use carefully)
fobis rule --ex <name>   # run a custom shell rule from fobos (and intrinsic rule
Полный SKILL.md на GitHub

Установить fobis в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл fobis?

Expert knowledge of FoBiS.py (Fortran Building System for poor men) — an automatic Fortran build tool that resolves module dependency hierarchies without manual makefiles. Use this skill whenever the user asks about: writing or editing a fobos file; running any fobis subcommand (build, clean, fetch, install, rule, doctests, scaffold, check, test, coverage, tree, introspect, run, commit, ecosystem, lint, kb, mcp, llm); linting Fortran code (fobis lint: correctness, obsolescent features, OpenMP/OpenACC/MPI defects, compiler feedback, baselines, suppressions); the knowledge packs (fobis kb); the MCP server (fobis mcp); running local LLMs (fobis llm: runtime, models, serve, doctor); managing several interconnected FoBiS repositories as a whole (fobis ecosystem: registry, dashboard, cross-repo exec/fetch/check/scaffold, release train); Fortran project build configuration; diagnosing FoBiS build errors; adding GitHub dependencies to a Fortran project; the --json output flag; multi-mode builds; templates; variables and varsets; library builds (static/shared); MPI/OpenMP/coarray/OpenMP-offload builds; feature flags and conditional compilation; build profiles; external-library auto-detection and pkg-config (.pc) generation; multi-target builds; convention-based source auto-discovery; the lock file and semver dependency constraints; the first-class test runner and coverage reports; LLM-assisted commit messages; the cflags-heritage feature; parallel compilation; or any question that mentions "fobos", "FoBiS", or building Fortran projects. When in doubt, trigger this skill — it is better to consult it unnecessarily than to miss it.

Как установить скилл fobis?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл fobis запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить fobis с