跳到正文
Skillpedia
邮件与消息17k · #10745

agent-deep-links

它能做什么

这个技能帮助 AI 智能体制作可以在应用中打开特定位置的链接,常用于在 Slack 中分享。适合希望同事点击一次就能进入正确线程、文件或设置页面的人。

适用场景

  • ✓当你想在 Slack 消息中加入一个可以打开特定文件或文件夹的链接时。
  • ✓当你需要一个可以在编程工具中打开某个对话或线程的链接时。
  • ✓当某种链接格式不受支持时,你希望有清楚的替代方案,而不是失效的链接时。

技能链接

https://github.com/composio-community/awesome-codex-skills/blob/master/agent-deep-links/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/composio-community/awesome-codex-skills/blob/master/agent-deep-links/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我制作一个适合 Slack 的链接,可以在 Cursor 中打开我们的项目文件夹。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会检查该应用支持哪种链接格式,并用正确的地址生成链接。如果应用不支持该链接,它会改为提供简单的文本路径和命令。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Agent Deep Links

Overview

Use this skill when a user asks for clickable links that should open directly in an app (usually from Slack). This includes verifying whether a target app supports deep links at all, selecting the right URL shape, and providing fallbacks when deep links are unsupported.

Workflow

  1. Identify target app + target object:
    • Thread/conversation
    • File/folder
    • Settings/new window
  2. Read references/deep-link-matrix.md for known-good link formats and support level.
  3. If support is unknown, verify locally before sending:
    • Check URL schemes in the app bundle:
      /usr/libexec/PlistBuddy -c 'Print :CFBundleURLTypes' /Applications/<App>.app/Contents/Info.plist
      
    • Smoke test launch behavior:
      open '<scheme>://...'
      
  4. Construct Slack-safe link syntax:
    • <url|label>
  5. If unsupported or uncertain, send a fallback:
    • Plain path + command
    • Documented CLI open command
    • Statement that no official deep-link format is known

Output Rules

  • Prefer absolute paths for file/folder links.
  • Keep labels short and action-oriented (Open in Cursor, Open in Codex).
  • Do not claim deep-link support unless it is in the matrix or just verified.
  • For uncertain app routes, clearly mark as inferred/experimental.

Common Templates

  • Codex thread:
    • <codex://threads/<thread-uuid>|Open in Codex>
  • Cursor file:
    • <cursor://file/<absolute-path>:<line>:<column>|Open in Cursor>
  • VS Code file:
    • <vscode://file/<absolute-path>:<line>:<column>|Open in VS Code>
  • VS Code Insiders file:
    • <vscode-insiders://file/<absolute-path>:<line>:<column>|Open in VS Code Insiders>

Use references/deep-link-matrix.md for the full cross-app matrix and support notes.

常见问题

每个应用都支持这些链接吗?

不一定。该技能会对照已知链接格式的列表,并告诉你支持情况未知或缺失的地方。

智能体如何测试链接?

它可以检查你电脑上应用注册的链接类型,并在发送前尝试打开链接。

Slack 使用什么格式?

它使用带有简短标签的 Slack 链接格式,让链接在消息中显示得更加清楚。

详情

作者的原始描述

Build, validate, and troubleshoot deep links for Codex, Cursor, VS Code, Visual Studio, and similar tools. Use when users ask for clickable links (especially in Slack) that open threads, files, folders, or app settings.

repo: composio-community/awesome-codex-skills

热度

GitHub 星标
17k
排名
#10745
许可证
—
更新时间
2026/7/25

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能