scientific-build-systems
Skill1 starsChanged 6 months agoApache-2.0View on GitHub
Configure and maintain build systems for scientific-computing and
In this repository25 other files it gives its agents.
- AGENTS.mdAGENTS.md
- developer-tool-installation-policySkill
- git-refactor-hygieneSkill
- project-repository-setupSkill
- scientific-accelerator-portabilitySkill
- scientific-ciSkill
- scientific-cli-benchmarkSkill
- scientific-cli-designSkill
- scientific-code-styleSkill
- scientific-container-workflowsSkill
- scientific-data-analysis-and-visualizationSkill
- scientific-data-managementSkill
- scientific-documentationSkill
- scientific-io-and-data-formatsSkill
- scientific-notebook-workflowsSkill
- scientific-numerics-reviewSkill
- scientific-package-managementSkill
- scientific-parallel-debuggingSkill
- scientific-performance-portabilitySkill
- scientific-profilingSkill
- scientific-release-and-publicationSkill
- scientific-reproducibilitySkill
- scientific-reviewSkill
- scientific-testingSkill
- scientific-workflow-automationSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
36 rules. About 0 are common, 33 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈33
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 11
Use this skill when editing or reviewing build configuration for scientific, numerical, or parallel software and the repository needs …
- Distinctive: line 29
Use this skill when:
- Distinctive: line 37
Do not use this skill to override explicit repository policy or cluster-specific toolchain constraints that are already documented.
- Distinctive: line 42
When this skill applies:
- Distinctive: line 44
Read the repository AGENTS.md first, if present.
- Distinctive: line 46
Prefer target-scoped settings over global flags.
- Distinctive: line 48
Keep release, debug, and sanitizer workflows explicit.
- Distinctive: line 51
Prefer extending the repository's current build system rather than migrating it unless the user explicitly asks for that change.
- Distinctive: line 56
Prefer CMake for compiled scientific projects when the build system is open to choice.
- Distinctive: line 58
Use modern target-based CMake patterns rather than directory-wide global state.
- Distinctive: line 59
Prefer explicit language standards such as C11, C17, or C++20 when supported by the repository toolchain.
- Distinctive: line 61
Keep warning configuration reusable and target-scoped.
- Distinctive: line 75
Do not weaken warnings in optimized builds merely to keep them quiet.
- Very specific: line 79
Start from a practical warning baseline such as -Wall -Wextra -Wpedantic where supported.
- Distinctive: line 81
Add stricter warnings incrementally when the codebase is ready for them.
- Distinctive: line 82
Treat new warnings as issues to fix rather than noise to suppress.
- Distinctive: line 83
Prefer narrow suppressions with clear rationale when suppression is necessary.
- Distinctive: line 84
Keep warning helpers target-scoped so third-party code is not affected by project policies.
- Very specific: line 93
Prefer portable baseline optimization such as -O2 or -O3 through the build type rather than hand-appending flags everywhere.
- Distinctive: line 95
Avoid enabling architecture-specific tuning globally unless the repository is explicitly single-machine or single-cluster.
- Distinctive: line 97
Use link-time optimization only when the toolchain and dependency stack are known to support it cleanly.
- Distinctive: line 99
Document any non-default flags added for performance investigation.
- Distinctive: line 101
If users want per-machine tuning, expose it as an option rather than making it the default behavior for everyone.
- Distinctive: line 106
Add AddressSanitizer and UndefinedBehaviorSanitizer as opt-in developer tools when the compiler supports them.
- Distinctive: line 108
Keep sanitizer flags out of normal release builds.
- Distinctive: line 110
Document runtime caveats such as MPI launcher interaction or unsupported vendor libraries.
- Distinctive: line 113
When practical, keep sanitizer configuration behind a dedicated option or build preset instead of mixing it into unrelated build modes.
- Distinctive: line 118
Prefer discovered packages through the repository's existing mechanism.
- Distinctive: line 119
Keep dependency declarations explicit and version expectations clear.
- Distinctive: line 120
Avoid hardcoding machine-local paths unless the environment requires it.
- Distinctive: line 139
Avoid pushing project policy into global variables when target properties are enough.
- Very specific: line 144
Prefer CMakePresets.json when the repository already uses presets or when multiple repeatable developer configurations are needed.
- Distinctive: line 146
Use presets to separate common workflows such as debug, release, profiling, and sanitizer builds.
- Distinctive: line 148
Keep host-specific values out of shared presets unless they are intentionally local-only.
- Distinctive: line 167
If build options were added, test the affected configuration paths directly.
- Distinctive: line 173
When using this skill, briefly note:
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
Scientific Build Systems
Use this skill when editing or reviewing build configuration for scientific, numerical, or parallel software and the repository needs practical defaults for correctness, portability, and performance-oriented development.
Repository AGENTS.md instructions take precedence over this skill.
Purpose
Apply a pragmatic default for:
- CMake-style project structure and target-scoped settings;
- warning profiles and language-standard choices;
- debug, release, and sanitizer-oriented build types;
- dependency handling in research and HPC environments;
- portable optimization settings that avoid overfitting to one machine.
When To Use
Use this skill when:
- the user asks to add or clean up build-system configuration;
- compiler flags, warnings, or language standards need a consistent baseline;
- the project needs clearer debug versus release behavior;
- sanitizers or analysis builds should be added without disrupting normal use;
- a scientific codebase must build across laptops, clusters, or CI machines.
Do not use this skill to override explicit repository policy or cluster-specific toolchain constraints that are already documented.
Working Approach
When this skill applies:
- Read the repository
AGENTS.mdfirst, if present. - Inspect the existing build entry points before introducing new structure.
- Prefer target-scoped settings over global flags.
- Separate developer-friendly defaults from machine-specific tuning.
- Keep release, debug, and sanitizer workflows explicit.
- State what was changed, what was validated, and what remains environment-specific.
Prefer extending the repository's current build system rather than migrating it unless the user explicitly asks for that change.
Preferred Defaults
- Prefer CMake for compiled scientific projects when the build system is open to choice.
- Use modern target-based CMake patterns rather than directory-wide global state.
- Prefer explicit language standards such as C11, C17, or C++20 when supported by the repository toolchain.
- Keep warning configuration reusable and target-scoped.
- Reserve machine-specific flags such as
-march=nativefor opt-in builds, not broad defaults.
Build Types
Distinguish build intents clearly:
Debugfor diagnostics, assertions, and source-level debugging;Releasefor optimized production-style performance work;RelWithDebInfoas a practical default for profiling and many scientific development tasks;- sanitizer-oriented builds for memory and undefined-behavior diagnosis.
Do not weaken warnings in optimized builds merely to keep them quiet.
Compiler Warnings
- Start from a practical warning baseline such as
-Wall -Wextra -Wpedanticwhere supported. - Add stricter warnings incrementally when the codebase is ready for them.
- Treat new warnings as issues to fix rather than noise to suppress.
- Prefer narrow suppressions with clear rationale when suppression is necessary.
- Keep warning helpers target-scoped so third-party code is not affected by project policies.
For numerically sensitive code, consider -Wshadow, -Wconversion,
-Wsign-conversion, or -Wdouble-promotion only when the cleanup cost is
understood.
Optimization Flags
- Prefer portable baseline optimization such as
-O2or-O3through the build type rather than hand-appending flags everywhere. - Avoid enabling architecture-specific tuning globally unless the repository is explicitly single-machine or single-cluster.
- Use link-time optimization only when the toolchain and dependency stack are known to support it cleanly.
- Document any non-default flags added for performance investigation.
If users want per-machine tuning, expose it as an option rather than making it the default behavior for everyone.
Sanitizers and Analysis Builds
- Add AddressSanitizer and UndefinedBehaviorSanitizer as opt-in developer tools when the compiler supports them.
- Keep sanitizer flags out of normal release builds.
- Disable or adjust incompatible optimizations only as needed for usable reports.
- Document runtime caveats such as MPI launcher interaction or unsupported vendor libraries.
When practical, keep sanitizer configuration behind a dedicated option or build preset instead of mixing it into unrelated build modes.
Dependencies
- Prefer discovered packages through the repository's existing mechanism.
- Keep dependency declarations explicit and version expectations clear.
- Avoid hardcoding machine-local paths unless the environment requires it.
- Distinguish required dependencies from optional accelerators or tooling.
- Make it easy to build a minimal feature set when full HPC dependencies are unavailable on a developer machine.
For HPC-style environments, expect variation across module systems, compilers, MPI stacks, and BLAS implementations.
CMake Patterns
Prefer patterns like:
- target-specific compile features and compile options;
- small helper functions for warnings or sanitizer flags;
option()for opt-in features and heavyweight dependencies;find_package()or repository-native discovery rather than manual include path duplication;ctestintegration when tests exist.
Avoid pushing project policy into global variables when target properties are enough.
Presets and Reproducibility
- Prefer
CMakePresets.jsonwhen the repository already uses presets or when multiple repeatable developer configurations are needed. - Use presets to separate common workflows such as debug, release, profiling, and sanitizer builds.
- Keep host-specific values out of shared presets unless they are intentionally local-only.
Presets are useful when the same build modes must be reproduced across local development, CI, and cluster login nodes.
Anti-Patterns
- forcing one developer's machine-specific flags on all users;
- mixing debug, release, and sanitizer concerns into one opaque flag set;
- global include and compile flag mutations when target-scoped settings suffice;
- silently disabling warnings to get a build through;
- hardcoding dependency paths that should be discovered or configured;
- adding build-system complexity before confirming the repository needs it.
Validation Defaults
- Configure from a clean build directory when practical.
- Validate at least one normal developer build after changing build logic.
- If build options were added, test the affected configuration paths directly.
- Record which compiler, generator, and important options were used.
- State explicitly what could not be validated in the current environment.
Output Expectations
When using this skill, briefly note:
- which build-system files and targets were changed;
- which warning, standard, or build-type policies were introduced or preserved;
- whether sanitizer, preset, or dependency logic was added;
- which build commands were run;
- which portability or toolchain risks remain.
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.

