跳到正文
TakoAPI
返回技能列表

carddav-contacts

由 jcromero 提供

DevOps & Cloud
910下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Sync and manage CardDAV contacts (Google, iCloud, Nextcloud, etc.) using vdirsyncer + khard.

描述

该技能的功能

Syncs CardDAV contacts from Google, iCloud, Nextcloud, and similar providers to local .vcf files using vdirsyncer, then manages them via khard's CLI interface.

Keeps contacts locally accessible and scriptable without requiring a GUI or browser, making them composable with other CLI tools.

何时使用

  • Look up a contact's phone number from the terminal
  • Search contacts by name across multiple address books
  • Edit or create contacts in a text-based editor
  • Move contacts between address books (personal, work)
  • Extract emails or phone numbers for use in scripts

示例工作流

输入

User asks: find John's email address

智能体
  1. 1

    Run vdirsyncer sync to pull latest contacts from the remote CardDAV server

  2. 2

    Run khard email "john" to extract email addresses for matching contacts

  3. 3

    Parse the tab-separated output to identify the correct entry

输出

john.doe@example.com

前置要求

  • Google App Password (if using Google Contacts with 2FA enabled)
  • CardDAV account credentials (Google, iCloud, Nextcloud, or other provider)

安装

clawhub install jcromero/carddav-contacts

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接