plugins/google-ecosystem/skills/gemini-session-management/SKILL.md
Central authority for Gemini CLI session management. Covers session resume, retention policies, session browser, and cleanup. Use when resuming Gemini sessions, configuring retention, browsing past sessions, or managing session storage. Delegates 100% to gemini-cli-docs for official documentation.
npx skillsauth add melodic-software/claude-code-plugins gemini-session-managementInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
STOP - Before providing ANY response about Gemini sessions:
- INVOKE
gemini-cli-docsskill- QUERY for the specific session topic
- BASE responses EXCLUSIVELY on official documentation loaded
Meta-skill for managing Gemini CLI sessions. Sessions preserve conversation history and can be resumed, searched, and configured with retention policies.
Keywords: session, resume, /resume, session browser, retention, maxAge, maxCount, --list-sessions, --delete-session
Use this skill when:
gemini --resume
# or
gemini -r
In an active session:
/resume
Opens interactive session browser to search and select.
Configure automatic cleanup in settings.json:
{
"general": {
"sessionRetention": {
"maxAge": "7d",
"maxCount": 100,
"minRetention": "1d"
}
}
}
| Setting | Description | Example |
| --- | --- | --- |
| maxAge | Maximum session age | "7d", "24h" |
| maxCount | Maximum sessions to keep | 100, 50 |
| minRetention | Minimum time before deletion | "1d", "12h" |
Configure turn limits:
{
"general": {
"maxSessionTurns": 100
}
}
Sessions are stored in:
~/.gemini/tmp/<project_hash>/
| Option | Description |
| --- | --- |
| --resume, -r | Resume last session |
| --list-sessions | List available sessions |
| --delete-session <id> | Delete specific session |
| Topic | Query Keywords |
| --- | --- |
| Resume | --resume flag, resume session, /resume command |
| Browser | session browser, search sessions, /resume interactive |
| Retention | sessionRetention, maxAge maxCount, session cleanup |
| Limits | maxSessionTurns, session limits, turn limits |
| Storage | session storage, ~/.gemini/tmp, session location |
| Management | --list-sessions, --delete-session, session management |
What do you want to do?
gemini --resume or gemini -r/resume in active sessiongemini --list-sessionsgemini --delete-session <id>Query: "How do I resume my last Gemini CLI session?" Expected Behavior:
gemini --resume command
Success Criteria: User receives resume command and /resume browser optionQuery: "How do I limit Gemini session storage?" Expected Behavior:
Query: "How do I delete old Gemini sessions?" Expected Behavior:
Query gemini-cli-docs for official documentation on:
development
Search Milan Jovanovic's .NET blog for Clean Architecture, DDD, CQRS, EF Core, and ASP.NET Core patterns. Use for finding applicable patterns, code examples, and architecture guidance. Invoke when working with .NET projects that could benefit from proven architectural patterns.
tools
Install and configure Data API Builder (DAB) for production SQL Server MCP access with RBAC
tools
Manage MssqlMcp servers - status, rebuild, and upstream updates
tools
Developer environment setup guides for Windows, macOS, Linux, and WSL. Use when setting up development machines, installing tools, configuring environments, or following platform-specific setup guides. Covers package management, shell/terminal, code editors, AI tooling, containerization, databases, and more.