Pular para o conteúdo
Skillpedia
Agentes14 mil · #11274

new-project

O que ela faz

Esta skill orienta a criação de um projeto novo de agente de IA já conectado à Olakai desde o início. Ela é para quem constrói e quer análises e governança prontas antes do lançamento.

Quando usar

  • ✓Quando você começar um novo agente de IA e quiser monitoramento desde o primeiro dia.
  • ✓Quando quiser uma configuração guiada do SDK e da CLI da Olakai.
  • ✓Quando precisar definir KPIs que mostrem o desempenho de um agente.

Link da skill

https://github.com/andrewyng/context-hub/blob/main/content/olakai/skills/new-project/SKILL.md

Copie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.

Como usar

O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.

Mensagem pronta para colar

Use esta skill para me ajudar: https://github.com/andrewyng/context-hub/blob/main/content/olakai/skills/new-project/SKILL.md Leia o arquivo SKILL.md desse link e siga as instruções dele na minha tarefa.
Quer que a sua IA encontre skills como esta sozinha?Instale o MCP grátis do Skillpedia: uma linha, e ela pesquisa entre 15.000+ skills antes de cada tarefa.Instalar em 1 minuto →

Exemplo do que pedir para a IA

“Quero começar um novo projeto de agente de IA com monitoramento da Olakai e definir os seus KPIs.”

5 skills novas por semana. 1 minuto de leitura.

Como funciona

O agente configura o projeto, adiciona o SDK da Olakai, cria uma chave para o agente, define os KPIs e testa o resultado. Ele segue os passos da skill em uma ordem fixa.

Conteúdo técnico (SKILL.md original)

Texto original do autor, em inglês, direto do GitHub.

Build a New AI Agent Project with Olakai

This skill guides you through creating a new AI agent that is fully integrated with Olakai for analytics, KPI tracking, and governance.

Prerequisites

Before starting, ensure:

  1. Olakai CLI installed: npm install -g olakai-cli
  2. CLI authenticated: olakai login
  3. API key for SDK (generated per-agent via CLI — see Step 2.2)

Why Custom KPIs Are Essential

Olakai's core value is tracking business-specific KPIs for your AI agents. Without KPIs, you're tracking events without gaining actionable insights.

What you can measure with KPIs:

  • Business outcomes (items processed, success rates, revenue impact)
  • Operational data (step counts, retry rates, execution time)
  • Quality indicators (error rates, user satisfaction signals)

Without KPIs configured:

  • No dashboard KPIs beyond basic token counts
  • No aggregated performance views
  • No alerting thresholds
  • No ROI calculations

Every agent should have 2-4 KPIs that answer: "How do I know this agent is performing well?"

KPIs created here belong to this specific agent only. If you later create additional agents, each one needs its own KPI definitions — KPIs cannot be shared or reused across agents.

Understanding the customData to KPI Pipeline

Before diving into implementation, understand how data flows through Olakai:

SDK customData → CustomDataConfig (Schema) → Context Variable → KPI Formula → kpiData

How It Works

  1. customData (SDK): Raw JSON you send with each event
  2. CustomDataConfig (Platform): Schema defining which fields are processed
  3. Context Variables: CustomDataConfig fields become available for formulas
  4. KPI Formula: Expression that computes a value (e.g., SuccessRate * 100)
  5. kpiData (Response): Computed KPI values returned with each event

Critical Rules

Rule Consequence
Only CustomDataConfig fields become variables Unregistered customData fields are NOT usable in KPIs
Formula evaluation is case-insensitive stepCount, STEPCOUNT, StepCount all work in formulas
NUMBER configs need numeric values Don't send "5" (string), send 5 (number)
KPIs are unique per agent Each KPI belongs to exactly one agent — create separately for each

Built-in Context Variables (Always Available)

Variable Type Description
Prompt string The prompt text sent to the LLM
Response string The LLM response text
Documents count number Number of attached documents
PII detected boolean Whether PII was detected
PHI detected boolean Whether PHI was detected
CODE detected boolean Whether code was detected
SECRET detected boolean Whether secrets were detected

Step 1: Design the Agent Architecture

1.1 Determine Agent Type

Agentic AI (Multi-step autonomous workflows):

  • Research agents, document processors, data pipelines
  • Track as SINGLE events aggregating all internal LLM calls
  • Focus on workflow-level KPIs (total tokens, total time, success/failure)

Assistive AI (Interactive chatbots/copilots):

  • Customer support agents, coding assistants, Q&A systems
  • Track EACH interaction as separate events
  • Focus on conversation-level KPIs (per-message tokens, response quality)

1.2 Design Your KPI Schema (CRITICAL)

Design your KPIs BEFORE writing any SDK code. This ensures only meaningful data is sent and tracked.

Step A: Identify Business Questions

What do stakeholders need to know about this agent?

  • "How many items does it process per run?"
  • "What's the success/failure rate?"
  • "How efficient is each execution?"

Step B: Map Questions to Data Fields

Business Question Field Name Type KPI Formula Aggregation
Throughput ItemsProcessed NUMBER ItemsProcessed SUM
Reliability SuccessRate NUMBER SuccessRate * 100 AVERAGE
Error count SuccessRate NUMBER IF(SuccessRate < 1, 1, 0) SUM
Correlation ExecutionId STRING (for filtering only) -

Step C: Plan Your customData Structure

// ONLY include fields you'll register as CustomDataConfigs
customData: {
  // Business KPIs
  ItemsProcessed: number,  // Count of items handled
  SuccessRate: number,     // 0-1 success ratio

  // Performance KPIs
  StepCount: number,    
Perguntas frequentes

Preciso da CLI antes de começar?

Sim. A skill espera que a CLI da Olakai esteja instalada e que você esteja logado.

O que é um KPI nesta skill?

É uma medida de negócio, como itens processados, taxa de sucesso ou taxa de nova tentativa, que mostra o desempenho do agente.

Posso reutilizar os mesmos KPIs em outro agente?

Não. Os KPIs pertencem a um único agente, então cada novo agente precisa do seu próprio conjunto.

Detalhes

Descrição original do autor

Build a new AI agent with Olakai monitoring from scratch — project setup, SDK integration, KPI configuration, and end-to-end validation

repo: andrewyng/context-hub

Popularidade

Estrelas no GitHub
14 mil
Posição no ranking
#11274
Licença
MIT
Atualizada em
31/05/2026

Essa skill é útil?

0

Entre para votar.

Comentários

  • …

Mais skills deste repositório

Skills parecidas