Skip to content
Back to skills

Cardano Cli Plutus Scripts

ASecurity

Build and submit Plutus script transactions via cardano-cli: datums, redeemers, collateral, reference scripts, and script spends.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 27, 2026
toolsgo

Works with

  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 27, 2026

npx -y skills add David-Li0406/meta-skill-evloving --skill cardano-cli-plutus-scripts --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cardano Cli Plutus Scripts?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cardano Cli Plutus Scripts
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/david-li0406-cardano-cli-plutus-scripts/badge)](https://www.skillsdirectory.com/skills/david-li0406-cardano-cli-plutus-scripts)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cardano-cli-plutus-scripts
description: "Build and submit Plutus script transactions via cardano-cli: datums, redeemers, collateral, reference scripts, and script spends."
---

# cardano-cli-plutus-scripts

## When to use
- Use when you are spending from a script address or creating outputs with inline datum / reference scripts via CLI.

## Operating rules (must follow)
- Confirm the user's network (mainnet vs preprod/preview) and **magic** before generating commands.
- Print commands in **copy/paste blocks**. Keep secrets out of logs.
- For any `cardano-cli` command: verify syntax with `cardano-cli --help` (and era help) and adjust if needed.
- Use fresh protocol parameters from the target network when calculating fees or script execution units.

## Workflow
1) Confirm script type and era
   - V2 vs V3 matters. Conway era introduces V3 and governance contexts.
   - Verify CLI has script flags you need (`--tx-in-script-file`, inline datum, redeemer, collateral).

2) Prepare artifacts
   - script file (.plutus), datum.json, redeemer.json (or value form), and pparams.json.
   - identify collateral UTxO at a payment address (ADA-only recommended).

3) Build tx
   - Include:
     - `--tx-in` (script UTxO)
     - script flags (script file, datum present, redeemer)
     - `--tx-in-collateral`
     - outputs + change address
   - Keep tx body and all artifacts together.

4) Sign and submit
   - Use required keys (payment key; script spends do not use script keys but do require collateral signer).
   - Submit and verify UTxO movement.

5) Debug
   - If script fails, inspect execution units, datum/redeemer shape, and pparams alignment.


## Safety / key handling
- Always include collateral for Plutus script spends.
- Keep datum/redeemer free of secrets; these are on-chain visible.
- Prefer preprod/preview rehearsals before mainnet.


## References used by this skill
- `shared/PRINCIPLES.md` (repo)

Files in this skill

  • SKILL.md1.9 KB
  • reference/script-spend-template.md1005 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…