Searching AEM Documentation by adobe/helix-website
npx skills add https://github.com/adobe/helix-website --skill 'Searching AEM Documentation'此技能可帮助您高效搜索完整的 aem.live 文档(文档和博客文章),而不会在无关页面上浪费上下文。使用提供的搜索脚本查找相关文档页面,然后使用 WebFetch 读取最相关结果的完整内容。
在以下情况下使用此技能:
在以下情况下请勿使用此技能:
block-collection-and-party)确定与您要搜索内容相关的 1-3 个具体关键词。要具体而非笼统。
好的关键词:
差的关键词:
从项目根目录执行搜索脚本:
node .claude/skills/docs-search/scripts/search.js [--all] <keyword1> [keyword2] [...]
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
选项:
--all:返回所有匹配结果(默认:限制为 10 个最相关结果)--all:返回前 10 个结果示例:
# 搜索区块装饰信息
node .claude/skills/docs-search/scripts/search.js block decoration
# 搜索元数据并返回所有结果
node .claude/skills/docs-search/scripts/search.js --all metadata
# 多词搜索
node .claude/skills/docs-search/scripts/search.js universal editor blocks
脚本返回以下结构的 JSON:
[
{
"path": "/developer/markup-sections-blocks",
"title": "Markup, Sections, Blocks, and Auto Blocking",
"description": "To design websites and create functionality, developers use the markup and DOM...",
"snippet": "Markup, Sections, Blocks, and Auto Blocking\n\nTo design websites...",
"type": "doc",
"deprecation": null,
"relevanceScore": 141
}
]
字段说明:
path:文档页面的 URL 路径title:页面标题description:简要摘要(通常约 150 个字符)- 使用此字段快速了解上下文snippet:页面内容的相关摘录,显示关键词上下文type:"doc" 或 "blog"deprecation:如果功能已弃用,则显示警告消息(否则为 null)relevanceScore:相关性分数(越高越相关)重要说明:
description 字段提供了页面的最佳快速摘要snippet 显示关键词上下文,但可能不全面搜索结果为您提供了概述。要获取详细信息,请使用 WebFetch 读取完整页面:
WebFetch: https://www.aem.live{path}
最佳实践: 从最相关的前 2-3 个结果开始,使用 WebFetch 完整阅读它们,然后决定是否需要更多信息。
如果任何结果的 deprecation 字段有内容,请告知用户该功能已弃用,并包含弃用消息。建议他们查看排名更高(未弃用)的替代方案。
这些常见词在搜索中被忽略:
索引文件在本地缓存 24 小时,位于 .claude/skills/docs-search/.cache/。这可以加快后续搜索速度。
用户请求: "How do I decorate blocks in aem.live?"
好的方法:
node .claude/skills/docs-search/scripts/search.js block decorationhttps://www.aem.live/developer/markup-sections-blocks差的方法:
用户请求: "I need to add metadata to my pages"
好的方法:
node .claude/skills/docs-search/scripts/search.js metadata差的方法:
--all用户请求: "How do I use folder mapping?"
搜索结果:
[
{
"path": "/developer/authoring-path-mapping",
"title": "Path mapping for AEM authoring",
"relevanceScore": 51,
"deprecation": null
},
{
"path": "/developer/folder-mapping",
"title": "Folder Mapping",
"relevanceScore": 34.5,
"deprecation": "Please contact us if you have a use case for folder mapping..."
}
]
好的回应: "我找到了关于文件夹映射的信息,但此功能已弃用。弃用通知说:'如果您有文件夹映射的用例,请联系我们...'。当前推荐的方法是AEM 创作路径映射(顶部结果)。让我为您阅读该文档。"
差的回应:
每周安装次数
0
仓库
GitHub 星标数
40
首次出现时间
1970年1月1日
安全审计
This skill helps you efficiently search the complete aem.live documentation (docs and blog posts) without wasting context on irrelevant pages. Use the provided search script to find relevant documentation pages, then use WebFetch to read the full content of the most relevant results.
Use this skill when:
Do NOT use this skill when:
block-collection-and-party instead)Determine 1-3 specific keywords related to what you're searching for. Be specific rather than general.
Good keywords:
Poor keywords:
Execute the search script from the project root:
node .claude/skills/docs-search/scripts/search.js [--all] <keyword1> [keyword2] [...]
Options:
--all: Return all matching results (default: limit to 10 most relevant)--all: Returns top 10 resultsExamples:
# Search for block decoration info
node .claude/skills/docs-search/scripts/search.js block decoration
# Search for metadata with all results
node .claude/skills/docs-search/scripts/search.js --all metadata
# Multi-word search
node .claude/skills/docs-search/scripts/search.js universal editor blocks
The script returns JSON with the following structure:
[
{
"path": "/developer/markup-sections-blocks",
"title": "Markup, Sections, Blocks, and Auto Blocking",
"description": "To design websites and create functionality, developers use the markup and DOM...",
"snippet": "Markup, Sections, Blocks, and Auto Blocking\n\nTo design websites...",
"type": "doc",
"deprecation": null,
"relevanceScore": 141
}
]
Field Explanations:
path: URL path to the documentation pagetitle: Page titledescription: Brief summary (usually ~150 chars) - use this for quick contextsnippet: Relevant excerpt from the page content showing keyword contexttype: "doc" or "blog"deprecation: Warning message if feature is deprecated (or null)relevanceScore: Relevance score (higher = more relevant)Important Notes:
description field provides the best quick summary of the pagesnippet shows keyword context but may not be comprehensiveThe search results give you an overview. To get detailed information, use WebFetch to read the full page:
WebFetch: https://www.aem.live{path}
Best Practice: Start with the top 2-3 most relevant results, read them fully with WebFetch, then decide if you need more.
If any results have a deprecation field with content, inform the user that the feature is deprecated and include the deprecation message. Suggest they look at higher-ranked (non-deprecated) alternatives.
These common words are ignored in searches:
Index files are cached locally for 24 hours in .claude/skills/docs-search/.cache/. This speeds up subsequent searches.
User Request: "How do I decorate blocks in aem.live?"
Good Approach:
node .claude/skills/docs-search/scripts/search.js block decorationhttps://www.aem.live/developer/markup-sections-blocksPoor Approach:
User Request: "I need to add metadata to my pages"
Good Approach:
node .claude/skills/docs-search/scripts/search.js metadataPoor Approach:
--all when you need comprehensive coverageUser Request: "How do I use folder mapping?"
Search Results:
[
{
"path": "/developer/authoring-path-mapping",
"title": "Path mapping for AEM authoring",
"relevanceScore": 51,
"deprecation": null
},
{
"path": "/developer/folder-mapping",
"title": "Folder Mapping",
"relevanceScore": 34.5,
"deprecation": "Please contact us if you have a use case for folder mapping..."
}
]
Good Response: "I found information about folder mapping, but this feature is deprecated. The deprecation notice says: 'Please contact us if you have a use case for folder mapping...'. The current recommended approach is Path mapping for AEM authoring (the top result). Let me read that documentation for you instead."
Poor Response:
Weekly Installs
0
Repository
GitHub Stars
40
First Seen
Jan 1, 1970
Security Audits
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
109,600 周安装