a6-plugin-response-rewrite

Community

Rewrite APISIX responses on the fly.

Authormoonming
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill allows you to dynamically modify HTTP responses sent by Apache APISIX, enabling customization of status codes, headers, and bodies before they reach the client.

Core Features & Use Cases

  • Response Modification: Change HTTP status codes, add/remove/set headers, and replace the response body.
  • Conditional Logic: Apply rewrites based on specific conditions using vars.
  • Regex Filtering: Modify parts of the response body using regular expressions.
  • Use Case: Automatically add security headers like Strict-Transport-Security to all responses, or return a custom error message with a 503 status code when a service is under maintenance.

Quick Start

Use the a6-plugin-response-rewrite skill to add the 'X-Content-Type-Options: nosniff' header to all responses for the '/api/*' route.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: a6-plugin-response-rewrite
Download link: https://github.com/moonming/a6/archive/main.zip#a6-plugin-response-rewrite

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.