Skip to main content

rp-export-context

Explore the codebase and export a structured context file (e.g., context.xml) for pasting into an external LLM like ChatGPT or Claude Web.

ソース情報

リポジトリ
HaoNgo232/Code-to-Prompt
ソースの最終更新活動
2026年4月13日 07:46
検出された SKILL.md の言語
英語
スター
2
フォーク
0

インストール方法

デフォルトでは、最初にソースを確認する Prompt が選択されています。直接コマンドに切り替えるか、ローカルコピーをダウンロードすることもできます。

ソースファイルを確認

インストールを決める前に、SKILL.md と SkillsMP に表示されている付属ファイルをお読みください。

SKILL.md を表示中

SKILL.md
ソースの指示 · 読み取り専用プレビュー
name
rp_export_context
description
Explore the codebase and export a structured context file (e.g., context.xml) for pasting into an external LLM like ChatGPT or Claude Web.
# Export Context for External LLM ## Goal Gather relevant project files and package them into a file on disk (e.g., `context.xml`) that the user can copy-paste into an external LLM for planning, review, or implementation. ## Output A file written to the workspace (via `build_prompt` with `output_file`) containing structured project context. The agent reports the file path, token count, and included files, then STOPS. ## Key Tools - `explain_architecture` / `batch_codemap` — understand which files are relevant - `get_imports_graph` / `blast_radius` — trace dependencies to ensure complete context - `estimate_tokens` — verify context fits the target LLM's context window - `build_prompt` — package and write to file (use `output_file="context.xml"` or similar) ## Constraints - **MUST write to file** via `output_file` parameter. Never print the full prompt inline. - **STOP after exporting.** Do not implement code, do not write a plan, do not modify any files. The purpose is to produce a context file for the user to use elsewhere. - Always run `estimate_tokens` before `build_prompt` to avoid exceeding the external LLM's context window. - Use `auto_expand_dependencies=True` to include imported files automatically.
GitHubで見る