Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计通过

tab-accordion标签手风琴

Agent Skill

tab-accordion 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

5,191

周安装

223

GitHub Stars

公开资料未说明

下载量

1,820
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:tab-accordion(标签手风琴)
来源仓库:https://github.com/kostja94/tab-accordion
安装命令:
openclaw skills install tab-accordion
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install tab-accordion

简介

tab-accordion 帮助用户查找与优化选项卡或手风琴组件的实现方案。

  • 适用于内容组织密集型页面,如 FAQ、设置面板或文档目录导航设计。
  • 提供可访问性指南与状态流转示例,确保残障用户也能顺畅操作。
  • 使用前应评估当前页面结构与用户行为路径,避免过度嵌套影响加载性能。
  • 建议配合 A/B 测试验证不同布局的转化率,选择最优交互范式落地实施。

SKILL.md

name
tab-accordion
description
When the user wants to add or optimize tab or accordion components for content organization. Also use when the user mentions "tab component," "accordion," "expandable content," "collapsible sections," "tabbed content," "FAQ accordion," "how-to tabs," "horizontal tabs," "vertical accordion," "content in tabs," "hidden content SEO," "details summary," or "disclosure widget." For FAQ content, use faq-page-generator.
metadata
version
1.1.1

Components: Tab & Accordion

Guides tab and accordion implementation for organizing content without excessive vertical space. Two layout patterns: vertical accordion (FAQ-style, stacked) and horizontal tabs (how-to style, side-by-side). Both improve UX by reducing scroll; SEO impact depends on implementation and content placement.

When invoking: On first use, if helpful, open with 1–2 sentences on what this skill covers and why it matters, then provide the main output. On subsequent use or when the user asks to skip, go directly to the main output.

Layout Patterns

PatternLayoutBest forExample
Vertical accordionStacked; expand/collapse one at a timeFAQ, Q&A, long lists, objection handling"How do I return?" → answer below
Horizontal tabsSide-by-side labels; one panel visibleHow-to steps, product specs, pricing tiers, comparisons"Step 1 \Step 2 \Step 3"

Mobile: Vertical accordion works well on small screens (natural scroll). Horizontal tabs can feel cramped—consider accordion, dropdown, or full-width tab bar that scrolls.

SEO: Is It Friendly?

Google's position: Google indexes and ranks content inside tabs and accordions fully; hidden content receives full weight (confirmed since 2016 mobile-first indexing). Gary Illyes: "we index the content, its weight is fully considered for ranking."

Practical nuance: Some tests show always-visible content outperforms hidden content in rankings. Reserve tabs/accordions for secondary content; place primary, keyword-critical content in visible areas.

Content typePlacement
Primary / ranking-focusedVisible above fold; not hidden
Secondary / supportingTabs, accordions acceptable
FAQ answersAccordion OK; first item expanded by default; see faq-page-generator

Indexing Requirements

Content must be in the DOM on page load. Google does not simulate user clicks; it cannot "click" tabs to discover content.

ImplementationIndexed?
All tab content in HTML at load✅ Yes
Content loaded via AJAX on tab click❌ No

Recommendation: Server-render all tab content in the initial HTML; use CSS/JS only to show/hide. Prefer <details>/<summary> or equivalent server-rendered markup. See rendering-strategies for SSR, SSG, CSR and crawler visibility.

Horizontal Tabs: More Tabs, More Content?

Technically: Yes—if all content is in the DOM at load, more tabs = more indexable content. Mobile-first indexing gives full weight to tabbed content in HTML.

Strategically: Not always. Signal dilution occurs when many tabs = many different topics on one page. Google may struggle to understand which query the page should rank for; topical authority and keyword focus get spread thin.

ScenarioUse tabs?Alternative
Same topic (How-to Step 1/2/3; product specs: dimensions, materials, shipping)✅ Yes
Different topics (Service A, Service B, Portfolio, Blog)❌ NoSeparate URLs per topic; see content-strategy for pillar/cluster

