Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
rysweet avatar

Session To Agent

  • 1 installs
  • 70 repo stars
  • Updated July 26, 2026
  • rysweet/amplihack

Converts a Claude Code or Copilot session transcript into a reusable goal-seeking agent by extracting goals and patterns and running amplihack new.

About

Reads a coding session transcript, extracts the primary goal, constraints, tools, and strategies, then generates a reusable goal-seeking agent with memory via the amplihack CLI. A developer uses it to productize a one-off session workflow into a re-runnable agent.

  • Extracts goals, constraints, and patterns from session transcripts
  • Generates agent prompt.md and runs amplihack new with memory enabled

Session To Agent by the numbers

  • 1 all-time installs (skills.sh)
  • Ranked #14,103 of 16,556 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 2, 2026 (Skillselion catalog sync)
npx skills add https://github.com/rysweet/amplihack --skill session-to-agent

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1
repo stars70
Last updatedJuly 26, 2026
Repositoryrysweet/amplihack

What it does

Converts a Claude Code or Copilot session transcript into a reusable goal-seeking agent by extracting goals and patterns and running amplihack new.

Files

SKILL.mdMarkdownGitHub ↗

Session-to-Agent Skill

Convert an interactive coding session into a reusable goal-seeking agent with memory. The skill reads session transcripts, extracts goals and patterns, and generates a complete agent via amplihack new.

Quick Start

Step 1: Invoke the skill

User: /session-to-agent

Or describe what you want:

User: Turn this session into a reusable agent

Step 2: The skill extracts from the current session

It analyzes the session transcript to identify:

  • Primary goal and sub-goals
  • Constraints (technical, operational, time)
  • Tools and commands used
  • Patterns and strategies observed
  • Domain knowledge gained during the session

Step 3: A goal-seeking agent is generated

The skill writes a prompt.md file and runs:

amplihack new --file prompt.md --sdk copilot --enable-memory

The generated agent can be re-run autonomously to repeat or extend the session's workflow.

What It Extracts

CategoryExamples
Primary Goal"Implement JWT authentication for the REST API"
Sub-GoalsToken generation, middleware, refresh flow, tests
ConstraintsMust use RS256, tokens expire in 1h, no external IdP
Tools Usedpytest, ruff, git, curl, Bash, Read, Edit
PatternsOutside-in TDD, error-first validation, retry logic
Domain KnowledgeJWT spec details, library quirks, API contract rules
Success CriteriaAll tests pass, CI green, security review approved

Customizing the Generated Agent

After generation, you can refine the agent by editing:

  • prompt.md -- the goal description and constraints
  • plan.yaml -- the execution phases and dependencies
  • skills.yaml -- the required skills and tool mappings
  • metadata.json -- SDK, memory, and multi-agent settings

Re-run the generator after edits:

amplihack new --file prompt.md --sdk copilot --enable-memory

Memory Export (Optional)

When --enable-memory is used, the skill can optionally export the current session's Kuzu memory database as the agent's initial knowledge base. This seeds the new agent with facts, discoveries, and context from the session that created it.

# Export is offered interactively after agent generation
# Or specify explicitly:
amplihack new --file prompt.md --enable-memory --sdk copilot

When to Use This Skill

  • After completing a multi-step workflow you want to repeat
  • When a session reveals a reusable process worth automating
  • To hand off a workflow to a colleague as a runnable agent
  • To create a CI/CD or SRE automation agent from manual steps
  • When session knowledge should persist as an executable artifact

When NOT to Use This Skill

  • For trivial single-command tasks (use a script instead)
  • When the session was exploratory with no clear repeatable goal
  • When the workflow is already captured as a recipe or agent

Supporting Files

NeedFile
Full extraction algorithm and templatesreference.md
Worked examples with real sessionsexamples.md
Goal-seeking agent design guidancegoal-seeking-agent-pattern skill
Knowledge extraction from sessionsknowledge-extractor skill

Related skills

AI & Agent Buildingagentsautomation

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.