ソース情報
- リポジトリ
- GEOS-ESM/MAPL
- ソースの最終更新活動
- 2026年2月12日 19:32
- 検出された SKILL.md の言語
- 英語
- スター
- 43
- フォーク
- 25
インストール方法
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
ソースファイルを確認
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
メニュー
デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。
インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。
SOC 職業分類に基づく
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
直接コマンドでは確認用 Prompt が省略されます。実行前にソースを確認してください。
npx skills add https://github.com/GEOS-ESM/MAPL --skill mapl-setupコマンドは1行のまま表示されます。コピー前に横へスクロールして全体を確認してください。
ローカルで確認しますか?SkillsMP が現在取得できるファイルをダウンロードできます。
SKILL.md を表示中
| name | mapl-setup |
| description | First-time MAPL development environment setup and configuration |
| compatibility | opencode |
Guide you through initial MAPL development environment setup, including:
Use this skill when:
MAPL supports customizable module names via ~/.opencode/mapl-config.yaml. This file allows you to map generic names (like "nag") to your system's actual module names (like "compiler/nag-fortran").
A template configuration file has been created at ~/.opencode/mapl-config.yaml. Edit this file to match your system's module names.
Step 1: List available modules
module avail
Step 2: Search for specific modules
# Find Fortran compilers
module avail 2>&1 | grep -i fortran
module avail 2>&1 | grep -i nag
module avail 2>&1 | grep -i gfortran
module avail 2>&1 | grep -i gcc
# Find MPI implementations
module avail 2>&1 | grep -i mpi
module avail 2>&1 | grep -i openmpi
# Find baselibs
module avail 2>&1 | grep -i baselibs
module avail 2>&1 | grep -i mapl
Step 3: Update your config file
Edit ~/.opencode/mapl-config.yaml with the module names found above:
modules:
nag: "compiler/nag-fortran" # Use the exact name from module avail
gfortran: "gcc/13" # Or gnu-fortran, compiler/gnu, etc.
mpi: "openmpi/4.1" # Or mpi, mpich, intel-mpi
baselibs: "MAPL-baselibs" # Or baselibs, mapl-deps
ifx: "ifx-stack" # For bucy (usually same for everyone)
paths:
mapl_root: "~/swdev/VS/MAPL" # Your MAPL checkout location
build_dir_prefix: "" # Empty for ./nag, or "build-" for ./build-nag
# Test loading NAG compiler
module load nag mpi baselibs # Or use your configured names
module list
# Verify compiler is accessible
which nagfor # Should show path to compiler
nagfor --version
# Test gfortran (if available)
module purge
module load gfortran mpi baselibs
which gfortran
gfortran --version
# Check CMake is available
which cmake
cmake --version # Should be 3.17 or newer
# Check Git
which git
git --version
CRITICAL: Always clarify which base branch to use before starting work.
develop - Legacy MAPL (MAPL 2.x maintenance)
release/MAPL-v3 - MAPL v3 pre-release
When starting new work, create a feature branch following the pattern:
feature/#ISSUE-description
bugfix/#ISSUE-description
hotfix/#ISSUE-description
Where #ISSUE is the GitHub issue number (e.g., feature/#4392-add-opencode-skills).
Always create a GitHub issue first to get the issue number before creating your feature branch.
If you'll be building on the remote bucy server with Intel compilers, set up SSH ControlMaster to avoid repeated PIN entries.
~/.ssh/config:Host bucy bucy.gsfc.nasa.gov
ControlMaster auto
ControlPath ~/.ssh/cm-%r@%h:%p
ControlPersist 8h
ssh -fN bucy # Enter PIN once
This creates a persistent SSH connection that lasts 8 hours. All subsequent SSH commands will reuse this connection without asking for PIN.
See the remote-build skill for complete bucy workflow details.
# Edit your config file
vi ~/.opencode/mapl-config.yaml
# Or use the template directly and test
module load nag mpi baselibs
module list
cd ~/swdev/VS # Or your preferred location
git clone git@github.com:GEOS-ESM/MAPL.git
cd MAPL
# For MAPL 2.x work:
git checkout develop
# For MAPL v3 work:
git checkout release/MAPL-v3
See the mapl-build skill for detailed build instructions.
Quick test:
module load nag mpi baselibs
cmake -B build-test -DCMAKE_BUILD_TYPE=Debug
cmake --build build-test -j 4
Problem: Shell doesn't have module command Solution: Source the modules init script
source /etc/profile.d/modules.sh
# Or add to your ~/.bashrc or ~/.zshrc
Problem: Module names don't match your system
Solution: Use module avail to find exact names, update your config file
Problem: CMake version < 3.17 Solution: Load newer cmake module or install via package manager
module avail cmake # Look for newer version
# Or: brew install cmake (macOS)
Problem: Old build directories from different compilers Solution: Use separate build directories per compiler
rm -rf ./build ./build-test # Remove old directories
# Use: ./nag, ./gfortran, ./intel (see mapl-build skill)
After setup, use these skills for specific tasks:
mapl-build - Build MAPL with different compilersmapl-testing - Run and debug testsfortran-style - Learn MAPL coding standardsgithub-workflow - Understand Git/GitHub conventionsremote-build - Build on bucy with Intel compiler~/.opencode/mapl-config.yaml with your module namesmodule load, module list)develop vs release/MAPL-v3 branch strategy