[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75WB346NNVKYCX5109RH439":3,"skill-same:01M75WB346NNVKYCX5109RH439":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":44},"01M75WB346NNVKYCX5109RH439","expose",null,"Expose a local service on Tailscale with a unique path","stevengonsalvez\u002Fainb-toolkit","stevengonsalvez","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F9320602?v=4","01M75W59QRYZYANWY3XG8CJB1P","Steven Gonsalvez","01M75W59RD5YW1RT67BDV0EAZF",1,"MIT","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fexpose\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: expose\ndescription: Expose a local service on Tailscale with a unique path\nuser-invocable: true\n---\n\n# \u002Fexpose - Expose Local Services via Tailscale\n\nExpose a local service on Tailscale with a unique path, preserving the root path for the main application.\n\n## Usage\n```\n\u002Fexpose \u003Cport> [service-name]\n```\n\n## Examples\n```\n\u002Fexpose                  # Auto-detects running dev server and exposes it\n\u002Fexpose 3000             # Exposes localhost:3000 with auto-generated path\n\u002Fexpose 8080 api         # Exposes localhost:8080 as \u002Fapi\n\u002Fexpose 5173 vite-app    # Exposes localhost:5173 as \u002Fvite-app\n```\n\n## Implementation\n\nWhen called, this command will:\n\n1. **Auto-Detect Dev Server (if no port specified)**\n   - Search for common dev server ports: 3000, 3001, 4200, 5173, 5174, 8000, 8080, 8081\n   - Check for running processes with common dev commands: `npm run dev`, `yarn dev`, `vite`, `next dev`\n   - Use `lsof` to find the actual port being used\n   - If multiple found, prompt user to choose\n\n2. **Check Tailscale Status**\n   - Verify Tailscale is running\n   - Get current Tailscale IP and hostname\n\n3. **Generate Unique Path**\n   - If service-name provided: use `\u002Fservice-name`\n   - Otherwise: generate random path like `\u002Fsvc-\u003Crandom-8-chars>`\n   - Ensure path doesn't conflict with existing services\n\n3. **Preserve Root Path**\n   - Never override the root path `\u002F`\n   - Keep track of which service owns root (if any)\n\n4. **Expose Service**\n   ```bash\n   tailscale serve --set-path \u002F\u003Cunique-path> --bg http:\u002F\u002Flocalhost:\u003Cport>\n   ```\n\n5. **Store Service Mapping**\n   - Save to `.claude\u002Ftailscale-services.json`:\n   ```json\n   {\n     \"root_service\": {\n       \"port\": 6802,\n       \"name\": \"lipi\",\n       \"protected\": true\n     },\n     \"services\": [\n       {\n         \"port\": 3000,\n         \"path\": \"\u002Fsvc-a8f3d2c1\",\n         \"name\": \"frontend\",\n         \"url\": \"https:\u002F\u002Fexample-hostname.example.ts.net\u002Fsvc-a8f3d2c1\",\n         \"direct\": \"http:\u002F\u002F100.64.1.2:3000\",\n         \"created\": \"2024-01-15T10:30:00Z\"\n       }\n     ]\n   }\n   ```\n\n6. **Display Access Info**\n   ```\n   ✅ Service exposed successfully!\n\n   📍 Service: frontend (port 3000)\n   🔗 HTTPS Path: https:\u002F\u002Fexample-hostname.example.ts.net\u002Fsvc-a8f3d2c1\n   🔗 Direct Access: http:\u002F\u002F100.64.1.2:3000\n   🔗 Hostname Access: http:\u002F\u002Fexample-hostname:3000\n\n   💡 For SPAs, use direct access URLs to avoid routing issues\n   ```\n\n## Command Logic\n\n```bash\n#!\u002Fbin\u002Fbash\n\n# Auto-detect running dev server\nauto_detect_dev_server() {\n    # Common dev server ports\n    COMMON_PORTS=(3000 3001 3002 4200 4321 5173 5174 8000 8080 8081 6802 4013)\n\n    echo \"🔍 Searching for running dev servers...\"\n\n    FOUND_SERVICES=()\n    for port in \"${COMMON_PORTS[@]}\"; do\n        if lsof -i :$port >\u002Fdev\u002Fnull 2>&1; then\n            # Get process info\n            PROCESS=$(lsof -i :$port | grep LISTEN | awk '{print $1}' | head -1)\n            FOUND_SERVICES+=(\"$port:$PROCESS\")\n            echo \"   Found: $PROCESS on port $port\"\n        fi\n    done\n\n    # Also check for common dev processes\n    DEV_PROCESSES=(\"next\" \"vite\" \"webpack\" \"parcel\" \"snowpack\" \"turbopack\")\n    for proc in \"${DEV_PROCESSES[@]}\"; do\n        PORTS=$(lsof -i -P | grep -i \"$proc\" | grep LISTEN | awk '{print $9}' | cut -d: -f2 | sort -u)\n        for port in $PORTS; do\n            if [[ ! \" ${FOUND_SERVICES[@]} \" =~ \" $port:\" ]]; then\n                FOUND_SERVICES+=(\"$port:$proc\")\n                echo \"   Found: $proc on port $port\"\n            fi\n        done\n    done\n\n    if [ ${#FOUND_SERVICES[@]} -eq 0 ]; then\n        echo \"❌ No running dev servers found\"\n        echo \"   Start your dev server first, then run \u002Fexpose\"\n        return 1\n    elif [ ${#FOUND_SERVICES[@]} -eq 1 ]; then\n        # Only one found, use it\n        PORT=$(echo \"${FOUND_SERVICES[0]}\" | cut -d: -f1)\n        PROCESS=$(echo \"${FOUND_SERVICES[0]}\" | cut -d: -f2)\n        echo \"✅ Auto-detected: $PROCESS on port $PORT\"\n        return $PORT\n    else\n        # Multiple found, let user choose\n        echo \"\"\n        echo \"Multiple dev servers found. Which one to expose?\"\n        for i in \"${!FOUND_SERVICES[@]}\"; do\n            PORT=$(echo \"${FOUND_SERVICES[$i]}\" | cut -d: -f1)\n            PROCESS=$(echo \"${FOUND_SERVICES[$i]}\" | cut -d: -f2)\n            echo \"  $((i+1)). $PROCESS on port $PORT\"\n        done\n        read -p \"Enter number (1-${#FOUND_SERVICES[@]}): \" choice\n\n        if [[ $choice -ge 1 && $choice -le ${#FOUND_SERVICES[@]} ]]; then\n            PORT=$(echo \"${FOUND_SERVICES[$((choice-1))]}\" | cut -d: -f1)\n            return $PORT\n        else\n            echo \"❌ Invalid choice\"\n            return 1\n        fi\n    fi\n}\n\nexpose_service() {\n    local PORT=$1\n    local SERVICE_NAME=$2\n\n    # If no port specified, auto-detect\n    if [ -z \"$PORT\" ]; then\n        auto_detect_dev_server\n        PORT=$?\n        if [ $PORT -eq 1 ]; then\n            return 1\n        fi\n        # Auto-generate service name based on detected process\n        if [ -z \"$SERVICE_NAME\" ]; then\n            SERVICE_NAME=\"dev-$PORT\"\n        fi\n    fi\n\n    # Get Tailscale info\n    TAILSCALE_IP=$(tailscale ip -4)\n    TAILSCALE_HOSTNAME=$(tailscale status --self --peers=false | awk '{print $2}')\n    TAILSCALE_DOMAIN=\"${TAILSCALE_HOSTNAME}.example.ts.net\"\n\n    # Generate path\n    if [ -z \"$SERVICE_NAME\" ]; then\n        RANDOM_ID=$(openssl rand -hex 4)\n        PATH_NAME=\"\u002Fsvc-${RANDOM_ID}\"\n        SERVICE_NAME=\"service-${PORT}\"\n    else\n        PATH_NAME=\"\u002F${SERVICE_NAME}\"\n    fi\n\n    # Check if port is already exposed\n    EXISTING=$(tailscale serve status --json | jq -r \".Web[\\\"${TAILSCALE_DOMAIN}:443\\\"].Handlers[\\\"${PATH_NAME}\\\"].Proxy\")\n\n    if [ \"$EXISTING\" != \"null\" ]; then\n        echo \"⚠️  Path ${PATH_NAME} is already in use\"\n        echo \"   Current proxy: ${EXISTING}\"\n        echo \"   Generate new path? (y\u002Fn)\"\n        read -r response\n        if [ \"$response\" = \"y\" ]; then\n            RANDOM_ID=$(openssl rand -hex 4)\n            PATH_NAME=\"\u002Fsvc-${RANDOM_ID}\"\n        else\n            return 1\n        fi\n    fi\n\n    # Expose the service\n    tailscale serve --set-path ${PATH_NAME} --bg http:\u002F\u002Flocalhost:${PORT}\n\n    # Save to tracking file\n    SERVICES_FILE=\"$HOME\u002F{{TOOL_DIR}}\u002Ftailscale-services.json\"\n\n    # Create file if doesn't exist\n    if [ ! -f \"$SERVICES_FILE\" ]; then\n        echo '{\"root_service\": null, \"services\": []}' > \"$SERVICES_FILE\"\n    fi\n\n    # Add service to tracking\n    NEW_SERVICE=$(jq -n \\\n        --arg port \"$PORT\" \\\n        --arg path \"$PATH_NAME\" \\\n        --arg name \"$SERVICE_NAME\" \\\n        --arg url \"https:\u002F\u002F${TAILSCALE_DOMAIN}${PATH_NAME}\" \\\n        --arg direct \"http:\u002F\u002F${TAILSCALE_IP}:${PORT}\" \\\n        --arg created \"$(date -u +%Y-%m-%dT%H:%M:%SZ)\" \\\n        '{port: $port, path: $path, name: $name, url: $url, direct: $direct, created: $created}')\n\n    jq \".services += [$NEW_SERVICE]\" \"$SERVICES_FILE\" > \"${SERVICES_FILE}.tmp\" && mv \"${SERVICES_FILE}.tmp\" \"$SERVICES_FILE\"\n\n    # Display results\n    echo \"✅ Service exposed successfully!\"\n    echo \"\"\n    echo \"📍 Service: ${SERVICE_NAME} (port ${PORT})\"\n    echo \"🔗 HTTPS Path: https:\u002F\u002F${TAILSCALE_DOMAIN}${PATH_NAME}\"\n    echo \"🔗 Direct Access: http:\u002F\u002F${TAILSCALE_IP}:${PORT}\"\n    echo \"🔗 Hostname Access: http:\u002F\u002F${TAILSCALE_HOSTNAME}:${PORT}\"\n    echo \"\"\n    echo \"💡 For SPAs, use direct access URLs to avoid routing issues\"\n}\n\n# List exposed services\nlist_services() {\n    echo \"🌐 Exposed Services on Tailscale\"\n    echo \"================================\"\n\n    # Show Tailscale serve status\n    tailscale serve status\n\n    # Show tracked services\n    if [ -f \"$HOME\u002F{{TOOL_DIR}}\u002Ftailscale-services.json\" ]; then\n        echo \"\"\n        echo \"📋 Service Registry:\"\n        jq -r '.services[] | \"  \\(.name): \\(.direct) (path: \\(.path))\"' \"$HOME\u002F{{TOOL_DIR}}\u002Ftailscale-services.json\"\n    fi\n}\n\n# Remove service\nunexpose_service() {\n    local PATH_OR_PORT=$1\n\n    if [[ \"$PATH_OR_PORT\" =~ ^[0-9]+$ ]]; then\n        # It's a port, find the path\n        PATH_NAME=$(jq -r \".services[] | select(.port == \\\"$PATH_OR_PORT\\\") | .path\" \"$HOME\u002F{{TOOL_DIR}}\u002Ftailscale-services.json\")\n    else\n        PATH_NAME=\"$PATH_OR_PORT\"\n    fi\n\n    if [ -z \"$PATH_NAME\" ]; then\n        echo \"❌ Service not found\"\n        return 1\n    fi\n\n    # Remove from Tailscale\n    tailscale serve clear ${PATH_NAME}\n\n    # Remove from tracking\n    jq \"del(.services[] | select(.path == \\\"$PATH_NAME\\\"))\" \"$HOME\u002F{{TOOL_DIR}}\u002Ftailscale-services.json\" > \"${SERVICES_FILE}.tmp\" && mv \"${SERVICES_FILE}.tmp\" \"$SERVICES_FILE\"\n\n    echo \"✅ Service removed from ${PATH_NAME}\"\n}\n```\n\n## Features\n\n- **Auto-generates unique paths** to avoid conflicts\n- **Preserves root path** for main application\n- **Tracks all exposed services** in JSON file\n- **Provides both HTTPS and direct access URLs**\n- **Handles SPAs correctly** by recommending direct port access\n- **Supports custom service names** or auto-generation\n- **Lists all exposed services** with `\u002Fexpose list`\n- **Removes services** with `\u002Fexpose remove \u003Cport|path>`\n\n## Related Commands\n- `\u002Fexpose list` - Show all exposed services\n- `\u002Fexpose remove \u003Cport>` - Unexpose a service\n- `\u002Fexpose clear` - Remove all exposed services (except root)\n","# \u002Fexpose - Expose Local Services via Tailscale\n\nExpose a local service on Tailscale with a unique path, preserving the root path for the main application.\n\n## Usage\n```\n\u002Fexpose \u003Cport> [service-name]\n```\n\n## Examples\n```\n\u002Fexpose                  # Auto-detects running dev server and exposes it\n\u002Fexpose 3000             # Exposes localhost:3000 with auto-generated path\n\u002Fexpose 8080 api         # Exposes localhost:8080 as \u002Fapi\n\u002Fexpose 5173 vite-app    # Exposes localhost:5173 as \u002Fvite-app\n```\n\n## Implementation\n\nWhen called, this command will:\n\n1. **Auto-Detect Dev Server (if no port specified)**\n   - Search for common dev server ports: 3000, 3001, 4200, 5173, 5174, 8000, 8080, 8081\n   - Check for running processes with common dev commands: `npm run dev`, `yarn dev`, `vite`, `next dev`\n   - Use `lsof` to find the actual port being used\n   - If multiple found, prompt user to choose\n\n2. **Check Tailscale Status**\n   - Verify Tailscale is running\n   - Get current Tailscale IP and hostname\n\n3. **Generate Unique Path**\n   - If service-name provided: use `\u002Fservice-name`\n   - Otherwise: generate random path like `\u002Fsvc-\u003Crandom-8-chars>`\n   - Ensure path doesn't conflict with existing services\n\n3. **Preserve Root Path**\n   - Never override the root path `\u002F`\n   - Keep track of which service owns root (if any)\n\n4. **Expose Service**\n   ```bash\n   tailscale serve --set-path \u002F\u003Cunique-path> --bg http:\u002F\u002Flocalhost:\u003Cport>\n   ```\n\n5. **Store Service Mapping**\n   - Save to `.claude\u002Ftailscale-services.json`:\n   ```json\n   {\n     \"root_service\": {\n       \"port\": 6802,\n       \"name\": \"lipi\",\n       \"protected\": true\n     },\n     \"services\": [\n       {\n         \"port\": 3000,\n         \"path\": \"\u002Fsvc-a8f3d2c1\",\n         \"name\": \"frontend\",\n         \"url\": \"https:\u002F\u002Fexample-hostname.example.ts.net\u002Fsvc-a8f3d2c1\",\n         \"direct\": \"http:\u002F\u002F100.64.1.2:3000\",\n         \"created\": \"2024-01-15T10:30:00Z\"\n       }\n     ]\n   }\n   ```\n\n6. **Display Access Info**\n   ```\n   ✅ Service exposed successfully!\n\n   📍 Service: frontend (port 3000)\n   🔗 HTTPS Path: https:\u002F\u002Fexample-hostname.example.ts.net\u002Fsvc-a8f3d2c1\n   🔗 Direct Access: http:\u002F\u002F100.64.1.2:3000\n   🔗 Hostname Access: http:\u002F\u002Fexample-hostname:3000\n\n   💡 For SPAs, use direct access URLs to avoid routing issues\n   ```\n\n## Command Logic\n\n```bash\n#!\u002Fbin\u002Fbash\n\n# Auto-detect running dev server\nauto_detect_dev_server() {\n    # Common dev server ports\n    COMMON_PORTS=(3000 3001 3002 4200 4321 5173 5174 8000 8080 8081 6802 4013)\n\n    echo \"🔍 Searching for running dev servers...\"\n\n    FOUND_SERVICES=()\n    for port in \"${COMMON_PORTS[@]}\"; do\n        if lsof -i :$port >\u002Fdev\u002Fnull 2>&1; then\n            # Get process info\n            PROCESS=$(lsof -i :$port | grep LISTEN | awk '{print $1}' | head -1)\n            FOUND_SERVICES+=(\"$port:$PROCESS\")\n            echo \"   Found: $PROCESS on port $port\"\n        fi\n    done\n\n    # Also check for common dev processes\n    DEV_PROCESSES=(\"next\" \"vite\" \"webpack\" \"parcel\" \"snowpack\" \"turbopack\")\n    for proc in \"${DEV_PROCESSES[@]}\"; do\n        PORTS=$(lsof -i -P | grep -i \"$proc\" | grep LISTEN | awk '{print $9}' | cut -d: -f2 | sort -u)\n        for port in $PORTS; do\n            if [[ ! \" ${FOUND_SERVICES[@]} \" =~ \" $port:\" ]]; then\n                FOUND_SERVICES+=(\"$port:$proc\")\n                echo \"   Found: $proc on port $port\"\n            fi\n        done\n    done\n\n    if [ ${#FOUND_SERVICES[@]} -eq 0 ]; then\n        echo \"❌ No running dev servers found\"\n        echo \"   Start your dev server first, then run \u002Fexpose\"\n        return 1\n    elif [ ${#FOUND_SERVICES[@]} -eq 1 ]; then\n        # Only one found, use it\n        PORT=$(echo \"${FOUND_SERVICES[0]}\" | cut -d: -f1)\n        PROCESS=$(echo \"${FOUND_SERVICES[0]}\" | cut -d: -f2)\n        echo \"✅ Auto-detected: $PROCESS on port $PORT\"\n        return $PORT\n    else\n        # Multiple found, let user choose\n        echo \"\"\n        echo \"Multiple dev servers found. Which one to expose?\"\n        for i in \"${!FOUND_SERVICES[@]}\"; do\n            PORT=$(echo \"${FOUND_SERVICES[$i]}\" | cut -d: -f1)\n            PROCESS=$(echo \"${FOUND_SERVICES[$i]}\" | cut -d: -f2)\n            echo \"  $((i+1)). $PROCESS on port $PORT\"\n        done\n        read -p \"Enter number (1-${#FOUND_SERVICES[@]}): \" choice\n\n        if [[ $choice -ge 1 && $choice -le ${#FOUND_SERVICES[@]} ]]; then\n            PORT=$(echo \"${FOUND_SERVICES[$((choice-1))]}\" | cut -d: -f1)\n            return $PORT\n        else\n            echo \"❌ Invalid choice\"\n            return 1\n        fi\n    fi\n}\n\nexpose_service() {\n    local PORT=$1\n    local SERVICE_NAME=$2\n\n    # If no port specified, auto-detect\n    if [ -z \"$PORT\" ]; then\n        auto_detect_dev_server\n        PORT=$?\n        if [ $PORT -eq 1 ]; then\n            return 1\n        fi\n        # Auto-generate service name based on detected process\n        if [ -z \"$SERVICE_NAME\" ]; then\n            SERVICE_NAME=\"dev-$PORT\"\n        fi\n    fi\n\n    # Get Tailscale info\n    TAILSCALE_IP=$(tailscale ip -4)\n    TAILSCALE_HOSTNAME=$(tailscale status --self --peers=false | awk '{print $2}')\n    TAILSCALE_DOMAIN=\"${TAILSCALE_HOSTNAME}.example.ts.net\"\n\n    # Generate path\n    if [ -z \"$SERVICE_NAME\" ]; then\n        RANDOM_ID=$(openssl rand -hex 4)\n        PATH_NAME=\"\u002Fsvc-${RANDOM_ID}\"\n        SERVICE_NAME=\"service-${PORT}\"\n    else\n        PATH_NAME=\"\u002F${SERVICE_NAME}\"\n    fi\n\n    # Check if port is already exposed\n    EXISTING=$(tailscale serve status --json | jq -r \".Web[\\\"${TAILSCALE_DOMAIN}:443\\\"].Handlers[\\\"${PATH_NAME}\\\"].Proxy\")\n\n    if [ \"$EXISTING\" != \"null\" ]; then\n        echo \"⚠️  Path ${PATH_NAME} is already in use\"\n        echo \"   Current proxy: ${EXISTING}\"\n        echo \"   Generate new path? (y\u002Fn)\"\n        read -r response\n        if [ \"$response\" = \"y\" ]; then\n            RANDOM_ID=$(openssl rand -hex 4)\n            PATH_NAME=\"\u002Fsvc-${RANDOM_ID}\"\n        else\n            return 1\n        fi\n    fi\n\n    # Expose the service\n    tailscale serve --set-path ${PATH_NAME} --bg http:\u002F\u002Flocalhost:${PORT}\n\n    # Save to tracking file\n    SERVICES_FILE=\"$HOME\u002F{{TOOL_DIR}}\u002Ftailscale-services.json\"\n\n    # Create file if doesn't exist\n    if [ ! -f \"$SERVICES_FILE\" ]; then\n        echo '{\"root_service\": null, \"services\": []}' > \"$SERVICES_FILE\"\n    fi\n\n    # Add service to tracking\n    NEW_SERVICE=$(jq -n \\\n        --arg port \"$PORT\" \\\n        --arg path \"$PATH_NAME\" \\\n        --arg name \"$SERVICE_NAME\" \\\n        --arg url \"https:\u002F\u002F${TAILSCALE_DOMAIN}${PATH_NAME}\" \\\n        --arg direct \"http:\u002F\u002F${TAILSCALE_IP}:${PORT}\" \\\n        --arg created \"$(date -u +%Y-%m-%dT%H:%M:%SZ)\" \\\n        '{port: $port, path: $path, name: $name, url: $url, direct: $direct, created: $created}')\n\n    jq \".services += [$NEW_SERVICE]\" \"$SERVICES_FILE\" > \"${SERVICES_FILE}.tmp\" && mv \"${SERVICES_FILE}.tmp\" \"$SERVICES_FILE\"\n\n    # Display results\n    echo \"✅ Service exposed successfully!\"\n    echo \"\"\n    echo \"📍 Service: ${SERVICE_NAME} (port ${PORT})\"\n    echo \"🔗 HTTPS Path: https:\u002F\u002F${TAILSCALE_DOMAIN}${PATH_NAME}\"\n    echo \"🔗 Direct Access: http:\u002F\u002F${TAILSCALE_IP}:${PORT}\"\n    echo \"🔗 Hostname Access: http:\u002F\u002F${TAILSCALE_HOSTNAME}:${PORT}\"\n    echo \"\"\n    echo \"💡 For SPAs, use direct access URLs to avoid routing issues\"\n}\n\n# List exposed services\nlist_services() {\n    echo \"🌐 Exposed Services on Tailscale\"\n    echo \"================================\"\n\n    # Show Tailscale serve status\n    tailscale serve status\n\n    # Show tracked services\n    if [ -f \"$HOME\u002F{{TOOL_DIR}}\u002Ftailscale-services.json\" ]; then\n        echo \"\"\n        echo \"📋 Service Registry:\"\n        jq -r '.services[] | \"  \\(.name): \\(.direct) (path: \\(.path))\"' \"$HOME\u002F{{TOOL_DIR}}\u002Ftailscale-services.json\"\n    fi\n}\n\n# Remove service\nunexpose_service() {\n    local PATH_OR_PORT=$1\n\n    if [[ \"$PATH_OR_PORT\" =~ ^[0-9]+$ ]]; then\n        # It's a port, find the path\n        PATH_NAME=$(jq -r \".services[] | select(.port == \\\"$PATH_OR_PORT\\\") | .path\" \"$HOME\u002F{{TOOL_DIR}}\u002Ftailscale-services.json\")\n    else\n        PATH_NAME=\"$PATH_OR_PORT\"\n    fi\n\n    if [ -z \"$PATH_NAME\" ]; then\n        echo \"❌ Service not found\"\n        return 1\n    fi\n\n    # Remove from Tailscale\n    tailscale serve clear ${PATH_NAME}\n\n    # Remove from tracking\n    jq \"del(.services[] | select(.path == \\\"$PATH_NAME\\\"))\" \"$HOME\u002F{{TOOL_DIR}}\u002Ftailscale-services.json\" > \"${SERVICES_FILE}.tmp\" && mv \"${SERVICES_FILE}.tmp\" \"$SERVICES_FILE\"\n\n    echo \"✅ Service removed from ${PATH_NAME}\"\n}\n```\n\n## Features\n\n- **Auto-generates unique paths** to avoid conflicts\n- **Preserves root path** for main application\n- **Tracks all exposed services** in JSON file\n- **Provides both HTTPS and direct access URLs**\n- **Handles SPAs correctly** by recommending direct port access\n- **Supports custom service names** or auto-generation\n- **Lists all exposed services** with `\u002Fexpose list`\n- **Removes services** with `\u002Fexpose remove \u003Cport|path>`\n\n## Related Commands\n- `\u002Fexpose list` - Show all exposed services\n- `\u002Fexpose remove \u003Cport>` - Unexpose a service\n- `\u002Fexpose clear` - Remove all exposed services (except root)\n",{"name":5,"description":7,"user-invocable":24},true,"main","9cf32d1e636db09530158af14ba301bfa5d401e9","skills\u002Fexpose","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez","stevengonsalvez.com","2026-11-12 00:50:59",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":24},[34,37,40],{"tool":35,"command":36},"npx","npx skills add stevengonsalvez\u002Fainb-toolkit --skill expose",{"tool":38,"command":39},"bunx","bunx skills add stevengonsalvez\u002Fainb-toolkit --skill expose",{"tool":41,"command":42},"pnpm","pnpm dlx skills add stevengonsalvez\u002Fainb-toolkit --skill expose","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Fskills\u002Fexpose\u002FSKILL.md",[],[46,53,60,66,73,80],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M75WK9B8DKVJBJJ4CX2QMJMX","well-formed","Fixture skill that satisfies every mechanical rule, used to prove the conformance check passes a clean tree instead of failing everything.","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagentskills\u002Fclean\u002Fwell-formed\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M75WK6ZGDXJJN8879K49QEYG","underscore-tools","Fixture skill that spells the tool allowlist key with an underscore instead of the hyphen the spec requires.","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagentskills\u002Fbroken\u002Funderscore-tools\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M75WK524MVT2H9E27ZCEA3HR","no-frontmatter","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagentskills\u002Fbroken\u002Fno-frontmatter\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M75WJWZBMKR8R60PG3T3MCCC","long-description","Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling. Fixture skill with a deliberately oversized description used to prove the conformance check rejects anything past the 1024 character ceiling.","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagentskills\u002Fbroken\u002Flong-description\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M75WJVRH3J22WKED7E5D01S8","some-other-name","Fixture skill whose frontmatter name does not match its parent directory name.","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagentskills\u002Fbroken\u002Fdir-mismatch\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M75WJTC7H5FRP6S129VBSMZC","bad_Name","Fixture skill whose name uses an underscore and a capital letter, so it violates the agentskills.io name pattern.","https:\u002F\u002Fgithub.com\u002Fstevengonsalvez\u002Fainb-toolkit\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fagentskills\u002Fbroken\u002Fbad_Name\u002FSKILL.md",[],[]]