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

omi-backend-patternsomi 后端模式

Agent Skill

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

总安装

264

周安装

11

GitHub Stars

7,864

下载量

88
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/basedhardware/omi --skill omi-backend-patterns

简介

omi-backend-patterns 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于需要根据关键词或任务场景从来源线索中获取信息的场景。
  • 通过 npx skills add 命令安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态及是否触发联网或文件读写操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Omi Backend Patterns Skill

This skill provides guidance for working with the Omi backend, including conversation processing, memory extraction, chat system, and LangGraph integration.

When to Use

Use this skill when:

  • Working on backend Python code in backend/
  • Implementing new API endpoints
  • Processing conversations or extracting memories
  • Working with the LangGraph chat system
  • Integrating with Firestore, Pinecone, or Redis

Key Patterns

Conversation Processing

The conversation processing pipeline follows this flow:

  1. Audio arrives via WebSocket (/v4/listen)
  2. Transcription via Deepgram/Soniox/Speechmatics
  3. Conversation creation in Firestore (status: "in_progress")
  4. Processing trigger via POST /v1/conversations or timeout
  5. LLM extraction of structured data:

- Title and overview - Action items - Calendar events - Memories (user facts)

  1. Storage in Firestore and Pinecone

Key Function: utils/conversations/process_conversation.py::process_conversation()

Memory Extraction

Memories are extracted from conversations using LLM:

from utils.llm.conversation_processing import _extract_memories

memories = await _extract_memories(
    transcript=transcript,
    existing_memories=existing_memories,
)

Categories: personal, health, work, relationships, preferences

Chat System Architecture

The chat system uses LangGraph for routing:

  1. Classification: requires_context() determines path
  2. Simple Path: Direct LLM response (no context needed)
  3. Agentic Path: Full tool access with LangGraph ReAct agent
  4. Persona Path: Persona app responses

Key File: utils/retrieval/graph.py

Module Hierarchy

CRITICAL: Always follow the import hierarchy:

  1. database/ - Data access (lowest)
  2. utils/ - Business logic
  3. routers/ - API endpoints
  4. main.py - Application entry

Never import from higher levels in lower levels!

Database Patterns

  • Firestore: Primary database for conversations, memories, users
  • Pinecone: Vector embeddings for semantic search
  • Redis: Caching (speech profiles, enabled apps, user names)
  • GCS: Binary files (audio, photos, speech profiles)

API Endpoint Patterns

  • Use FastAPI routers in routers/
  • Keep routers thin - business logic in utils/
  • Use dependency injection for auth
  • Return consistent error formats

Common Tasks

Adding a New API Endpoint

  1. Create router function in appropriate routers/*.py
  2. Add business logic in utils/
  3. Use database functions from database/
  4. Follow error handling patterns
  5. Add to router in main.py

Processing Conversations

  1. Use process_conversation() from utils/conversations/process_conversation.py
  2. Handle extraction results
  3. Store in Firestore and Pinecone
  4. Trigger app webhooks if needed

Adding a Chat Tool

  1. Create tool function in utils/retrieval/tools/
  2. Use @tool decorator from LangChain
  3. Add to tool loading in utils/retrieval/tools/app_tools.py
  4. Tool will be available in agentic chat path

Related Documentation

The docs/ folder is the single source of truth for all user-facing documentation, deployed at docs.omi.me.

  • Backend Deep Dive: docs/doc/developer/backend/backend_deepdive.mdx - View online
  • Chat System: docs/doc/developer/backend/chat_system.mdx - View online
  • Data Storage: docs/doc/developer/backend/StoringConversations.mdx - View online
  • Transcription: docs/doc/developer/backend/transcription.mdx - View online
  • Backend Setup: docs/doc/developer/backend/Backend_Setup.mdx - View online
  • Backend Architecture: .cursor/rules/backend-architecture.mdc

Related Cursor Resources

Rules

  • .cursor/rules/backend-architecture.mdc - System architecture and module hierarchy
  • .cursor/rules/backend-api-patterns.mdc - FastAPI router patterns
  • .cursor/rules/backend-database-patterns.mdc - Database storage patterns
  • .cursor/rules/backend-llm-patterns.mdc - LLM integration patterns
  • .cursor/rules/backend-testing.mdc - Testing patterns
  • .cursor/rules/backend-imports.mdc - Import rules
  • .cursor/rules/memory-management.mdc - Memory management

Subagents

  • .cursor/agents/backend-api-developer/ - Uses this skill for API development
  • .cursor/agents/backend-llm-engineer/ - Uses this skill for LLM integration
  • .cursor/agents/backend-database-engineer/ - Uses this skill for database work

Commands

  • /backend-setup - Uses this skill for setup guidance
  • /backend-test - Uses this skill for testing patterns
  • /backend-deploy - Uses this skill for deployment patterns

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

36.11%
按下载量换算32

Claude

33.24%
按下载量换算29

Cursor

18.18%
按下载量换算16

Gemini CLI

10.28%
按下载量换算9

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills