Skill

create-gitlab-snippet

Export the current session as a GitLab snippet. Use when the user asks to "create a snippet", "share session", "export to GitLab", or "/snippet". The user must run /export first to copy the session to the clipboard.

From session
Install
1
Run in your terminal
$
npx claudepluginhub wincent/wincent-claude-plugins --plugin session
Tool Access

This skill is limited to using the following tools:

Bash(pbpaste:*)Bash(mktemp:*)Bash(${CLAUDE_SKILL_DIR}/scripts/create-gitlab-snippet.sh:*)Write
Supporting Assets
View in Repository
scripts/create-gitlab-snippet.sh
Skill Content

Create a GitLab snippet from the current session

Step 1: Verify clipboard has session content

Run pbpaste | head -5 to check whether the clipboard contains a session export. If it does not look like a Claude Code session (should start with a box drawing header or session content), tell the user to run /export first and stop.

Step 2: Choose a title

Read enough of the clipboard to identify the first user prompt (look for the first > or line after the header). Suggest a short, descriptive title based on what the session is about. Use AskUserQuestion to let the user confirm or customize the title. Offer your suggested title as the first option and "Claude Code Session - YYYY-MM-DD HH:MM" (with the current date/time) as the second.

Step 3: Write a session summary

Read the full clipboard content with pbpaste and write a Markdown summary of the session. The summary should include:

  • A ## Summary heading
  • A brief description of what the session accomplished
  • Key topics discussed, decisions made, and actions taken
  • Notable outcomes (files changed, commands run, problems solved)

Create a temp file with mktemp and write the summary to it using the Write tool.

Step 4: Create the GitLab snippet

Pipe the clipboard content to the snippet creation script, passing the chosen title and the summary file via the SUMMARY_FILE environment variable:

pbpaste | SUMMARY_FILE="/path/from/mktemp" ${CLAUDE_SKILL_DIR}/scripts/create-gitlab-snippet.sh - "TITLE"

Step 5: Report the result

Show the user the snippet URL returned by the script.

Similar Skills
cache-components

Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). **PROACTIVE ACTIVATION**: Use this skill automatically when working in Next.js projects that have `cacheComponents: true` in their next.config.ts/next.config.js. When this config is detected, proactively apply Cache Components patterns and best practices to all React Server Component implementations. **DETECTION**: At the start of a session in a Next.js project, check for `cacheComponents: true` in next.config. If enabled, this skill's patterns should guide all component authoring, data fetching, and caching decisions. **USE CASES**: Implementing 'use cache' directive, configuring cache lifetimes with cacheLife(), tagging cached data with cacheTag(), invalidating caches with updateTag()/revalidateTag(), optimizing static vs dynamic content boundaries, debugging cache issues, and reviewing Cache Component implementations.

138.5k
Stats
Parent Repo Stars0
Parent Repo Forks0
Last CommitMar 20, 2026