[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6EEANPBGHE3AYM5E11HMDF9":3,"skill-same:01M6EEANPBGHE3AYM5E11HMDF9":75},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":17,"categories":18,"keywords":29,"publishedAt":30,"linkOnly":31,"markdownContent":32,"markdownBody":32,"frontMatter":33,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":39,"ownerHtmlUrl":40,"ownerBlogUrl":7,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M6EEANPBGHE3AYM5E11HMDF9","airtable","Airtable低代码数据库",null,"","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fairtable\u002FSKILL.md",[19,24],{"categoryNo":20,"categoryName":21,"taxonomyType":22,"taxonomyTypeDesc":23},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师","PROFESSION","适用职业",{"categoryNo":25,"categoryName":26,"taxonomyType":27,"taxonomyTypeDesc":28},"01M8BWKS60NTYJHFE9FQSXGDKS","低代码应用开发","SCENARIO","使用场景",[5],"2026-11-10 10:12:30",false,"# Airtable API Integration\n\nAutomate and integrate with Airtable bases using the REST API.\n\n## Authentication\n\n### Personal Access Token (simplest)\n\nGenerate at https:\u002F\u002Fairtable.com\u002Fcreate\u002Ftokens. Scope to specific bases and permissions.\n\n```bash\nexport AIRTABLE_TOKEN=\"pat...\"\n```\n\n### OAuth 2.0 (multi-user apps)\n\nRegister at https:\u002F\u002Fairtable.com\u002Fcreate\u002Foauth. Supports PKCE for public clients.\n\n```python\n\"\"\"airtable_oauth.py — OAuth 2.0 with PKCE for Airtable.\"\"\"\nimport hashlib, secrets, base64, requests\n\ndef start_oauth(client_id: str, redirect_uri: str) -> tuple[str, str]:\n    \"\"\"Generate authorization URL with PKCE challenge.\n\n    Args:\n        client_id: From Airtable OAuth integration settings.\n        redirect_uri: Your callback URL.\n\n    Returns:\n        Tuple of (authorization_url, code_verifier) — store verifier for token exchange.\n    \"\"\"\n    verifier = secrets.token_urlsafe(64)\n    challenge = base64.urlsafe_b64encode(\n        hashlib.sha256(verifier.encode()).digest()\n    ).rstrip(b\"=\").decode()\n\n    url = (\n        f\"https:\u002F\u002Fairtable.com\u002Foauth2\u002Fv1\u002Fauthorize?\"\n        f\"client_id={client_id}&redirect_uri={redirect_uri}\"\n        f\"&response_type=code&scope=data.records:read data.records:write schema.bases:read\"\n        f\"&code_challenge={challenge}&code_challenge_method=S256\"\n    )\n    return url, verifier\n\ndef exchange_token(code: str, verifier: str, client_id: str, redirect_uri: str) -> dict:\n    \"\"\"Exchange authorization code for access token.\n\n    Args:\n        code: From Airtable's redirect.\n        verifier: The PKCE code_verifier from start_oauth.\n        client_id: OAuth client ID.\n        redirect_uri: Must match the one used in authorization.\n    \"\"\"\n    resp = requests.post(\"https:\u002F\u002Fairtable.com\u002Foauth2\u002Fv1\u002Ftoken\", data={\n        \"grant_type\": \"authorization_code\",\n        \"code\": code,\n        \"redirect_uri\": redirect_uri,\n        \"client_id\": client_id,\n        \"code_verifier\": verifier,\n    })\n    return resp.json()  # access_token, refresh_token, expires_in\n```\n\n## Core API Patterns\n\n### Record Operations\n\n```python\n\"\"\"airtable_records.py — CRUD operations on Airtable records.\"\"\"\nimport requests, time\n\nAPI = \"https:\u002F\u002Fapi.airtable.com\u002Fv0\"\n\ndef headers(token: str) -> dict:\n    return {\"Authorization\": f\"Bearer {token}\", \"Content-Type\": \"application\u002Fjson\"}\n\ndef list_records(token: str, base_id: str, table_name: str,\n                 view: str = None, formula: str = None,\n                 fields: list = None, sort: list = None) -> list:\n    \"\"\"List all records from a table with optional filtering.\n\n    Args:\n        token: Personal access token or OAuth token.\n        base_id: Base ID (starts with 'app').\n        table_name: Table name or ID.\n        view: Optional view name to filter\u002Fsort by.\n        formula: Airtable formula for filtering (e.g., \"AND({Status}='Active', {Score}>80)\").\n        fields: List of field names to return (reduces payload).\n        sort: List of dicts with 'field' and 'direction' keys.\n\n    Returns:\n        List of all matching record objects.\n    \"\"\"\n    params = {}\n    if view:\n        params[\"view\"] = view\n    if formula:\n        params[\"filterByFormula\"] = formula\n    if fields:\n        for i, f in enumerate(fields):\n            params[f\"fields[{i}]\"] = f\n    if sort:\n        for i, s in enumerate(sort):\n            params[f\"sort[{i}][field]\"] = s[\"field\"]\n            params[f\"sort[{i}][direction]\"] = s.get(\"direction\", \"asc\")\n\n    records = []\n    offset = None\n    while True:\n        if offset:\n            params[\"offset\"] = offset\n        resp = requests.get(f\"{API}\u002F{base_id}\u002F{table_name}\",\n                            params=params, headers=headers(token))\n        resp.raise_for_status()\n        data = resp.json()\n        records.extend(data[\"records\"])\n        offset = data.get(\"offset\")\n        if not offset:\n            break\n        time.sleep(0.2)  # Stay under 5 req\u002Fs rate limit\n\n    return records\n\ndef create_records(token: str, base_id: str, table_name: str,\n                   records: list[dict], typecast: bool = False) -> list:\n    \"\"\"Create up to 10 records at a time.\n\n    Args:\n        token: Auth token.\n        base_id: Base ID.\n        table_name: Target table.\n        records: List of dicts with field values (max 10 per call).\n        typecast: If True, Airtable auto-converts string values to proper types.\n\n    Returns:\n        List of created record objects with IDs.\n    \"\"\"\n    # Airtable limits to 10 records per request\n    created = []\n    for i in range(0, len(records), 10):\n        batch = [{\"fields\": r} for r in records[i:i + 10]]\n        resp = requests.post(\n            f\"{API}\u002F{base_id}\u002F{table_name}\",\n            json={\"records\": batch, \"typecast\": typecast},\n            headers=headers(token),\n        )\n        resp.raise_for_status()\n        created.extend(resp.json()[\"records\"])\n        if i + 10 \u003C len(records):\n            time.sleep(0.2)\n    return created\n\ndef update_records(token: str, base_id: str, table_name: str,\n                   updates: list[dict]) -> list:\n    \"\"\"Update existing records (PATCH — partial update).\n\n    Args:\n        token: Auth token.\n        base_id: Base ID.\n        table_name: Target table.\n        updates: List of dicts with 'id' and 'fields' keys (max 10 per call).\n    \"\"\"\n    updated = []\n    for i in range(0, len(updates), 10):\n        batch = updates[i:i + 10]\n        resp = requests.patch(\n            f\"{API}\u002F{base_id}\u002F{table_name}\",\n            json={\"records\": batch},\n            headers=headers(token),\n        )\n        resp.raise_for_status()\n        updated.extend(resp.json()[\"records\"])\n        if i + 10 \u003C len(updates):\n            time.sleep(0.2)\n    return updated\n\ndef delete_records(token: str, base_id: str, table_name: str,\n                   record_ids: list[str]) -> list:\n    \"\"\"Delete records by ID (max 10 per call).\n\n    Args:\n        token: Auth token.\n        base_id: Base ID.\n        table_name: Target table.\n        record_ids: List of record IDs to delete.\n    \"\"\"\n    deleted = []\n    for i in range(0, len(record_ids), 10):\n        batch = record_ids[i:i + 10]\n        params = \"&\".join(f\"records[]={rid}\" for rid in batch)\n        resp = requests.delete(\n            f\"{API}\u002F{base_id}\u002F{table_name}?{params}\",\n            headers=headers(token),\n        )\n        resp.raise_for_status()\n        deleted.extend(resp.json()[\"records\"])\n        if i + 10 \u003C len(record_ids):\n            time.sleep(0.2)\n    return deleted\n```\n\n### Formula Filtering\n\nAirtable formulas are powerful for server-side filtering:\n\n```python\n# Common formula patterns\nformulas = {\n    # Exact match\n    \"status_active\": \"{Status} = 'Active'\",\n\n    # Multiple conditions\n    \"high_priority_open\": \"AND({Priority} = 'High', {Status} != 'Done')\",\n\n    # Date filtering — tasks due this week\n    \"due_this_week\": \"IS_BEFORE({Due Date}, DATEADD(TODAY(), 7, 'days'))\",\n\n    # Text search (case-insensitive)\n    \"name_contains\": \"FIND('search term', LOWER({Name}))\",\n\n    # Linked records — has at least one linked project\n    \"has_project\": \"{Project} != ''\",\n\n    # Number range\n    \"score_range\": \"AND({Score} >= 80, {Score} \u003C= 100)\",\n\n    # Empty\u002Fnon-empty checks\n    \"missing_email\": \"{Email} = ''\",\n    \"has_attachment\": \"{Attachments} != ''\",\n}\n```\n\n### Schema Operations\n\nRead and modify base structure:\n\n```python\ndef get_base_schema(token: str, base_id: str) -> dict:\n    \"\"\"Get all tables, fields, and views in a base.\n\n    Args:\n        token: Auth token with schema.bases:read scope.\n        base_id: Base ID.\n    \"\"\"\n    resp = requests.get(f\"https:\u002F\u002Fapi.airtable.com\u002Fv0\u002Fmeta\u002Fbases\u002F{base_id}\u002Ftables\",\n                        headers=headers(token))\n    return resp.json()\n\ndef create_field(token: str, base_id: str, table_id: str,\n                 name: str, field_type: str, options: dict = None) -> dict:\n    \"\"\"Add a new field (column) to a table.\n\n    Args:\n        token: Auth token with schema.bases:write scope.\n        base_id: Base ID.\n        table_id: Table ID (not name).\n        name: Field name.\n        field_type: One of: singleLineText, multilineText, number, percent,\n                    currency, singleSelect, multipleSelects, date, checkbox, etc.\n        options: Type-specific options (e.g., select choices, currency symbol).\n    \"\"\"\n    body = {\"name\": name, \"type\": field_type}\n    if options:\n        body[\"options\"] = options\n    resp = requests.post(\n        f\"https:\u002F\u002Fapi.airtable.com\u002Fv0\u002Fmeta\u002Fbases\u002F{base_id}\u002Ftables\u002F{table_id}\u002Ffields\",\n        json=body, headers=headers(token),\n    )\n    return resp.json()\n```\n\n### Webhooks\n\nListen for changes in real time:\n\n```python\ndef create_webhook(token: str, base_id: str, notification_url: str,\n                   table_id: str = None) -> dict:\n    \"\"\"Register a webhook for record changes.\n\n    Args:\n        token: Auth token with webhook:manage scope.\n        base_id: Base ID to watch.\n        notification_url: Your HTTPS endpoint for receiving payloads.\n        table_id: Optional — watch a specific table instead of entire base.\n    \"\"\"\n    spec = {\"options\": {\"filters\": {\"sourceType\": \"client\", \"recordChangeScope\": base_id}}}\n    if table_id:\n        spec[\"options\"][\"filters\"][\"watchDataInFieldIds\"] = \"all\"\n    resp = requests.post(\n        f\"https:\u002F\u002Fapi.airtable.com\u002Fv0\u002Fbases\u002F{base_id}\u002Fwebhooks\",\n        json={\"notificationUrl\": notification_url, \"specification\": spec},\n        headers=headers(token),\n    )\n    return resp.json()\n\ndef list_webhook_payloads(token: str, base_id: str, webhook_id: str,\n                          cursor: int = None) -> dict:\n    \"\"\"Fetch webhook payloads (poll-based — payloads expire after 7 days).\n\n    Args:\n        token: Auth token.\n        base_id: Base ID.\n        webhook_id: Webhook ID from create_webhook.\n        cursor: Cursor from previous response for pagination.\n    \"\"\"\n    params = {}\n    if cursor:\n        params[\"cursor\"] = cursor\n    resp = requests.get(\n        f\"https:\u002F\u002Fapi.airtable.com\u002Fv0\u002Fbases\u002F{base_id}\u002Fwebhooks\u002F{webhook_id}\u002Fpayloads\",\n        params=params, headers=headers(token),\n    )\n    return resp.json()\n```\n\n## Rate Limits\n\n- **5 requests per second** per base\n- Record operations: max **10 records** per create\u002Fupdate\u002Fdelete call\n- List: max **100 records** per page (use offset for pagination)\n- Implement backoff on 429 responses\n\n## Field Type Reference\n\n| Type | API name | Notes |\n|---|---|---|\n| Single line text | `singleLineText` | Plain string |\n| Long text | `multilineText` | Supports markdown |\n| Number | `number` | Integer or decimal |\n| Single select | `singleSelect` | One from predefined list |\n| Multiple select | `multipleSelects` | Array of selections |\n| Date | `date` | ISO 8601 string |\n| Checkbox | `checkbox` | Boolean |\n| URL | `url` | Validated URL string |\n| Email | `email` | Validated email string |\n| Phone | `phoneNumber` | String |\n| Currency | `currency` | Number with currency formatting |\n| Percent | `percent` | Number displayed as percentage |\n| Attachment | `multipleAttachments` | Array of file objects with URL |\n| Linked record | `multipleRecordLinks` | Array of record IDs |\n| Lookup | `multipleLookupValues` | Read-only, from linked records |\n| Rollup | `rollup` | Read-only, aggregation of linked records |\n| Formula | `formula` | Read-only, computed value |\n\n## Guidelines\n\n- Always paginate list requests -- never assume all records fit in one response\n- Use `filterByFormula` to reduce payload instead of fetching all and filtering client-side\n- Batch operations in groups of 10 (API limit) with 200ms delays\n- Use `typecast: true` for imports where field values might need conversion\n- Attachment fields require URLs -- upload to a hosting service first, then pass the URL\n- Linked record fields accept record IDs, not display values\n- Formula and rollup fields are read-only -- you cannot write to them via API\n- Webhook payloads don't contain full record data -- they signal changes, then you fetch details\n- Rate limits are per-base, not per-token -- multiple integrations on the same base share the limit\n",{},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002FTerminalSkills\u002Fskills\u002Fairtable",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":9,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill airtable",{"tool":49,"command":50},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill airtable",{"tool":52,"command":53},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill airtable","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002FTerminalSkills\u002Fskills\u002Fairtable\u002FSKILL.md",true,[57,63,67,71],{"path":58,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":61,"sourceHtmlUrl":62},"references\u002Fci-troubleshooting.md","REFERENCE","参考文档",4879,"https:\u002F\u002Fgithub.com\u002Fgjbvsjjvgm-sketch\u002FWORM_V2_SOVEREIGN\u002Fblob\u002Fmain\u002Fcore\u002Fhermes-agent\u002Fskills\u002Fgithub\u002Fgithub-pr-workflow\u002Freferences\u002Fci-troubleshooting.md",{"path":64,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":65,"sourceHtmlUrl":66},"references\u002Fconventional-commits.md",2417,"https:\u002F\u002Fgithub.com\u002Fgjbvsjjvgm-sketch\u002FWORM_V2_SOVEREIGN\u002Fblob\u002Fmain\u002Fcore\u002Fhermes-agent\u002Fskills\u002Fgithub\u002Fgithub-pr-workflow\u002Freferences\u002Fconventional-commits.md",{"path":68,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":69,"sourceHtmlUrl":70},"templates\u002Fpr-body-bugfix.md",513,"https:\u002F\u002Fgithub.com\u002Fgjbvsjjvgm-sketch\u002FWORM_V2_SOVEREIGN\u002Fblob\u002Fmain\u002Fcore\u002Fhermes-agent\u002Fskills\u002Fgithub\u002Fgithub-pr-workflow\u002Ftemplates\u002Fpr-body-bugfix.md",{"path":72,"resourceType":59,"resourceTypeDesc":60,"sizeBytes":73,"sourceHtmlUrl":74},"templates\u002Fpr-body-feature.md",580,"https:\u002F\u002Fgithub.com\u002Fgjbvsjjvgm-sketch\u002FWORM_V2_SOVEREIGN\u002Fblob\u002Fmain\u002Fcore\u002Fhermes-agent\u002Fskills\u002Fgithub\u002Fgithub-pr-workflow\u002Ftemplates\u002Fpr-body-feature.md",[76,85,94,103,109,115],{"skillNo":77,"name":78,"nameZh":7,"description":7,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":30},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[],[82,83,84],"model","model hierarchy","model hierarchy skill",{"skillNo":86,"name":87,"nameZh":7,"description":7,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":30},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[],[91,92,93],"MCP","zoom","zoom mcp",{"skillNo":95,"name":96,"nameZh":7,"description":7,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":30},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[100,101,102,92],"sdk","zoom apps sdk","apps",{"skillNo":104,"name":105,"nameZh":7,"description":7,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":30},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[105],{"skillNo":110,"name":111,"nameZh":7,"description":7,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":30},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[],[111],{"skillNo":116,"name":117,"nameZh":7,"description":7,"descriptionZh":7,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":7,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":30},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[117]]