Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计提醒

appwrite-backend应用程序写入后端

Agent Skill

appwrite-backend 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

485

周安装

20

GitHub Stars

2

下载量

158
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:appwrite-backend(应用程序写入后端)
来源仓库:https://github.com/sgaabdu4/appwrite-backend
仓库路径:skills/appwrite-backend
安装命令:
npx skills add https://github.com/sgaabdu4/appwrite-backend --skill appwrite-backend
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/sgaabdu4/appwrite-backend --skill appwrite-backend

简介

appwrite-backend 用于查找、检索和筛选 Appwrite 后端相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词或任务场景快速定位候选结果时使用。

  • 提供 Appwrite 开发的最佳实践,包括数据库操作、用户管理和存储服务的使用指南。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装,需确认权限范围和维护状态,避免触发联网、命令执行或文件读写。
  • 建议结合来源仓库和原始 README 核验具体用法,确保与宿主环境兼容,并在使用前验证 API 调用和配置选项的有效性。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Appwrite Development

Critical Rules

  1. Use TablesDB API — Collections API deprecated 1.8.0
  2. Use ID.unique() for all IDs — Row IDs (rowId:) + entity IDs in columns. Custom gen w/ names/timestamps overflow column limits, leak data. ~20-char hex client-side.
  3. Use Query.select() — Relationships return IDs only without
  4. Use cursor pagination — Offset degrades on large tables
  5. Use Operator for counters — Avoids race conditions
  6. Create indexes — Queries without scan entire tables
  7. Init outside handler — SDK/connections persist between warm invocations
  8. Group functions by domain — One per domain, not per op
  9. Event triggers over polling — One trigger replaces thousands of requests
  10. Use explicit string typesstring deprecated; use varchar or text/mediumtext/longtext
  11. Use appwrite generate — Type-safe SDK from schema
  12. Use Channel helpers — Type-safe realtime subs, not raw strings
  13. Use Realtime queries — Server-side event filtering, not client-side

Terminology (1.8.0+)

OldNew
CollectionsTables
DocumentsRows
AttributesColumns
DatabasesTablesDB

Setup

import 'package:dart_appwrite/dart_appwrite.dart';

final client = Client()
    .setEndpoint('https://cloud.appwrite.io/v1')
    .setProject('<PROJECT_ID>')
    .setKey('<API_KEY>');

final tablesDB = TablesDB(client);
from appwrite.client import Client
from appwrite.services.tables_db import TablesDB
client = Client()
client.set_endpoint('https://cloud.appwrite.io/v1')
client.set_project('<PROJECT_ID>')
client.set_key('<API_KEY>')
tables_db = TablesDB(client)
import { Client, TablesDB } from 'node-appwrite';
const client = new Client()
    .setEndpoint('https://cloud.appwrite.io/v1')
    .setProject('<PROJECT_ID>')
    .setKey('<API_KEY>');
const tablesDB = new TablesDB(client);

TablesDB CRUD

// Create
await tablesDB.createRow(databaseId: 'db', tableId: 'users', rowId: ID.unique(),
    data: {'name': 'Alice'});

// Read
final rows = await tablesDB.listRows(databaseId: 'db', tableId: 'users',
    queries: [Query.equal('status', 'active'), Query.select(['name', 'email'])]);

// Update
await tablesDB.updateRow(databaseId: 'db', tableId: 'users', rowId: 'user_123',
    data: {'status': 'inactive'});

// Upsert
await tablesDB.upsertRow(databaseId: 'db', tableId: 'settings', rowId: 'prefs',
    data: {'theme': 'dark'});

// Delete
await tablesDB.deleteRow(databaseId: 'db', tableId: 'users', rowId: 'user_123');

Bulk: bulk-operations.md | Chunked ID queries: chunked-queries.md


Query Reference

Comparison: equal | notEqual | lessThan | lessThanEqual | greaterThan | greaterThanEqual | between | notBetween String: startsWith | endsWith | contains | search (+ not variants) Null: isNull | isNotNull · Logical: and([...]) | or([...]) Pagination: select | limit | cursorAfter | cursorBefore | orderAsc | orderDesc | orderRandom Timestamp: createdAfter | createdBefore | updatedAfter | updatedBefore Spatial: distanceEqual | distanceLessThan | distanceGreaterThan | intersects | overlaps | touches | crosses (+ not variants)

All prefixed Query.. Details: query-optimization.md


Operators (Atomic Updates)

data: {
    'likes': Operator.increment(1),
    'tags': Operator.arrayAppend(['trending']),
    'updatedAt': Operator.dateSetNow(),
}

Numeric: increment | decrement | multiply | divide Array: arrayAppend | arrayPrepend | arrayRemove | arrayUnique | arrayIntersect | arrayDiff Other: toggle | stringConcat | stringReplace | dateAddDays | dateSetNow

Details: atomic-operators.md


Column Types

TypeMax CharsIndexingUse
varchar16,383Full (if size < 768)Queryable short strings
text16,383Prefix onlyDescriptions, notes
mediumtext4,194,303Prefix onlyArticles
longtext1,073,741,823Prefix onlyLarge documents
string deprecated. Use varchar for queryable, text for non-indexed.

Other: integer | float | boolean | datetime | email | url | ip | enum | relationship | point | line | polygon

Details: schema-management.md


Performance

RuleImpact
Cursor pagination10-100x faster than offset
Pagination mixin (Dart)~50 lines saved per datasource
Query.select()12-18x faster for relationships
total: falseEliminates COUNT scan
Indexes100x faster on large tables
OperatorsNo race conditions
Bulk operationsN → 1 request
Delta syncFetches only changed rows

Details: performance.md, pagination-performance.md


Type-Safe SDK Generation

appwrite generate

Gen typed helpers into generated/appwrite/ from DB schema. Autocomplete, compile-time validation, no hand-written types. Regen after schema change. CLI flow: login -> init project -> pull -> generate -> push. Details: appwrite-cli


Authentication

Email/password, OAuth (50+ providers), phone, magic link, anon, email OTP, custom token. MFA w/ TOTP, email, phone, recovery codes. SSR session handling. JWT for functions. SSR: cookie a_session_<PROJECT_ID>. Use admin client to create session, session client per request to read user context.

Details: authentication.md | auth-methods.md


Storage

Upload, download, preview w/ transforms (resize, format conversion), file tokens for shareable URLs. HEIC, AVIF, WebP supported.

Details: storage-files.md


Realtime

final sub = realtime.subscribe(['databases.db.tables.posts.rows']);
sub.stream.listen((e) => print(e.events));

Channels: account | databases.<DB>.tables.<TABLE>.rows | buckets.<BUCKET>.files

Channel helpers (preferred): Channel class for type-safe subs w/ IDE autocomplete:

import { Client, Realtime, Channel, Query } from "appwrite";
const sub = await realtime.subscribe(
    Channel.tablesdb('<DB>').table('<TABLE>').row(),
    response => console.log(response.payload),
    [Query.equal('status', ['active'])]  // server-side filtering
);

Details: realtime.md


Functions

Init SDK outside handler. Group by domain. Event triggers, not polling.

Details: functions.md | functions-advanced.md


Transactions

final tx = await tablesDB.createTransaction(ttl: 300);
await tablesDB.createRow(..., transactionId: tx.$id);
await tablesDB.updateTransaction(transactionId: tx.$id, commit: true);

Details: transactions.md


Relationships

await tablesDB.listRows(databaseId: 'db', tableId: 'posts',
    queries: [Query.equal('author.country', 'US'), Query.select(['title', 'author.name'])]);

Types: oneToOne | oneToMany | manyToOne | manyToMany

Details: relationships.md


Permissions

permissions: [
    Permission.read(Role.any()),
    Permission.update(Role.user(userId)),
    Permission.delete(Role.team('admin')),
    Permission.create(Role.label('premium')),
]

Default: deny all unless row/file perms set or inherited from table/bucket. Use row/file perms for per-resource ACL. If all resources share rules, set table/bucket perms and leave row/file perms empty. write = create + update + delete Avoid: missing perms = lockout; Role.any() + write/update/delete = public mutation; Permission.read(Role.any()) on sensitive data = public leak. Roles: any() | guests() | users() | user(id) | team(id) | team(id, role) | label(name) Details: permissions | teams | storage-files


Limits

Default page: 25 · Bulk: 1000 rows · Query.equal(): 100 values · Nesting: 3 levels · Queries/req: 100 · Timeout: 15s

Error Codes

400 Bad request · 401 Unauthorized · 403 Forbidden · 404 Not found · 409 Conflict · 429 Rate limited (client SDKs only) Catch AppwriteException. 429 -> exponential backoff.

Details: error-handling.md


Anti-Patterns

WrongRightWhy
N+1 queriesQuery.select(['col', 'relation.col'])Kills extra round-trips
Read-modify-writeOperator.increment()Race condition
Large offsetsQuery.cursorAfter(id)O(n) vs O(1)
Skip totalstotal: falseKills COUNT scan
Missing indexesCreate for queried columnsQueries scan entire table
SDK init inside handlerInit outside for warm reuseRepeated setup each call
Hardcoded secretsEnv varsSecurity risk
PollingRealtime or event triggersWasted executions
Client-side filteringRealtime queriesServer does work
Raw channel stringsChannel helpersTypos, no autocomplete
ColumnStringColumnVarchar or ColumnTextstring deprecated
Hand-writing typesappwrite generateSchema drift, no autocomplete
databases.listDocuments()tablesDB.listRows()Deprecated API
Custom ID generatorsID.unique()Overflow risk, info leakage
Full re-fetch every syncQuery.updatedAfter() + per-table timestampsWastes bandwidth, slow
Loop w/ createRow()createRows() bulkN requests vs 1

Cost Optimization

  1. Query.select() — cuts bandwidth
  2. Cursor pagination + total: false — fastest queries
  3. Realtime over polling — one connection vs repeated calls
  4. Batch ops — 1 execution vs N
  5. WebP quality 80 — smallest files, universal support
  6. Init outside handler — fewer cold starts
  7. Budget cap — Organization → Billing → Budget cap

Details: cost-optimization.md


Reference Files

Data: schema-management · query-optimization · atomic-operators · relationships · transactions · bulk-operations · chunked-queries Performance: performance · pagination-performance · cost-optimization Auth: authentication · auth-methods · permissions · teams Services: storage-files · functions · functions-advanced · realtime · messaging · webhooks · avatars · graphql · locale Tooling: appwrite-cli Platform: error-handling · limits · health · self-hosting · self-hosting-ops


Resources

Docs: https://appwrite.io/docs · API: https://appwrite.io/docs/references · SDKs: https://github.com/appwrite

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

33.49%
按下载量换算53

Claude

30.24%
按下载量换算48

Cursor

21.36%
按下载量换算34

Gemini CLI

9.25%
按下载量换算15

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills