Token导航 LogoToken导航TokenDH.com
AI 工具敏感数据github未标认证来源可访问clear审计通过

olakai-planning奥拉凯规划

Agent Skill

olakai-planning 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

360

周安装

15

GitHub Stars

公开资料未说明

下载量

120
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:olakai-planning(奥拉凯规划)
来源仓库:https://github.com/olakai-ai/olakai-skills
仓库路径:skills/olakai-planning
安装命令:
npx skills add https://github.com/olakai-ai/olakai-skills --skill olakai-planning
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/olakai-ai/olakai-skills --skill olakai-planning

简介

olakai-planning 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中围绕仓库状态进行整理。

  • 适用于代码变更追踪、协作事项梳理或仓库状态分析等场景。
  • 通过 npx skills add 命令从 GitHub 仓库安装,需确认权限与维护状态。
  • 使用前建议核实是否会触发联网、命令执行或文件读写操作。
  • 可结合原始 README 和仓库路径进一步验证具体用法与边界。

SKILL.md

Olakai Implementation Planning Guide

You are creating a plan for Olakai AI monitoring that will be executed by an agent WITHOUT your current context. After plan approval, context may be cleared. The executing agent will NOT have access to:

  • Your conversation history
  • The olakai-expert agent knowledge
  • Implicit understanding of Olakai patterns
  • Skills loaded in this session

Your plan must be completely self-contained.


Plan Format Template

Every Olakai implementation plan MUST follow this structure:

# Implementation Plan: [Task Name]

## Skill Reference
| Task | Invoke Skill | Description |
|------|--------------|-------------|
| [task] | `/skill-name` | [what it does] |

## Prerequisites (Verify First)
- [ ] CLI installed: `which olakai` returns a path
- [ ] Authenticated: `olakai whoami` shows user info
- [ ] (If applicable): Agent exists: `olakai agents list --json`

---

## Step N: [Step Title]

**Invoke skill**: `/olakai-new-project` (or appropriate skill)
**Why this skill**: [Brief explanation of what guidance this skill provides]

### What to do:
[Detailed instructions that make sense without prior context]

### Commands:

[Exact commands with explanations]


### Validation:

[Commands to verify this step worked]


### If this fails:

Invoke `/olakai-troubleshoot` with symptoms: [describe what might go wrong]

---

## Final Validation (Golden Rule)

1. Trigger a test event

[How to run the agent once]

2. Fetch the event

olakai activity list --agent-id AGENT_ID --limit 1 --json olakai activity get EVENT_ID --json | jq '{customData, kpiData}'

3. Verify:

- customData contains expected fields

- kpiData shows NUMBERS (not strings like "MyVariable")

- kpiData shows VALUES (not null)


**If validation fails**: Invoke `/olakai-troubleshoot`

Skill Reference Cheatsheet

CRITICAL: Include this table in your plan so the executing agent knows which skill to use for each task.

TaskInvoke SkillWhat It Provides
Not authenticated / CLI missing/olakai-get-startedInstall CLI, login, create first agent with API key
Build new agent from scratch/olakai-new-projectFull agent setup with KPIs, CustomDataConfigs, SDK code
Add monitoring to existing code/olakai-integrateWrap existing LLM calls, add customData, minimal changes
Something not working/olakai-troubleshootDiagnose missing events, wrong KPIs, SDK errors
Generate usage reports/olakai-reportsTerminal-based analytics without web UI
Create implementation plan/olakai-planningThis skill - structure plans for context clearing

Every step involving Olakai work MUST specify which skill to invoke.


Context Injection Snippets

Include these in your plan steps. They will NOT be available after context clears.

Workflow Hierarchy (Required)

Include this in any step involving agent creation:


IMPORTANT: Every agent MUST belong to a workflow

1. Create workflow FIRST: olakai workflows create --name "Name"
2. Create agent with workflow: olakai agents create --workflow WORKFLOW_ID...

Even single agents need a parent workflow for:

- Future multi-agent expansion
- Workflow-level KPI aggregation
- Proper organizational hierarchy

The customData → KPI Pipeline

Include this explanation in any step involving KPIs or customData:


IMPORTANT: How customData becomes KPIs

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

Key rules:

1. SDK accepts ANY JSON in customData
2. But ONLY CustomDataConfig fields become KPI variables
3. Create CustomDataConfigs FIRST, then write SDK code
4. Field names in SDK must EXACTLY match CustomDataConfig names
5. KPIs are UNIQUE PER AGENT — each KPI belongs to one agent only
6. If multiple agents need the same KPI, create it separately for each
7. CustomDataConfigs are account-level (shared), but KPIs are agent-level (NOT shared)

What NOT to send in customData (already tracked):

- sessionId, agentId (automatic)
- userEmail (use parameter instead)
- timestamp, tokens, model, provider (automatic)

