new-project
하는 일
이 스킬은 처음부터 Olakai에 연결된 새 AI 에이전트 프로젝트를 만드는 과정을 안내합니다. 출시 전에 분석과 거버넌스를 갖추려는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓새 AI 에이전트를 시작하면서 첫날부터 모니터링을 원할 때.
- ✓Olakai SDK와 CLI 설정을 안내받고 싶을 때.
- ✓에이전트의 성능을 보여 줄 KPI를 정의해야 할 때.
스킬 링크
https://github.com/andrewyng/context-hub/blob/main/content/olakai/skills/new-project/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“Olakai 모니터링이 포함된 새 AI 에이전트 프로젝트를 시작하고, 그 KPI를 정의하고 싶어요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 프로젝트를 설정하고, Olakai SDK를 추가하고, 에이전트용 키를 만들고, 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:
- 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,
자주 묻는 질문
시작하기 전에 CLI가 필요한가요?
네. 스킬은 Olakai CLI가 설치되어 있고 로그인되어 있기를 요구합니다.
이 스킬에서 KPI란 무엇인가요?
KPI는 처리된 항목 수, 성공률, 재시도율처럼 에이전트 성능을 보여 주는 비즈니스 지표입니다.
같은 KPI를 다른 에이전트에 재사용할 수 있나요?
아니요. 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
- 업데이트
- 2026. 5. 31.
댓글
- …
이 저장소의 다른 스킬
get-api-docs
14k에이전트가 코드를 쓰기 전에, 오래된 기억 대신 서드파티 API와 라이브러리의 최신 문서를 가져오도록 돕습니다.
bloc-cubit
14k에이전트에게 Flutter 앱의 상태를 Bloc이나 Cubit으로 관리하는 방법을 가르칩니다. 각 도구를 고르는 기준과 테스트용 기본값을 포함합니다.
riverpod
14k에이전트가 Riverpod으로 Flutter 앱의 상태를 관리하도록 가르칩니다. 프로바이더, 비동기 데이터, 테스트를 다룹니다.
document-extraction
14k에이전트가 PDF, 이미지, 스프레드시트를 읽어 깨끗한 텍스트로 바꾸고, LandingAI ADE 서비스로 송장 합계 같은 항목을 뽑아내도록 돕습니다.
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.