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

displaying-timelines显示时间线

Agent Skill

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

总安装

606

周安装

25

GitHub Stars

350

下载量

198
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:displaying-timelines(显示时间线)
来源仓库:https://github.com/ancoleman/ai-design-components
仓库路径:skills/displaying-timelines
安装命令:
npx skills add https://github.com/ancoleman/ai-design-components --skill displaying-timelines
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/ancoleman/ai-design-components --skill displaying-timelines

简介

系统化创建时间线与活动组件的开发框架支持。

  • 支持垂直时间线、Gantt 图表与日历界面构建。
  • 提供可访问性与实时更新实现的决策指导。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。
  • 适用于社交动态、审计日志与项目排期等场景。
  • displaying-timelines 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Displaying Timelines & Activity Components

Purpose

This skill enables systematic creation of timeline and activity components, from simple vertical timelines to complex interactive Gantt charts. It provides clear decision frameworks based on use case and data characteristics, ensuring optimal performance, real-time updates, and accessible implementations.

When to Use

Activate this skill when:

  • Creating activity feeds (social, notifications, audit logs)
  • Displaying timelines (vertical, horizontal, interactive)
  • Building Gantt charts or project schedules
  • Implementing calendar interfaces (month, week, day views)
  • Showing chronological events or historical data
  • Handling real-time activity updates
  • Requiring timestamp formatting (relative, absolute)
  • Ensuring timeline accessibility or responsive behavior

Quick Decision Framework

Select component type based on use case:

Social Activity        → Activity Feed (infinite scroll, reactions)
System Events          → Audit Log (searchable, exportable, precise timestamps)
User Notifications     → Notification Feed (read/unread, grouped by date)
Historical Events      → Vertical Timeline (milestones, alternating sides)
Project Planning       → Gantt Chart (dependencies, drag-to-reschedule)
Scheduling             → Calendar Interface (month/week/day views)
Interactive Roadmap    → Horizontal Timeline (zoom, pan, filter)

For detailed selection criteria, reference references/component-selection.md.

Core Implementation Patterns

Activity Feeds

Social Feed Pattern:

  • User avatar + name + action description
  • Relative timestamps ("2 hours ago")
  • Reactions and comments
  • Infinite scroll with pagination
  • Real-time updates via WebSocket
  • Reference references/activity-feeds.md

Notification Feed Pattern:

  • Grouped by date sections
  • Read/unread states with indicators
  • Mark all as read functionality
  • Filter by notification type
  • Action buttons (view, dismiss)
  • Reference references/notification-feeds.md

Audit Log Pattern:

  • System events with precise timestamps
  • User action tracking
  • Searchable with advanced filters
  • Exportable (CSV, JSON)
  • Security-focused display
  • Reference references/audit-logs.md

Example: examples/social-activity-feed.tsx

Timeline Visualizations

Vertical Timeline:

  • Events stacked chronologically
  • Connecting line with marker dots
  • Date markers and event cards
  • Optional alternating sides
  • Best for: Historical events, project milestones
  • Reference references/vertical-timelines.md

Horizontal Timeline:

  • Events along horizontal axis
  • Scroll or zoom to navigate
  • Density varies by zoom level
  • Best for: Project timelines, roadmaps
  • Reference references/horizontal-timelines.md

Interactive Timeline:

  • Click events for detail view
  • Filter by category/type
  • Zoom in/out controls
  • Pan and scroll navigation
  • Best for: Data exploration, rich interactivity
  • Reference references/interactive-timelines.md

Example: examples/milestone-timeline.tsx

Gantt Charts

Project Planning Features:

  • Tasks as horizontal bars
  • Dependencies with arrows
  • Critical path highlighting
  • Drag to reschedule
  • Progress indicators
  • Milestone markers (diamonds)
  • Resource allocation
  • Today marker line
  • Zoom levels (day/week/month/year)

To generate Gantt chart data:

python scripts/generate_gantt_data.py --tasks 50 --dependencies auto

Reference references/gantt-patterns.md for implementation details.

Example: examples/project-gantt.tsx

Calendar Interfaces

Month View:

  • Traditional calendar grid
  • Events in date cells
  • Click to create/edit
  • Color-coded categories
  • Multi-calendar overlay

Week View:

  • Time slots (hourly)
  • Events as draggable blocks
  • Resize to change duration
  • Multiple calendars overlay

Day/Agenda View:

  • Detailed daily schedule
  • List format with time duration
  • Location and attendees
  • Scrollable timeline

Reference references/calendar-patterns.md for all views.

Example: examples/calendar-scheduler.tsx

Timestamp Formatting

Essential timestamp patterns:

Relative (Recent Events):

  • "Just now" (<1 min)
  • "5 minutes ago"
  • "3 hours ago"
  • "Yesterday at 3:42 PM"

Absolute (Older Events):

  • "Jan 15, 2025"
  • "January 15, 2025 at 3:42 PM"
  • ISO 8601 for APIs