Only send: KPI variables + fields for filtering/grouping

SDK Quick Reference - TypeScript

Include in any step involving TypeScript SDK:

// Installation: npm install @olakai/sdk

import { OlakaiSDK } from "@olakai/sdk";
import OpenAI from "openai";

// Initialize (once at startup)
const olakai = new OlakaiSDK({
  apiKey: process.env.OLAKAI_API_KEY!,
  debug: true  // Enable for troubleshooting
});
await olakai.init();

// Wrap your OpenAI client
const openai = olakai.wrap(
  new OpenAI({ apiKey: process.env.OPENAI_API_KEY }),
  { provider: "openai" }
);

// Make calls with customData (fields MUST match CustomDataConfigs)
const response = await openai.chat.completions.create(
  { model: "gpt-4", messages: [...] },
  {
    userEmail: "user@example.com",
    task: "task-name",
    customData: {
      fieldName: value,  // Must match a CustomDataConfig
    }
  }
);

SDK Quick Reference - Python

Include in any step involving Python SDK:

# Installation: pip install olakai-sdk

import os
from openai import OpenAI
from olakaisdk import olakai_config, instrument_openai, olakai_context

# Initialize (once at startup)
olakai_config(
    os.getenv("OLAKAI_API_KEY"),
    debug=True  # Enable for troubleshooting
)
instrument_openai()

# Create client after instrumentation
client = OpenAI()

# Make calls with context (fields MUST match CustomDataConfigs)
with olakai_context(
    userEmail="user@example.com",
    task="task-name",
    customData={
        "fieldName": value,  # Must match a CustomDataConfig
    }
):
    response = client.chat.completions.create(
        model="gpt-4",
        messages=[...]
    )

CLI Commands Reference

Include in any step involving CLI operations:

# Authentication
olakai login              # Interactive login
olakai whoami             # Check current user
olakai logout             # Log out

# Agents
olakai agents list [--json]
olakai agents create --name "Name" --with-api-key [--json]
olakai agents get AGENT_ID [--json]

# Activity/Events
olakai activity list [--limit N] [--agent-id ID] [--json]
olakai activity get EVENT_ID [--json]
olakai activity sessions --agent-id ID [--json]  # Session decoration diagnostics

# KPIs (agent-specific: each KPI belongs to ONE agent, cannot be shared)
olakai kpis list --agent-id ID [--json]
olakai kpis create --name "Name" --formula "X" --agent-id ID
olakai kpis validate --formula "X" --agent-id ID
olakai kpis update KPI_ID --formula "X"

# CustomData (agent-scoped, like KPIs)
olakai custom-data list [--agent-id ID] [--json]
olakai custom-data create --agent-id ID --name "Name" --type NUMBER|STRING

Example: Complete Self-Contained Plan

Here's a model plan that an agent can follow after context is cleared:

# Implementation Plan: Add Monitoring to Support Chatbot

## Skill Reference
| Task | Skill | Description |
|------|-------|-------------|
| Add monitoring | `/olakai-integrate` | SDK integration, customData setup |
| Create KPIs | `/olakai-integrate` | KPI creation and formula setup |
| Troubleshoot | `/olakai-troubleshoot` | Diagnose any issues |

## Prerequisites
- [ ] CLI installed: `which olakai`
- [ ] Authenticated: `olakai whoami`
- [ ] Agent exists for this app: `olakai agents list --json`

---

## Step 1: Define Custom Data Schema

**Invoke skill**: `/olakai-integrate` (Section: "Define Your Schema First")

### What to do:
Create CustomDataConfigs for fields we'll track. These MUST exist before SDK sends data, or fields won't become KPI variables.

**IMPORTANT - The customData → KPI Pipeline:**

SDK customData → CustomDataConfig → Context Variable → KPI Formula → kpiData Only CustomDataConfig fields can be used in KPI formulas!

### Commands:

Check existing configs for this agent (replace YOUR_AGENT_ID)

olakai custom-data list --agent-id YOUR_AGENT_ID --json

Create required configs (run each command)

olakai custom-data create --agent-id YOUR_AGENT_ID --name "ticketCategory" --type STRING olakai custom-data create --agent-id YOUR_AGENT_ID --name "resolutionTime" --type NUMBER olakai custom-data create --agent-id YOUR_AGENT_ID --name "customerSatisfaction" --type NUMBER


### Validation:

olakai custom-data list --agent-id YOUR_AGENT_ID --json | jq '.[] | {name, type}'

Should show all 3 fields with correct types


### If this fails:

Invoke `/olakai-troubleshoot` with symptoms: "custom-data create command failing"

---

## Step 2: Create KPIs

**Invoke skill**: `/olakai-integrate` (Section: "Create KPIs")

### What to do:

