# Validate Bsv Script

> This skill should be used when the user asks to "validate BSV script", "analyze locking script", "parse unlocking script", "check script opcodes", or needs to validate and analyze Bitcoin scripts using @bsv/sdk.

- Skill: `jsgforever/validate-bsv-script` (Agent Skill, multi-file: 3 files)
- Install (CLI): `npx skillmds@latest add jsgforever/validate-bsv-script`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jsgforever/validate-bsv-script/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: jsgforever (https://skillmd.com/u/jsgforever)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/jsgforever/validate-bsv-script

---


# Validate BSV Script

Validate and analyze BSV scripts for correctness, identify script types, and check for security issues.

## When to Use

- Validate a locking or unlocking script
- Identify script type (P2PKH, P2PK, multisig, etc.)
- Analyze script opcodes
- Check for potential security issues

## Usage

```bash
# Validate a script from hex
bun run skills/validate-bsv-script/scripts/validate.ts <script-hex>

# Specify script type
bun run skills/validate-bsv-script/scripts/validate.ts <script-hex> --type locking

# JSON output
bun run skills/validate-bsv-script/scripts/validate.ts <script-hex> --json

# Show help
bun run skills/validate-bsv-script/scripts/validate.ts --help
```

## Status

**Complete** - All tests passing, ready for use