Implementation Considerations:

  • Timezone handling (display user's local time)
  • Locale-aware formatting
  • Hover for precise timestamp
  • Auto-update relative times

To format timestamps consistently:

node scripts/format_timestamps.js --locale en-US --timezone auto

Reference references/timestamp-formatting.md for complete patterns.

Real-Time Updates

Live Activity Feed:

  • WebSocket or SSE for new events
  • Smooth insertion animation
  • "X new items" notification banner
  • Click to load new items
  • Optimistic updates for user actions

Implementation Pattern:

  1. Show user action immediately
  2. Update timestamp to "Just now"
  3. Send to server in background
  4. Rollback if error occurs

Reference references/real-time-updates.md for WebSocket patterns.

Example: examples/realtime-activity.tsx

Performance Optimization

Critical performance thresholds:

<100 events       → Client-side rendering, no virtualization
100-1,000 events  → Virtual scrolling recommended
1,000+ events     → Virtual scrolling + server pagination
Real-time         → Debounce updates, batch insertions

Optimization Strategies:

  • Memoize timeline item components
  • Lazy load event details
  • Virtual scrolling for long timelines
  • Debounce real-time updates (batch every 500ms)
  • Optimize timestamp calculations

To benchmark performance:

node scripts/benchmark_timeline.js --events 10000

Reference references/performance-optimization.md for details.

Accessibility Requirements

Essential WCAG compliance:

Semantic HTML:

  • Use <ol> or <ul> for timelines
  • Proper heading hierarchy
  • Semantic time elements

ARIA Patterns:

  • role="feed" for activity feeds
  • role="article" for timeline items
  • aria-label for timestamps
  • aria-busy during loading

Keyboard Navigation:

  • Tab through interactive items
  • Arrow keys for timeline navigation
  • Enter/Space to expand items
  • Skip to latest/oldest controls

Screen Reader Support:

  • Announce new items in feeds
  • Descriptive timestamp labels
  • Progress updates for Gantt charts

To validate accessibility:

node scripts/validate_timeline_accessibility.js

Reference references/accessibility-patterns.md for complete requirements.

Responsive Design

Three proven strategies:

1. Stack Vertically (Mobile)

  • Convert horizontal to vertical
  • Maintain chronological order
  • Adjust spacing and font sizes

2. Simplify Display

  • Show essential info only
  • Expand for details
  • Reduce visual complexity

3. Horizontal Scroll

  • Keep layout intact
  • Enable touch scrolling
  • Add scroll indicators

Reference references/responsive-strategies.md for implementations.

Example: examples/responsive-timeline.tsx

Library Recommendations

Timeline: react-chrono (Flexible)

Best for timeline visualizations with rich content:

  • Horizontal, vertical, alternating layouts
  • Image and video support
  • Custom item rendering
  • TypeScript support
  • Responsive out of the box
npm install react-chrono

See examples/react-chrono-timeline.tsx for setup.

Alternative: react-vertical-timeline-component

  • Simple, clean vertical timelines
  • Lightweight (~10KB)
  • Icon support
  • Good for basic timelines

Gantt Charts: SVAR React Gantt

Best for project management:

  • Modern, dependency-free
  • Drag-and-drop tasks
  • Dependencies and milestones
  • Customizable appearance
  • TypeScript ready
npm install @svar/gantt

Enterprise Alternative: Bryntum Gantt

  • Feature-complete solution
  • Commercial license required
  • Handles complex projects
  • Advanced resource management

Calendar: react-big-calendar

Best for scheduling interfaces:

  • Month, week, day, agenda views
  • Drag-and-drop events
  • Customizable styling
  • Large community support
npm install react-big-calendar

Alternative: FullCalendar

  • Premium features available
  • Excellent documentation
  • Multiple framework support

For detailed comparison, reference references/library-comparison.md.

Design Token Integration

Timelines use the design-tokens skill for consistent theming:

Timeline-Specific Tokens:

  • --timeline-line-color - Connecting line color
  • --timeline-dot-color - Event marker color
  • --timeline-dot-active-color - Current/active event
  • --event-card-bg - Event card background
  • --timestamp-color - Timestamp text

Standard Token Categories:

  • Color tokens for backgrounds and states
  • Spacing tokens for gaps and padding
  • Typography tokens for text hierarchy
  • Shadow tokens for card elevation
  • Motion tokens for animations

Supports light, dark, high-contrast, and custom themes. Reference the design-tokens skill for theme switching.

Working Examples

Start with the example matching the requirements:

social-activity-feed.tsx       # Social feed with reactions
notification-center.tsx        # Notification system with filters
audit-log-viewer.tsx           # System audit log
milestone-timeline.tsx         # Vertical timeline with milestones
project-gantt.tsx              # Gantt chart with dependencies
calendar-scheduler.tsx         # Full calendar with all views
realtime-activity.tsx          # Live updates via WebSocket
responsive-timeline.tsx        # Mobile-optimized timeline

Testing Tools

Generate mock timeline data:

python scripts/generate_timeline_data.py --events 500 --realtime

Test real-time updates:

node scripts/simulate_realtime.js --rate 5/sec --duration 60s

Validate accessibility:

node scripts/validate_timeline_accessibility.js

Benchmark performance:

node scripts/benchmark_timeline.js --events 10000 --virtual

Next Steps

  1. Identify the timeline use case (activity, events, schedule)
  2. Select the appropriate component type
  3. Choose a library or build custom with tokens
  4. Start with the matching example file
  5. Implement core functionality
  6. Add real-time updates if needed
  7. Test performance with large datasets
  8. Validate accessibility compliance
  9. Apply responsive strategy for mobile

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

37.87%
按下载量换算75

Claude

31.24%
按下载量换算62

Cursor

17.97%
按下载量换算36

Gemini CLI

9.47%
按下载量换算19

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills