with one click
sparkgen-prompt
Validate, render, preview, and manage the 6-layer prompt system
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Validate, render, preview, and manage the 6-layer prompt system
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
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-prompt |
| description | Validate, render, preview, and manage the 6-layer prompt system |
| user_invokable | true |
| auto_invokable | true |
| auto_invoke_hint | Invoke when the user discusses prompts, prompt templates, context files, or prompt variables |
| arguments | <validate|render|preview|variables|create|layers> [agent-name] |
Manage the 6-layer prompt system.
Before any action:
ls prompts/ls contexts/config/prompt_variables.yamlconfig/ai_workflow.yaml — prompts: and agents[].prompt sectionsprompts/<agent>.md (Jinja2 template)contexts/*.md injected into the promptconfig/prompt_variables.yaml + agent-level variablesprompt_suffix from workflow YAML/sparkgen-prompt validate)python -m app.prompts.validator --base-dir . --variables config/prompt_variables.yaml
Checks:
/sparkgen-prompt render <agent-name>)If server is running:
curl -s http://localhost:8000/v1/prompts/render?agent=<agent-name> \
-H "X-API-Key: ${API_KEY:-dev-local-key}"
Displays the fully rendered prompt with all 6 layers merged.
/sparkgen-prompt preview <agent-name>)Show each layer separately for the given agent:
prompts/<agent>.mdconfig/prompt_variables.yaml + agent-level overrides/sparkgen-prompt variables)Display all prompt variables from config/prompt_variables.yaml:
| Variable | Value | Used By |
For each variable, show which prompt files reference it.
/sparkgen-prompt create <agent-name>)Create a new prompt file prompts/<agent-name>.md with a template:
You are {% raw %}{{ agent_name }}{% endraw %}, a specialized AI assistant.
## Role
<describe the agent's role>
## Instructions
<specific instructions for this agent>
## Guidelines
- Be helpful and accurate
- Cite sources when available
Also add the prompt file reference to the agent's config in config/ai_workflow.yaml.
Run make validate-prompts after creation.
/sparkgen-prompt layers)Explain the 6-layer prompt architecture and show how each layer is configured for every agent. Display a matrix: Agent × Layer showing what's configured at each level.