recent-data

Store and retrieve recently accessed topics, resources, and pages in a session store.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/dodevproject/lobe-chat --skill recent-data-dodevproject
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: recent-data
Source: https://github.com/dodevproject/lobe-chat/tree/main/.agents/skills/recent-data
Command: npx skills add https://github.com/dodevproject/lobe-chat --skill recent-data-dodevproject

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a structured way to manage and access recently viewed topics, resources, and pages within the application, ensuring users can quickly return to their most relevant items.

Core Features & Use Cases

  • Session Store Management: Initializes and stores recent data (topics, resources, pages) in the session store.
  • Data Access: Provides selectors to easily read recent data and check initialization status.
  • Use Case: When a user navigates through several documents and conversations, this skill ensures they can easily find and reopen those items later from a dedicated "Recent" section.

Quick Start

Initialize recent data by calling useInitRecentTopic, useInitRecentResource, and useInitRecentPage at the app's top level.

Frequently Asked Questions about recent-data

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage recently accessed items in a session store?

To manage recently accessed items in a session store, you need a structured mechanism that handles the storage and retrieval of topics, resources, and pages. This ensures users can quickly return to their most relevant items through dedicated selectors.

How do I initialize recent data for topics, resources, and pages?

To initialize recent data for topics, resources, and pages, call the initialization hooks at the application's top level. This setup populates the session store and enables auto-login detection, data caching, and auto-refreshing mechanisms for efficient data access.

What is the best way to track recently viewed topics and pages?

The best way to track recently viewed topics and pages is by using a session store management system that supports auto-refreshing mechanisms and type safety. This approach maintains a dedicated recent section for quick retrieval of previously opened documents and conversations.

Does session management for recent items support auto-login detection?

Yes, session management for recent items supports auto-login detection alongside data caching and auto-refreshing mechanisms. This ensures the stored topics, resources, and pages remain accessible and up to date when the user's session is restored.

Why do I need session store selectors for recent data?

You need session store selectors for recent data to ensure efficient data access and type safety. Selectors allow your application to easily read recently accessed topics and resources while checking the initialization status of the session store.