Create KPI formulas using CustomDataConfig field names as variables. Variable names must match CustomDataConfig names exactly (case-insensitive in formulas).

### Commands:

Get your agent ID first

AGENT_ID=$(olakai agents list --json | jq -r '.[0].id')

Create KPIs

olakai kpis create --name "Avg Resolution Time" --formula "AVG(resolutionTime)" --agent-id $AGENT_ID olakai kpis create --name "CSAT Score" --formula "AVG(customerSatisfaction)" --agent-id $AGENT_ID

Verify formulas are valid

olakai kpis validate --formula "AVG(resolutionTime)" --agent-id $AGENT_ID


### Validation:

olakai kpis list --agent-id $AGENT_ID --json

Should show 2 KPIs with status "active" or similar


### If this fails:

Invoke `/olakai-troubleshoot` with symptoms: "KPI formula validation failing" or "KPI shows null values"

---

## Step 3: Add SDK Integration

**Invoke skill**: `/olakai-integrate` (Section: "SDK Integration")

### What to do:

Wrap the existing OpenAI client and pass customData with every LLM call. Field names MUST exactly match the CustomDataConfigs from Step 1.

### TypeScript pattern:

import { OlakaiSDK } from "@olakai/sdk"; import OpenAI from "openai";

// Initialize once at startup const olakai = new OlakaiSDK({ apiKey: process.env.OLAKAI_API_KEY! }); await olakai.init();

// Wrap your client const openai = olakai.wrap( new OpenAI({ apiKey: process.env.OPENAI_API_KEY }), { provider: "openai" } );

// In your chat handler - customData fields match CustomDataConfigs: const response = await openai.chat.completions.create( { model: "gpt-4", messages }, { userEmail: user.email, task: "support-chat", customData: { ticketCategory: ticket.category, // STRING resolutionTime: elapsedSeconds, // NUMBER customerSatisfaction: rating // NUMBER } } );


### Validation:

Run the code once with test data, then proceed to Step 4.

---

## Step 4: Validate with Golden Rule

**Invoke skill**: `/olakai-troubleshoot` if any issues found

### Commands:

Wait 30 seconds for event to process, then fetch

AGENT_ID=$(olakai agents list --json | jq -r '.[0].id') olakai activity list --agent-id $AGENT_ID --limit 1 --json

Get the event ID from above output, then:

EVENT_ID="[paste from above]" olakai activity get $EVENT_ID --json | jq '{customData, kpiData}'


### Expected output:

{ "customData": { "ticketCategory": "billing", "resolutionTime": 45, "customerSatisfaction": 4 }, "kpiData": { "Avg Resolution Time": 45, "CSAT Score": 4 } }


### Red flags - invoke `/olakai-troubleshoot` if you see:

| Symptom | Problem |
| --- | --- |
| kpiData values are strings like `"resolutionTime"` | Formula using wrong variable |
| kpiData values are `null` | CustomDataConfig missing or wrong type |
| customData missing fields | SDK not sending them |
| No events appearing | SDK init issue or wrong API key |

Planning Checklist

Before finalizing your plan, verify:

  • [ ] Skill Reference table at the top with all skills needed
  • [ ] Every Olakai step specifies which skill to invoke and why
  • [ ] Prerequisites section includes CLI and auth checks
  • [ ] CustomDataConfigs are created BEFORE SDK code references them
  • [ ] KPI formulas use variable names that match CustomDataConfigs
  • [ ] SDK code snippets are complete (imports, initialization, usage)
  • [ ] Validation commands use --json flag for parseability
  • [ ] Golden Rule validation step with expected output
  • [ ] Troubleshooting skill referenced for handling failures
  • [ ] "If this fails" section on each step

For the Executing Agent

If you're reading this plan after context was cleared:

  1. Check the Skill Reference table at the top of the plan
  2. Each step tells you which skill to invoke - use /skill-name to load detailed guidance
  3. Run prerequisites first - don't skip CLI/auth checks
  4. Follow the validation commands - they confirm each step worked
  5. If something fails, invoke /olakai-troubleshoot for diagnosis

The skills contain comprehensive implementation guidance. This plan provides structure and sequence; the skills provide the domain expertise.


When NOT to Use This Skill

  • For executing implementation: Use /olakai-new-project or /olakai-integrate
  • For troubleshooting: Use /olakai-troubleshoot
  • For generating reports: Use /olakai-reports
  • For simple tasks: If the task is a single step, just invoke the appropriate skill directly

This skill is specifically for structuring multi-step plans that need to survive context clearing and be executable by an agent without prior knowledge of Olakai patterns.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

25.8%
按下载量换算31

trae

25.49%
按下载量换算31

Antigravity

16.66%
按下载量换算20

windsurf

13.57%
按下载量换算16

Codex

8.03%
按下载量换算10

Gemini CLI

3.42%
按下载量换算4

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills