new-project
Was er macht
Dieser Skill führt durch die Erstellung eines neuen KI-Agentenprojekts, das von Anfang an mit Olakai verbunden ist. Er richtet sich an Entwickelnde, die vor dem Start Analysen und Steuerung eingerichtet haben wollen.
Wann du ihn nutzt
- ✓Wenn du einen neuen KI-Agenten startest und vom ersten Tag an Monitoring willst.
- ✓Wenn du eine geführte Einrichtung von Olakai-SDK und -CLI willst.
- ✓Wenn du KPIs festlegen musst, die zeigen, wie gut ein Agent arbeitet.
Link zum Skill
https://github.com/andrewyng/context-hub/blob/main/content/olakai/skills/new-project/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Ich möchte ein neues KI-Agentenprojekt mit Olakai-Monitoring starten und seine KPIs festlegen.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Agent richtet das Projekt ein, fügt das Olakai-SDK hinzu, erstellt einen Schlüssel für den Agenten, legt KPIs fest und testet das Ergebnis. Er folgt den Schritten des Skills in fester Reihenfolge.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von 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:
- Olakai CLI installed:
npm install -g olakai-cli - CLI authenticated:
olakai login - 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
- customData (SDK): Raw JSON you send with each event
- CustomDataConfig (Platform): Schema defining which fields are processed
- Context Variables: CustomDataConfig fields become available for formulas
- KPI Formula: Expression that computes a value (e.g.,
SuccessRate * 100) - 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,
Häufige Fragen
Brauche ich die CLI schon vor dem Start?
Ja. Der Skill setzt voraus, dass die Olakai-CLI installiert ist und du angemeldet bist.
Was ist ein KPI in diesem Skill?
Ein KPI ist eine Geschäftskennzahl, etwa verarbeitete Elemente, Erfolgsquote oder Wiederholungsquote, die die Leistung des Agenten zeigt.
Kann ich dieselben KPIs für einen anderen Agenten nutzen?
Nein. KPIs gehören zu einem Agenten, jeder neue Agent braucht also seinen eigenen Satz.
Details
Originalbeschreibung des Autors
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
Beliebtheit
- GitHub-Sterne
- 14k
- Platz im Ranking
- #11274
- Lizenz
- MIT
- Aktualisiert
- 31.5.2026
Kommentare
- …
Weitere Skills aus diesem Repository
get-api-docs
14kHilft deinem Agenten, vor dem Schreiben von Code aktuelle Dokumentation für Drittanbieter-APIs und Bibliotheken abzurufen, statt sich auf altes Wissen zu verlassen.
bloc-cubit
14kBringt deinem Agenten bei, den App-Zustand in Flutter mit Bloc oder Cubit zu verwalten, mit Hinweisen zur Wahl und sicheren Standards für Tests.
riverpod
14kBringt deinem Agenten bei, den Zustand von Flutter-Apps mit Riverpod zu verwalten, mit Providern, asynchronen Daten und Tests und sinnvollen Standards.
document-extraction
14kHilft deinem Agenten, PDFs, Bilder und Tabellen zu lesen, in sauberen Text umzuwandeln und Felder wie Rechnungssummen mit dem ADE-Dienst von LandingAI herauszuziehen.
Ähnliche Skills
add-model-provider
394kLässt deinen Agenten einen neuen KI-Modellanbieter mit sicheren Befehlen an OpenClaw anbinden, API-Schlüssel nicht im Klartext speichern und einen Live-Test starten.
acp-router
394kHilft deinem Agenten, eine Aufgabe über OpenClaw an einen Coding-Assistenten wie Claude Code oder Cursor zu senden, damit die Arbeit in diesem Tool läuft.
browser-automation
394kBringt deinem Agenten bei, Webseiten Schritt für Schritt zu steuern, einschließlich Anmeldungen, Tabs und Wiederherstellung, wenn eine Seite nicht mehr reagiert.