मुख्य सामग्री पर जाएँ
Skillpedia
एजेंट14k · #11274

new-project

यह क्या करती है

यह स्किल एक नया AI एजेंट प्रोजेक्ट बनाने का मार्गदर्शन करती है जो शुरू से ही Olakai से जुड़ा हो। यह उन बिल्डरों के लिए है जो लॉन्च से पहले एनालिटिक्स और नियंत्रण चाहते हैं।

कब इस्तेमाल करें

  • ✓जब आप नया AI एजेंट शुरू करते हैं और पहले दिन से मॉनिटरिंग चाहते हैं।
  • ✓जब आप Olakai SDK और CLI के लिए निर्देशित सेटअप चाहते हैं।
  • ✓जब आपको ऐसे KPI परिभाषित करने हैं जो दिखाएँ कि एजेंट कितना अच्छा चल रहा है।

Skill का लिंक

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

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/andrewyng/context-hub/blob/main/content/olakai/skills/new-project/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मैं Olakai मॉनिटरिंग के साथ एक नया AI एजेंट प्रोजेक्ट शुरू करना चाहता हूँ और उसके KPI तय करना चाहता हूँ।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट प्रोजेक्ट सेट करता है, Olakai SDK जोड़ता है, एजेंट के लिए key बनाता है, KPI परिभाषित करता है और नतीजे का टेस्ट करता है। वह स्किल के चरण एक तय क्रम में पालन करता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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,    
अक्सर पूछे जाने वाले सवाल

क्या शुरू करने से पहले मुझे CLI चाहिए?

हाँ। स्किल उम्मीद करती है कि Olakai CLI इंस्टॉल हो और आप लॉगिन हों।

इस स्किल में KPI क्या है?

KPI एक व्यावसायिक माप है, जैसे प्रोसेस किए गए आइटम, सफलता दर या retry दर, जो एजेंट का प्रदर्शन दिखाता है।

क्या मैं वही KPI दूसरे एजेंट के लिए दोबारा इस्तेमाल कर सकता हूँ?

नहीं। KPI एक एजेंट के होते हैं, इसलिए हर नए एजेंट को अपना सेट चाहिए।

जानकारी

लेखक का मूल विवरण

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

लोकप्रियता

GitHub स्टार
14k
रैंकिंग में स्थान
#11274
लाइसेंस
MIT
अपडेट की गई
31/5/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

get-api-docs

14k

यह आपके एजेंट को कोड लिखने से पहले तीसरे पक्ष के API और लाइब्रेरी का ताज़ा दस्तावेज़ लाने में मदद करती है, पुरानी याददाश्त पर भरोसा करने के बजाय।

कोडिंगसामान्य कोडिंग

bloc-cubit

14k

यह आपके एजेंट को Bloc या Cubit से Flutter ऐप की स्थिति संभालना सिखाती है, कब कौन-सा चुनें और टेस्टिंग के लिए सुरक्षित डिफ़ॉल्ट क्या हों।

कोडिंगमोबाइल ऐप

riverpod

14k

यह आपके एजेंट को Riverpod से Flutter ऐप की स्थिति संभालना सिखाती है, providers, async डेटा और टेस्टिंग सहित, हर स्थिति के लिए ठीक डिफ़ॉल्ट के साथ।

कोडिंगमोबाइल ऐप

document-extraction

14k

यह आपके एजेंट को PDF, इमेज और स्प्रेडशीट पढ़ने, उन्हें साफ़ टेक्स्ट में बदलने, और LandingAI की ADE सेवा से इनवॉइस कुल जैसे फ़ील्ड निकालने में मदद करती है।

डेटाएनालिसिस और स्प्रेडशीट

मिलती-जुलती skills