Repository navigation
feat: add Turn into skill and Turn into automation to the Session menu - #2099
Douglasymlai wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
Claude Code Review
Claude Code Review is paused for this repository because its GitHub organization is not linked to your Claude organization.
To turn it back on, one person needs both roles: owner of the GitHub organization (or the account owner, for a personal repository) and admin or owner of your Claude organization. If that is not you, pass this on to someone who is.
Open Organization settings, Git providers and click Link next to the GitHub organization's name. If it is not listed, click Enable GitHub integration or Connect your GitHub first, whichever the page shows.
New pull requests are then reviewed as before. To get a review on one that is already open, someone with write access can comment @claude review.
Tip: disable this comment in your organization's Code Review settings.
Split out of #1958 so it can be reviewed on its own.
Problem
When a Task in a Session goes well, there is no quick way to reuse it. To turn it into a skill you have to write the skill-creator request yourself and paste in the original request and the result. To run it on a schedule you have to open Automations and retype the prompt. Both start from a blank page even though the Session already has everything needed.
Cause
The Session header menu only had Session actions (Pin, Rename, End, Delete). Nothing read the latest completed Task, and the Automation editor could only be prefilled with a plain prompt from the Session that was active when you saved.
Fix
automation-draftblock, its name, description, prompt, schedule notes, required inputs and open questions are used too. The draft is only shown in the editor; nothing is created until you save.chat.json, added at the end of all 11 locales:automation-draft-with-skill,create-automation-from-task,automation-skill-unavailable,automation-source-session,automation-schedule-review-hint,automation-review-confirm,automation-review-required.The Narrative/Trajectory toggle stays where it is in the header for now.
Testing
In the app (macOS, in both the default chat view and the experimental timeline view):
automation-draftblock, its name, prompt, schedule notes, inputs and questions are filled in too.Automated:
automationDraft,pageTabStoreanduseSessionPageTabStore: all pass. New tests cover:automation-draftparsing and rejection;npm run type-check,npm run check:i18n,npm run check:design-tokens, ESLint and Prettier on changed files: pass.Testing Evidence