wand-magic-sparklesWorkflow Skills

Optional Claude Code workflow skills for common Seismic tasks

Claude Code supports skillsarrow-up-right — reusable task instructions that you can invoke with slash commands. Skills are stored as markdown files in your project and provide step-by-step guidance for specific workflows.

These skills are optional. The CLAUDE.md templates cover the core API knowledge that Claude needs. Skills add structured workflows for tasks you do repeatedly.

Setup

To add a skill to your project:

  1. Create the directory: .claude/skills/

  2. Save the skill file with the path shown below each skill

  3. Invoke it in Claude Code with /skill-name or describe the task and Claude will follow the steps


Deploy Shielded Contract

A step-by-step workflow for deploying a Seismic smart contract with sforge.

Save to: .claude/skills/deploy-shielded-contract/SKILL.md

# Deploy Shielded Contract

Deploy a Seismic smart contract using sforge.

## Steps

1. **Verify toolchain** — Run `sforge --version` to confirm the Seismic toolchain is installed. If not, run:

   ```bash
   sfoundryup
   source ~/.zshenv  # or ~/.bashrc
   ```

2. **Compile** — Run `sforge build` and fix any compiler errors. Pay attention to:
   - Shielded types (`suint256`, `saddress`, `sbool`) must not be `public`
   - Events cannot emit shielded types directly — encrypt first

3. **Run tests** — Run `sforge test -vvvv` and ensure all tests pass.

4. **Choose network** — Ask which network to deploy to:
   - **Local (sanvil):** `http://127.0.0.1:8545` — start sanvil first with `sanvil`
   - **Testnet:** `https://gcp-1.seismictest.net/rpc` — needs funded wallet from https://faucet.seismictest.net/

5. **Deploy** — Run the deployment:

   ```bash
   sforge create src/<ContractFile>.sol:<ContractName> \
       --rpc-url <RPC_URL> \
       --private-key $PRIVATE_KEY
   ```

   Or if using a deployment script:

   ```bash
   sforge script script/Deploy.s.sol \
       --rpc-url <RPC_URL> \
       --private-key $PRIVATE_KEY \
       --broadcast
   ```

6. **Verify** — Confirm the contract address in the output. Check it on the explorer if deploying to devnet: https://seismic-testnet.socialscan.io/

7. **Update project** — Add the deployed contract address to the project's configuration or constants file.

Debug Shielded Transaction

A diagnostic checklist for when a shielded transaction fails or behaves unexpectedly.

Save to: .claude/skills/debug-shielded-tx/SKILL.md


Migrate ERC20 to SRC20

A guided workflow for converting a standard ERC20 token to a Seismic SRC20 (shielded) token.

Save to: .claude/skills/migrate-erc20-src20/SKILL.md

Last updated