Agent skill

Pure Chain Update

by finos in finos/legend-engine

Procedure for git-syncing and rebuilding a local legend-pure + legend-engine checkout, in dependency order, with pinned dependency versions resynced.

Apache-2.0Auto-check passedDevelopment

Install Pure Chain Update

skills CLI
$ npx skills add finos/legend-engine --skill pure-chain-update -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install finos/legend-engine pure-chain-update --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ 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-src

Use ~/.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/

Facts

Skill name
pure-chain-update
GitHub stars
113
Token cost
~1.8k tokens
SKILL.md length
854 words
Files
1
Skills in repo
15
Repo updated
First seen
Licence
Apache-2.0

At a glance

Procedure for git-syncing and rebuilding a local legend-pure + legend-engine checkout, in dependency order, with pinned dependency versions resynced.

  • Works in 3 steps: Sync git → Resync the version pin → Build
  • Update my project chain
  • SKILL.md covers The chain, Per project, in order, Conflicts: the judgment call and When the rebuild doesn't take
  • Calls git and mvn

What it does

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.

When your agent uses it

  • Update my project chain
  • Pull latest and rebuild <project
  • Sync legend-pure/legend-engine
  • Refresh my local checkouts

Example prompts

  • “update my project chain”
  • “pull latest and rebuild <project”
  • “sync legend-pure/legend-engine”
  • “/pure-chain-update”

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Sync git
  2. Resync the version pin
  3. Build

What it can do on your machine

Read from SKILL.md and the folder at commit 558cdbb. It shows what the files ask for, not the result of running them.

  • Tool permissions

    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.

  • Runs code

    Shell commands in SKILL.md call:

    • git
    • mvn

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    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.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

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.

Always · name and description, kept in context so the agent knows when to use it
~105
When it runs · the whole SKILL.md, loaded when a task matches
~1.8k

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.

Safety

Auto-check passed

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.

SKILL.md

The full file from finos/legend-engine at commit 558cdbb, republished under its Apache-2.0 licence (© finos). 854 words, ~1,786 tokens.

Download SKILL.mdSave it as .claude/skills/pure-chain-update/SKILL.md (or your agent's skills folder).
name
pure-chain-update
description
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'.

Update a local legend-pure + legend-engine checkout

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.

The chain

legend-pure  ←  legend-engine

Same 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.

Per project, in order

1. Sync git

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:

bash
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:

bash
git -C <path> symbolic-ref --quiet --short refs/remotes/origin/HEAD   # e.g. origin/finos-master

Then, 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>.

2. Resync the version pin

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.

3. Build

One project at a time. Never two Maven reactor builds at once — this box cannot take it.

bash
cd <path> && mvn -T <threads> clean install -DskipTests

clean 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-THeap
legend-pure412G
legend-engine432G

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.

Show full SKILL.md (303 more words)Show less

Conflicts: the judgment call

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 master had 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.

When the rebuild doesn't take

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:

bash
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 | sort

A 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

Files

Just SKILL.md in plugins/pure-dev/skills/pure-chain-update of finos/legend-engine.

Open the folder on GitHubat commit 558cdbb

Compare with similar skills

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.

Pure Chain Update compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Pure Chain Update this skillfinos/legend-engine113—~1.8kAutomated safety check: PassApache-2.0
Finishing a Development Branchobra/superpowers297k5 repos~1.9kAutomated safety check: PassMIT
Code Design Rationale Investigatorcursor/plugins11k9 repos~2.6kAutomated safety check: PassNone
Contributor-First PR MergeHKUDS/OpenHarness16k1 repos~847Automated safety check: PassMIT
Migrate Internal Package into GhostTryGhost/Ghost56k—~3.8kAutomated safety check: PassMIT
Create Pull Requestcline/cline70k1 repos~1.6kAutomated safety check: PassApache-2.0

Similar skills

  • 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.

    297k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Official

    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.

    11k GitHub starsUsed in 9 repos~2.6k tokens
    DevelopmentAuto-check passed
  • Merges external GitHub pull requests while keeping the original author credited, and fixes conflicts after the merge instead of rewriting the contribution.

    16k GitHub starsUsed in 1 repo~847 tokens
    DevelopmentAuto-check passed
  • 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.

    56k GitHub stars~3.8k tokensUpdated today
    DevelopmentAuto-check passed
  • 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.

    70k GitHub starsUsed in 1 repo~1.6k tokens
    DevelopmentAuto-check passed
  • Git Merge Conflict Resolver

    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.

    7.6k GitHub starsUsed in 1 repo~4.5k tokens
    DevelopmentAuto-check passed

More from finos/legend-engine

All 15 skills in this repo
  • Pure Backend Start

    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.

    113 GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Pure Code Style

    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…

    113 GitHub stars~1.6k tokensUpdated today
    Auto-check passed
  • Pure Lsp Check

    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…

    113 GitHub stars~1.4k tokensUpdated today
    Auto-check passed
  • Pure Lsp Connect

    finos/legend-engine

    Attaches the pure-lsp HTTP bridge to an LSP daemon that is ALREADY running (e.g.

    113 GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • Pure Lsp Execute

    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.

    113 GitHub stars~883 tokensUpdated today
    Auto-check passed
  • Pure Lsp Execute Parallel

    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.

    113 GitHub stars~927 tokensUpdated today
    Auto-check passed

Works with

Categories

Questions about Pure Chain Update

What does Pure Chain Update do?

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.

When should I use Pure Chain Update?

Pure Chain Update fits situations like: update my project chain; pull latest and rebuild <project; sync legend-pure/legend-engine; refresh my local checkouts.

How do I install Pure Chain Update in Claude Code?

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.

How do I install Pure Chain Update in Codex?

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.

Can I use Pure Chain Update in Cursor, Gemini CLI or GitHub Copilot?

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.

What does Pure Chain Update need to run?

Going by SKILL.md and its folder, Pure Chain Update needs the command-line tools its instructions call (git and mvn).

Does Pure Chain Update access the network?

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.

Is Pure Chain Update safe to install?

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.

What licence does Pure Chain Update use?

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.

How many tokens does Pure Chain Update use?

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.

What are the alternatives to Pure Chain Update?

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.

Who maintains Pure Chain Update?

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.