faq-page
它能做什么
用来创建一个常见问题(FAQ)页面,带有可折叠的板块、搜索功能和分类筛选。它适合整理并展示大家经常问的问题及答案。
适用场景
- ✓当你需要为网站或 App 做一个帮助页面时。
- ✓如果需求中提到“FAQ”“帮助中心”或“支持页面”。
- ✓当你想整理经常被问到的问题及其答案时。
技能链接
https://github.com/nexu-io/open-design/blob/main/skills/faq-page/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“帮我做一个修图 App 的 FAQ 页面,分类包括“账户”“编辑”和“订阅”。”
每周 5 个新技能,1 分钟读完。
工作原理
AI 会生成一个 HTML 页面,包含标题、用来快速查找问题的搜索栏、按主题筛选问题的按钮,以及一个问题列表。点击问题后,答案才会展开显示。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
FAQ Page Skill
Produce a single FAQ page with collapsible accordion sections, search, and category filtering.
Workflow
- Read the active DESIGN.md (injected above). Use the component tokens for interactive elements (accordion headers, search input, category pills).
- Pick the domain from the brief (e.g., SaaS product, e-commerce, service)
and write 12–18 real FAQ entries across 3–4 categories.
- Edge cases:
- If the brief provides fewer than 8 FAQs, ask for more content or generate realistic questions based on the domain.
- For 1–5 FAQs, skip categories and search; show a simple list.
- For very long answers (>100 words), break into paragraphs or bullet points to maintain readability.
- Edge cases:
- Sections, in order:
- Header — page title ("Frequently Asked Questions" or "Help Center"), optional subtitle (1 sentence explaining what users can find here).
- Search bar — prominent search input with placeholder text and icon. Functional JS to filter questions in real-time.
- Category filters — 3–4 pill-style buttons to filter by category (e.g., "Billing", "Account", "Technical", "General"). "All" selected by default.
- FAQ accordion — collapsible question/answer pairs:
- Question as clickable header with expand/collapse icon (chevron or plus/minus).
- Answer hidden by default, expands on click with smooth animation.
- Each entry has
data-categoryattribute for filtering.
- Footer CTA — "Still have questions?" section with contact link or support email.
- Write a single HTML document:
<!doctype html>through</html>, CSS and JS inline.- Accordion uses semantic HTML (
<details>and<summary>for progressive enhancement, or custom JS with proper ARIA attributes). - Search filters questions by matching text in question or answer.
- Category filters show/hide questions based on
data-category. - Smooth transitions for expand/collapse (max-height or grid-template-rows).
data-od-idon header, search, categories, accordion container, footer.
- Self-check:
- Questions are specific and realistic (not generic placeholders).
- Answers are concise (2–4 sentences) but complete.
- Keyboard navigation works (Tab through questions, Enter to expand).
- Search is case-insensitive and filters by matching text.
- Only one accordion item expanded at a time (optional, depends on UX preference).
- Mobile-friendly (accordion headers are tappable, search is usable).
Output contract
Emit between <artifact> tags:
<artifact identifier="faq-page" type="text/html" title="FAQ Page">
<!doctype html>
<html>...</html>
</artifact>
One sentence before the artifact, nothing after.
Example questions by category
Billing
- How do I update my payment method?
- What payment methods do you accept?
- Can I get a refund?
- How do I cancel my subscription?
Account
- How do I reset my password?
- Can I change my email address?
- How do I delete my account?
- What happens to my data after I cancel?
Technical
- What browsers do you support?
- Is there a mobile app?
- How do I export my data?
- What are your API rate limits?
General
- What is [Product Name]?
- How do I get started?
- Do you offer customer support?
- Where can I find your terms of service?
常见问题
什么是 FAQ 页面?
它是一个汇总产品或服务最常见问题及答案的页面,方便用户快速找到自己需要的信息。
问题是怎么组织的?
问题会按类别分组(比如“账户”“账单”“支持”),你可以按类别筛选,也可以通过关键词搜索。
答案会直接显示出来吗?
不会。答案默认是隐藏的,只有用户点击问题后才会展开。这样页面看起来更整洁,也更容易阅读。
详情
作者的原始描述
A Frequently Asked Questions (FAQ) page with collapsible accordion sections, search functionality, and category filtering. Use when the brief asks for "FAQ", "help center", "questions", or "support page".
repo: nexu-io/open-design
热度
- GitHub 星标
- 101k
- 排名
- #1163
- 许可证
- Apache-2.0
- 更新时间
- 2026/10/15
评论
- …