PromptHub: publish this session
prompthub_publish_sessionDistill the current coding session into reusable PromptHub files and publish them as a new repository, stripping secrets and project-specific noise.
Instructions
Distill the CURRENT coding session into a reusable PromptHub repository and publish it as a NEW repo. You (the assistant) must gather the relevant turns from this conversation yourself and shape them into one or more files — this tool cannot read the conversation on its own. Choose the file type that fits the session: - a single refined reusable prompt → a 'text' file (graph with exactly one node whose promptText holds the prompt); - a valuable multi-turn back-and-forth → a 'conversation' file with turns of { userPrompt, aiSummary? }; - a multi-step / multi-model pipeline → a 'workflow' file (graph of nodes + edges). Call prompthub_describe_file_format for the exact file shapes if unsure. STRIP secrets, API keys, absolute file paths, and project-specific noise — capture the reusable essence, not the raw transcript. 'visibility' is REQUIRED: choose 'private' unless the user clearly wants it public. If the user already handed you finished, structured repo content (with topics/README), use prompthub_create_repo instead.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"repoName": "<repoName>",
"visibility": "<visibility>",
"files": "<files>"
},
"name": "prompthub_publish_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | Yes | One or more distilled files. | |
| repoName | Yes | Repo name slug: lowercase, hyphen-separated. | |
| visibility | Yes | REQUIRED. Choose 'private' unless the user wants it public. | |
| description | No | Short description of the prompt/workflow. |