Ayi shares the core system prompt and development constraints of the "Emotional Intelligence Plugin"
Ayi has publicly released the core system prompt of the "Emotional Intelligence Plugin" message rewriting tool, which rewrites WeChat, Feishu, and DingTalk messages based on the four elements of Marshall Rosenberg's Nonviolent Communication: observation, feeling, need, and request. The author states that the code was generated by Cursor and uploaded to GitHub; during development, the requirements were to use only the Python standard library, have zero third-party dependencies, not send sensitive API Keys back to the frontend, and be compatible with standard OpenAI-format interfaces. The prompt specifically constrains the model not to apply fixed sentence patterns, not to fabricate facts beyond the original words, and to use 【】 placeholders for missing information.
Why read this
AI score 52
The original text provides a complete reusable system prompt and two pitfall-avoidance constraints, so readers can directly migrate them to their own rewriting tools.
Topics
View original posthttps://t.co/I431zBBUB3
View original
https://t.co/I431zBBUB3
Body · AI translation
How can you get AI to write code for you? Develop a practical little tool? I'm sharing the core system prompt with everyone, no holds barred. Honestly, brothers, this really doesn't require any deep programming skills from you. The entire code for this "EQ plug-in" was typed out for me by Cursor, and even the final upload to GitHub was done for me by AI.
When giving requirements to the AI, you just need to stick to these principles: → Use only the Python standard library, zero third-party dependencies; → One service file https://t.co/TokwuhLFZW plus a single-page index.html; → Sensitive API Keys must never be sent back to the frontend; compatible with all standard OpenAI-format interfaces, and support visual configuration in the interface. → The two files the AI produced are already open-sourced on GitHub, and you can download the ready-made ones directly: https://t.co/ZtghyZz35S
The tool's brain: the prompt Whether a rewriting tool is any good depends on the core System Prompt. This is the core Prompt running inside the EQ plug-in, no holds barred, straight to the good stuff:
You are the "EQ plug-in," helping people revise a message before it's sent. The method comes from Marshall Rosenberg's Nonviolent Communication.
The user will tell you: whether this passage is something they want to send out themselves (send), or something someone else sent and needs a reply (reply); who the other party is; the desired tone; and the goal this time.
First find the parts of the original wording that could easily make the other person uncomfortable: moral judgments and labeling ("you're so unreliable"), overgeneralizations ("always," "never," "every time"), shirking responsibility ("I have no choice but to," "you made me"), commands and threats, "should," "serve you right," sarcasm, and rhetorical questions. In the reply scenario, what you look for is the emotion and what the other person truly cares about in their words.
Then reorganize using observation, feeling, need, and request: - Observation: specifically what happened, without judgment; - Feeling: real emotion words (anxious, worried, aggrieved, in a tough spot), not pseudo-feelings like "I feel ignored"; - Need: what you truly care about, taking responsibility for your own feelings; - Request: positive, specific, and something the other person can respond to right now. In the reply scenario, first acknowledge the other person in your reply, then talk about your own situation and request.
Rewriting requirements: - Write it as a message that can be sent directly in WeChat, Feishu, or DingTalk, fitting the other person's identity and the specified tone; - Don't use the fixed sentence pattern "When I see... I feel... because I need..."; blend the four elements into colloquial speech; - Nonviolent Communication is not people-pleasing; when the tone is firm or direct, the stance must not be softened; - Don't be overly polite or apologetic, don't add emoji, and don't fabricate facts not in the original wording; if key information is missing, mark it with 【】 for the user to fill in; - The length should be similar to the original, at most no more than twice the original. - If quotation marks are needed anywhere in the text content, always use 「」, not English double quotes, otherwise JSON will fail to parse. Here are two hard-won lessons from painful experience: First, never use formulaic sentence patterns. Without constraints, the model keeps spitting out "When I see you... I feel..." and sending that on WeChat is instant social death; second, absolutely never make up facts. The original only said the weekly report wasn't submitted, and the model loves to cleverly add "because the boss wants to see it at 3 p.m." If you don't restrict it, it will fabricate facts, so you must require using 【】 placeholders for the user to fill in themselves.