Finishing a Development Branch
obra/superpowers
Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.
Procedure for git-syncing and rebuilding a local legend-pure + legend-engine checkout, in dependency order, with pinned dependency versions resynced.
$ npx skills add finos/legend-engine --skill pure-chain-update -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install finos/legend-engine pure-chain-update --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/finos/legend-engine.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/pure-dev/skills/pure-chain-update .claude/skills/pure-chain-update && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "pure-chain-update" agent skill from https://github.com/finos/legend-engine/tree/master/plugins/pure-dev/skills/pure-chain-update into .claude/skills/pure-chain-update/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pure-chain-update", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/finos/legend-engine/tree/master/plugins/pure-dev/skills/pure-chain-updateType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add finos/legend-engine --skill pure-chain-update -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install finos/legend-engine pure-chain-update --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/finos/legend-engine.git skills-src && mkdir -p .agents/skills && cp -r skills-src/plugins/pure-dev/skills/pure-chain-update .agents/skills/pure-chain-update && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "pure-chain-update" agent skill from https://github.com/finos/legend-engine/tree/master/plugins/pure-dev/skills/pure-chain-update into .agents/skills/pure-chain-update/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pure-chain-update", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add finos/legend-engine --skill pure-chain-update -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install finos/legend-engine pure-chain-update --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/finos/legend-engine.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/plugins/pure-dev/skills/pure-chain-update .cursor/skills/pure-chain-update && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "pure-chain-update" agent skill from https://github.com/finos/legend-engine/tree/master/plugins/pure-dev/skills/pure-chain-update into .cursor/skills/pure-chain-update/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pure-chain-update", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/finos/legend-engine.git --path plugins/pure-dev/skills/pure-chain-update--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add finos/legend-engine --skill pure-chain-update -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install finos/legend-engine pure-chain-update --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/finos/legend-engine.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/plugins/pure-dev/skills/pure-chain-update .gemini/skills/pure-chain-update && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "pure-chain-update" agent skill from https://github.com/finos/legend-engine/tree/master/plugins/pure-dev/skills/pure-chain-update into .gemini/skills/pure-chain-update/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pure-chain-update", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install finos/legend-engine pure-chain-updateInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add finos/legend-engine --skill pure-chain-update -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/finos/legend-engine.git skills-src && mkdir -p .github/skills && cp -r skills-src/plugins/pure-dev/skills/pure-chain-update .github/skills/pure-chain-update && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "pure-chain-update" agent skill from https://github.com/finos/legend-engine/tree/master/plugins/pure-dev/skills/pure-chain-update into .github/skills/pure-chain-update/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pure-chain-update", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add finos/legend-engine --skill pure-chain-update -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install finos/legend-engine pure-chain-update --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/finos/legend-engine.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/plugins/pure-dev/skills/pure-chain-update .opencode/skills/pure-chain-update && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "pure-chain-update" agent skill from https://github.com/finos/legend-engine/tree/master/plugins/pure-dev/skills/pure-chain-update into .opencode/skills/pure-chain-update/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pure-chain-update", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
pure-chain-updateProcedure for git-syncing and rebuilding a local legend-pure + legend-engine checkout, in dependency order, with pinned dependency versions resynced.
Pure Chain Update is an agent skill from finos/legend-engine. Procedure for git-syncing and rebuilding a local legend-pure + legend-engine checkout, in dependency order, with pinned dependency versions resynced. Run by hand, one project at a time, fixing problems as they surface. Use for 'update my project chain', 'pull latest and rebuild <project', 'sync legend-pure/legend-engine', 'refresh my local checkouts', or 'propagate my engine snapshot downstream'.
Its SKILL.md is about 1.8k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Development, covering Git workflow. It works with Git. The licence is Apache-2.0.
3 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 558cdbb. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
gitmvnFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Pure Chain Update loads about 1.8k tokens when it runs. Until then it costs about 105 tokens; SKILL.md has 854 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from finos/legend-engine at commit 558cdbb, republished under its Apache-2.0 licence (© finos). 854 words, ~1,786 tokens.
.claude/skills/pure-chain-update/SKILL.md (or your agent's skills folder).Run this by hand, one project at a time. There is no script: the chain breaks in a different place
every time — a conflict, a version pin that didn't take, a SNAPSHOT nobody published — and each
needs a judgment call. Automating it produced a run that reported success while leaving the real
problem buried in a build.log.
Work the steps below per project, in dependency order, and stop at the first thing that looks wrong rather than pressing on to the next project.
legend-pure ← legend-engineSame DAG as config/projects.json (pure-lsp-roots --list prints it with your checkout paths).
Build upstream first.
Which projects to rebuild. If you changed legend-pure, you must rebuild it and
legend-engine afterwards — each layer copies Pure sources and generated Java into its own jars, so
an upstream change stays invisible downstream until the dependent is rebuilt. A change to
legend-engine only requires rebuilding legend-engine itself.
Checkout paths resolve as everywhere else in this plugin: $<rootEnv> ($LEGEND_PURE_ROOT,
$LEGEND_ENGINE_ROOT) if set, else $HOME/<root> from the registry.
Check for a rebase or merge already in progress first (git -C <path> status) — one left over from
a previous attempt means an earlier conflict was never resolved; finish or abort it before
continuing.
If the tree is dirty, commit a checkpoint rather than stashing — it survives a rebase cleanly and
is trivial to back out with git reset --soft HEAD~1:
git -C <path> add -A && git -C <path> commit -m "WIP: temp commit before chain sync"Resolve the default branch; do not assume master. legend-pure and legend-engine
use finos-master, while origin also carries an unrelated stale master — rebasing onto the
wrong one is silently destructive:
git -C <path> symbolic-ref --quiet --short refs/remotes/origin/HEAD # e.g. origin/finos-masterThen, on that branch: git -C <path> pull --rebase (not a bare git pull, which errors on
divergent branches unless pull.rebase is configured). On any other branch:
git -C <path> fetch origin <default>:<default> && git -C <path> rebase <default>.
legend-engine pins its legend-pure dependency as a fixed pom.xml property
(legend.pure.version), so a plain git pull only picks up whatever was last pinned upstream —
which lags your local snapshot. Read the actual current version out of your legend-pure checkout's
own pom.xml and rewrite legend-engine's pin to match. legend-pure is the root of the chain and
pins nothing.
Most root poms here use Maven's CI-friendly <version>${revision}</version> with a <revision>
property, so resolve that rather than taking the literal placeholder.
A pin only works if legend-pure is already mvn installed into ~/.m2 — i.e. you built it
earlier in this same pass. Otherwise the build fails resolving a SNAPSHOT no repository has.
One project at a time. Never two Maven reactor builds at once — this box cannot take it.
cd <path> && mvn -T <threads> clean install -DskipTestsclean install, not plain install: these Pure-source modules fail with
IllegalStateException: The code repository <name> already exists! against a stale target/classes.
JDK: JDK 11 for both projects. Don't rely on ambient $JAVA_HOME being right; a non-login shell
often has not run the JDK setup.
Resources (tuned for an 8-core/64GB box, one build at a time). Heap goes in the project's
.mvn/jvm.config as -Xmx<n>G, or pass MAVEN_OPTS instead to avoid touching a tracked file:
| Project | -T | Heap |
|---|---|---|
legend-pure | 4 | 12G |
legend-engine | 4 | 32G |
Watch the build to a real BUILD SUCCESS/BUILD FAILURE before starting the next project. If you
background it, tail the log — don't infer success from the process exiting.
This is the step that can't be mechanised. The working rule for trivial (resolve inline and continue) vs concerning (abort and hand back to the user):
Both sides changed the same location but not the same behaviour — whitespace or formatting drift, a version-property bump colliding with an unrelated edit two lines away, one side adding an adjacent function git couldn't 3-way-merge. That's trivial: resolve it and continue.
A concrete "concerning" case hit in practice: upstream
masterhad reworked a function's signature (dropped a parameter, added a sibling function using the old one) while the local branch's own commit message said it was also restructuring that function's parameters as part of a larger refactor. Both sides intentionally changed the same behaviour in different, not-obviously-reconcilable ways. Resolving that requires knowing which intent should win — the user's call, not a guess from the diff.
Trivial: fix the files, git add, git rebase --continue, carry on. Concerning:
git rebase --abort, stop, and tell the user what conflicted and why it looked like a real
disagreement.
Failures in this chain are runtime and misleading, not compile-time. The two shapes:
Invalid URLs for '/<path>.pure' - different content: [jar:a, jar:b] — two jars carry the same
Pure file with different content.AbstractMethodError: Root_meta_..._Impl does not define ..._someProperty(...) — stale generated
Java against a fresh interface, typical after a Pure property/type rename.Both name the culprit. Don't rebuild blindly — intersect the real classpath with the jars holding that class and compare mtimes:
mvn -q dependency:build-classpath -pl <module> -Dmdep.outputFile=/tmp/cp.txt -DincludeScope=test
tr ':' '\n' < /tmp/cp.txt | while read -r j; do
[ -f "$j" ] && unzip -l "$j" 2>/dev/null | grep -q "<Class>.class" && echo "$(stat -c %y "$j" | cut -c1-16) $j"
done | sortA commonly-missed rebuild target after a legend-pure platform/platform_store_relational
change — the Java-generation mirrors carry the same Root_meta_*_Impl classes — is legend-engine's
legend-engine-pure-platform-java and legend-engine-pure-platform-store-relational-java (under
legend-engine-core-pure/legend-engine-pure-platform-modular-generation/).
After rebuilding, a running LSP daemon still holds the old jars in memory — restart it
(pure-lsp-restart, or relaunch via pure-lsp-launch) and refresh the cached classpath with
pure-lsp-classpath <project> --force.
© finos, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in plugins/pure-dev/skills/pure-chain-update of finos/legend-engine.
Open the folder on GitHubat commit 558cdbb
Pure Chain Update next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Pure Chain Update this skillfinos/legend-engine | 113 | — | ~1.8k | Automated safety check: Pass | Apache-2.0 | |
| Finishing a Development Branchobra/superpowers | 297k | 5 repos | ~1.9k | Automated safety check: Pass | MIT | |
| Code Design Rationale Investigatorcursor/plugins | 11k | 9 repos | ~2.6k | Automated safety check: Pass | None | |
| Contributor-First PR MergeHKUDS/OpenHarness | 16k | 1 repos | ~847 | Automated safety check: Pass | MIT | |
| Migrate Internal Package into GhostTryGhost/Ghost | 56k | — | ~3.8k | Automated safety check: Pass | MIT | |
| Create Pull Requestcline/cline | 70k | 1 repos | ~1.6k | Automated safety check: Pass | Apache-2.0 |
obra/superpowers
Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.
cursor/plugins
Digs into why code is shaped the way it is by checking git history, pull requests and connected tools in parallel, then reporting a cited read on the tradeoffs.
HKUDS/OpenHarness
Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.
TryGhost/Ghost
Moves a package from another TryGhost repository into Ghost as an internal workspace package while keeping its Git history, with checkpoints for the steps that need an administrator.
cline/cline
Opens a GitHub pull request from your current branch with the gh CLI, after reviewing the commits and diff and gathering the details the PR needs.
tailcallhq/forgecode
Resolves Git merge conflicts with a plan-first workflow that keeps both sides' intent, regenerates lock files and backs up deleted-but-modified files.
finos/legend-engine
Starts (or confirms) the standalone legend-engine backend - engine Server + H2 + local metadata server on fixed ports 9095/9092 - so a Pure LSP started with -Dlegend.test.
finos/legend-engine
Reformats a .pure file (or a block of Pure code) to a consistent house style: 2-space indentation with no column-aligned hanging indents, tight colons in type annotations, spaced pipes on…
finos/legend-engine
Compiles/checks a single .pure file against the already-running Legend Pure LSP bridge and reports diagnostics (errors/warnings) in under a second, as a fast alternative to a full mvn test/mvn…
finos/legend-engine
Attaches the pure-lsp HTTP bridge to an LSP daemon that is ALREADY running (e.g.
finos/legend-engine
Runs exactly ONE existing Pure function by path (signature, mangled id or bare path) through the running Legend Pure LSP bridge, without a go() wrapper, and returns its typed value in returnValue.
finos/legend-engine
Runs 2 to 30 Pure functions or tests concurrently on the warm LSP daemon via pure-lsp execute-parallel, or every test in a package or .pure file with --package/--source.
Works with
Categories
Procedure for git-syncing and rebuilding a local legend-pure + legend-engine checkout, in dependency order, with pinned dependency versions resynced. Pure Chain Update is an agent skill from finos/legend-engine. Procedure for git-syncing and rebuilding a local legend-pure + legend-engine checkout, in dependency order, with pinned dependency versions resynced.
Pure Chain Update fits situations like: update my project chain; pull latest and rebuild <project; sync legend-pure/legend-engine; refresh my local checkouts.
Run `npx skills add finos/legend-engine --skill pure-chain-update -a claude-code`. Or copy the skill folder (plugins/pure-dev/skills/pure-chain-update in finos/legend-engine) into .claude/skills/pure-chain-update in your project. Claude Code loads it when a task matches its description.
Run `npx skills add finos/legend-engine --skill pure-chain-update -a codex`. Or copy the skill folder (plugins/pure-dev/skills/pure-chain-update in finos/legend-engine) into .agents/skills/pure-chain-update in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add finos/legend-engine --skill pure-chain-update -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pure-chain-update, .gemini/skills/pure-chain-update, .github/skills/pure-chain-update and .opencode/skills/pure-chain-update in your project.
Going by SKILL.md and its folder, Pure Chain Update needs the command-line tools its instructions call (git and mvn).
SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Pure Chain Update is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.8k tokens (SKILL.md is roughly 7.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Pure Chain Update: Finishing a Development Branch (obra/superpowers, 297k stars), Code Design Rationale Investigator (cursor/plugins, 11k stars), Contributor-First PR Merge (HKUDS/OpenHarness, 16k stars) and Migrate Internal Package into Ghost (TryGhost/Ghost, 56k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
finos (a GitHub organization) maintains it in finos/legend-engine, which has 113 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on October 10, 2026.
Source: finos/legend-engine on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.