airtable

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Airtable Skill

Airtable技能

Overview

概述

Claude can manage your Airtable bases to create databases, add records, build views, and create automations. A flexible database platform that combines spreadsheet simplicity with database power.
Claude可以管理你的Airtable Base,创建数据库、添加记录、构建视图并创建自动化流程。Airtable是一个灵活的数据库平台,结合了电子表格的简洁性和数据库的强大功能。

Quick Install

快速安装

bash
curl -sSL https://canifi.com/skills/airtable/install.sh | bash
Or manually:
bash
cp -r skills/airtable ~/.canifi/skills/
bash
curl -sSL https://canifi.com/skills/airtable/install.sh | bash
或手动安装:
bash
cp -r skills/airtable ~/.canifi/skills/

Setup

配置

Configure via canifi-env:
bash
undefined
通过canifi-env进行配置:
bash
undefined

First, ensure canifi-env is installed:

首先,确保已安装canifi-env:

canifi-env set AIRTABLE_EMAIL "your-email@example.com"
undefined
canifi-env set AIRTABLE_EMAIL "你的邮箱@example.com"
undefined

Privacy & Authentication

隐私与认证

Your credentials, your choice. Canifi LifeOS respects your privacy.
你的凭据,由你掌控。 Canifi LifeOS尊重你的隐私。

Option 1: Manual Browser Login (Recommended)

选项1:手动浏览器登录(推荐)

If you prefer not to share credentials with Claude Code:
  1. Complete the Browser Automation Setup using CDP mode
  2. Login to the service manually in the Playwright-controlled Chrome window
  3. Claude will use your authenticated session without ever seeing your password
如果你不想与Claude Code共享凭据:
  1. 使用CDP模式完成浏览器自动化设置
  2. 在Playwright控制的Chrome窗口中手动登录该服务
  3. Claude将使用你的已认证会话,全程不会获取你的密码

Option 2: Environment Variables

选项2:环境变量

If you're comfortable sharing credentials, you can store them locally:
bash
canifi-env set SERVICE_EMAIL "your-email"
canifi-env set SERVICE_PASSWORD "your-password"
Note: Credentials stored in canifi-env are only accessible locally on your machine and are never transmitted.
如果你愿意共享凭据,可以将其存储在本地:
bash
canifi-env set SERVICE_EMAIL "你的邮箱"
canifi-env set SERVICE_PASSWORD "你的密码"
注意:存储在canifi-env中的凭据仅能在你的本地设备上访问,绝不会被传输到外部。

Capabilities

功能特性

  • Create and manage bases
  • Add and edit records
  • Create tables with custom fields
  • Build filtered views
  • Create forms for data entry
  • Set up automations
  • Link between tables
  • Create interfaces
  • Generate reports
  • Use extensions
  • Import/export data
  • Build apps on data
  • 创建和管理Airtable Base
  • 添加和编辑记录
  • 创建带有自定义字段的表格
  • 构建筛选视图
  • 创建用于数据录入的表单
  • 设置自动化流程
  • 建立表格间的关联
  • 创建自定义界面
  • 生成报表
  • 使用扩展功能
  • 导入/导出数据
  • 基于数据构建应用

Usage Examples

使用示例

Example 1: Add Record

示例1:添加记录

User: "Add a new contact to the CRM base: John Smith, john@example.com"
Claude: Opens CRM base, adds record with name and email.
        Confirms: "Contact added: John Smith"
用户:"在CRM Base中添加新联系人:John Smith,john@example.com"
Claude:打开CRM Base,添加包含姓名和邮箱的记录。
        确认:"联系人已添加:John Smith"

Example 2: Query Data

示例2:查询数据

User: "Show me all high-priority tasks in Airtable"
Claude: Opens Tasks table, filters by priority.
        Reports: "5 high-priority tasks: Design review, API update..."
用户:"显示Airtable中所有高优先级任务"
Claude:打开任务表格,按优先级筛选。
        反馈:"5项高优先级任务:设计评审、API更新..."

Example 3: Create View

示例3:创建视图

User: "Create a view showing only overdue items"
Claude: Creates filtered view with due date < today.
        Confirms: "Created 'Overdue Items' view"
用户:"创建一个仅显示逾期项目的视图"
Claude:创建筛选视图,条件为截止日期<今天。
        确认:"已创建'逾期项目'视图"

Example 4: Update Record

示例4:更新记录

User: "Mark the Johnson deal as closed-won"
Claude: Finds record, updates status field.
        Confirms: "Johnson deal status updated to Closed-Won"
用户:"将Johnson交易标记为已成交"
Claude:找到该记录,更新状态字段。
        确认:"Johnson交易状态已更新为已成交"

Authentication Flow

认证流程

  1. Claude navigates to airtable.com via Playwright MCP
  2. Enters AIRTABLE_EMAIL for authentication
  3. Handles 2FA if required (notifies user via iMessage)
  4. Maintains session for database operations
  1. Claude通过Playwright MCP导航至airtable.com
  2. 输入AIRTABLE_EMAIL进行认证
  3. 若需要则处理双因素认证(通过iMessage通知用户)
  4. 维持会话以进行数据库操作

Selectors Reference

选择器参考

javascript
// Base list
'.bases-list'

// Table tabs
'.tableTabList'

// Record rows
'.dataRow'

// Cell content
'.cellContainer'

// Add record button
'[aria-label="Add record"]'

// Field input
'.cellInput'

// View menu
'.viewMenuButton'

// Create view
'.addViewButton'

// Filter button
'[aria-label="Filter"]'

// Sort button
'[aria-label="Sort"]'
javascript
// Base列表
'.bases-list'

// 表格标签
'.tableTabList'

// 记录行
'.dataRow'

// 单元格内容
'.cellContainer'

// 添加记录按钮
'[aria-label="Add record"]'

// 字段输入框
'.cellInput'

// 视图菜单
'.viewMenuButton'

// 创建视图
'.addViewButton'

// 筛选按钮
'[aria-label="Filter"]'

// 排序按钮
'[aria-label="Sort"]'

Field Types

字段类型

Text            // Single line or long text
Number          // Integer or decimal
Select          // Single or multi-select
Date            // Date with optional time
Checkbox        // Boolean true/false
Link            // Link to another record
Attachment      // Files and images
Formula         // Calculated fields
Rollup          // Aggregate linked records
Lookup          // Pull fields from linked records
Text(文本)            // 单行或多行文本
Number(数字)          // 整数或小数
Select(选择)          // 单选或多选
Date(日期)            // 可包含时间的日期
Checkbox(复选框)        // 布尔值真/假
Link(关联)            // 关联至其他记录
Attachment(附件)      // 文件和图片
Formula(公式)         // 计算字段
Rollup(汇总)          // 汇总关联记录
Lookup(查找)          // 从关联记录中提取字段

Error Handling

错误处理

  • Login Failed: Retry 3 times, notify user via iMessage
  • Session Expired: Re-authenticate automatically
  • Base Not Found: List available bases, ask user
  • Record Create Failed: Retry, check required fields
  • Formula Error: Identify syntax issue, suggest fix
  • Permission Denied: Notify user of access issue
  • 登录失败:重试3次,通过iMessage通知用户
  • 会话过期:自动重新认证
  • Base未找到:列出可用的Base,询问用户
  • 记录创建失败:重试,检查必填字段
  • 公式错误:识别语法问题,建议修复方案
  • 权限不足:通知用户存在访问问题

Self-Improvement Instructions

自我优化说明

When you learn a better way to accomplish a task with Airtable:
  1. Document the improvement in your response
  2. Suggest updating this skill file with the new approach
  3. Include specific base organization patterns
  4. Note useful formula techniques
当你掌握了使用Airtable完成任务的更优方法时:
  1. 在回复中记录该优化点
  2. 建议用新方法更新此技能文件
  3. 包含具体的Base组织模式
  4. 记录实用的公式技巧

Notes

注意事项

  • Relational database with spreadsheet interface
  • Forms for external data collection
  • Automations for workflows
  • Extensions for added functionality
  • Interfaces for custom apps
  • Sync for external data sources
  • API for advanced integrations
  • Templates for common use cases
  • 兼具电子表格界面的关系型数据库
  • 用于外部数据收集的表单
  • 用于工作流的自动化功能
  • 可扩展额外功能的扩展组件
  • 用于自定义应用的界面
  • 用于外部数据源的同步功能
  • 用于高级集成的API
  • 适用于常见场景的模板