a6-plugin-ai-prompt-decorator

Configure the ai-prompt-decorator plugin via a6 CLI to prepend or append LLM messages.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enables configuring the ai-prompt-decorator plugin via the a6 CLI to automatically prepend and/or append system, user, or assistant messages to LLM requests, ensuring consistent context, safety guidelines, and integration with other AI pipeline plugins.

Core Features & Use Cases

  • Configure prepend and append message blocks for LLM prompts
  • Coordinate with ai-prompt-template and ai-proxy to build robust prompt pipelines
  • Maintain conversation context and safety constraints across routes and config syncs

Quick Start

Create a route with ai-prompt-decorator and ai-proxy, then send a chat request to verify that system messages are prepended and the final prompt is correctly composed.

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

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

FAQPage Schema
How do I prepend system messages to LLM requests in APISIX?

You can prepend system messages to LLM requests in APISIX by configuring the ai-prompt-decorator plugin via the a6 CLI to define prepend message blocks for your routes.

What is the a6 CLI used for in AI prompt decoration?

The a6 CLI is used to define APISIX routes and configurations, applying the ai-prompt-decorator plugin to automatically prepend and append messages to LLM prompts for consistent context.

How do I configure APISIX routes to append safety guidelines to AI prompts?

Configuring APISIX routes to append safety guidelines involves using the a6 CLI to apply the ai-prompt-decorator plugin, defining append message blocks that enforce constraints across LLM requests.

Does the ai-prompt-decorator work with the ai-proxy plugin in APISIX?

Yes, the ai-prompt-decorator coordinates with the ai-proxy plugin in APISIX to build robust prompt pipelines, ensuring decorated messages are correctly composed before proxying LLM requests.

Why does APISIX plugin ordering matter for AI prompt decoration?

APISIX plugin ordering matters for AI prompt decoration because the a6 CLI ensures operational ordering and safety through clear plugin priorities, validating metadata to prevent pipeline conflicts.

Can I maintain conversation context across APISIX route config syncs?

Yes, you can maintain conversation context and safety constraints across routes and config syncs by defining consistent prepend and append message blocks using the ai-prompt-decorator plugin via the a6 CLI.