lucianfialho/spec2cli/recipe-test-crud

Claude Code and agent skill by lucianfialho/spec2cli

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Test full CRUD cycle (Create, Read, Update, Delete) on any API resource

Install

npx vskill@latest install lucianfialho/spec2cli/recipe-test-crud

SKILL.md

Recipe: Test CRUD Cycle

Use this workflow to verify that Create, Read, Update, and Delete operations work correctly for an API resource.

Prerequisites

  • An OpenAPI spec (local file or URL)
  • Auth token if the API requires it
  • Know which resource group to test (run --agent-help first)

Step 1: Verify the initial state

bash
spec2cli --spec <spec> --output table <group> list

Note the current count and existing IDs.

Step 2: Create a resource

bash
spec2cli --spec <spec> --token <TOKEN> --output json <group> create --<required-fields>

Save the returned ID. Verify with:

bash
spec2cli --spec <spec> --output json <group> get --id <NEW_ID>

Check: Does the response match what you sent?

Step 3: Update the resource

bash
spec2cli --spec <spec> --token <TOKEN> --output json <group> update --id <NEW_ID> --<field> <new-value>

Verify the update:

bash
spec2cli --spec <spec> --output json <group> get --id <NEW_ID>

Check: Is the field updated? Are other fields preserved?

Step 4: List to confirm

bash
spec2cli --spec <spec> --output table <group> list

Check: Does the new resource appear? Is the count incremented?

Step 5: Delete the resource

bash
spec2cli --spec <spec> --token <TOKEN> --quiet <group> delete --id <NEW_ID>
echo "Exit code: $?"

Check: Exit code 0 = success.

Step 6: Verify deletion

bash
spec2cli --spec <spec> --output json <group> get --id <NEW_ID>

Check: Should return 404.

Example: CRUD on Todo API

bash
SPEC="./examples/todo-api/openapi.yaml"
BASE="http://localhost:4000"
TOKEN="test-token-123"
# List
spec2cli --spec $SPEC --base-url $BASE --output table todos list
# Create
spec2cli --spec $SPEC --base-url $BASE --token $TOKEN --output json todos create --title "Test CRUD" --priority high
# Read (use the returned ID)
spec2cli --spec $SPEC --base-url $BASE --output json todos get --id 8
# Update
spec2cli --spec $SPEC --base-url $BASE --token $TOKEN --output json todos update --id 8 --status done
# Delete
spec2cli --spec $SPEC --base-url $BASE --token $TOKEN --quiet todos delete --id 8
# Verify 404
spec2cli --spec $SPEC --base-url $BASE --output json todos get --id 8

Tips

  • Use --verbose on any step to see the raw HTTP request/response
  • Use --output json | jq .id to extract the ID after create
  • If delete returns empty string instead of 404, the API uses 204 No Content (success)

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

Popularity

Repository stars
19
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. 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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/lucianfialho/spec2cli/recipe-test-crud/badge)](https://verified-skill.com/skills/lucianfialho/spec2cli/recipe-test-crud)

Something wrong with this skill or its page? Tell us.