a6-plugin-serverless

Configure Apache APISIX serverless plugins for inline Lua execution.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the configuration of Apache APISIX's serverless plugins, enabling the execution of custom Lua code directly within request processing phases without needing to build a separate plugin.

Core Features & Use Cases

  • Inline Lua Execution: Run custom Lua functions at specific points in the request lifecycle (e.g., rewrite, access, log).
  • Dynamic Logic: Inject request/response modifications, implement custom authentication, or perform quick data transformations.
  • Use Case: Quickly add a security header to all responses or redirect HTTP traffic to HTTPS by defining simple Lua functions.

Quick Start

Use the a6-plugin-serverless skill to create a route that injects a custom header 'X-Request-ID' into incoming requests.

Frequently Asked Questions about a6-plugin-serverless

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

FAQPage Schema
How do I execute custom Lua code during Apache APISIX request processing?

To execute custom Lua code during Apache APISIX request processing, you can configure the serverless plugins to run inline Lua functions directly within specific request lifecycle phases like rewrite, access, and log without building a separate plugin.

What is the best way to add custom authentication guards in APISIX routing?

The best way to add custom authentication guards in APISIX routing is to use serverless plugins, which support injecting dynamic custom logic and authentication checks during the request access phase.

Can I dynamically manipulate request and response headers in APISIX without writing a full plugin?

Yes, you can dynamically manipulate request and response headers by using the serverless-pre-function and serverless-post-function plugins to inject quick modifications, such as adding security headers or custom request IDs.

What is the difference between the serverless-pre-function and serverless-post-function plugins in APISIX?

The serverless-pre-function and serverless-post-function plugins differ by execution timing: the pre-function runs custom Lua logic before the main request phase, while the post-function executes after the main processing phase for response manipulation.

Does the APISIX serverless plugin support injecting custom logic into the log phase?

Yes, the APISIX serverless plugin supports injecting custom Lua functions into the log phase, allowing you to perform quick data transformations and log custom metrics during request processing.