بنقرة واحدة
nean-teardown
Tear down a NEAN project — drop database, delete local files, and optionally delete the GitHub repo.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Tear down a NEAN project — drop database, delete local files, and optionally delete the GitHub repo.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Scaffold a pnpm + Turborepo MERN monorepo with Next.js, tooling, tests, CI, and optional GitHub repo creation.
Configure GitHub repository security with branch protection, Dependabot, security scanning, and CI workflows. Integrates with mern-scaffold, nean-scaffold, and iOS projects.
Harden a Vercel deployment with security headers, CSP, bot protection, and deployment configuration
Add authentication to an iOS app with Sign in with Apple, biometrics, and Keychain storage.
Scaffold a new feature with View, ViewModel, and tests following ios-std conventions.
Review iOS code for compliance with standards, NFRs, and security policy.
| name | nean-teardown |
| description | Tear down a NEAN project — drop database, delete local files, and optionally delete the GitHub repo. |
| argument-hint | [--delete-repo] [--keep-db] |
| allowed-tools | Bash, Read, Glob, Grep |
Completely tear down a NEAN project created by /nean-kit. Drops the PostgreSQL
database, kills running dev servers, and deletes all local files. By default,
keeps the GitHub repo for reference — use --delete-repo to remove it too.
Use --keep-db to preserve the database.
--delete-repo — Also delete the GitHub repository (default: keep it)--keep-db — Skip database deletion (default: drop it)gh CLI authenticated (if --delete-repo)Confirm this is a NEAN project by checking for:
nx.jsonapps/api/libs/shared/If any are missing, warn and ask the user to confirm before proceeding.
Record the project root (absolute path) for later deletion.
git remote get-url origin 2>/dev/null
owner/repo from the URLDetermine the database name:
.env for DATABASE_NAME=...- replaced by _
(e.g., hello-nean → hello_nean)Verify the database exists:
/opt/homebrew/opt/postgresql@14/bin/psql -U postgres -lqt | grep <db_name>
If the database doesn't exist, note it and skip database steps.
Check for running dev servers first:
lsof -ti:3000,4200 2>/dev/null
If processes are found on ports 3000 or 4200, warn the user.
Display exactly what will happen:
Project: /path/to/my-app
GitHub: owner/repo (will be DELETED | will be KEPT)
Database: hello_nean (will be DROPPED | will be KEPT | not found)
⚠ Dev servers detected on ports 3000, 4200 — they will be killed.
This will permanently delete:
- All local files in /path/to/my-app
[- GitHub repository owner/repo (if --delete-repo)]
[- PostgreSQL database hello_nean (unless --keep-db)]
Type the project name to confirm: _
Do NOT proceed without explicit confirmation.
If processes were detected on ports 3000 or 4200:
lsof -ti:3000 | xargs kill -9 2>/dev/null
lsof -ti:4200 | xargs kill -9 2>/dev/null
gh repo delete owner/repo --yes
If this fails (permissions, network), stop and report — do not continue to local deletion so the user can retry.
/opt/homebrew/opt/postgresql@14/bin/psql -U postgres -c 'DROP DATABASE IF EXISTS <db_name>;'
If this fails, warn but continue to local deletion — the database may already be gone or in use.
Never stop the postgresql@14 Homebrew service. Other projects may depend on it.
cd ..
rm -rf /absolute/path/to/project
Use the absolute path recorded in step 1. Never use relative paths.
Report what was deleted or kept: