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.