dikeckaan/claude-system-promt/tree/main/plugins/system-promt
system-promt
一个 Claude Code mod,显示、导出和编辑当前会话的系统提示,依赖早期体验阶段的 function hooks API。
关于这个 mod
system-promt 是一个 Claude Code 插件,可以使用 /system-promt 命令打开面板,按区块查看、列出、导出、编辑和重置会话的系统提示。导出文件包含系统提示区块、第一条消息的上下文区块、引擎注入的消息,以及每个工具的名称和描述,可能包含使用者自己的指令、记忆和账号邮箱。它使用 Claude Code 的 function hooks(早期体验 API,构建于 2.1.288),API 变动时可能失效。
安装
请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。
claude plugin marketplace add dikeckaan/claude-system-promt claude plugin install system-promt
原文 / README
system-promt
A Claude Code mod that shows, exports and edits the system prompt of your session.
Install
In Claude Code:
/plugin marketplace add dikeckaan/claude-system-promt
/plugin install system-promt@system-promt
It is written with Claude Code's function hooks, an early-access API: it needs a recent Claude Code (built against 2.1.288) and may break when that API changes.
Use
| Command | What it does |
| --- | --- |
| /system-promt | Opens a pane with a section picker, the section's text, and Edit / Reset / Export / Refresh buttons |
| /system-promt list | Lists every section with its size; ✎ marks an edited one |
| /system-promt export [path] | Writes everything the model is given to a markdown file (system-prompt.md in the working directory by default) |
| /system-promt edit <section> | Copies the section to ~/.claude/system-promt/<section>.md and opens it in your text editor |
| /system-promt reset <section\|all> | Restores the original text |
| /system-promt allow everything | Empties every instruction section except the protected ones; reset all restores them |
The export has four parts: the system prompt's sections, the first message's context blocks (CLAUDE.md, date, account), the messages the engine injects (skill listings, reminders), and each tool's name and description. The second and third are captured as they pass, so send one message after installing before you export. Tool parameter schemas are not included.
An edited section is sent from the next request after you save its file, and stays edited across sessions until you reset it. An empty file drops the section. Changing a section invalidates the prompt cache for the next request.
An export contains your own instructions, memory and account email. Read it before you share it.
allow everything leaves the security policy, the caution before irreversible actions and the factual sections (environment, memory, model identity) in place. It changes Claude Code's instructions only: the model's own judgment and the permission system are unchanged. Any section, protected or not, can still be edited by name.
Develop
claude plugin validate plugins/system-promt
claude plugin test plugins/system-promt
License
MIT, see LICENSE.