From cc-share
Generate a comprehensive summary of the current session and upload it to your team's shared location
How this skill is triggered — by the user, by Claude, or both
Slash command
/cc-share:share-sessionThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate a shareable summary of the current Claude Code session and upload it.
Generate a shareable summary of the current Claude Code session and upload it.
Config file: !cat ~/.claude/cc_share_config.json 2>/dev/null || echo "NOT_CONFIGURED"
If the config output above says "NOT_CONFIGURED", you need to set up before proceeding:
s3://my-team-shares/cc-sessions)whoami to get it.~/.claude/cc_share_config.json:{
"backend": "s3",
"s3_bucket": "<their bucket path>",
"username": "<their username>"
}
basename "$(pwd)"git --no-pager branch --show-current 2>/dev/null || echo "n/a"Note: Do NOT rely on these dynamic context values for the summary content. They are just hints. The summary should be generated from your conversation history — you were there for the whole session.
Generate a comprehensive markdown summary of everything accomplished in this conversation.
The filename MUST be descriptive of the session's subject. Format:
<short-descriptive-title>_<timestamp>.md
Examples:
oauth2-google-sso-implementation_20260331T150000Z.mdfix-redis-token-expiry-bug_20260331T120000Z.mdresearch-team-sharing-plugin_20260331T170000Z.mdUse lowercase, hyphens for spaces, keep it under 80 chars. The title should tell a teammate what the session was about without opening the file.
The summary has two parts: required metadata that's always present, and conditional sections that you include only when relevant to the session.
# <Title: what was accomplished>
**Author:** <username from config>
**Project:** <project name>
**Branch:** <git branch>
**Date:** <human-readable date and time>
## Overview
<2-3 sentence high-level description of what was done and why>
## What Was Done
<The core narrative of the session. Describe what happened, what was built/fixed/researched,
and the reasoning behind key choices. This is free-form — write it in whatever structure
best fits the session. For a coding session, walk through the implementation. For a research
session, present the findings. For debugging, tell the story of the investigation.>
## Next Steps
- [ ] <recommended follow-up action>
- [ ] <recommended follow-up action>
Include "Key Code" when the session produced important code that a teammate needs to understand — new APIs, complex algorithms, non-obvious patterns. Show the essential snippets with brief explanations, not entire files.
## Key Code
<Brief context for why this code matters>
`path/to/file.py`
\```python
# The relevant snippet — not the whole file
def important_function():
...
\```
<Explain non-obvious aspects: why this approach, what the alternatives were>
Include "Architecture / Design" when the session involved system design, new patterns, data flow changes, or structural decisions. Use diagrams (ASCII or mermaid) when they clarify.
## Architecture / Design
<Description of the design and rationale>
\```
┌──────────┐ ┌──────────┐ ┌──────────┐
│ Client │────▶│ Auth MW │────▶│ API │
└──────────┘ └──────────┘ └──────────┘
│
▼
┌──────────┐
│ Redis │
└──────────┘
\```
Include "Failed Approaches" when dead ends were hit that a teammate might repeat. Skip if everything worked on the first try.
## Failed Approaches
- **<What was tried>:** <Why it didn't work. Be specific — save someone from repeating this.>
Include "Open Questions" when there are genuinely unresolved decisions or unknowns. Skip if everything is settled.
## Open Questions
- <question and why it matters>
Include "Files Changed" when the session modified or created files. Skip for pure research/discussion sessions.
## Files Changed
- `path/to/new_file.py` — <what and why>
- `path/to/modified_file.py` — <what changed>
Include "Context for Continuation" when there are non-obvious setup steps, gotchas, environment requirements, or dependencies a teammate needs to know. Skip if the next steps are self-explanatory.
## Context for Continuation
<Environment setup, gotchas, credentials needed, related PRs, etc.>
/tmp/cc_share_summary.mdbash ${CLAUDE_SKILL_DIR}/scripts/upload.sh "<descriptive-filename>.md"
Pass the descriptive filename as the first argument to the script.
The script outputs a SUCCESS: line with the full storage path and a SHARE_LINK: line with a shareable token.
Present both to the user:
Tell the user that teammates can load this session directly by running /fetch-sessions <link>. Example output:
Uploaded to s3://claude-code-shared-sessions/Kobi B./fix-redis-bug_20260408T120000Z.md
Share link:
Kobi+B./fix-redis-bug_20260408T120000Z.mdTeammates can load this directly with:
/fetch-sessions Kobi+B./fix-redis-bug_20260408T120000Z.md
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub kobibarhanin/cc-share --plugin cc-share