ClaudeMods
☰
JA
● 0 人がオンライン ・閲覧 0 回
スポンサー作品を投稿
GitHub リポジトリ · 投稿者 dikeckaan

system-promt

Early Access の function hooks API に依存し、セッションのシステムプロンプトを表示、書き出し、編集する Claude Code mod です。

dikeckaan@dikeckaan

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

翻訳済み

この mod について

system-promt は Claude Code プラグインです。/system-promt コマンドでペインを開き、セッションのシステムプロンプトをブロックごとに確認、一覧表示、書き出し、編集、リセットできます。書き出したファイルには、システムプロンプトのブロック、最初のメッセージのコンテキストブロック、エンジンが注入したメッセージ、各ツールの名前と説明が含まれ、ユーザー自身の指示、メモリ、アカウントのメールアドレスが入る場合があります。Claude Code の function hooks(Early Access 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.

関連作品