跳到正文
Skillpedia
通用编程7.6k · #13193

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。它会读取这个技能并按说明操作。

可直接粘贴的消息

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

可以这样问 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

  1. Start from the generated app root.
  2. Start cross-corpus discovery with pnpm action framework-search --pattern "<feature>".
  3. Use --scope docs or --scope source and --mode glob, --mode sql-like, or --mode regex when the question needs a narrower pattern.
  4. Read a specific page with pnpm action docs-search --slug <slug>.
  5. Search source examples with pnpm action source-search --query "<pattern>" or read a file with pnpm 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>.
  6. If the action runner is unavailable, search node_modules/@agent-native/core/docs directly with rg. Search node_modules/@agent-native/core-corpus/corpus for source examples.
  7. For app-specific rules, also read the app's own AGENTS.md and 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-agent and agent-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

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能