Skip to content
Back to skills

Share

ASecurity

Share this Claude Code conversation as Markdown on the claude-sessions branch of the repository the session works in, and give back its GitHub link. Load when the user types share or asks to share this session or conversation.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 13, 2026
ai-agentsgogit

Works with

  • claude code
  • cli

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned November 13, 2026

npx -y skills add zululima/dotclaude --skill share --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Share?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Share
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/zululima-share/badge)](https://www.skillsdirectory.com/skills/zululima-share)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: share
description: Share this Claude Code conversation as Markdown on the claude-sessions branch of the repository the session works in, and give back its GitHub link. Load when the user types share or asks to share this session or conversation.
---

# Share a session

A shared session goes to `claude-sessions`, a branch with no history of its own in the GitHub
repository the session works in, as `<GitHub handle>/<date>-<title>.md`. Everyone who can read the
repository can read it, so nothing is pushed before the user's go. The scripts never switch the
checkout: the commit is built in a temporary index, and its push skips the checkout's pre-push
hook, which checks code this commit does not touch. They need git, gh signed in, jq and
`~/.claude/hooks/prompt-log.sh`, whose numbers the prompts keep.

1. Run `~/.claude/skills/share/export-session.sh`. It writes the session to
   `~/.claude/drafts/share/<session id>.md` and prints the path. Each prompt is quoted under its
   number, masked as for a commit message. Under it come the messages Claude wrote, with their
   links, and one line per tool call. Tool output, thinking, system reminders, messages from other
   sessions and subagent work are left out.
2. Read the whole file. The closing message lists, lettered, each passage that gives the user's
   view of a named person, a client or another organisation, or a plan they may not want shared,
   and anything the masks missed, such as a password, key or private address not written as
   `NAME=value`, a task another session wrote included. The recommended answer replaces each with
   a bracketed note, such as `[an aside about a colleague left out]`, by an edit of that file. A
   he, she, his or her for a person whose pronouns no source states is no choice: the edit makes
   it they or their before the dry run, and the closing message names each one it changed.
3. Run `~/.claude/skills/share/share-session.sh --dry-run <file>` in the repository and name in the
   closing message the repository, the branch and the address the file will get. A repository that
   gh does not show as private stops the share here. It goes there only when the user names that
   repository and asks for it, and then the script runs with `--public`.
4. Ask for the go in the next-step box, after the passages the user is to choose about. On it, make
   the edits the user picked, run `~/.claude/skills/share/share-session.sh --push <file>` and give
   the address it prints as a link whose text is the whole address. A later share of the same
   session replaces its file at the same address.

When the session works outside a GitHub repository, ask which checkout to share to, with the one the
session last worked in as the recommended answer, and run both steps with `-C <checkout>`.

Files in this skill

  • SKILL.md2.7 KB
  • export-session.sh6.6 KB
  • share-session.sh4.4 KB
  • write-to-branch.sh4.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.