ClaudeMods
☰
EN
● 0 online · Views 0 times
SponsorsSubmit a project
GitHub repositories · by dikeckaan

system-promt

A Claude Code mod that shows, exports and edits the system prompt of your session, relying on the early-access function hooks API.

dikeckaan@dikeckaan

dikeckaan/claude-system-promt/tree/main/plugins/system-promt

Translated

About this mod

system-promt 是一個 Claude Code 外掛,可用 /system-promt 指令開啟面板,逐區塊檢視、列出、匯出、編輯與重設工作階段的系統提示。匯出檔包含系統提示區塊、第一則訊息的脈絡區塊、引擎注入的訊息以及各工具的名稱與描述,可能含使用者自己的指令、記憶與帳號信箱。它以 Claude Code 的 function hooks(早期存取 API,建置於 2.1.288)撰寫,API 變動時可能失效。

Installation

Check the author's README for the marketplace and plugin name first. Commands may change as the repository evolves.

claude plugin marketplace add dikeckaan/claude-system-promt
claude plugin install system-promt
Original text / 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.

Similar projects