Summarize session

From lbb00/ai-rules-sync · View interactive version

Summarize session is an AI agent skill from the GitHub repository lbb00/ai-rules-sync. Summarize the current session and generate reusable Claude rules, skills, or commands.

How to use this skill

Skill file

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
  1. Identify Patterns

Rules Candidates (coding standards, project conventions):

Skills Candidates (multi-step workflows):

Commands Candidates (single-action shortcuts):

  1. Generate Artifacts

For each identified pattern, create the appropriate artifact:

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

```markdown


name: rule-name

description: Brief description


# Rule Name

## When to Apply

...

## Guidelines

...

```

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

```markdown


name: skill-name

description: Brief description


# Skill Name

## Instructions

1. Step 1

2. Step 2

...

```

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

```markdown

# Command Name

Description of what this command does.

## Steps

1. ...

2. ...

```

  1. Validate Artifacts
  1. Document Session Summary

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

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.