| name | repo-from-thread |
| description | Create a new GitHub repo seeded with context from the current conversation. Use when the user says "repo from thread", "repo from chat", "let's turn this conversation into a repo", or "create a repo to manage this project" mid-conversation. |
Repo From Thread
Mid-conversation, the user realizes the work being discussed deserves its own GitHub repo. Spin one up and seed it with the context accumulated so far, so a fresh Claude session in that repo can pick up where this thread left off.
Steps
- Ask the user:
- Repo name (propose one based on the conversation topic).
- Public or private.
- Parent directory (default:
~/repos/github/my-repos/).
- Synthesize the conversation so far into seed context. Do NOT dump the raw transcript — distill it. Cover:
- What the project is and why it exists (the goal the user articulated).
- Decisions already made in the thread.
- Open questions / next steps.
- Any file paths, commands, URLs, or constraints mentioned.
- Create and initialize the repo:
mkdir -p <parent>/<name> && cd <parent>/<name>
git init -b main
- Seed files:
README.md — short project description.
CLAUDE.md — the distilled context from step 2, framed as instructions for a fresh Claude session ("This repo was spun out of a conversation on . Context so far: …").
context/thread-origin.md — longer-form notes on decisions, open questions, next steps.
- Initial commit, create GitHub repo, push:
gh repo create danielrosehill/<name> --<public|private> --source . --remote origin --push
- Report: local path, GitHub URL, and suggest the user run
/session-transfer:new-claude-at <path> to continue the work in a fresh session with the seeded context.
Notes
- The value of this skill is the distillation in step 2 — a raw transcript dump is useless. Write the CLAUDE.md as if briefing a colleague who just walked in.
- If the conversation is very short or context-thin, ask the user to add anything important you might have missed before committing.
- Default to private unless the user says otherwise.