macos-smb-server

macos-smb-server is a skill for Claude Code, Codex from soulmachine/skills. It costs 93 tokens per session (791 once invoked), scanned B, original, MIT.

A guide for configuring the SMB file server built into macOS. SMB is the network file-sharing protocol that lets other computers access shared folders, and the guide covers both explicit shares and macOS's automatically visible virtual shares.

In plain words
What is it for?
Use it to classify visible network shares, disable guest access, remove explicit shares, and apply server settings through macOS's supported configuration mechanism.
Why use it?
It helps avoid changes that appear in a preferences file but do not affect the running server, and helps explain why clients may see more folders than the share list shows.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to classify visible network shares, disable guest access, remove explicit shares, and apply server settings through macOS's supported configuration mechanism.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/soulmachine/skills/macos-smb-server
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add soulmachine/skills --skill macos-smb-server
Clone the repo
git clone --depth 1 https://github.com/soulmachine/skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for macos-smb-server

README.md
[![agentmods](https://agentmods.dev/badge/skills/soulmachine/skills/macos-smb-server/github.svg)](https://agentmods.dev/skills/soulmachine/skills/macos-smb-server)
Your own site
<a href="https://agentmods.dev/skills/soulmachine/skills/macos-smb-server"><img src="https://agentmods.dev/badge/skills/soulmachine/skills/macos-smb-server/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for macos-smb-server

Your own site · 80×15
<a href="https://agentmods.dev/skills/soulmachine/skills/macos-smb-server"><img src="https://agentmods.dev/badge/skills/soulmachine/skills/macos-smb-server.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 791 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00093 $0.00791
Opus 5.5 $0.00037 $0.00316
Sonnet 5.5 $0.00019 $0.00158
Haiku 4.5 $0.00009 $0.00079

Measured 1mo ago against content hash 1eca12046e07, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

macos-smb-server scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

Sharepoints use the `sharing` tool directly, effective immediately: `sudo sharing -r <name>`
macos-smb-server/SKILL.md · 60 lines

How it starts

The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.

macOS SMB server (com.apple.smb.server)

Validated on macOS 26 (Darwin 25.6), Mac mini M2, 2026-08. Two facts drive everything here:

  • Virtual shares: beyond the explicit sharepoints, smbd automatically offers every mounted volume to admin users ("Macintosh HD", external drives) and each authenticating user's own home folder. They never appear in System Settings or sharing -l, so they can't be removed there.
  • Commit, don't write: smbd never reads /Library/Preferences/SystemConfiguration/com.apple.smb.server.plist off disk. A defaults write there is invisible until reboot. Changes apply only when committed through the SCPreferences API, whose commit fires the com.apple.smb.preferences launchd event that runs /usr/libexec/smb-sync-preferences.

1 — Classify what clients see

sharing -l lists the explicit sharepoints and their per-share guest flags. Anything a client sees beyond that list is a virtual share. Done when every share visible from a client is classified as sharepoint or virtual — the two are fixed by different mechanisms.

2 — Change settings

Sharepoints use the sharing tool directly, effective immediately: sudo sharing -r <name> removes one, sudo sharing -e <name> -g 000 turns off its guest access, -a <path> adds one.

Server-level keys go through an SCPreferences commit, then a restart:

sudo swift scripts/smb-prefs.swift VirtualAdminShares=false VirtualHomeShares=false AllowGuestAccess=false
sudo launchctl kickstart -k system/com.apple.smbd
Key Effect
VirtualAdminShares every mounted volume offered to admin users
VirtualHomeShares each user's home folder offered to that user
AllowGuestAccess global guest switch (per-share guest flags still apply)
NetBIOSName, ServerDescription identity shown to the network

Values: Key=true|false|delete|<string>. Revert is the same commit with true. Without Swift (no CLT), sudo defaults write on the plist plus a reboot also applies — the sync helper is RunAtLoad. For keys beyond this table, ground truth is strings /usr/sbin/smbd and strings /usr/libexec/smb-sync-preferences.

Read the full file on GitHub · 60 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 60 lines · 93 tokens per session scan B 1eca12046e07

Subscribe to this mod's changes

macos-smb-server is a skill published in the GitHub repository soulmachine/skills (3 stars, last pushed 6d ago), licensed MIT. It adds 93 tokens to every session and 791 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-05.

Related

Other skills, from other repositories

baoyu-youtube-transcript

A tool for downloading the written captions, subtitles, chapter information, speaker labels, and cover image from a YouTube video using its URL or ID.

JimLiu/baoyu-skills · 107 tokens

baoyu-slide-deck

Generates professional slide deck images from content. Creates outlines with style instructions, then generates individual slide images. Use when user asks to "create slides", "make a presentation", "generate deck", "slide deck", or "PPT".

JimLiu/baoyu-skills · 54 tokens

baoyu-xhs-images

A tool that breaks content into a series of illustrated image cards for Xiaohongshu, a Chinese social platform also called Little Red Book, and similar social posts.

JimLiu/baoyu-skills · 100 tokens

release-skills

A release workflow for preparing and publishing a new version of a software project. A release is a named version that may include updated version files, release notes, tags, or a GitHub Release.

JimLiu/baoyu-skills · 87 tokens

baoyu-comic

A tool for creating original educational comics that explain knowledge or ideas through multiple illustrated panels. It supports different art styles and tones and can create several comics in one batch.

JimLiu/baoyu-skills · 61 tokens

baoyu-cover-image

Generates article cover images with 5 dimensions (type, palette, rendering, text, mood) combining 11 color palettes and 7 rendering styles. Supports cinematic (2.35:1), widescreen (16:9), and square (1:1) aspects. Use when user asks to "generate cover image", "create article cover", or "make cover".

JimLiu/baoyu-skills · 81 tokens