shelve
GitHub该技能用于为当前会话创建书签,以便后续通过 /unshelve 命令查找并恢复。它支持添加标签和上下文备注,调用 MCP 工具存储会话信息,并返回完整的会话 ID 及恢复命令。
Trigger Scenarios
Install
npx skills add WingedGuardian/GENesis-AGI --skill shelve -g -y
SKILL.md
Frontmatter
{
"name": "shelve",
"description": "Shelve the current session — create a bookmark so you can find and resume it later with \/unshelve."
}
Shelve Session
Create a bookmark for the current session so you can return to it later.
This skill wraps the bookmark_shelve MCP tool
(mcp__genesis-memory__bookmark_shelve). The legacy command at
.claude/commands/shelve.md is superseded by this skill (skills take
precedence over commands when names collide).
Arguments
The user may provide optional arguments after /shelve:
/shelve— shelve with no tags/shelve auth-refactor, critical— shelve with tags "auth-refactor" and "critical"/shelve auth-refactor | fixing the OAuth flow— tags before|, context note after
Steps
-
Get the full session ID. The Clock context line shows a truncated session ID (e.g.,
Session: 802a856e). To get the full UUID, list the session directories and match the prefix:ls ~/.genesis/sessions/ | grep "^<prefix>"If no match is found, tell the user the session context isn't available.
-
Parse arguments. Split on
|if present:- Before
|: comma-separated tags - After
|: context note (trim whitespace) - If no
|: treat everything as comma-separated tags
- Before
-
Call
bookmark_shelveMCP tool (mcp__genesis-memory__bookmark_shelve) with:session_id: the full UUID from step 1tags: comma-separated tag string (or empty)context: the context note (or empty)
-
Confirm. Show the user the bookmark ID and the resume command:
claude --resume <full_session_id>
Version History
- f9015bb Current 2026-07-05 18:17


