setup-auth
Skill0 starsChanged 9 months agoMITView on GitHub
Use this skill when the user asks to "set up auth for deployment", "log in to deployment tools", "authenticate deployment tools", "check if I'm logged into Vercel/Railway/Supabase/etc", "set up credentials for deploying", or when invoked by the deploy-project orchestrator after scan-project to authenticate all required deployment platforms before deploying. Reads DEPLOYMENT_DOCS/DEPLOYMENT_PLAN.md to determine which tools are needed, then verifies and guides login for only those tools.
- Reads credentials
- Installs packages
2 other projects use a version of this.
Adopted by
Most recently taken up by
- microsoft/power-platform-skillstheir own version, first seen Oct 1, 2026
- mickzijdel/vischecktheir own version, first seen Sep 24, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- microsoft/power-platform-skills★ 961same name
- mickzijdel/vischeck★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository13 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- deploy-cloudflareSkill
- deploy-logSkill
- deploy-neonSkill
- deploy-netlifySkill
- deploy-projectSkill
- deploy-renderSkill
- deploy-supabaseSkill
- deploy-upstashSkill
- deploy-vercelSkill
- scan-projectSkill
- setup-cicdSkill
- verify-deploymentSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
32 rules. About 0 are common, 22 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈22
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Verify and guide authentication for every deployment platform required by this project.
- Very specific: line 12
Read DEPLOYMENT_DOCS/DEPLOYMENT_PLAN.md from the current working directory.
- Distinctive: line 17
If the file does not exist, stop and tell the user:
- Distinctive: line 24
Do not proceed until the file is read and the required platforms are identified.
- Distinctive: line 31
Run the check command.
- Distinctive: line 32
If not authenticated, tell the user exactly what to run in their terminal, then wait for confirmation.
- Distinctive: line 33
Run the verify command.
- Distinctive: line 34
If verification fails, stop, explain the error clearly, and tell the user how to fix it.
- Distinctive: line 35
If the user says "skip" or "I'll do it later", explain that deployment cannot proceed without authentication for all required tools and ask …
- Distinctive: line 64
Wait for the user to say they have completed the login before continuing.
- Very specific: line 77
Check only if "Vercel" appears in the Required Accounts section of DEPLOYMENT_PLAN.md.
- Very specific: line 108
Check only if "Netlify" appears in the Required Accounts section of DEPLOYMENT_PLAN.md.
- Very specific: line 139
Check only if "Cloudflare" appears in the Required Accounts section of DEPLOYMENT_PLAN.md.
- Very specific: line 170
Check only if "Supabase" appears in the Required Accounts section of DEPLOYMENT_PLAN.md.
- Very specific: line 201
Check only if "Neon" appears in the Required Accounts section of DEPLOYMENT_PLAN.md.
- Distinctive: line 208
If neither works, install it:
- Distinctive: line 231
Wait for the key, then:
- Very specific: line 266
Check only if "Render" appears in the Required Accounts section of DEPLOYMENT_PLAN.md.
- Distinctive: line 293
Wait for the user to paste the key.
- Distinctive: line 315
If it returns a valid JSON array or object with owner data, extract and display the owner/workspace name.
- Very specific: line 316
If it returns an HTTP error or {"id":"...","message":"..."} style error, tell the user:
- Distinctive: line 324
Do not proceed until verification succeeds.
- Very specific: line 330
Check only if "Upstash" appears in the Required Accounts section of DEPLOYMENT_PLAN.md.
- Distinctive: line 358
Wait for the user to provide both in one reply.
- Distinctive: line 360
After receiving both, store them:
- Distinctive: line 392
After ALL required platforms are verified, print this table.
- Distinctive: line 410
NEVER proceed to the next platform until the current one is fully verified.
- Distinctive: line 411
NEVER proceed to deployment — this skill's sole purpose is auth verification and guided login.
- Distinctive: line 412
If any verification fails after the user claims to have logged in: explain exactly what the error output means and provide concrete steps …
- Distinctive: line 413
If the user says "skip" or "I'll do it later": tell them that deployment cannot proceed without authentication for all required tools, and …
- Very specific: line 414
Only check platforms listed in the DEPLOYMENT_PLAN.md Required Accounts section.
- Distinctive: line 415
Never silently skip a failed verification.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
setup-auth
Verify and guide authentication for every deployment platform required by this project. Never attempt deployment. Only verify auth and guide the user through login.
Step 1: Read DEPLOYMENT_DOCS/DEPLOYMENT_PLAN.md
Read DEPLOYMENT_DOCS/DEPLOYMENT_PLAN.md from the current working directory.
- Find the "Required Accounts" section.
- Extract the list of platforms mentioned there. These are the ONLY platforms you will check. Do not check any platform not listed.
If the file does not exist, stop and tell the user:
DEPLOYMENT_DOCS/DEPLOYMENT_PLAN.md not found.
Run scan-project first, or tell me which platforms you're deploying to (e.g., Vercel, Render, Supabase).Do not proceed until the file is read and the required platforms are identified.
Step 2: Authenticate Each Required Platform
Work through each required platform ONE AT A TIME. Do not move to the next platform until the current one is fully verified. Do not skip any platform.
For each platform, the flow is:
- Run the check command.
- If not authenticated, tell the user exactly what to run in their terminal, then wait for confirmation.
- Run the verify command.
- If verification fails, stop, explain the error clearly, and tell the user how to fix it. Do not proceed to the next platform.
- If the user says "skip" or "I'll do it later", explain that deployment cannot proceed without authentication for all required tools and ask them to complete the login.
GitHub
GitHub is always required — it is needed for repo setup and CI/CD regardless of which other platforms are in the plan.
Check:
gh auth statusIf not authenticated:
Tell the user:
GitHub CLI is not authenticated. Please run this in your terminal:
gh auth login
When prompted:
- Select: GitHub.com
- Select: HTTPS
- Select: Login with a web browser
Then come back here and confirm.Wait for the user to say they have completed the login before continuing.
Verify:
gh auth statusThe output must show "Logged in to github.com". If it does not, stop and explain what the error output means and how to resolve it.
Vercel
Check only if "Vercel" appears in the Required Accounts section of DEPLOYMENT_PLAN.md.
Check:
vercel whoami 2>/dev/nullIf the command fails or prints an error:
Tell the user:
Vercel CLI is not authenticated. Please run this in your terminal:
vercel login
Follow the prompts to log in via browser. Then come back here and confirm.Wait for confirmation.
Verify:
vercel whoamiThe output must print a username (not an error message). If it fails, stop and explain the error.
Netlify
Check only if "Netlify" appears in the Required Accounts section of DEPLOYMENT_PLAN.md.
Check:
netlify status 2>/dev/nullIf the output does not show a logged-in user:
Tell the user:
Netlify CLI is not authenticated. Please run this in a separate terminal:
netlify login
A browser window will open. Complete the login there, then come back here and confirm.Wait for confirmation.
Verify:
netlify status | grep "Logged In"This must succeed (exit 0 and produce output). If it fails, stop and explain the error.
Cloudflare
Check only if "Cloudflare" appears in the Required Accounts section of DEPLOYMENT_PLAN.md.
Check:
wrangler whoami 2>/dev/nullIf not logged in:
Tell the user:
Wrangler (Cloudflare CLI) is not authenticated. Please run this in a separate terminal:
wrangler login
A browser window will open. Complete the login there, then come back here and confirm.Wait for confirmation.
Verify:
wrangler whoamiThe output must show an account name. If it fails, stop and explain the error.
Supabase
Check only if "Supabase" appears in the Required Accounts section of DEPLOYMENT_PLAN.md.
Check:
supabase projects list 2>/dev/nullIf the command errors (not just an empty list — an empty list is fine):
Tell the user:
Supabase CLI is not authenticated. Please run this in a separate terminal:
supabase login
A browser window will open. Complete the login there, then come back here and confirm.Wait for confirmation.
Verify:
supabase projects listThe command must not error. An empty list is acceptable — it means you are logged in but have no projects yet. If it errors, stop and explain.
Neon
Check only if "Neon" appears in the Required Accounts section of DEPLOYMENT_PLAN.md.
Check if CLI is installed:
neonctl --version 2>/dev/null || neon --version 2>/dev/nullIf neither works, install it:
npm install -g neonctlNote: the correct package is neonctl — NOT neon (which is an unrelated package).
Detect WSL2:
grep -qi microsoft /proc/version 2>/dev/null && echo "WSL2" || echo "native"If WSL2 detected — skip browser auth entirely, go straight to API key:
Tell the user:
You're on WSL2 — the browser auth flow won't work here.
Instead, generate an API key:
1. Go to: https://console.neon.tech/app/settings/api-keys
2. Create a new API key
3. Paste it hereWait for the key, then:
export NEON_API_KEY="<pasted_key>"
echo "export NEON_API_KEY=$NEON_API_KEY" >> ~/.bashrcVerify:
neonctl me --api-key "$NEON_API_KEY"If NOT WSL2 — try browser auth:
Tell the user:
Neon CLI is not authenticated. Please run this in a separate terminal:
neonctl auth
A browser window will open. Complete the login there, then come back here and confirm.Wait for confirmation.
Verify:
neonctl meThe output must show an email address. If it fails, stop and explain the error.
Render
Check only if "Render" appears in the Required Accounts section of DEPLOYMENT_PLAN.md.
Render uses an API key, not a CLI login flow.
Check:
echo $RENDER_API_KEYAlso check for a stored key:
cat ~/.render/config.yaml 2>/dev/nullIf no key is found:
Tell the user:
Render uses an API key instead of a CLI login.
To get your API key:
1. Go to: https://dashboard.render.com/u/settings → API Keys → Create API Key
2. Copy the key
Please paste your Render API key here:Wait for the user to paste the key. Then:
Store the key:
mkdir -p ~/.render
cat > ~/.render/config.yaml << EOF
apiKey: <pasted_key>
EOF
chmod 600 ~/.render/config.yamlSet the key in the current session:
export RENDER_API_KEY="<pasted_key>"Verify:
curl -s -H "Authorization: Bearer $RENDER_API_KEY" https://api.render.com/v1/ownersParse the JSON response:
- If it returns a valid JSON array or object with owner data, extract and display the owner/workspace name.
- If it returns an HTTP error or
{"id":"...","message":"..."}style error, tell the user:
The Render API key appears to be invalid or expired.
Please verify you copied the full key from: https://dashboard.render.com/u/settings → API Keys
Then paste the correct key so I can retry.Do not proceed until verification succeeds.
Upstash
Check only if "Upstash" appears in the Required Accounts section of DEPLOYMENT_PLAN.md.
Upstash uses an API key and email for CLI access, not a browser login flow.
Check:
echo "Email: $UPSTASH_EMAIL Key: $UPSTASH_API_KEY"Also check for a stored config:
cat ~/.upstash/config 2>/dev/nullIf either UPSTASH_EMAIL or UPSTASH_API_KEY is not set:
Tell the user:
Upstash uses an API key for CLI access.
1. Go to: https://console.upstash.com/account/api
2. You'll see your Email address and API Key on that page
Please provide both:
Email: (your Upstash account email, e.g. you@example.com)
API Key: (the long UUID string shown on the API page)Wait for the user to provide both in one reply. If they only provide one, ask for the other explicitly before continuing.
After receiving both, store them:
export UPSTASH_EMAIL="<entered_email>"
export UPSTASH_API_KEY="<entered_key>"
mkdir -p ~/.upstash
cat > ~/.upstash/config << EOF
email=<entered_email>
api_key=<entered_key>
EOF
chmod 600 ~/.upstash/configVerify:
curl -s -u "$UPSTASH_EMAIL:$UPSTASH_API_KEY" https://api.upstash.com/v2/redis/databasesThe response must be valid JSON (even an empty array [] is fine — it means you are authenticated but have no databases yet). If the response is an error or not valid JSON, tell the user:
The Upstash credentials appear to be invalid.
Please verify your email and API key at: https://console.upstash.com/account/api
Then provide the correct credentials so I can retry.Do not proceed until verification succeeds.
Step 3: Print Final Auth Status Table
After ALL required platforms are verified, print this table. Include only the platforms that were in the plan. Fill in the actual usernames and account names from the verification step outputs.
=== Authentication Status ===
✓ GitHub → logged in as @<username>
✓ Vercel → logged in as <username>
✓ Netlify → logged in as <username>
✓ Cloudflare → logged in (<account_name>)
✓ Supabase → logged in (<email>)
✓ Neon → logged in (<email>)
✓ Render → API key verified (workspace: <name>)
✓ Upstash → API key verified (<email>)
=============================
All required tools authenticated. Ready to deploy.Critical Rules
- NEVER proceed to the next platform until the current one is fully verified.
- NEVER proceed to deployment — this skill's sole purpose is auth verification and guided login.
- If any verification fails after the user claims to have logged in: explain exactly what the error output means and provide concrete steps to resolve it.
- If the user says "skip" or "I'll do it later": tell them that deployment cannot proceed without authentication for all required tools, and ask them to complete the login before you continue.
- Only check platforms listed in the DEPLOYMENT_PLAN.md Required Accounts section. Do not check any other platform.
- Never silently skip a failed verification. Always stop and explain.
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.

