test-production-batch

Automate production batch lifecycle tests via curl against localhost:10010.

Updated Mar 30, 2025
One-click install
npx skills add https://github.com/j4xie/my-prototype-logistics --skill test-production-batch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-production-batch
Source: https://github.com/j4xie/my-prototype-logistics/tree/main/.claude/skills/test-production-batch
Command: npx skills add https://github.com/j4xie/my-prototype-logistics --skill test-production-batch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill validates production batch management, including batch creation, status transitions, material consumption, and completion/cancellation flows.

Core Features & Use Cases

  • Batch Lifecycle Testing: Validate batch creation, start, material consumption, completion, and cancellation.
  • Traceability: Ensure batch traceability across production steps.
  • Use Case: Verify a new production batch workflow from creation to completion with accurate state transitions.

Quick Start

Run the production batch tests: bash tests/api/test-production-batch.sh

Frequently Asked Questions about test-production-batch

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate testing of production batch management workflows?

Production batch testing automates validation of batch lifecycle operations including creation, status transitions, material consumption, and completion. This Skill runs end-to-end tests against the Cretas Food Traceability System via curl API calls to localhost:10010, validating state transitions and batch retrieval for factory F001 using Bash, grep, and HTTP code validation.

Can I test batch traceability across production steps?

Yes. This Skill validates traceability by testing batch creation, start, material consumption, completion, and cancellation flows, ensuring accurate state transitions and retrieval of batch details and lists. Tests confirm the production management system integrity across the full batch lifecycle.

What environment and tools do I need to run production batch tests?

You need Bash, curl, grep, and Read tools. The Skill targets localhost:10010 and requires access to factory F001 in the test environment. It performs HTTP API calls with token extraction and validation, returning PASS/FAIL reporting for batch management operations.

How do I validate batch state transitions and material consumption?

Run the included test script bash tests/api/test-production-batch.sh, which executes in-situ scenarios testing batch creation, material consumption, start, complete, and cancel operations. The Skill validates HTTP responses and state changes to confirm correct batch workflow progression.

Does this Skill work with the Cretas Food Traceability System?

Yes. This Skill is designed specifically for the Cretas Food Traceability System production batch module. It tests batch management operations via localhost:10010 for factory F001 and validates the system's ability to handle batch lifecycle and traceability requirements.