/moos-ivp-skills:moos-ivp-repo-builderfrom MOOS-IvP Skills
Bootstraps a user-owned MOOS-IvP extension repository from the moos-ivp-extend template, configures environment paths, initializes Git, and validates the build.
Ships in MOOS-IvP Skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill to bootstrap a new external MOOS-IvP project modeled on the
course moos-ivp-extend tree. The goal is a working user-owned repository that
builds, has its bin, scripts, and behavior lib paths available from the
shell, and is ready for custom apps, behaviors, and missions.
This skill owns the repo shell and environment setup. For code inside the new repo, delegate follow-on work to:
moos-app-builder for custom MOOS appsivp-behavior-builder for custom IvP behaviorsmoos-ivp-mission-builder for runnable missionshttps://github.com/moos-ivp/moos-ivp-extend.git.git/, then run git init.<repo>/env.sh<repo>/bin and <repo>/scripts to PATH<repo>/lib to IVP_BEHAVIOR_DIRSUse a different template repo or skip the repo-local environment file only when the user explicitly asks.
Before cloning or editing files, collect and confirm:
<repo>/env.sh from
the user's preferred shell profile. If yes, confirm the profile path.If the user already gave these values and said to proceed, treat that as the confirmation. Otherwise, stop and ask a concise confirmation question before cloning.
When the user starts with a vague request such as "I want a new MOOS-IvP repo", guide them with one or two small questions at a time instead of dumping the whole checklist at once.
Good first move:
MOOS_IVP_ROOT in the background.Then ask for the target location, project display author, examples/defaults,
and shell integration preference as needed. If the user says "wherever is fine",
suggest a concrete default path and confirm it. Prefer a sibling of the
validated moos-ivp checkout, for example ~/my-new-repo when
MOOS_IVP_ROOT is ~/moos-ivp. Do not default to nesting the new repo inside
an unrelated active workspace. Explain that the project display author is for
README/CMake text, not a Git committer email.
When proposing persistent shell integration, show the concise block that would be added to the selected profile:
# >>> moos-ivp repo: <repo-name> >>>
[ -f "<absolute-repo-path>/env.sh" ] && . "<absolute-repo-path>/env.sh"
# <<< moos-ivp repo: <repo-name> <<<
Before side effects, summarize the resolved values in one sentence and ask for explicit confirmation.
Resolve MOOS_IVP_ROOT before cloning. Try, in order:
MOOS_IVP_ROOT from the shell environment.moos-ivp near the target path or current workspace.~/moos-ivp~/src/moos-ivp~/repos/moos-ivp~/projects/moos-ivpmoos-ivp, suppressing
expected permission noise.Validate a candidate by confirming:
ivp/src existsbuild-moos.sh existsbuild-ivp.sh existsscripts/GenMOOSApp_AppCasting exists and is executablescripts/GenBehavior exists and is executableIf no valid checkout is found, stop and ask explicitly for the path to the
local moos-ivp checkout. Do not clone, edit shell profiles, or create a
placeholder path.
If multiple checkouts are found, prefer the one nearest the target repo. State which path will be used in the confirmation.
Confirm setup values and validated MOOS_IVP_ROOT.
Create or verify the target parent directory.
Refuse to overwrite a non-empty target directory unless the user explicitly asks to reuse it.
Clone the template into the target path:
git clone https://github.com/moos-ivp/moos-ivp-extend.git <target-repo>
Detach the template Git metadata and initialize a fresh repo:
rm -rf .git
git init
git branch -M main
Customize repository text and build wiring.
README.md, migrate any
useful unique text from legacy README if needed, then remove README.
Keep both only if the user explicitly asks..github/workflows/build_extend.yml and .gitlab-ci.yml, and remove any
README badges or links that refer to the upstream template CI.moos-ivp-extend to the
new repo name in the retained README.# NAME: line and
any newly written project text. Label this to the user as the project
display author, not Git commit identity. Do not rewrite upstream example
source file authors unless the user explicitly asks to claim or replace
example code.PROJECT(...) only when a clear
project identifier is available. Use an uppercase, underscore-safe project
token.missions/alder/README or src/lib_behaviors-test/README, update only
path references needed for the examples to remain accurate.CMakeLists.txt, src/CMakeLists.txt,
and mission/example README files. Do not churn source-file history
comments merely to remove upstream maintainer names.MOOS_IVP_ROOT effective for builds. Treat it as a
setup-time input, not a shell variable that users must keep forever. The
upstream
template only searches nearby relative paths, so a repo outside the same
parent as moos-ivp can fail unless the path is wired explicitly.
Update top-level CMakeLists.txt with the resolved absolute path:
<moos-ivp-root>/build/MOOS/MOOSCore to CMAKE_PREFIX_PATH
before find_package(MOOS 10.0)<moos-ivp-root> to the
find_path(MOOSIVP_SOURCE_TREE_BASE ... PATHS ...) list
This makes normal future ./build.sh runs work without requiring
MOOS_IVP_ROOT in .bashrc.If the user requested a clean shell, remove sample source and mission directories carefully and keep the build skeleton valid. Otherwise retain examples so the baseline build has known artifacts to verify.
Create the repo-local shell environment file.
Write <repo>/env.sh.
Resolve the absolute paths for the new repo's bin, scripts, and
lib directories before writing the file.
Make repeated sourcing idempotent so PATH and IVP_BEHAVIOR_DIRS do not
accumulate duplicate entries.
Keep the file source-compatible with common Bash and zsh startup files.
Use this shape:
#!/usr/bin/env bash
# Source this file to use this MOOS-IvP extension repo.
case ":$PATH:" in *":<absolute-repo-bin>:"*) ;; *) PATH="$PATH:<absolute-repo-bin>" ;; esac
case ":$PATH:" in *":<absolute-repo-scripts>:"*) ;; *) PATH="$PATH:<absolute-repo-scripts>" ;; esac
case ":${IVP_BEHAVIOR_DIRS:-}:" in *":<absolute-repo-lib>:"*) ;; *) IVP_BEHAVIOR_DIRS="${IVP_BEHAVIOR_DIRS:+$IVP_BEHAVIOR_DIRS:}<absolute-repo-lib>" ;; esac
export PATH
export IVP_BEHAVIOR_DIRS
If the user opted into persistent shell integration, update the selected shell profile.
Ask for the profile path instead of assuming one. If the user named a
shell, suggest its usual profile, such as ~/.zshrc for zsh or
~/.bashrc for Bash, and ask for confirmation. If the user did not name a
shell, ask which profile to update and offer common choices: ~/.zshrc,
~/.bashrc, or no profile edit.
Create the profile file if it does not exist.
Preserve user content.
Append the managed source block near the end of the profile so it runs after earlier PATH setup. Do not insert it before later lines that reset or export PATH.
Use a clearly marked block:
# >>> moos-ivp repo: <repo-name> >>>
[ -f "<absolute-repo-path>/env.sh" ] && . "<absolute-repo-path>/env.sh"
# <<< moos-ivp repo: <repo-name> <<<
If the user opted out, leave the profile unchanged and tell them they can
run . <repo>/env.sh in a shell session.
Validate the baseline.
./build.sh from a normal tool-capable shell, not from a shell whose
profile has hidden basic build tools. The repo CMake should already have
the resolved moos-ivp path wired in, so build validation should not
depend on MOOS_IVP_ROOT being exported.bin/pXRelayTest exists and is executablelib/libBHV_SimpleWaypoint.dylib on macOS or
lib/libBHV_SimpleWaypoint.so on Linux exists<repo>/env.sh separately by sourcing it in a shell and
confirming the new absolute bin, scripts, and lib paths appear in
PATH / IVP_BEHAVIOR_DIRS.mkdir, make,
or cmake, report that as a profile/tooling issue, not as a repo build
failure.which pXRelayTest or command -v pXRelayTest only after applying
<repo>/env.sh or the selected profile.Initialize the first commit when the user asked for Git setup or when they asked for a ready fresh repo, but only if Git identity is already configured or the user supplied both a commit author name and email. Repository author text collected earlier is for project files, not enough to invent a Git committer email:
git add .
git commit -m "chore: initialize MOOS-IvP extension repo"
Skip the commit if Git user identity is missing and report the exact blocker instead of inventing identity values. Do not ask for Git email during the initial setup unless the user specifically wants the first commit completed in the same turn.
If no remote was attached, mention the natural next step: create an empty
GitHub repository under the user's account or organization, add it as
origin, and push main. Do not perform this unless the user explicitly
asks. Remind the user that if their GitHub credentials are connected, the
AI agent can create the GitHub repo, add the remote, and push for them.
~ to an absolute path before writing shell profile blocks.env.sh as the source of the PATH and
IVP_BEHAVIOR_DIRS details; shell profiles should only source that file..git/ was removed before git init.git remote -v is empty unless the user asked to attach a remote.moos-ivp checkout was validated.moos-ivp checkout, even when the
repo is not a sibling of moos-ivp../build.sh succeeds, or the exact compiler/configuration blocker is
reported.PATH and IVP_BEHAVIOR_DIRS setup was written to <repo>/env.sh.<repo>/env.sh.bin/ and lib/ artifacts are not treated as source changes.MOOS_IVP_ROOT: stop and ask for the local checkout path.<repo>/env.sh manually.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
moos-ivp, repo-builder, project-scaffolding, environment-setup
npx claudepluginhub cbenjamin23/moos-ivp-skills --plugin moos-ivp-skills10 skills in this plugin
/ivp-behavior-builderBuild or modify user-owned IvP helm behaviors outside the core MOOS-IvP source tree: BHV_* C++ classes, IvPBehavior lifecycle methods, shared behavior libraries, IVP_BEHAVIOR_DIRS wiring, and behavior-specific configuration parameters./moos-alog-analysisAnalyze existing MOOS .alog files for post-run, log-backed questions such as mission reconstruction, variable history, helm-state context, or timestamped incident evidence./moos-app-builderBuild or modify user-owned MOOS apps outside the core MOOS-IvP source tree: C++ app generation, project build wiring, MOOS mail/config/iterate logic, app help/interface text, and app-specific ProcessConfig examples./moos-ivp-docsConsult MIT MOOS-IvP PDFs and local ivp/src for documentation-backed answers about apps, behaviors, parameters, concepts, upstream semantics, or doc-vs-source differences./moos-ivp-eval-mission-builderBuild or repair one self-evaluating MOOS-IvP mission by adding an evaluation layer to an ordinary mission: headless startup, pMissionEval grading, results.txt, uMayFinish/xlaunch completion, zlaunch automation, scoped teardown, and single-scenario validation./moos-ivp-harness-builderBuild or repair multi-case MOOS-IvP test harnesses around self-evaluating stem missions: case matrices, per-case mission copies, result aggregation, serial and rolling parallel execution, port isolation, scoped teardown, and nspatch variants. Use moos-ivp-eval-mission-builder for stem missions.Other plugins' skills for the same job