toroleapinc/claude-brain/brain-share
Claude Code and agent skill by toroleapinc/claude-brain
- community
Checking that the SKILL.md file is still in the repository.
Share a skill, agent, or rule with the team by copying it to the shared namespace
Install
npx vskill@latest install toroleapinc/claude-brain/brain-shareSKILL.md
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 --listto see what's currently shared
Arguments: $ARGUMENTS
Steps
- Parse arguments:
```bash 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 ```
- Check if the artifact exists locally:
```bash 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 ```
- 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.
- Copy to shared namespace:
```bash # 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 "---" ```
- Commit and push:
```bash 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 ```
- Show sharing info:
``bash echo "" echo "Shared artifact location: shared/$TYPE/$NAME" echo "Team members will see this $TYPE after their next sync." ``
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/brain-share/SKILL.md
Popularity
- Repository stars
- 52
- Repository forks
- 13
- 7-day trend score
- 20
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 30 Apr 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/toroleapinc/claude-brain/brain-share)