Prompt Alchemy: Rewriting Prompts with the Quaternary Distillation Framework

Introduction

In daily prompt writing, the common dilemma is not “inability to write,” but rather instability after several revisions: the model gives irrelevant answers, format drift occurs, reasoning skips steps, or the prompt becomes longer yet harder to maintain as more instructions are added. Manually patching based on various tutorials often results in learning only fragmented techniques, lacking a repeatable optimization path.

The following introduces the Agent Skill “Prompt Alchemist” (coordinate @user_83d7fe7a/prompt-alchemist) on SkillHub. It converges various publicly discussed prompt engineering ideas into a fixed workflow. It takes an original prompt as input and outputs a “distilled version” processed via a structured approach, facilitating direct use in conversations or workflow embedding.

What is this

“Prompt Alchemist” is a community-sourced (community) Skill of the ai-agent category. The current SkillHub version is 1.0.4, published by user_83d7fe7a, with the page listing the author as Qiqi (七七). The Skill is tagged with requires_api_key=false; once installed, it runs according to the Skill instructions without needing an additional API Key.

Its positioning can be summarized as: In the “prompt optimization” scenario, an Agent automatically rewrites the user’s prompt following a “Quaternary Distillation Framework,” aiming to improve the controllability and quality of subsequent AI responses. The official introduction points to the GitHub repository Cherish133/prompt-alchemist; the SkillHub page notes that the Git side is the continuously optimized version, and the original instructions and retained content can be viewed via that link.

Core Features

The following capabilities are derived from the SkillHub introduction and the description and framework instructions in the repository’s SKILL.md. The consistent parts are as follows.

Quaternary Distillation and Four Methodological Sources

The Skill merges the ideas of Riley Goodside (Structure), Tu Jinhao (Stream of Consciousness), Sander Schulhoff (Evidence and Example Classification), and Li Jigang (Compression Resonance) into the “Quaternary Distillation Framework.” When encountering different problems, the framework emphasizes different techniques, such as structural anchoring, embedding thinking processes, Few-Shot learning, task decomposition, and redundant expression compression. Specific branches are detailed in the Skill body and reference documentation.

Fixed Four-Step Process

The core pipeline described officially consists of four steps:

  1. Diagnose: Identify the main problems and task types of the current prompt.
  2. Structure: Clarify intent using tags, roles, task boundaries, etc.
  3. Think: For tasks requiring reasoning or decision-making, guide the model to think before answering.
  4. Compress: Remove repetitions and invalid constraints, retaining high-signal instructions.

The input is the user’s original prompt (or a short sentence intent in minimalist scenarios), and the output is the distilled prompt text (often organized with XML-style tags in Skill documents for easy copying).

Triggers and Boundaries

The description in SKILL.md stipulates: This Skill should be triggered when a user wants to optimize a prompt, improve a Prompt, enhance output quality, or when expressions like “help me optimize this prompt,” “improve my Prompt,” “make the AI answer better,” “prompt distillation,” or “prompt alchemist” appear.

Not applicable to: Directly asking the model to answer questions (rather than changing the Prompt), pure chit-chat, and requests centered on code debugging. Generic conversation or development-oriented Skills should be used for such scenarios instead of this tool.

Installation and Activation

The official SkillHub page requires: First configure the CLI according to the SkillHub installation instructions, then install this Skill.

1. Check or Install skillhub CLI

Check in the terminal whether it is installed:

command -v skillhub && skillhub --version

If not installed, use the official script (full installation includes default Skills; add --cli-only if only the CLI is needed):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

2. Install to the current Agent’s skills directory

When installing, you must use --dir to point to the skills directory recognized by the current client; otherwise, it defaults to ./skills/, which may not be loaded by the Agent. Common paths provided in official documentation include:

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

Example installation command (replace <skills directory> with the corresponding path above):

skillhub install @user_83d7fe7a/prompt-alchemist --dir <skills directory>

Alternatively, send the instructions on the SkillHub page to the AI and let it complete the installation according to the same documentation. Restart or refresh the Skill list according to the requirements of each client after installation.

Typical Usage

This Skill is based on the generic SKILL.md format: once enabled, simply explain in natural language “which Prompt to optimize”; no separate script running is required.

Full Four-Step Distillation

Suitable for existing drafts that are longer or more complete. Example conversational intent is as follows (illustrative, not a fixed command):

Please use Prompt Alchemist to optimize the following Prompt, outputting the final version following Diagnose → Structure → Think → Compress:

[Paste your original prompt]

Through the above steps, the Agent should return the rewritten distilled version, which can be directly used for the next model invocation.

Minimalist Input and Follow-up

The repository’s SKILL.md provides a “Minimalist Mode” for beginners: when the input is very short, or the user explicitly states “simple” or “fast,” the full four steps can be skipped to prioritize generating a few core tags (such as Role, Task, Format). If there is only a verb without an object (e.g., “translate to English,” “summarize”), the Skill will request the content to be processed before distillation. This aligns with the usage habit of “provide material first, then optimize the Prompt.”

Applicable Scenarios and Notes

Who it is for

  • Product, operations, and R&D personnel who need to tune prompts repeatedly and want a stable rewriting process rather than scattered techniques.
  • Users already using clients that support Skills, such as Cursor, Claude Code, or Codex, who want to delegate “prompt modification” to a dedicated Skill.

Usage Notes

  • SkillHub list data (as of data capture): Category ai-agent, Rating 100000, Downloads 15080; refer to the SkillHub Skill Page for the latest.
  • The Git repository version and the SkillHub package version may not be synchronized; if you need to compare the latest documentation or reference files, use the Git address provided officially.
  • This Skill produces prompt text and does not replace the model itself; after optimization, it is still recommended to run a trial on the target model.
  • Do not force triggering in scenarios where “only the answer is needed, not changing the Prompt,” to avoid conflicts with the Skill’s design boundaries.

Conclusion

“Prompt Alchemist” strings diagnosis, structure, thinking, and compression into a reusable process and integrates multiple public methodologies into a single Agent Skill, making it suitable as a default assistant for prompt iteration. See SkillHub for installation and details: Prompt Alchemist; API Coordinate Page: https://api.skillhub.cn/user_83d7fe7a/prompt-alchemist.

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye