Skip to main content

save-session

Save the current Claude Code session as a Planet article for later review

소스 정보

저장소
Planetable/Planet
최근 소스 활동
2026년 4월 28일 23:18
감지된 SKILL.md 언어
영어
스타
1,808
포크
78

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
5 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
save-session
description
Save the current Claude Code session as a Planet article for later review
allowed-tools
Bash, Read
Save the current session to Planet. Follow these steps exactly: ## 1. Generate a session title Create a short, descriptive title (under 80 chars) in this format: ``` YYYY-MM-DD Session: <brief description of what was done> ``` Use today's date. The description should capture the main theme (e.g., "Build release notes Flask app", "Fix search performance", "Add Planet API sync"). ## 2. Write a session summary Write an HTML summary of this session. Structure it as: ```html <h2>What was done</h2> <ul> <li>Key task or change 1</li> <li>Key task or change 2</li> ... </ul> <h2>Key decisions</h2> <ul> <li>Decision 1 and why</li> ... </ul> <h2>Files changed</h2> <ul> <li><code>path/to/file1</code> — what changed</li> <li><code>path/to/file2</code> — what changed</li> ... </ul> ``` Be concise. Focus on what matters for future review. Omit sections if they don't apply (e.g., skip "Key decisions" if there were none worth noting). ## 3. Save to Planet Run the save script. The title, summary, and session ID must be passed as arguments. The current Claude Code session ID is: ${CLAUDE_SESSION_ID}. Pass this value as a literal string (not as a shell variable). Use a heredoc for the summary to handle HTML safely: ```bash TITLE="<the title>" SESSION_ID="<the Claude Code session ID shown above>" SUMMARY=$(cat <<'HTMLEOF' <the summary HTML> HTMLEOF ) python3 tools/claude-code-skill/save_session.py "$TITLE" "$SUMMARY" "$SESSION_ID" ``` The script reads `tools/claude-code-skill/config.json` to find the Planet server and planet ID for the current project. The script embeds the session ID in the article content and uses it to find existing articles from the same session. This means multiple `/save-session` calls in the same session update the same article, even if the title changes. ## 4. Confirm Tell the user the article was created or updated, with the title. The article is viewable in the Planet app.
GitHub에서 보기