AI聊天

Convert slash-command inputs into Claude Code CLI prompts for chat.

Updated Feb 20, 2026
One-click install
npx skills add https://github.com/Leochens/LifeOs --skill ai-leochens
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: AI聊天
Source: https://github.com/Leochens/LifeOs/tree/main/src/components/modules/chat
Command: npx skills add https://github.com/Leochens/LifeOs --skill ai-leochens

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Reduce friction between user slash-commands and a local Claude-based assistant by providing an integrated chat interface, multi-turn context assembly, and clear guidance when the required CLI is not available.

Core Features & Use Cases

  • Slash-command triggers: Activate the assistant using /聊天 or /chat and via mentions like "Claude" or "助手".
  • Multi-turn conversational context: Assemble prior messages into a prompt to support follow-up questions and debugging workflows.
  • Local Claude Code integration: Invoke the Claude Code CLI for responses, simulate streaming for UX, and show actionable errors when the CLI is missing.
  • Use case: Ask for code review, debugging tips, or concise summaries directly within LifeOS without leaving the app.

Quick Start

Type /chat followed by your question to start a Claude-powered conversation in the AI 聊天 module.

Frequently Asked Questions about AI聊天

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

FAQPage Schema
How do I get conversational AI answers using Claude Code within a desktop app?

To get conversational AI answers, you use slash-commands like /chat or /聊天 to invoke a local Claude Code CLI assistant. This integrates multi-turn conversational context directly within your LifeOS desktop module.

Do I need to install the Claude Code CLI to use the AI chat assistant?

Yes, you must have the Claude Code CLI installed locally to use the AI chat assistant. Without it, the system cannot process prompts and will surface clear error messages guiding you to install the missing CLI.

What is the best way to trigger the AI assistant for code review and debugging?

The best way to trigger the AI assistant is by typing /chat followed by your question. You can also activate it by mentioning "Claude" or "助手" to get code review and debugging tips without leaving your app.

How does the AI chat handle multi-turn context for follow-up questions?

The AI chat handles multi-turn context by assembling prior messages into a single prompt. This supports follow-up questions and debugging workflows by maintaining conversational history for the Claude Code CLI.

Why does the AI chat show an error when I try to start a conversation?

The AI chat shows an error when the required Claude Code CLI is missing from your local environment. It surfaces actionable error messages to ensure you know exactly what dependency needs to be installed.

Can I use conversational AI in LifeOS without leaving the application window?

Yes, you can use conversational AI in LifeOS without leaving the application. It simulates streaming responses locally, providing real-time assistance and general Q&A directly inside the desktop module.