$npx -y skills add toroleapinc/claude-brain --skill brain-shared-listList all shared skills, agents, and rules in the brain network.
| 1 | The user wants to see all shared artifacts in the brain network. |
| 2 | |
| 3 | ## Steps |
| 4 | |
| 5 | 1. Check if brain is initialized: |
| 6 | ```bash |
| 7 | source "${CLAUDE_PLUGIN_ROOT}/scripts/common.sh" |
| 8 | if ! is_initialized; then |
| 9 | echo "Brain not initialized. Run /brain-init first." |
| 10 | exit 1 |
| 11 | fi |
| 12 | ``` |
| 13 | |
| 14 | 2. List shared artifacts: |
| 15 | ```bash |
| 16 | BRAIN_REPO="${HOME}/.claude/brain-repo" |
| 17 | SHARED_DIR="${BRAIN_REPO}/shared" |
| 18 | |
| 19 | if [ ! -d "$SHARED_DIR" ]; then |
| 20 | echo "No shared artifacts yet. Use /brain-share to share skills, agents, or rules." |
| 21 | exit 0 |
| 22 | fi |
| 23 | |
| 24 | echo "## Shared Artifacts" |
| 25 | echo "" |
| 26 | echo "| Type | Name | Shared By | Date |" |
| 27 | echo "|------|------|-----------|------|" |
| 28 | |
| 29 | found=false |
| 30 | for type in skills agents rules; do |
| 31 | if [ -d "${SHARED_DIR}/${type}" ]; then |
| 32 | for file in "${SHARED_DIR}/${type}"/*; do |
| 33 | if [ -f "$file" ]; then |
| 34 | found=true |
| 35 | name=$(basename "$file") |
| 36 | # Get git log info for this file |
| 37 | info=$(cd "$BRAIN_REPO" && git log --format="%an|%ad" --date=short -1 -- "shared/${type}/${name}" 2>/dev/null || echo "unknown|unknown") |
| 38 | author=$(echo "$info" | cut -d'|' -f1) |
| 39 | date=$(echo "$info" | cut -d'|' -f2) |
| 40 | echo "| ${type%s} | ${name} | ${author} | ${date} |" |
| 41 | fi |
| 42 | done |
| 43 | fi |
| 44 | done |
| 45 | |
| 46 | if ! $found; then |
| 47 | echo "| — | No shared artifacts yet | — | — |" |
| 48 | fi |
| 49 | |
| 50 | echo "" |
| 51 | echo "Use /brain-share <type> <name> to share more artifacts." |
| 52 | ``` |