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。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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
- Identify target app + target object:
- Thread/conversation
- File/folder
- Settings/new window
- Read
references/deep-link-matrix.mdfor known-good link formats and support level. - 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>://...'
- Check URL schemes in the app bundle:
- Construct Slack-safe link syntax:
<url|label>
- 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.
热度
- GitHub 星标
- 17k
- 排名
- #10745
- 许可证
- —
- 更新时间
- 2026/7/25
评论
- …