Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

automating-contacts自动联系

Agent Skill

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

总安装

372

周安装

16

GitHub Stars

28

下载量

131
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/spillwavesolutions/automating-mac-apps-plugin --skill automating-contacts

简介

用于查找、检索和筛选联系人自动化相关信息,适合快速定位候选结果。

  • 适用于 macOS 通讯录查询、CRUD 操作和分组管理。
  • 使用时需加载 automating-mac-apps 获取权限和 shell 命令支持。
  • 安装方式:通过 npx skills add 从 GitHub 仓库安装,支持 Codex、Claude、Cursor、Gemini CLI。
  • 建议确认权限范围和维护状态,避免越权访问用户数据。

SKILL.md

Automating Contacts (JXA-first, AppleScript discovery)

Relationship to Other Skills

  • Standalone for Contacts: Use this skill for Contacts-specific operations (querying, CRUD, groups).
  • Reuse automating-mac-apps for: TCC permissions setup, shell command helpers, UI scripting fallbacks, and ObjC bridge patterns.
  • Integration: Load both skills when combining Contacts automation with broader macOS scripting.
  • PyXA Installation: To use PyXA examples in this skill, see the installation instructions in automating-mac-apps skill (PyXA Installation section).

Core Framing

  • Contacts dictionary is AppleScript-first; discover there, implement in JXA
  • Object specifiers: read with methods (name(), emails()), write with assignments
  • Multi-value fields (emails, phones, addresses) are elements; use constructor + .push()
  • Group membership: add... to command or .people.push; handle duplicates defensively
  • TCC permissions required: running host must have Contacts access

Workflow (default)

  1. Inspect the Contacts dictionary in Script Editor (JavaScript view).
  2. Prototype minimal AppleScript to validate verbs; port to JXA with specifier reads/writes.
  3. Use .whose for coarse filtering; fall back to hybrid (coarse filter + JS refine) when needed.
  4. Create records with proxy + make, then assign primitives and push multi-values; Contacts.save() to persist.
  5. Verify persistence: check person.id() exists after save; handle TCC permission errors.
  6. Manage groups after person creation; guard against duplicate membership with existence checks.
  7. For photos or broken bridges, use ObjC/clipboard fallback; for heavy queries, batch read or pre-filter.
  8. Test operations: run→check results→fix errors in iterative loop.

Validation Checklist

  • Contacts permissions granted (System Settings > Privacy & Security > Contacts)
  • Dictionary inspected and verbs validated in Script Editor
  • AppleScript prototype runs without errors
  • JXA port handles specifiers correctly
  • Multi-value fields pushed to arrays properly
  • Groups existence checked before creation
  • Operations saved and verified with .id() checks
  • Error handling wraps all operations

Quickstart (upsert + group)

const Contacts = Application("Contacts");
const email = "ada@example.com";
try {
  const existing = Contacts.people.whose({ emails: { value: { _equals: email } } })();
  const person = existing.length ? existing[0] : Contacts.Person().make();
  person.firstName = "Ada";
  person.lastName = "Lovelace";

  // Handle multi-value email
  const work = Contacts.Email({ label: "Work", value: email });
  person.emails.push(work);
  Contacts.save();

  // Handle groups with error checking
  let grp;
  try {
    grp = Contacts.groups.byName("VIP");
    grp.name(); // Verify exists
  } catch (e) {
    grp = Contacts.Group().make();
    grp.name = "VIP";
  }
  Contacts.add(person, { to: grp });
  Contacts.save();
  console.log("Contact upserted successfully");
} catch (error) {
  console.error("Contacts operation failed:", error);
}

Pitfalls

  • TCC Permissions: Photos/attachments require TCC + Accessibility; use clipboard fallback if blocked
  • Yearless birthdays: Not cleanly scriptable; use full dates
  • Advanced triggers: Delegate geofencing to Shortcuts app
  • Heavy queries: Batch read or pre-filter to avoid timeouts

When Not to Use

  • Non-macOS platforms (use platform-specific APIs)
  • Simple AppleScript-only solutions (skip JXA complexity)
  • iCloud sync operations (use native Contacts framework)
  • User-facing apps (use native Contacts framework)
  • Cross-platform contact management (use CardDAV or vCard APIs)

What to load

  • JXA basics & specifiers: automating-contacts/references/contacts-basics.md
  • Recipes (query, create, multi-values, groups): automating-contacts/references/contacts-recipes.md
  • Advanced (hybrid filters, clipboard image, TCC, date pitfalls): automating-contacts/references/contacts-advanced.md
  • Dictionary & type map: automating-contacts/references/contacts-dictionary.md
  • PyXA API Reference (complete class/method docs): automating-contacts/references/contacts-pyxa-api-reference.md

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

33.96%
按下载量换算44

Claude

30.01%
按下载量换算39

Cursor

18.59%
按下载量换算24

Gemini CLI

8.77%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/spillwavesolutions/automating-mac-apps-plugin --skill automating-contacts 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills