cyotee/crane/crane-olympus

Claude Code and agent skill by cyotee/crane

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

This skill should be used when the user asks about "Crane Olympus", "Olympus port", "FOUNDRY_PROFILE=olympus_port", "integrate Olympus Kernel", "Olympus Diamond strategy", "Olympus TestBase", "olympus hermetic tests", building Crane integrations against the Olympus Default Framework port, or writing Foundry tests for Olympus under tokens/stable/olympus/v2.

Install

npx vskill@latest install cyotee/crane/crane-olympus

SKILL.md

The same SKILL.md was published earlier as cyotee/crane/crane-olympus.

Crane Olympus Integration

How to build on and test Olympus using Crane’s port (not general Olympus product UX — see operations; not Kernel theory — see architecture).

Layout

LayerPath
Domaincontracts/protocols/tokens/stable/olympus/v2/
Pin…/olympus/VENDOR.md (upstream 0af8d56d, AGPL-3.0-only)
Hermetic teststest/foundry/spec/protocols/tokens/stable/olympus/v2/
Quabi (FFI)src/test/lib/quabi/{path,jq}.sh + test lib …/lib/quabi/Quabi.sol
ProfileFOUNDRY_PROFILE=olympus_port in foundry.toml

There is not yet a Diamond Facet-Target-Repo / Service wrapper layer for Olympus (faithful domain + tests first). Integrators import domain types directly via @crane/….

Quick start: compose a policy against the port

solidity
import {Kernel, Policy, Permissions, Keycode, toKeycode} from
"@crane/contracts/protocols/tokens/stable/olympus/v2/Kernel.sol";
import {MINTRv1} from
"@crane/contracts/protocols/tokens/stable/olympus/v2/modules/MINTR/MINTR.v1.sol";
import {ROLESv1} from
"@crane/contracts/protocols/tokens/stable/olympus/v2/modules/ROLES/ROLES.v1.sol";
import {RolesConsumer} from
"@crane/contracts/protocols/tokens/stable/olympus/v2/modules/ROLES/OlympusRoles.sol";
contract StrategyPolicy is Policy, RolesConsumer {
MINTRv1 internal MINTR;
constructor(Kernel k) Policy(k) {}
function configureDependencies() external override returns (Keycode[] memory deps) {
deps = new Keycode[](2);
deps[0] = toKeycode("MINTR");
deps[1] = toKeycode("ROLES");
MINTR = MINTRv1(getModuleAddress(deps[0]));
ROLES = ROLESv1(getModuleAddress(deps[1]));
}
function requestPermissions() external view override returns (Permissions[] memory req) {
req = new Permissions[](2);
req[0] = Permissions(toKeycode("MINTR"), MINTR.mintOhm.selector);
req[1] = Permissions(toKeycode("MINTR"), MINTR.increaseMintApproval.selector);
}
}

Deploy order: Kernel → modules (InstallModule) → your policy (ActivatePolicy) → grant ROLES if needed.

Testing ladder

LayerCommand / pattern
Domain + suite compileFOUNDRY_PROFILE=olympus_port forge build
Full hermetic suiteFOUNDRY_PROFILE=olympus_port forge test
Path match… forge test --match-path 'test/foundry/spec/protocols/tokens/stable/olympus/v2/**'
Kernel unitKernel.t.sol — real Kernel install/activate
Module permissionsmodules/MINTR.t.sol etc. — Quabi godmode fixtures need ffi + ast

Profile sets ffi=true, ast=true, src/test scoped to olympus, out_olympus_port.

Production-first rules

  • Never mock Kernel / modules / policies under test — deploy real ported contracts.
  • Godmode fixtures use Quabi → AST artifacts; rebuild with olympus_port so AST is present.
  • Do not call module permissioned functions from tests as random EOAs without activating a fixture policy.
  • Shared deps: OZ v4/v5, solmate, clones-with-immutable-args under contracts/external/ — never nest private OZ under olympus.
  • Do not change contracts/external/uniswap/v3-periphery/.../TransferHelper.sol IERC20 path to OZ v4 — breaks Fraxswap co-import with Crane IERC20.

Navigation

TopicFile
Profile, commands, gotchasreferences/commands.md
Integration patterns (Diamond/strategy)references/integration-patterns.md
Protocol meaningskill:olympus-architecture
User/operator flowsskill:olympus-operations

Key files

  • Kernel.sol, modules/*, policies/*, external/OlympusERC20.sol, external/cooler/*
  • Tests: test/foundry/spec/protocols/tokens/stable/olympus/v2/Kernel.t.sol, modules/*.t.sol
  • foundry.toml → [profile.olympus_port]

See also

  • skill:crane-testing, skill:crane-porting, skill:crane-porting-verification
  • skill:crane-architecture (when wrapping as Facet-Target-Repo later)

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Grok Build (Cursor)
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/cyotee/crane/crane-olympus/badge)](https://verified-skill.com/skills/cyotee/crane/crane-olympus)

Something wrong with this skill or its page? Tell us.