scientific-cli-design
Skill1 starsChanged 6 months agoApache-2.0View on GitHub
Design and review command-line interfaces for scientific-computing
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-build-systemsSkill
- scientific-ciSkill
- scientific-cli-benchmarkSkill
- 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
29 rules. About 0 are common, 29 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈29
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 10
Use this skill when editing or reviewing a scientific, numerical, or parallel program's command-line interface and run semantics, …
- Distinctive: line 28
Use this skill when:
- Distinctive: line 36
Do not use this skill to replace GUI design or domain-specific workflow engines.
- Distinctive: line 40
When this skill applies:
- Distinctive: line 42
Read the repository AGENTS.md first, if present.
- Distinctive: line 46
Keep CLI behavior compatible with scripting, CI, and batch schedulers.
- Distinctive: line 49
Prefer extending the repository's existing CLI style rather than inventing a new interface shape unless the current one is clearly a …
- Distinctive: line 54
Prefer descriptive option names over cryptic abbreviations.
- Distinctive: line 55
Use positional arguments only for a small number of obvious required inputs.
- Distinctive: line 56
Keep performance tuning options separate from scientific model parameters when possible.
- Distinctive: line 58
Document defaults and avoid hidden behavior changes triggered by unrelated flags.
- Distinctive: line 60
Prefer explicit units in option names or help text when ambiguity is likely.
- Distinctive: line 69
Prefer printing or recording the resolved configuration for each run.
- Distinctive: line 70
Avoid silently ignoring unknown config keys or malformed values.
- Distinctive: line 71
Keep config formats human-editable unless the repository already requires another convention.
- Distinctive: line 80
Check file existence, writable output locations, and numeric ranges early.
- Distinctive: line 83
Avoid silently clamping or correcting scientific parameters unless that behavior is documented and justified.
- Distinctive: line 93
Prefer stable filenames or structured run directories for generated artifacts.
- Distinctive: line 103
Avoid mandatory interactivity for normal runs.
- Distinctive: line 108
Avoid progress output patterns that flood logs or break parsers at scale.
- Distinctive: line 109
Prefer deterministic exit behavior suitable for shell scripts and CI.
- Distinctive: line 116
Prefer printing version, config, seed, and major runtime settings when useful.
- Distinctive: line 117
Keep benchmark-relevant options explicit rather than hidden in source edits.
- Distinctive: line 118
Avoid changing output formats or default parameter semantics without calling that out clearly.
- Distinctive: line 135
Run help output and at least one representative command when practical.
- Distinctive: line 136
Test invalid arguments and confirm the error messages are useful.
- Distinctive: line 137
Verify output locations, exit codes, and logging behavior for changed paths.
- Distinctive: line 138
Check that documented examples still match the implemented CLI.
- Distinctive: line 143
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 CLI Design
Use this skill when editing or reviewing a scientific, numerical, or parallel program's command-line interface and run semantics, especially when the CLI is part of a reproducible workflow or batch pipeline.
Repository AGENTS.md instructions take precedence over this skill.
Purpose
Apply a pragmatic default for:
- clear CLI arguments and subcommands;
- robust parameter validation and error messages;
- config-file and command-line override behavior;
- predictable output, logging, and exit conventions;
- batch-friendly and reproducible scientific runs.
When To Use
Use this skill when:
- the user asks to add or improve a CLI for a scientific code;
- parameter names, defaults, or validation rules are unclear;
- outputs, logs, or checkpoint paths need predictable conventions;
- both interactive runs and batch/scheduler runs must work cleanly;
- command lines should be easy to document, rerun, and benchmark.
Do not use this skill to replace GUI design or domain-specific workflow engines.
Working Approach
When this skill applies:
- Read the repository
AGENTS.mdfirst, if present. - Identify the primary run modes and the smallest useful default command.
- Make required inputs, optional tuning knobs, and output destinations explicit.
- Validate arguments early and fail with actionable messages.
- Keep CLI behavior compatible with scripting, CI, and batch schedulers.
- State what command syntax, defaults, and output behavior changed.
Prefer extending the repository's existing CLI style rather than inventing a new interface shape unless the current one is clearly a maintenance problem.
Argument Design
- Prefer descriptive option names over cryptic abbreviations.
- Use positional arguments only for a small number of obvious required inputs.
- Keep performance tuning options separate from scientific model parameters when possible.
- Document defaults and avoid hidden behavior changes triggered by unrelated flags.
- Prefer explicit units in option names or help text when ambiguity is likely.
For booleans, use clear positive flags and avoid flag pairs that can contradict each other.
Config Files and Overrides
- Support config files when many parameters must be reproducible or rerun often.
- Make precedence between config values, CLI overrides, and defaults explicit.
- Prefer printing or recording the resolved configuration for each run.
- Avoid silently ignoring unknown config keys or malformed values.
- Keep config formats human-editable unless the repository already requires another convention.
CLI and config handling should make reruns easier, not create two subtly different configuration paths.
Validation and Error Handling
- Reject invalid parameter combinations before expensive computation starts.
- Check file existence, writable output locations, and numeric ranges early.
- Fail with nonzero exit codes and concise, actionable messages.
- Distinguish user-input errors from internal failures when practical.
- Avoid silently clamping or correcting scientific parameters unless that behavior is documented and justified.
For long batch runs, early validation is usually cheaper than discovering a bad setting after scheduling and startup overhead.
Output and Logging Conventions
- Make output paths explicit and avoid surprising writes to the current working directory unless that is the project convention.
- Prefer stable filenames or structured run directories for generated artifacts.
- Separate human-readable logs from machine-readable outputs when practical.
- Include enough metadata in logs or manifests to identify the run configuration.
- Support controllable verbosity without hiding important warnings.
For parallel runs, include rank or thread context in logs when it aids debugging without creating unmanageable noise.
Batch and HPC Friendliness
- Avoid mandatory interactivity for normal runs.
- Respect environment variables and scheduler-provided paths only when that behavior is explicit and documented.
- Make thread counts, rank counts, and affinity-relevant settings easy to pass or record.
- Avoid progress output patterns that flood logs or break parsers at scale.
- Prefer deterministic exit behavior suitable for shell scripts and CI.
Batch users should be able to rerun a job from one command and a saved config.
Reproducibility and Benchmarking
- Make command lines self-describing enough to reproduce reported runs.
- Prefer printing version, config, seed, and major runtime settings when useful.
- Keep benchmark-relevant options explicit rather than hidden in source edits.
- Avoid changing output formats or default parameter semantics without calling that out clearly.
A good scientific CLI should be easy to paste into documentation, tests, and benchmark scripts.
Anti-Patterns
- dozens of undocumented flags with unclear precedence;
- silent fallback to defaults after parsing errors;
- hidden writes, hidden randomness, or hidden environment-dependent behavior;
- output filenames that overwrite prior runs by accident;
- progress output that becomes unusable under MPI or many threads;
- one CLI path for local use and a different undocumented path for batch jobs.
Validation Defaults
- Run help output and at least one representative command when practical.
- Test invalid arguments and confirm the error messages are useful.
- Verify output locations, exit codes, and logging behavior for changed paths.
- Check that documented examples still match the implemented CLI.
- State explicitly which command forms were validated and which were not.
Output Expectations
When using this skill, briefly note:
- which CLI arguments, defaults, or config rules were added or changed;
- how invalid inputs and output paths are handled;
- whether logging, metadata, or batch behavior was improved;
- which CLI commands or help paths were tested;
- which usability or reproducibility concerns 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.