When many horizontal tabs work: All tabs semantically related to one query (e.g., one how-to, one product). When to use separate pages: Each tab is a distinct topic deserving its own URL, crawl, and ranking opportunity.

Implementation

Native HTML (Recommended)

Use <details> and <summary>—no JavaScript required; accessible; crawlable.

<details open>
  <summary>First question (expanded by default)</summary>
  <p>Answer content here.</p>
</details>
<details>
  <summary>Second question</summary>
  <p>Answer content here.</p>
</details>
  • First tab/accordion: Add open attribute so it's expanded by default
  • <summary>: Must be first child of <details>; acts as toggle
  • Progressive enhancement: Style with CSS; add JS only if needed (e.g., close others when one opens)

JavaScript-Dependent Tabs

If using JS-only tabs: ensure all tab content is in the DOM at page load, not loaded via AJAX on click. Google does not simulate tab clicks. Prefer <details>/<summary> or server-rendered HTML. See rendering-strategies.

Avoid

  • Content loaded only after user click (AJAX, lazy-loaded via fetch)—crawlers will not index it
  • display: none or visibility: hidden for primary content—Google may treat differently
  • Many tabs with unrelated topics on one page—causes signal dilution; use separate URLs instead

Content Best Practices

PracticePurpose
First item expandedEnsures primary content visible on load; better for SEO and UX
Descriptive headers<summary> / tab labels should clearly describe content; include keywords naturally
Logical structureH2/H3 for sections; supports snippet extraction; see featured-snippet
Answer-firstFor FAQ: 40–60 words direct answer; then detail; see faq-page-generator

Use Cases

Use caseFormatLayoutNotes
FAQAccordionVerticalFAQPage schema; first Q expanded; see faq-page-generator
How-to stepsTabsHorizontalStep 1, Step 2, Step 3; sequential flow
Product specsTabsHorizontalDimensions, materials, shipping—secondary to hero
Long guidesAccordionVerticalCollapsible sections; see toc-generator
Pricing tiersTabsHorizontalCompare plans; primary CTA visible
Objection handlingAccordionVertical"What about X?"—supporting conversion

Schema & Rich Results

  • FAQ (vertical accordion): FAQPage JSON-LD; schema must match on-page content exactly; see schema-markup, faq-page-generator
  • How-to (horizontal tabs): HowTo schema for step-by-step content; see schema-markup, featured-snippet
  • Other tabs: No specific schema; ensure semantic HTML (headings, structure)

UX & Accessibility

  • Visual indicator: Arrow, plus/minus, or chevron to show expand/collapse state
  • Keyboard: <details>/<summary> natively keyboard-accessible
  • Core Web Vitals: Avoid layout shift (CLS) when expanding; reserve space or animate smoothly
  • Mobile: Touch targets ≥44×44px; vertical accordion often better than horizontal tabs on small screens (tabs can be cramped; accordion scrolls naturally)

Pre-Implementation Checklist

  • [ ] All tab/accordion content in DOM at page load (no AJAX on click)
  • [ ] Primary ranking content visible, not hidden
  • [ ] First tab/accordion expanded by default
  • [ ] Using <details>/<summary> or equivalent server-rendered HTML
  • [ ] Headers descriptive; keywords natural
  • [ ] Tabs share one topic (avoid signal dilution); if different topics, consider separate pages
  • [ ] For FAQ: FAQPage schema matches content

Related Skills

  • faq-page-generator: FAQ structure, answer length, schema; accordion is common FAQ UI
  • featured-snippet: Answer-first, H2/H3; content in accordions can be extracted
  • schema-markup: FAQPage for FAQ accordions; HowTo for step-by-step tabs
  • content-strategy: Pillar/cluster architecture; when to use separate pages vs tabs
  • toc-generator: Collapsible TOC; similar disclosure pattern
  • content-optimization: Word count, structure, multimedia in expandable sections
  • rendering-strategies: SSR, SSG, CSR; content in initial HTML for crawlers

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

82.99%
按下载量换算1,510

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills