a6-plugin-ai-prompt-template

Configure the Apache APISIX ai-prompt-template plugin for reusable prompt templates.

1|2|Updated Mar 6, 2026
One-click install
npx skills add https://github.com/moonming/a6 --skill a6-plugin-ai-prompt-template
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: a6-plugin-ai-prompt-template
Source: https://github.com/moonming/a6/tree/main/skills/a6-plugin-ai-prompt-template
Command: npx skills add https://github.com/moonming/a6 --skill a6-plugin-ai-prompt-template

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the management and deployment of AI prompt templates, ensuring consistent AI interactions and preventing prompt injection by controlling user inputs.

Core Features & Use Cases

  • Template Definition: Define reusable prompt structures with variable placeholders.
  • Client Input Control: Restrict user inputs to specific fields, enforcing a fill-in-the-blank experience.
  • Use Case: Create a standardized customer support chatbot prompt that always includes a system message about being helpful and polite, while only allowing the user's query to be filled in.

Quick Start

Create a route with the ai-prompt-template plugin and the ai-proxy plugin for a templated chat completion.

Frequently Asked Questions about a6-plugin-ai-prompt-template

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

FAQPage Schema
How do I manage reusable AI prompt templates in Apache APISIX?

Apache APISIX manages reusable AI prompt templates via the ai-prompt-template plugin, defining prompt structures with variable placeholders to enforce consistent interactions and restrict user inputs.

How does prompt template enforcement prevent prompt injection in AI gateways?

Prompt template enforcement prevents prompt injection by restricting client inputs to specific variable fields, creating a fill-in-the-blank experience that controls what user data enters the AI gateway pipeline instead of allowing raw prompt overrides.

Can I define multiple prompt templates on a single APISIX route?

Yes, you can define multiple prompt templates on a single APISIX route using the ai-prompt-template plugin, enabling different templated chat completions to be routed and processed through the ai-proxy integration simultaneously.

Does the ai-prompt-template plugin work with ai-proxy for chat completions?

Yes, the ai-prompt-template plugin works with ai-proxy to integrate templated prompts into AI gateway pipelines, enabling structured chat completions by forwarding controlled user inputs and predefined system messages to the backend proxy.

How do I combine ai-prompt-template with ai-prompt-decorator for message manipulation?

You combine ai-prompt-template with ai-prompt-decorator by configuring both plugins on your APISIX route, enabling advanced message manipulation where templates establish the base structure and decorators modify the messages before proxying.