with one click
session-to-skill
// Use when the user wants to turn one or more Entire-tracked sessions, checkpoints, or repeated agent workflows into a reusable agent skill.
// Use when the user wants to turn one or more Entire-tracked sessions, checkpoints, or repeated agent workflows into a reusable agent skill.
Use when the user describes a task and wants to know whether something similar has been done before, then turn the closest prior session into a task playbook. Triggers on phrases like "have we done this before", "recall how we did X", "find similar work", "any precedent for", "has anyone solved", "is there a template for", and "how did we do this last time"
Use when the user wants to step through a feature's checkpoints chronologically, pausing at each step to ask questions. Triggers on phrases like "replay <feature>", "walk me through how X was built", "show me the journey of", "step me through how Y was implemented", and "replay the last week"
Use when a developer wants a topic-focused guided lesson built from canonical checkpoints, not a whole-repo overview. Triggers on phrases like "teach me <topic>", "teach me how this repo handles", "how does <topic> work in this repo", "give me a lesson on", "school me on", and "I need to learn about"
Use when an agent session ran outside the repo whose commits should record it — e.g. launched from a higher-level folder, a non-Entire repo, or one repo but editing another — to attach the session to each affected Entire-enabled repo's HEAD commit.
Use when the user wants to continue work from one agent in another agent, inspect recent sessions, or summarize a saved session or checkpoint for handoff
Explain why code looks the way it does by tracing the latest change for a file range or pasted snippet through `git blame` and deduplicated `entire explain` lookups. Use when the user asks what happened, says "tell me why" about a code block, is confused about a section of code, asks "wtf is going on", "why is this like this", "why was this changed", or wants provenance for a specific file block.
| name | session-to-skill |
| description | Use when the user wants to turn one or more Entire-tracked sessions, checkpoints, or repeated agent workflows into a reusable agent skill. |
Use this skill to help the user turn Entire session history into a focused skill draft.
The goal is not to convert a whole transcript mechanically. Treat sessions and checkpoints as source material, then extract the reusable workflow the user wants to repeat.
Begin the first response to this skill invocation with the line:
Entire Session To Skill:
followed by a blank line, then the content.
entire search, entire session current, session metadata files, and entire explain over asking the user to paste old transcripts.SKILL.md draft in the response.If the user gives a clear target, continue. Examples:
If the target is vague, ask:
What should this skill help you do repeatedly?
If the user wants a specific skill name, use it. Otherwise infer a short hyphen-case name from the target, then confirm it before writing files.
If the user gives a checkpoint ID, skip to checkpoint expansion.
If the user gives a session ID, read the matching session metadata from:
.git/entire-sessions/<session-id>.json
If the user describes a repeated workflow but does not give a session or checkpoint, search Entire history with terms from the target:
entire search "<workflow terms>" --json
Use repo, branch, author, or date filters when the user provides them:
entire search "<workflow terms>" --json --repo owner/name --branch branch-name --author "Name" --date month
Interpret search results carefully:
entire search returns valid JSON with "total": 0 or an empty results array, do not call it an authentication failure. Say no indexed matches were found, then fall back to local session metadata.When falling back locally, inspect .git/entire-sessions/*.json and match against last_prompt, description, files_touched, started_at, last_interaction_time, agent_type, and the user's workflow terms.
Review the top results and infer the repeated workflow pattern before showing raw session choices. Lead with the pattern, not the IDs.
Present:
Keep session IDs and checkpoint IDs as supporting details, not the main decision surface. Ask the user to confirm the pattern and source set before expanding detailed transcripts.
Example:
I found a repeated workflow: publishing blog posts in entire.io from drafts, using repo-specific front matter, slugged asset folders, user-provided images, and website checks.
I recommend using the strongest matching sessions as source material:
- core workflow: <session-id>
- image handling: <session-id>
- validation mechanics: <session-id>
I will ignore metadata-only or one-off edit sessions unless you want them included. Should I continue with this source set?
For a checkpoint, run:
entire explain --checkpoint <checkpoint-id> --full --no-pager
If full output fails and the user wants more detail, fall back to:
entire explain --checkpoint <checkpoint-id> --raw-transcript --no-pager
For an active or current session, prefer:
entire session current
If the installed Entire CLI does not support the singular session group yet, use the session metadata fallback directly: inspect .git/entire-sessions/*.json, pick the relevant session by last_interaction_time, started_at, agent_type, or the user's requested agent, then extract transcript_path.
When reading a raw transcript, extract relevant conversation and tool-call lines without dumping them to the user:
grep -E '"type":"(message|function_call|user|assistant)"' <transcript_path> | cut -c1-2000
For large transcripts, inspect the first prompts and final state first:
grep -E '"type":"(message|function_call|user|assistant)"' <transcript_path> | head -40 | cut -c1-2000
grep -E '"type":"(message|function_call|user|assistant)"' <transcript_path> | tail -160 | cut -c1-2000
If the session metadata lists files touched, inspect only files needed to understand durable conventions. Avoid broad repo exploration unless the skill target requires it.
Before drafting, privately identify:
If multiple sessions were selected, combine only the repeated or clearly reusable lessons. Do not average contradictory instructions; ask the user to choose when sessions disagree.
Create a complete SKILL.md draft with required front matter:
---
name: <hyphen-case-skill-name>
description: Use when <specific trigger and task>.
---
The body should include:
Keep the skill concise. Do not include the session recap, full transcript excerpts, checkpoint IDs, or implementation notes unless they are essential to future use.
Present the SKILL.md draft first unless the user already gave an explicit write path.
After presenting the draft, ask whether the user wants it installed globally. Recommend the cross-agent path:
~/.agents/skills/<skill-name>/SKILL.md
Use this install prompt shape:
Do you want me to install this skill globally?
Recommended:
- Cross-agent: ~/.agents/skills/<skill-name>/SKILL.md
Other options:
- Codex only: ~/.codex/skills/<skill-name>/SKILL.md
- Write to a repo-local draft: skills/<skill-name>/SKILL.md
- Leave as draft only
Only write files after the user chooses a destination. If the destination already exists, ask before overwriting it.
Do not create symlinks unless the user explicitly asks for a development-linked install. If they ask for a symlink, explain the source and target paths before creating it.
After writing a skill file, summarize: