Ghostwriter logo

Ghostwriter

Community
superzhang21
ghostwriter

Use when switching AI persona/language style. Syncs 13+ character profiles (Ding Yuanying, Lin Daiyu, Lu Xun, Li Yunlong, etc.) from GitHub, generates persona prompts with thinking patterns, rhetoric, and speech traits.

Overview

Publishersuperzhang21
Repositoryghostwriter
Skill nameghostwriter
Stars
305
Forks
36
Bundled files
1
LicenseCC-BY-NC-ND-4.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 1 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by superzhang21 on GitHub. Read the source before you install it.

Installation

Install the Ghostwriter AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/superzhang21/ghostwriter/tree/main/skill
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/superzhang21/ghostwriter.git /tmp/ghostwriter
mkdir -p .claude/skills
cp -r /tmp/ghostwriter/skill .claude/skills/ghostwriter
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Ghostwriter in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Ghostwriter on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Ghostwriter is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Ghostwriter — 影子作家角色切换系统

Overview

本项目包含 13+ 个角色的语言与思维特征数据,可通过配套脚本一键生成 persona prompt, 注入 AI 对话即可切换角色风格。支持写作模仿、角色扮演、风格迁移等场景。

脚本完全独立,不依赖任何 Agent 框架。 任何能执行 Python 脚本的环境都能用。

When to Use

  • 需要 AI 以特定人物风格说话/写作
  • 角色扮演、文学创作、风格迁移
  • 为 AI 助手注入不同的人格特征

快速开始

1. 安装

独立使用(推荐,零依赖):

bash
git clone https://github.com/superzhang21/ghostwriter.git
cd ghostwriter
python3 skill/scripts/ghostwriter-sync.py --list

作为 Hermes Agent Skill:

bash
git clone https://github.com/superzhang21/ghostwriter.git
ln -s $(pwd)/skill ~/.hermes/skills/creative/ghostwriter

其他 Agent / 通用: 脚本只需 Python 3.8+,能执行 shell 命令的 Agent 都能调用。

2. 列出所有角色

bash
python3 skill/scripts/ghostwriter-sync.py --list

3. 切换角色

bash
# 生成丁元英的 persona prompt
python3 skill/scripts/ghostwriter-sync.py --apply 丁元英

# 生成鲁迅的 persona prompt
python3 skill/scripts/ghostwriter-sync.py --apply 鲁迅

输出的 prompt 片段可直接粘贴到系统提示词中,或通过 --json 参数程序化调用。

4. 查看角色详情

bash
python3 skill/scripts/ghostwriter-sync.py --info 林黛玉

可用角色

角色来源文件
丁元英《天道》Tiandao_DingYuanying.json
芮小丹《天道》Tiandao_RuiXiaodan.json
林黛玉《红楼梦》Honglou_LinDaiyu.json
祁同伟《人民的名义》Renmindemingyi_QiTongwei.json
林月如《仙剑奇侠传》Xianjianqixiazhuan_Linyueru.json
绫波丽新世纪福音战士Ribendongman_Lingboli.json
叶子农《天幕红尘》Tianmuhongchen_YeZinong.json
鲁迅公共数据Public_LuXun.json
张仪《大秦帝国》Public_ZhangYi.json
雷布斯演讲数据Speaker_Lei.json
李云龙《亮剑》Liangjian_LiYunlong.json
吕子乔《爱情公寓》Aiqinggongyu_LvZiqiao.json
胡锡进微博Weibo_Hu.json

📌 角色库持续更新中。想加角色?去 Issues 提需求。

路径策略

脚本的 data 目录始终位于 skill/data/ 下(与 scripts/ 平级),无论 skill 被安装到哪里:

skill/
├── SKILL.md
├── data/              ← 角色 JSON 同步到这里
│   ├── Tiandao_DingYuanying.json
│   └── ...
├── scripts/
│   └── ghostwriter-sync.py
└── .cache/            ← 临时 git clone 目录(自动管理)

首次运行时自动从 GitHub 克隆并提取 JSON;后续运行自动更新。不需要手动管理项目目录。

命令参考

命令说明
--list列出所有角色
--list --jsonJSON 格式列出角色
--info <角色名>查看角色详情
--apply <角色名>生成 persona prompt(文本格式)
--apply <角色名> --json生成 persona prompt(JSON 格式)
--no-sync跳过 GitHub 同步,使用本地缓存

支持按角色名或文件名模糊匹配。

Pitfalls

  • 角色切换仅影响语言风格和思维模式,不改变工具权限和安全边界
  • 部分 JSON 格式有兼容性问题,脚本已内置修复逻辑
  • 网络同步使用 ghfast.top 代理加速,代理失效时自动回退直连
  • 框架版本差异:v2.1(李云龙、吕子乔)心理维度更丰富

Verification

  • --list 正确列出角色
  • --apply 丁元英 输出完整 persona prompt
  • --apply 鲁迅 --json 返回合法 JSON

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Ghostwriter AI skill do?

Use when switching AI persona/language style. Syncs 13+ character profiles (Ding Yuanying, Lin Daiyu, Lu Xun, Li Yunlong, etc.) from GitHub, generates persona prompts with thinking patterns, rhetoric, and speech traits.

Why use Ghostwriter on TypingMind?

Because you install it once and use it with any model. Ghostwriter is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Ghostwriter in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/superzhang21/ghostwriter/tree/main/skill. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Ghostwriter?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Ghostwriter?

As many as you like. As long as a model supports skills, you can use Ghostwriter with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Ghostwriter AI skill free?

Yes. It is published on GitHub by superzhang21 under the CC-BY-NC-ND-4.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