# Capture Sample

> Create a bounded read-only probe that collects one raw Modbus sample through a selected target tool. Use when the user needs one physical read, raw words for byte-order work, or a manual probe before decoding.

- **Type:** Skill
- **Install:** `agentstack add skill-studioxvii-modbus-skills-capture-sample`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [studioxvii](https://agentstack.voostack.com/s/studioxvii)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [studioxvii](https://github.com/studioxvii)
- **Source:** https://github.com/studioxvii/modbus-skills/tree/main/plugins/modbus-skills/skills/capture-sample
- **Website:** https://studioxvii.github.io/modbus-skills

## Install

```sh
agentstack add skill-studioxvii-modbus-skills-capture-sample
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Capture Sample

Generate an operator-controlled probe for one bounded read.

Follow `../../references/interaction-contract.md`.

## Process

1. Read `references/probe-request.md`.
2. Require route, unit identifier, register area, protocol offset, word count, and target.
3. Run `python3 /scripts/run.py --request  --output `.
4. Confirm the artifact uses only function codes 01 through 04.
5. Generate and validate the complete probe before asking once for the live physical
   read against the intended device, then stop.
6. For Node-RED, use the generated `MODBUS_CAPTURE_PATH` output directly. For other tools, save the returned raw words as `capture/v1` with the complete sample identity.

## Output files

- `README.md` and the selected tool folder - Start here. These files describe and perform one bounded manual read; they do not connect automatically.
- `tool-pack.zip` - The portable copy of the probe files.
- `manifest.json`, `checksums.sha256`, and `tool-pack-result.json` - Normally ignore these. They verify the probe contents and safety limits.
- `capture.json` - Created after the operator performs the read. It is not produced by this skill.

Completion requires a generated probe pack and one presented live-read gate. This skill
does not capture the sample itself.

## Stop

- Stop for writes, broadcasts, discovery scans, stored credentials, or unbounded polling.
- Stop if probe identity is incomplete.
- Do not run the live read. Present the probe and wait for the operator.
- Do not generate final decoded engineering values.

## Handoff

- Unknown byte order or datatype interpretation after the operator saves raw words: suggest `check-byte-order`.
- Time-series troubleshooting after a capture exists: suggest `analyze-capture`.

Keep the probe manual, bounded, credential-free, and read-only.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [studioxvii](https://github.com/studioxvii)
- **Source:** [studioxvii/modbus-skills](https://github.com/studioxvii/modbus-skills)
- **License:** Apache-2.0
- **Homepage:** https://studioxvii.github.io/modbus-skills

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-studioxvii-modbus-skills-capture-sample
- Seller: https://agentstack.voostack.com/s/studioxvii
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
