agent-native-docs
它能做什么
这项技能展示智能体如何搜索随框架安装的文档和示例代码,从而使用正确的 API。适合基于 Agent-Native 框架进行开发的开发者。
适用场景
- ✓当你开始一项使用 Agent-Native 核心 API 的功能的时候。
- ✓当你需要某项框架功能的使用示例的时候。
- ✓当你需要与已安装框架版本相符的文档的时候。
技能链接
https://github.com/BuilderIO/agent-native/blob/main/packages/core/docs/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“请使用框架的操作添加一项功能,并先检查已安装的文档,确保与此版本相符。”
每周 5 个新技能,1 分钟读完。
工作原理
智能体搜索随已安装框架一同打包的文档和源代码,先进行范围较广的搜索,然后阅读它所需要的具体页面或示例。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Agent-Native Docs Lookup
Rule
Before implementing non-trivial Agent-Native functionality, read the
version-matched docs installed with @agent-native/core. When implementation
examples or template patterns matter, inspect the packaged source corpus too.
How
- Start from the generated app root.
- Start cross-corpus discovery with
pnpm action framework-search --pattern "<feature>". - Use
--scope docsor--scope sourceand--mode glob,--mode sql-like, or--mode regexwhen the question needs a narrower pattern. - Read a specific page with
pnpm action docs-search --slug <slug>. - Search source examples with
pnpm action source-search --query "<pattern>"or read a file withpnpm action source-search --path <path>. If it reports that template source is unavailable, install the matching corpus package:pnpm add -D @agent-native/core-corpus@<installed-core-version>. - If the action runner is unavailable, search
node_modules/@agent-native/core/docsdirectly withrg. Searchnode_modules/@agent-native/core-corpus/corpusfor source examples. - For app-specific rules, also read the app's own
AGENTS.mdand any relevant.agents/skills/<name>/SKILL.md.
Useful Slugs
| Need | Slugs |
|---|---|
| Actions and typed client calls | actions, client |
| SQL, auth, access, sharing | database, authentication, security, sharing |
| UI state visible to the agent | context-awareness |
| Headless and chat-first apps | pure-agent-apps, agent-surfaces, using-your-agent |
| Automations and schedules | automations, recurring-jobs |
| Cross-app and external agents | a2a-protocol, external-agents, mcp-protocol, mcp-apps |
| Skills and instructions | skills-guide, writing-agent-instructions |
Don't
- Do not rely on memory for framework APIs when local package docs are present.
- Do not add custom REST wrappers for normal app data before reading
actions. - Do not add inline LLM calls before reading
using-your-agentandagent-surfaces.
常见问题
为什么不依赖记忆中的框架 API?
随软件包安装的文档与应用所用的确切版本相符。
如果缺少源代码示例怎么办?
技能说明应为已安装的核心版本安装对应的语料包。
智能体首先搜索什么?
先使用功能名称进行跨语料的搜索,然后再进行范围更窄的搜索。
详情
作者的原始描述
How to look up version-matched Agent-Native framework docs and source in node_modules. Use before coding against @agent-native/core APIs or advanced features.
repo: BuilderIO/agent-native
热度
- GitHub 星标
- 7.6k
- 排名
- #13193
- 许可证
- MIT
- 更新时间
- 2026/11/2
评论
- …