ワンクリックで
sparkgen-test
Run tests — unit, docker, guardrails, prompts, rag-eval, smoke, validate, or all
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Run tests — unit, docker, guardrails, prompts, rag-eval, smoke, validate, or all
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Generate a new SparkGen-AWS project from the cookiecutter template
Develop and modify the SparkGen-AWS cookiecutter template — variables, hooks, files
Run cookiecutter matrix tests to verify template generates correctly across all variable combinations
Add, modify, remove, list, or show agents in the workflow
Send a chat message to the running agent server and display the response
Switch LLM providers, deployment modes, and manage environment configuration
| name | sparkgen-test |
| description | Run tests — unit, docker, guardrails, prompts, rag-eval, smoke, validate, or all |
| user_invokable | true |
| auto_invokable | true |
| auto_invoke_hint | Invoke when code changes are made or user discusses testing |
| arguments | [unit|docker|guardrails|prompts|rag-eval|smoke|validate|all] |
Run project tests. Default is unit if no argument given.
Before running tests:
ls tests/.env if it existscurl -sf http://localhost:8000/health/sparkgen-test unit or /sparkgen-test)pytest tests/ -v -m "not docker and not aws"
Runs all unit tests excluding docker and aws markers. Expects ~124 tests.
/sparkgen-test docker)pytest tests/test_docker_compose.py -v -m docker
Requires Docker Compose stack running (make docker-up first).
/sparkgen-test guardrails)python -m app.guardrails.test_runner --defaults guardrails/default_guardrails.yaml
Runs guardrail rule test cases from the YAML definitions.
/sparkgen-test prompts)python -m app.prompts.validator --base-dir . --variables config/prompt_variables.yaml
Validates all prompt templates resolve correctly with defined variables.
/sparkgen-test rag-eval)python -m app.rag.eval --kb default --config config/rag.yaml
Runs RAG quality evaluation (accuracy, faithfulness, relevancy).
/sparkgen-test smoke)Requires a running server. Run these sequentially:
curl -sf http://localhost:8000/health
curl -sf http://localhost:8000/v1/agents -H "X-API-Key: ${API_KEY:-dev-local-key}"
curl -sf http://localhost:8000/v1/tools -H "X-API-Key: ${API_KEY:-dev-local-key}"
curl -s -X POST http://localhost:8000/v1/chat -H "Content-Type: application/json" -H "X-API-Key: ${API_KEY:-dev-local-key}" -d '{"message": "Hello"}'
Verify each returns 200 with valid JSON.
/sparkgen-test validate)make validate
Runs prompt validation + guardrail tests + workflow config loading.
/sparkgen-test all)Run in sequence: unit → guardrails → prompts → validate. Report summary at end.