/scalus:using-scalusfrom scalus
Routes tasks in Scalus projects to the correct skill: smart contract writing, testing, local development, optimization, security review, or TypeScript/JavaScript usage.
Ships in scalus. 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.
None: SKILL.md is the whole skill.
This project uses Scalus. In a Scala project, Scalus compiles Cardano smart contracts written
in Scala 3 to Plutus Core. In a TypeScript or JavaScript project, the npm package scalus gives
a Cardano Emulator, a Plutus script evaluator and transaction tools. The scalus plugin has one
skill per task. Load it with the Skill tool.
| Task | Skill |
|---|---|
Write or change on-chain code (@Compile, extends Validator, DataParameterizedValidator) | scalus:contract |
| Write or change a test of on-chain code | scalus:contract-test |
| Build transactions, use the Emulator or TxBuilder from Scala | scalus:local-development |
| Reduce execution units or script size | scalus:optimize-contract |
| Review on-chain code before you call it done | scalus:smart-contract-security-review |
| Use Scalus from TypeScript or JavaScript (Emulator, script evaluation, parameters, transaction evaluation) | scalus:typescript |
The rule in this section applies to Scala on-chain code only. TypeScript and JavaScript code does not write validators.
Invoke the matching skill before the first line of on-chain code, and before the first line of its test.
The rule also applies inside a process skill (brainstorming, planning, TDD, debugging).
The process skill decides the steps. The scalus: skill decides the code. A process
skill that says "invoke no other skill" does not cancel this rule.
Before you call on-chain work done, run scalus:smart-contract-security-review on it.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
7 skills in this plugin
/contractGuide for developing Scalus smart contracts. Use when writing or modifying Cardano validators in Scala 3 with Scalus./contract-testGuide for testing Scalus smart contracts. Use when writing unit, property, budget, or Emulator tests for Cardano validators./local-developmentUse when developing or testing Scalus smart contracts with the local Emulator and TxBuilder. Covers how to create an Emulator provider, submit transactions, test negative validator cases, and test confirmation delay and rollbacks./optimize-contractOptimize Scalus/Cardano smart contracts for execution budget (CPU steps and memory). Analyzes @Compile annotated validators for performance issues — expensive patterns, unnecessary allocations, redundant traversals, missed short-circuits. Provides concrete Scalus rewrites with budget impact estimates. Use when reviewing on-chain code performance or when /optimize-contract is invoked. Requires explicit path argument./smart-contract-security-reviewSecurity review for Scalus/Cardano smart contracts. Analyzes @Compile annotated validators for vulnerabilities like redirect attacks, inexact value validation, missing token verification, broken token lifecycle invariants, honest transactions the validator rejects, ADA-only comparisons, rounding direction, and self-dealing. Use when reviewing on-chain code, before deploying validators, or when /smart-contract-security-review is invoked. Requires explicit path argument./typescriptUse when TypeScript or JavaScript code calls the npm package scalus - the Cardano Emulator, Plutus script evaluation and budgets, applying parameters to a script, evaluating or balancing a transaction, or a Lucid, Mesh or Evolution SDK provider backed by Scalus.npx claudepluginhub scalus3/scalus --plugin scalusOther plugins' skills for the same job