Skip to content
Development
Skill

/summarize-session

Summarize the current session and generate reusable Claude rules, skills, or commands.

From plugin
ai-rules-sync
405 skills

Claude Code

$ npx -y skills add lbb00/ai-rules-sync --skill summarize-session --agent claude-code

SKILL.md

summarize-session.SKILL.md
name: summarize-session
description: Summarize the current session and generate reusable Claude rules, skills, or commands.

Summarize Session

Purpose

At the end of a productive coding session, analyze the conversation to extract reusable patterns and generate Claude Code artifacts (rules, skills, commands) that can accelerate future work.

Instructions

1. **Review Session Activity**

  • What problems were solved?
  • What code was written or modified?
  • What workflows were performed?
  • What decisions were made and why?

2. **Identify Patterns**

**Rules Candidates** (coding standards, project conventions):

  • Repeated code style corrections
  • Error patterns that were fixed
  • Best practices established
  • Project-specific conventions

**Skills Candidates** (multi-step workflows):

  • Complex operations performed multiple times
  • Sequences of commands that go together
  • Integration or deployment workflows
  • Testing or validation procedures

**Commands Candidates** (single-action shortcuts):

  • Frequently used command combinations
  • Build/test/deploy shortcuts
  • Common git operations
  • Project-specific utilities

3. **Generate Artifacts**

For each identified pattern, create the appropriate artifact:

**Rules** → `.claude/rules/<name>/RULE.md`

   ---
   name: rule-name
   description: Brief description
   ---

   # Rule Name

   ## When to Apply
   ...

   ## Guidelines
   ...

**Skills** → `.claude/skills/<name>/SKILL.md`

   ---
   name: skill-name
   description: Brief description
   ---

   # Skill Name

   ## Instructions
   1. Step 1
   2. Step 2
   ...

**Commands** → `.claude/commands/<name>.md`

   # Command Name

   Description of what this command does.

   ## Steps
   1. ...
   2. ...

4. **Validate Artifacts**

  • Ensure artifacts are general enough to be reusable
  • Remove session-specific details
  • Test that instructions are complete and actionable

5. **Document Session Summary**

  • What was accomplished
  • What artifacts were generated
  • Recommendations for next session

Output Format

## Session Summary

### Accomplished
- [List of completed tasks]

### Generated Artifacts

#### Rules
- `<rule-name>`: <description>

#### Skills
- `<skill-name>`: <description>

#### Commands
- `<command-name>`: <description>

### Next Steps
- [Recommendations for future work]

Examples

Example: After Adding a New Adapter

**Identified Pattern**: Multi-step process for adding adapters **Generated**: Skill `new-adapter`

Example: After Fixing Multiple Type Errors

**Identified Pattern**: TypeScript strict mode conventions **Generated**: Rule `typescript-conventions`

Example: After Repeated Test Commands

**Identified Pattern**: Test-then-commit workflow **Generated**: Command `test-and-commit`

Read more
@lbb00
Ships withai-rules-sync

English · 中文 · Documentation AI Rules Sync (AIS) — Install, compose, update, and publish native agent assets from multiple Git repositories across all your projects. AIS is an asset federation toolkit, not a format converter.

Stars on GitHub

Momentum

stars in total
40
Star history of lbb00/ai-rules-sync on GitHub, a chart by star-history.com

Other skills on ai-rules-sync.

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills2w309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc2w293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react5d252k
@facebook@facebookInstall Skill

Questions about summarize-session.

Which coding agents can use summarize-session?
summarize-session installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.