Easily share development artifacts like skills, agents, or rules with your team.

Install

mkdir -p .claude/skills/brain-share && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/11680" && unzip -o skill.zip -d .claude/skills/brain-share && rm skill.zip

Installs to .claude/skills/brain-share

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Share a skill, agent, or rule with the team by copying it to the shared namespace
81 charsno explicit “when” trigger
Beginner

Key capabilities

  • Share a skill with the team by copying it to the shared namespace
  • Share an agent with the team by copying it to the shared namespace
  • Share a rule with the team by copying it to the shared namespace
  • List currently shared artifacts
  • Commit and push shared artifacts to a Git repository

How it works

This skill copies a specified local skill, agent, or rule file to a designated shared directory within a brain repository, then commits and pushes the change to a remote Git repository. It includes validation and confirmation steps.

Inputs & outputs

You give it
Type and filename of a local skill, agent, or rule
You get back
The specified artifact copied to the shared namespace and committed to Git

When to use brain-share

  • Share a custom skill with teammates
  • Publish a new agent definition
  • Distribute internal project rules
  • List currently shared artifacts

About this skill

Share an artifact with the team by copying it to the shared namespace.

Usage: /brain-share <type> <name>

  • type: 'skill', 'agent', or 'rule'
  • name: the filename (e.g., 'my-skill.md' or 'important-rule.md')
  • Use /brain-share --list to see what's currently shared

Arguments: $ARGUMENTS

Steps

  1. Parse arguments:

    ARGS=($ARGUMENTS)
    TYPE="${ARGS[0]:-}"
    NAME="${ARGS[1]:-}"
    
    # Handle --list flag
    if [ "$TYPE" = "--list" ] || [ "$TYPE" = "list" ]; then
      echo "Delegating to /brain-shared-list..."
      # The agent should invoke /brain-shared-list skill instead
      exit 0
    fi
    
    if [ -z "$TYPE" ] || [ -z "$NAME" ]; then
      echo "Usage: /brain-share <type> <name>"
      echo "       /brain-share --list"
      echo "Types: skill, agent, rule"
      echo "Example: /brain-share skill my-useful-tool.md"
      exit 1
    fi
    
    # Validate type
    case "$TYPE" in
      skill|agent|rule) ;;
      *) echo "ERROR: Type must be 'skill', 'agent', or 'rule'"; exit 1 ;;
    esac
    
  2. Check if the artifact exists locally:

    source "${CLAUDE_PLUGIN_ROOT}/scripts/common.sh"
    
    case "$TYPE" in
      skill) SOURCE_FILE="${CLAUDE_DIR}/skills/${NAME}" ;;
      agent) SOURCE_FILE="${CLAUDE_DIR}/agents/${NAME}" ;;
      rule) SOURCE_FILE="${CLAUDE_DIR}/rules/${NAME}" ;;
    esac
    
    if [ ! -f "$SOURCE_FILE" ]; then
      echo "ERROR: $TYPE '$NAME' not found at: $SOURCE_FILE"
      echo ""
      echo "Available ${TYPE}s:"
      case "$TYPE" in
        skill) ls "${CLAUDE_DIR}/skills/" 2>/dev/null || echo "  (none)" ;;
        agent) ls "${CLAUDE_DIR}/agents/" 2>/dev/null || echo "  (none)" ;;
        rule) ls "${CLAUDE_DIR}/rules/" 2>/dev/null || echo "  (none)" ;;
      esac
      exit 1
    fi
    
  3. Ask the user for confirmation before sharing: "Share $TYPE '$NAME' with all machines in the brain network? This will be visible to all machines that sync with this brain." Wait for user to confirm before proceeding.

  4. Copy to shared namespace:

    # Create shared directory structure
    mkdir -p "${BRAIN_REPO}/shared/skills" "${BRAIN_REPO}/shared/agents" "${BRAIN_REPO}/shared/rules"
    
    case "$TYPE" in
      skill) TARGET_FILE="${BRAIN_REPO}/shared/skills/${NAME}" ;;
      agent) TARGET_FILE="${BRAIN_REPO}/shared/agents/${NAME}" ;;
      rule) TARGET_FILE="${BRAIN_REPO}/shared/rules/${NAME}" ;;
    esac
    
    # Copy the file
    cp "$SOURCE_FILE" "$TARGET_FILE"
    log_info "Copied $TYPE '$NAME' to shared namespace"
    
    # Show the content preview
    echo ""
    echo "Shared $TYPE content preview:"
    echo "---"
    head -20 "$TARGET_FILE"
    if [ $(wc -l < "$TARGET_FILE") -gt 20 ]; then
      echo "... (truncated, total $(wc -l < "$TARGET_FILE") lines)"
    fi
    echo "---"
    
  5. Commit and push:

    cd "${BRAIN_REPO}"
    git add shared/
    if git diff --cached --quiet 2>/dev/null; then
      echo "No changes to commit (file may already be shared)."
    else
      git commit -m "Share $TYPE: $NAME (from $(hostname))"
      
      # Try to push
      if git push origin main 2>/dev/null; then
        echo ""
        echo "✓ $TYPE '$NAME' has been shared with the team!"
        echo "  Team members will receive it on their next brain sync."
      else
        echo ""
        echo "⚠ $TYPE shared locally, but failed to push to remote."
        echo "  Run /brain-sync to retry pushing to the team."
      fi
    fi
    
  6. Show sharing info:

    echo ""
    echo "Shared artifact location: shared/$TYPE/$NAME"
    echo "Team members will see this $TYPE after their next sync."
    

When not to use it

  • When the user does not want to share an artifact with the team

Limitations

  • Requires a Git repository for sharing
  • Sharing fails if Git push to remote fails
  • Only supports sharing skills, agents, or rules

How it compares

This skill automates the process of sharing specific configuration files across a team's brain network via Git, ensuring synchronization and visibility, unlike manual file transfers.

Compared to similar skills

brain-share side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
brain-share (this skill)03moReviewBeginner
pptx3936moReviewAdvanced
nano-pdf632moReviewBeginner
video-downloader1017moReviewBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

pptx

anthropics

Presentation creation, editing, and analysis. When Claude needs to work with presentations (.pptx files) for: (1) Creating new presentations, (2) Modifying or editing content, (3) Working with layouts, (4) Adding comments or speaker notes, or any other presentation tasks

393763

nano-pdf

openclaw

Edit PDFs with natural-language instructions using the nano-pdf CLI.

63300

video-downloader

ComposioHQ

Downloads videos from YouTube and other platforms for offline viewing, editing, or archival. Handles various formats and quality options.

101255

youtube-transcript

michalparkola

Download YouTube video transcripts when user provides a YouTube URL or asks to download/get/fetch a transcript from YouTube. Also use when user wants to transcribe or get captions/subtitles from a YouTube video.

68277

using-superpowers

obra

Use when starting any conversation - establishes mandatory workflows for finding and using skills, including using Skill tool before announcing usage, following brainstorming before coding, and creating TodoWrite todos for checklists

95205

browser-automation

browserbase

Automate web browser interactions using natural language via CLI commands. Use when the user asks to browse websites, navigate web pages, extract data from websites, take screenshots, fill forms, click buttons, or interact with web applications. Triggers include "browse", "navigate to", "go to website", "extract data from webpage", "screenshot", "web scraping", "fill out form", "click on", "search for on the web". When taking actions be as specific as possible.

39230

Search skills

Search the agent skills registry