cloudthinker-ai/CloudSkills / skills/connections/managing-appwrite
managing-appwrite
UnverifiedUse when working with Appwrite — appwrite backend platform management covering project inventory, database collections, user authentication stats, storage bucket usage, function deployments, webhook configuration, and platform health. Use for comprehensive Appwrite project assessment and resource monitoring.
Appwrite Management
Analyze Appwrite projects, databases, auth, storage, and serverless functions.
Phase 1: Discovery
#!/bin/bash
TOKEN="${APPWRITE_API_KEY}"
ENDPOINT="${APPWRITE_ENDPOINT:-https://cloud.appwrite.io/v1}"
PROJECT="${APPWRITE_PROJECT_ID}"
AUTH=(-H "X-Appwrite-Key: ${TOKEN}" -H "X-Appwrite-Project: ${PROJECT}" -H "Content-Type: application/json")
echo "=== Databases ==="
curl -s "${ENDPOINT}/databases" "${AUTH[@]}" \
| jq -r '.databases[] | "\(.name)\t\(.$id)\t\(.enabled)\t\(.$createdAt)"' \
| column -t | head -20
echo ""
echo "=== Collections per Database ==="
for DB in $(curl -s "${ENDPOINT}/databases" "${AUTH[@]}" | jq -r '.databases[].$id'); do
curl -s "${ENDPOINT}/databases/${DB}/collections" "${AUTH[@]}" \
| jq -r ".collections[] | \"${DB}\t\(.name)\t\(.\$id)\t\(.enabled)\t\(.documentSecurity)\"" 2>/dev/null
done | column -t | head -20
echo ""
echo "=== Storage Buckets ==="
curl -s "${ENDPOINT}/storage/buckets" "${AUTH[@]}" \
| jq -r '.buckets[] | "\(.name)\t\(.$id)\t\(.maximumFileSize)\t\(.encryption)\t\(.antivirus)"' \
| column -t | head -20
echo ""
echo "=== Functions ==="
curl -s "${ENDPOINT}/functions" "${AUTH[@]}" \
| jq -r '.functions[] | "\(.name)\t\(.runtime)\t\(.status)\t\(.timeout)s\t\(.schedule // \"none\")"' \
| column -t | head -20
Phase 2: Analysis
#!/bin/bash
TOKEN="${APPWRITE_API_KEY}"
ENDPOINT="${APPWRITE_ENDPOINT:-https://cloud.appwrite.io/v1}"
PROJECT="${APPWRITE_PROJECT_ID}"
AUTH=(-H "X-Appwrite-Key: ${TOKEN}" -H "X-Appwrite-Project: ${PROJECT}" -H "Content-Type: application/json")
echo "=== User Stats ==="
curl -s "${ENDPOINT}/users" "${AUTH[@]}" \
| jq '{total_users: .total}' 2>/dev/null
echo ""
echo "=== Function Deployments ==="
for FN in $(curl -s "${ENDPOINT}/functions" "${AUTH[@]}" | jq -r '.functions[].$id'); do
NAME=$(curl -s "${ENDPOINT}/functions/${FN}" "${AUTH[@]}" | jq -r '.name')
curl -s "${ENDPOINT}/functions/${FN}/deployments" "${AUTH[@]}" \
| jq -r ".deployments[:3][] | \"${NAME}\t\(.\$id[0:8])\t\(.status)\t\(.buildSize // 0)\t\(.\$createdAt)\"" 2>/dev/null
done | column -t | head -20
echo ""
echo "=== Webhooks ==="
curl -s "${ENDPOINT}/projects/${PROJECT}/webhooks" "${AUTH[@]}" \
| jq -r '.webhooks[] | "\(.name)\t\(.url[0:40])\t\(.enabled)\t\(.events | length) events"' 2>/dev/null \
| column -t | head -10
echo ""
echo "=== Teams ==="
curl -s "${ENDPOINT}/teams" "${AUTH[@]}" \
| jq -r '.teams[] | "\(.name)\t\(.$id)\t\(.total) members\t\(.$createdAt)"' \
| column -t | head -10
echo ""
echo "=== Health Checks ==="
for CHECK in db cache queue certificates; do
STATUS=$(curl -s "${ENDPOINT}/health/${CHECK}" "${AUTH[@]}" | jq -r '.status // "unknown"' 2>/dev/null)
echo "${CHECK}: ${STATUS}"
done
Output Format
APPWRITE ANALYSIS
===================
Database Collections Docs Functions Storage Buckets
──────────────────────────────────────────────────────────────────
main-db 8 12,450 5 3
analytics-db 3 45,200 2 1
Users: 1,245 total | Teams: 4 | Webhooks: 6 active
Health: DB(ok) Cache(ok) Queue(ok) Certs(ok)
Deployments: 7 recent (6 successful, 1 failed)
Safety Rules
- Read-only: Only use GET/list endpoints against the Appwrite API
- Never create, update, or delete databases, collections, or users without confirmation
- API keys: Never output API key values in results
- Rate limits: Respect Appwrite rate limits (default 60 requests per minute)
Anti-Hallucination Rules
- NEVER assume resource names — always discover via CLI/API in Phase 1 before referencing in Phase 2.
- NEVER fabricate metric names or dimensions — verify against the service documentation or
--helpoutput. - NEVER mix CLI commands between service versions — confirm which version/API you are targeting.
- ALWAYS use the discovery → verify → analyze chain — every resource referenced must have been discovered first.
- ALWAYS handle empty results gracefully — an empty response is valid data, not an error to retry.
Counter-Rationalizations
| Shortcut | Counter | Why |
|---|---|---|
| "I'll skip discovery and check known resources" | Always run Phase 1 discovery first | Resource names change, new resources appear — assumed names cause errors |
| "The user only asked for a quick check" | Follow the full discovery → analysis flow | Quick checks miss critical issues; structured analysis catches silent failures |
| "Default configuration is probably fine" | Audit configuration explicitly | Defaults often leave logging, security, and optimization features disabled |
| "Metrics aren't needed for this" | Always check relevant metrics when available | API/CLI responses show current state; metrics reveal trends and intermittent issues |
| "I don't have access to that" | Try the command and report the actual error | Assumed permission failures prevent useful investigation; actual errors are informative |
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| writing-skillsobra/superpowersUse when creating new skills, editing existing skills, or verifying skills work before deployment | Stars: 318k | Updated | Claude CodeCodex | Unverified | Install |
| xlsxanthropics/skillsUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing .xlsx, .xlsm, .xltx, .csv, or .tsv file (e.g., adding columns, computing formulas, formatting, charting, cleaning messy data); create a new spreadsheet from scratch or from other data sources; or convert between tabular file formats. Trigger especially when the user references a spreadsheet file by name or path — even casually (like "the xlsx in my downloads") — and wants something done to it or produced from it. Also trigger for cleaning or restructuring messy tabular data files (malformed rows, misplaced headers, junk data) into proper spreadsheets. The deliverable must be a spreadsheet file. Do NOT trigger when the primary deliverable is a Word document, HTML report, standalone Python script, database pipeline, or Google Sheets API integration, even if tabular data is involved. | Stars: 196k | Updated | Claude CodeCodex | Verified | Install |
| shipping-and-launchaddyosmani/agent-skillsPrepares production launches. Use when preparing to deploy to production, or when asking what needs to be in place before shipping. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy. | Stars: 118k | Updated | Claude CodeCodex | Verified | Install |
| childhoodthedotmack/claude-memBabysit a shipped release after merge, publication, or deployment. Verify published packages, production behavior, installed plugins, and late CI or user reports until the observation window is clean; use babysit for PR readiness before release. | Stars: 117k | Updated | Claude CodeCodex | Unverified | Install |