web-dev-setup
Skill0 starsChanged 3 months agoMITView on GitHub
Adds full-stack web extras to a Mac dev environment - pnpm (corepack gone from Node 25+), pinned PostgreSQL and Redis via brew services with keg-only PATH fixes, and an API client. Use for "set up my Mac for web development", "install postgres/redis locally", "brew services database", "install pnpm", "psql not found". Not for Node version managers, Docker databases, deploys, or SQL debugging.
- Installs packages
In this repository21 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- add-skillSkill
- publish-repoSkill
- ai-dev-toolsSkill
- cloud-dev-setupSkill
- dev-cli-toolsSkill
- docker-on-macSkill
- dotfiles-setupSkill
- editor-setupSkill
- git-ssh-identitySkill
- homebrew-setupSkill
- language-runtimesSkill
- mac-dev-appsSkill
- mac-maintenanceSkill
- macos-defaultsSkill
- macos-dev-setupSkill
- macos-security-baselineSkill
- macos-system-prepSkill
- mobile-dev-setupSkill
- zsh-setupSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 37
Ask which components the user wants — pnpm, databases, API client — and do only those ("install pnpm" alone means pnpm alone.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Web Dev Setup
Layers the web-stack specifics on top of a working base: a fast package manager, local databases run the boring-reliable way (brew services, pinned majors), and an API client.
When NOT to use
- Node/Python versions →
language-runtimes(prerequisite for pnpm use) - Databases in containers (prod parity, multiple versions) →
docker-on-mac; this skill is the brew-services path - Project
npm install/schema work/SQL → project work - DB GUI browsers →
mac-dev-apps(dbeaver-community/tableplus)
Prerequisites
brew present; for pnpm, a Node runtime (→ language-runtimes).
Safety rails
- Pin the Postgres major (
postgresql@17/@18). Major upgrades requirepg_upgrade— a blindbrew upgradeacross majors strands the data directory. Never uninstall/upgrade an existing versioned postgres without explicit consent and a backup note. - brew-services databases bind localhost by default — keep it that way; no config changes toward 0.0.0.0.
- PATH additions are grep-guarded appends to
~/.zshrc.
Workflow
Ask which components the user wants — pnpm, databases, API client — and do only those ("install pnpm" alone means pnpm alone; done = the selected subset). Before starting a database, inventory what's already there:
brew services list
lsof -nP -iTCP:5432 -sTCP:LISTEN 2>/dev/null # something already on the postgres port?
brew list --versions | grep -E '^postgresql|^redis'An existing instance/data dir means a deliberate plan (reuse it, or a different port), not a second install on 5432.
1. pnpm
brew install pnpm # standalone binary formula (no runtime node dependency)
pnpm --versionWhy brew, not corepack: corepack stopped shipping with Node 25+ (still
present in Node 24 LTS). Brew's pnpm works regardless of Node version and
updates with everything else. In repos with a packageManager field, pnpm
respects the pin. (Yarn wanted instead? npm i -g corepack && corepack
enable, per Yarn's docs. Bun as an extra runtime/test-runner:
brew install oven-sh/bun/bun — a complement, not a Node replacement.)
2. PostgreSQL (pinned major)
Pick the major once and use it consistently (PG=postgresql@17 below —
substitute @18 the same way everywhere; the unversioned alias tracks the
newest major, which is exactly what we avoid):
PG=postgresql@17
brew install "$PG"
brew services start "$PG" # launchd service, starts at loginVersioned formulae are keg-only — psql isn't on PATH until:
grep -q "$PG" ~/.zshrc || echo "export PATH=\"$(brew --prefix $PG)/bin:\$PATH\"" >> ~/.zshrcVerify (fresh shell):
psql --version
psql -d postgres -c 'select version();' # default superuser = your macOS username, no password
# The bare-`psql` "database <user> does not exist" quirk: create it once,
# but DON'T blanket-swallow errors - only ignore already-exists:
createdb "$USER" 2>&1 | grep -v 'already exists' || true3. Redis
brew install redis
brew services start redis
redis-cli ping # PONG4. API client
brew install --cask bruno # git-friendly, offline, no account
# or: brew install --cask postman5. Verify
brew services list # postgresql@17 + redis "started"
sh "${CLAUDE_SKILL_DIR}/scripts/check.sh"Output spec
Done means: pnpm runs; postgres (pinned major) and redis show started in
brew services list and answer a query/ping in a fresh shell; API client
installed; user warned about the pg_upgrade rule. Report actual outputs.
Gotchas
psql: command not foundafter install = keg-only PATH, not a broken install.FATAL: database "<user>" does not existon barepsql= the default-db quirk;createdb $USERorpsql -d postgres.- brew services runs per-user at login. If the service shows
error, checkbrew services info postgresql@17and the log it names — a stale postmaster.pid after a crash is the usual cause. - Homebrew's
postgresqlunversioned alias follows the newest major (currently 18) — installing by alias then re-installing later can jump majors; that's why this skill pins. - Redis's AGPL-era licensing rarely matters for plain local dev, but org
policy may prohibit AGPL software outright —
valkeyis the BSD-fork drop-in when it does. - Multiple postgres majors side by side: both keg-only, both can run —
keep distinct ports (
portin each postgresql.conf) or run one at a time via services.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

