skill
diewei.skill
爹味说教生成器:长辈口吻、打压式关怀与人生道理讽刺 | Patronizing lecture generator with configurable styles, local Python CLI and agent skill.
Set up
Skills are installed by placing their folder where your agent loads skills.
The download comes from github.com/Crazy4Lamb/diewei.skill itself, not from our server, so what you get is exactly what its author published.
Install instructions come from the README
README
synced Oct 26, 2026爹味.skill / Diewei: Patronizing Lecture Generator
中文介绍
把长辈、领导与好为人师网友的说教口吻做成可调用的讽刺文案生成器。
English Introduction
A satirical generator that imitates patronizing lectures from elders, bosses and unsolicited advisers.
中文使用说明 | English guide | Agent Skill
Python 3.9+ · Local templates · No API key · MIT
快速开始
需要 Python 3.9+。从源码安装(仓库名不代表已发布到 PyPI):
git clone https://github.com/Crazy4Lamb/diewei.skill.git
cd diewei.skill
python -m pip install .
from diewei_skill import DieweiAgent
bot = DieweiAgent(style="classic", level="max", seed=7)
print(bot.say("熬夜"))
print(bot.explain("熬夜"))
print(bot.batch(["熬夜", "随便聊聊"]))
示例口吻(随机回复不保证逐字相同):
天天熬夜还指望精神好?年轻也不是这么折腾的。我吃过的盐比你吃过的米都多,听我的准没错!
模式与参数
style: classic / harsh / gentle_bully;level: low / medium / max。seed 用于复现随机选择。未知模式或非法强度会抛出 ValueError,非字符串输入会抛出 TypeError,空字符串使用通用文案。
| 模式 | 通用口吻示例 |
|---|---|
| classic | 年轻人就是太浮躁,听不进去过来人的话。 |
| harsh | 你懂个屁,先把事情做明白再谈自己的道理。 |
| gentle_bully | 你现在嫌我说得多,以后就知道我是为你好。 |
场景识别
输入先按下表顺序匹配关键词;多个场景命中时使用第一类,否则使用 general。中英文关键词都能触发,但内置回复默认中文。explain 返回 category、matched、mode、intensity、engine,便于调试。
| 分类 | 关键词 |
|---|---|
| sleep | 熬夜, 追剧, 晚睡, sleep, drama |
| food | 外卖, 做饭, takeout, food |
| study | 考证, 证书, 学习, 考试, certificate, exam |
| rest | 躺平, 休息, 摆烂, rest, relax |
| career | 辞职, 换工作, 裸辞, 创业, quit, career |
| family | 结婚, 催婚, 生孩子, marriage, family |
命令行与玩法
python -m diewei_skill "熬夜" --seed 7
python -m diewei_skill "熬夜" --seed 7 --json
用 --help 查看风格参数。也可用安装后的命令 diewei-skill,或 python main.py。
玩法:选择一个场景 → 切换模式 → 比较同一句话的不同口吻 → 调整强度(如支持)→ 固定 seed 复现输出。将输出当作角色文案或模拟练习,而非事实判断。
三个项目可组成一个娱乐对话:diewei 发出说教,iknowder 佛系退出,uknowder 表达反击或边界。各仓库独立安装,不会自动互相调用。
作为智能体 Skill
仓库根目录的 SKILL.md 提供角色定位、模式选择和行为说明。将包含 SKILL.md 及说明文档的文件夹放入你的智能体支持的 skills 目录,或显式加载该文件。具体安装位置取决于客户端;这里不会自动安装到你的个人环境。
Python 是可复现的模板引擎;智能体则根据技能说明结合上下文生成文案。两者都不内置云端大模型调用。
开发与验证
python -m unittest -v test
python -m diewei_skill --help
模板、关键词在 diewei_skill/core.py;引擎在 _engine.py;命令行在 main.py。增加场景时同步补齐所有模式文案并更新测试。零运行时第三方依赖;源码安装需要 setuptools 构建工具。
保持原有 DieweiAgent 接口可用。强度 >=70 时增加模式结尾,低于该值仅输出主体,不声称进行心理学或语义模型评分。
许可与用途
MIT License。这是讽刺、角色扮演和娱乐文案项目。表达对象是话术与情境,不编造真实个人信息,不生成威胁。认真求助时请退出角色,正常讨论事实与选择。
Install and use
Requires Python 3.9+. Install from this repository; a repository name does not imply a published PyPI package.
git clone https://github.com/Crazy4Lamb/diewei.skill.git
cd diewei.skill
python -m pip install .
from diewei_skill import DieweiAgent
bot = DieweiAgent(style="classic", level="max", seed=7)
print(bot.say("熬夜"))
print(bot.explain("熬夜"))
print(bot.batch(["熬夜", "随便聊聊"]))
Example tone (random choices may differ):
天天熬夜还指望精神好?年轻也不是这么折腾的。我吃过的盐比你吃过的米都多,听我的准没错!
Modes and API
style: classic / harsh / gentle_bully; level: low / medium / max. seed controls reproducible random selection. Invalid modes/strength raise ValueError; non-string inputs raise TypeError. Blank input falls back to general responses.
| Mode | Example tone (Chinese output) |
|---|---|
| classic | 年轻人就是太浮躁,听不进去过来人的话。 |
| harsh | 你懂个屁,先把事情做明白再谈自己的道理。 |
| gentle_bully | 你现在嫌我说得多,以后就知道我是为你好。 |
The supported methods are say(text), batch(iterable) and explain(text). explain returns category, matched, mode, intensity and engine. batch returns a list of replies in input order.
Scenario routing
Keywords are matched in the order below; the first matching category wins. Unmatched text uses general. English keywords are supported, while built-in output is Chinese.
| Category | Keywords |
|---|---|
| sleep | 熬夜, 追剧, 晚睡, sleep, drama |
| food | 外卖, 做饭, takeout, food |
| study | 考证, 证书, 学习, 考试, certificate, exam |
| rest | 躺平, 休息, 摆烂, rest, relax |
| career | 辞职, 换工作, 裸辞, 创业, quit, career |
| family | 结婚, 催婚, 生孩子, marriage, family |
CLI and play
python -m diewei_skill "熬夜" --seed 7
python -m diewei_skill "熬夜" --seed 7 --json
Run --help for mode options. The installed command diewei-skill and python main.py use the same CLI.
Choose a scenario, compare modes, adjust strength where supported, then use a fixed seed to reproduce results. These are character lines, not factual assessments. At intensity 70 or above a mode-specific ending is appended; lower values use only the body. Intensity is a template setting, not a psychological score.
The three independent projects can form a comic exchange: diewei lectures, iknowder opts out, and uknowder pushes back or states a boundary. They do not call each other automatically.
Agent skill
SKILL.md defines persona, mode choice and contextual behavior. Put the folder containing SKILL.md and its guides in a skill directory supported by your client, or load it explicitly. Client-specific installation paths vary; this repository does not install itself into a personal assistant environment.
The Python implementation is a deterministic-seed template engine; an agent following SKILL.md can compose contextual wording. Neither includes a cloud-model integration.
Development
python -m unittest -v test
python -m diewei_skill --help
Keywords/templates: diewei_skill/core.py. Engine: _engine.py. CLI: main.py. Add entries for every mode when adding categories, then update behavior tests. No third-party runtime dependencies; source builds use setuptools. The existing DieweiAgent API remains supported.
License and intent
MIT License. Intended for satire, roleplay and entertainment. Keep responses focused on statements/situations without invented private facts or threats. Leave the persona for serious requests and discuss facts and choices normally.