Toolverse
All skills

implementing-agent-modes

by PostHog

Guidelines to create/update a new mode for PostHog AI agent. Modes are a way to limit what tools, prompts, and prompt injections are applied and under what conditions. Achieve better results using your plan mode.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
PostHog
Category
Backend
Views
37

About this skill

Guidelines to create/update a new mode for PostHog AI agent. Modes are a way to limit what tools, prompts, and prompt injections are applied and under what conditions. Achieve better results using your plan mode.

How to use

  1. Przejrzyj istniejące tryby w katalogu ee/hogai/core/agent_modes/presets, aby sprawdzić, czy już istnieje tryb odpowiadający Twoim potrzebom. Tryby mogą być ograniczone do konkretnego produktu PostHog (np. Product analytics), obszaru funkcjonalnego (np. SQL) lub agenta (np. Instrumentation agent).
  2. Jeśli chcesz utworzyć nowy tryb, dodaj go do schematu w pliku frontend/src/queries/schema/schema-assistant-messages.ts, a następnie przebuduj schemat poleceniem hogli build:schema lub pnpm run schema:build.
  3. Utwórz lub zaktualizuj strukturę trybu, która powinna zawierać AgentToolkit z narzędziami specyficznymi dla trybu oraz AgentModeDefinition zawierającą definicję trybu, opis wstrzykiwany do kontekstu agenta i klasy dla toolkit'u.
  4. Dodaj odpowiednie narzędzia do trybu, wybierając je z katalogów ee/hogai/tools lub innych dostępnych źródeł. Narzędzia mogą być kontekstowe i wstrzykiwane na konkretnych stronach interfejsu.
  5. Jeśli wymagane jest dostosowanie promptu lub zachowania trybu, utwórz nowe executables w ramach definicji trybu.
  6. Przetestuj tryb, upewniając się, że agent prawidłowo przełącza się między trybami za pomocą narzędzia switch_mode i że kontekst jest zachowywany podczas przełączania.

Related skills

supabase-developer

by daffy0208

Build full-stack applications with Supabase (PostgreSQL, Auth, Storage, Real-time, Edge Functions). Use when implementing authentication, database design with RLS, file storage, real-time features, or serverless functions.

Backend
78170

pdf-to-markdown

by aliceisjustplaying

Convert entire PDF documents to clean, structured Markdown for full context loading. Use this skill when the user wants to extract ALL text from a PDF into context (not grep/search), when discussing or analyzing PDF content in full, when the user mentions \

Backend
355664

fastapi-templates

by wshobson

Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.

Backend
327582

find-skills

by openstatusHQ

Helps users discover and install agent skills when they ask questions like \

Backend
150111

openspec

by ruan-cat

OpenSpec 中文版规范助手 - 规范驱动的 AI 编程开发,帮助初始化、创建提案、编写规格、校验格式并归档变更。触发条件: 当用户提及 openspec、规范文档、需求管理、变更提案、spec-driven development 等关键词时主动调用。

Backend
27122

fastapi-pro

by sickn33

Build high-performance async APIs with FastAPI, SQLAlchemy 2.0, and Pydantic V2. Master microservices, WebSockets, and modern Python async patterns. Use PROACTIVELY for FastAPI development, async optimization, or API architecture.

Backend
54128