💡 摘要
Olakai技能提供在Olakai平台内集成和管理AI代理的工具。
🎯 适合人群
🤖 AI 吐槽: “看起来很能打,但别让配置把人劝退。”
风险:Medium。建议检查:是否执行 shell/命令行指令;是否发起外网请求(SSRF/数据外发);API Key/Token 的获取、存储与泄露风险;文件读写范围与路径穿越风险;依赖锁定与供应链风险。以最小权限运行,并在生产环境启用前审计代码与依赖。
Olakai Skills
Official skills for integrating AI agents with Olakai - the enterprise AI observability and governance platform.
These skills follow the Agent Skills Standard and work with Claude Code, Cursor, VS Code Copilot, and other compatible AI coding assistants.
Installation
Using add-skill (Recommended)
# List available skills npx add-skill olakai-ai/olakai-skills --list # Install a specific skill npx add-skill olakai-ai/olakai-skills/olakai-get-started npx add-skill olakai-ai/olakai-skills/olakai-create-agent npx add-skill olakai-ai/olakai-skills/olakai-add-monitoring npx add-skill olakai-ai/olakai-skills/olakai-troubleshoot npx add-skill olakai-ai/olakai-skills/generate-analytics-reports
Manual Installation
# Clone to user-level skills directory git clone https://github.com/olakai-ai/olakai-skills ~/.claude/skills/olakai-skills # Or clone to project-level git clone https://github.com/olakai-ai/olakai-skills .claude/skills/olakai-skills
Available Skills
| Skill | Description | |-------|-------------| | olakai-get-started | Get started with Olakai - account setup, CLI install, authentication, first agent | | olakai-create-agent | Create a new AI agent with Olakai monitoring from scratch | | olakai-add-monitoring | Add Olakai monitoring to an existing AI agent or LLM integration | | olakai-troubleshoot | Troubleshoot monitoring issues - missing events, KPI problems, SDK errors | | generate-analytics-reports | Generate terminal-based analytics reports without the web UI |
Bundled Agent
The olakai-expert agent combines all four skills into a single specialist:
| Agent | Description | |-------|-------------| | olakai-expert | Full Olakai integration specialist - creates agents, adds monitoring, troubleshoots issues, generates reports |
Prerequisites
Before using these skills, ensure you have:
- Olakai CLI installed:
npm install -g olakai-cli - CLI authenticated:
olakai login - API key for SDK integration (generated per-agent via CLI)
The Golden Rule: Test - Fetch - Validate
Always validate your Olakai integration by generating a test event and inspecting it:
# 1. Run your agent/trigger LLM call # 2. Fetch the event olakai activity list --agent-id AGENT_ID --limit 1 --json olakai activity get EVENT_ID --json | jq '{customData, kpiData}' # 3. Validate: # - customData has all expected fields # - kpiData shows NUMBERS (not strings like "MyVariable") # - kpiData shows VALUES (not null)
Quick Reference
# CLI Authentication olakai login olakai whoami # View Activity olakai activity list --limit 10 olakai activity get EVENT_ID --json # Manage Agents (includes API key generation) olakai agents list olakai agents create --name "Agent Name" --with-api-key --json olakai agents get AGENT_ID --json | jq '.apiKey' # Manage KPIs olakai kpis list --agent-id ID olakai kpis create --formula "Variable" --agent-id ID # Manage Custom Data olakai custom-data list olakai custom-data create --name "Field" --type NUMBER
SDK Quick Start
TypeScript:
import { OlakaiSDK } from "@olakai/sdk"; const olakai = new OlakaiSDK({ apiKey: process.env.OLAKAI_API_KEY! }); await olakai.init(); const openai = olakai.wrap(new OpenAI({ apiKey }), { provider: "openai" });
Python:
from olakaisdk import olakai_config, instrument_openai olakai_config(os.getenv("OLAKAI_API_KEY")) instrument_openai()
Optional: Improved Skill Discovery
For automatic skill activation (recommended for heavy Olakai users):
# Install activation hooks for improved auto-invocation rate cp hooks/skill-activator.sh ~/.claude/hooks/ chmod +x ~/.claude/hooks/skill-activator.sh
See hooks/README.md for full setup instructions.
Documentation
Agent Compatibility
See AGENTS.md for full compatibility information with various AI coding agents.
License
MIT License - see LICENSE for details.
Contributing
Contributions welcome! Please read our contributing guidelines before submitting PRs.
Built with love by Olakai
优点
- 全面的AI集成技能集
- 支持多种编程语言
- 易于安装和设置
- 清晰的文档和快速入门指南
缺点
- 安装需要CLI知识
- 仅限于Olakai平台用户
- 新用户可能需要学习曲线
- 依赖外部SDK
相关技能
免责声明:本内容来源于 GitHub 开源项目,仅供展示和评分分析使用。
版权归原作者所有 olakai-ai.
