rstropek/2026-09-14-ac/cli
Claude Code and agent skill by rstropek/2026-09-14-ac
- community
Checking that the SKILL.md file is still in the repository.
Query and manage devices in the IT inventory app from a terminal or an agent, including photo-based device analysis. Use whenever a task needs to list, inspect, create, update or delete devices, or turn photos into a device record, without opening the web UI. Never interactive; all input is flags, --json, or stdin.
Install
npx vskill@latest install rstropek/2026-09-14-ac/cliSKILL.md
inventory CLI
Agent-friendly command-line client for the IT inventory web API (see DESIGN.md, "API contract"). Never interactive: all input is flags, a --json document, or stdin. Output is compact JSON on stdout by default.
Setup
--api-url/--api-key override the env vars for a single call. For a shorter command, npm link in cli/ once and use inventory ... (or npx inventory ... from the repo root without linking).
Output, errors, exit codes
- Default output: compact single-line JSON on stdout.
--table: human-readable padded columns instead (global flag, works on
every command).
- Errors: JSON on stderr, never on stdout:
{ "error": { "code", "message", "details"? } }. - Exit codes:
0ok ·1API/generic error ·2usage or validation error
(bad flags, bad --json, bad photos) · 3 auth error (missing/invalid API key) · 4 not found.
Commands
list
Filters combine with AND. Output: { "items": Device[] }.
get <id>
Output: a Device object. Exit 4 if the id doesn't exist.
create
Required: --type, --manufacturer, --model (or the matching keys in --json). --json - reads a full DeviceInput document from stdin; flags always override values from it, so you can pass a full document and tweak one field with a flag. Output: the created Device.
update <id>
Same options as create. The API replaces the full document (PUT), so this command fetches the current device first, layers --json (if given) and then your flags on top of it — anything you don't mention keeps its current value. Output: the updated Device. Exit 4 if the id doesn't exist.
delete <id>
No confirmation prompt. Output: { "deleted": "<id>" }. Exit 4 if the id doesn't exist.
analyze <photos...>
Sends 1–5 photos (jpg, jpeg, png or webp, ≤ 5 MB each) to the LLM-based photo analysis endpoint and prints the proposal. Creates nothing.
--as-create-json converts the proposal into a DeviceInput skeleton (values only, confidence and reasoning dropped) for piping into create:
JSON shapes
DeviceInput(create/update body,--jsondocument):manufacturer,
model, serialNumber?, assetTag? (organisation-issued inventory number), purchaseDate? (YYYY-MM-DD), location?, status (active|in_repair|retired, default active), notes?, assignedToUserId?, attributes ({ type: "laptop", cpu?, ramGb?, storageGb?, screenSizeInches?, operatingSystem? } or { type: "printer", technology?, colorCapable?, duplexCapable?, networkCapable? }).
Device:DeviceInputplusid,type,createdAt,updatedAt,
assignedToUserName?.
AnalysisResult: optionaltype/manufacturer/model/serialNumber/
assetTag, each { value, confidence: "high"|"medium"|"low", reasoning }, plus attributes (same shape, keyed by attribute name) and a summary string. A field is absent, not null, when the LLM couldn't tell.
See src/lib/devices/schema.ts for the authoritative Zod schema (this CLI duplicates the plain-TypeScript shape in cli/src/types.ts).
Recommended agent workflow
- Analyze:
inventory analyze <photos...>to get a proposal with
confidence per field.
- Review: check
confidence— treatlow/mediumfields as
suggestions to verify, not facts. Read summary for context.
- Create:
inventory analyze <photos...> --as-create-json | inventory create --json -,
optionally overriding or filling in fields with flags (e.g. --location, --assigned-to, or a corrected --serial if the photo made it illegible).
For routine inventory management, skip step 1 and use create/update/ delete/list/get directly with flags.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingcli/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/rstropek/2026-09-14-ac/cli)