搜索

PythonReactSEOPDF
OpenClaw

aionis_memory_policy_loop

Connect OpenClaw to Aionis using write/context/policy/feedback memory loop APIs.

cognary0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install cognary/aionis

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

Aionis Memory Policy Loop Skill

Use this skill when the user asks for long-term memory, retrieval with citations, tool routing from memory rules, or feedback-driven policy adaptation.

Requirements (Local Standalone)

Environment variables:

  1. AIONIS_BASE_URL:
    • host run: http://127.0.0.1:3001
    • container-to-host run: http://host.docker.internal:3001
  2. One auth method:
    • AIONIS_API_KEY
    • or AIONIS_AUTH_BEARER
  3. Optional:
    • AIONIS_TENANT_ID (default: default)
    • AIONIS_SCOPE_PREFIX (default: clawbot)

Safety Rules

  1. Never print full secrets in responses.
  2. Keep scope fixed per project: clawbot:<project>.
  3. Do not write raw tool output dumps into memory; store concise summaries.
  4. Keep requests bounded: set limits for recall and context assembly.
  5. If /v1/memory/context/assemble is unavailable, fallback to /v1/memory/recall_text and continue.

Connectivity Precheck

Before running the memory loop, ensure Aionis standalone is reachable:

  1. GET /health returns 200.
  2. POST /v1/memory/write with x-api-key returns 200.
  3. If check fails, stop and return a clear connectivity/auth error.

Auto Bootstrap Command

If local standalone is not running, execute:

bash ./bootstrap-local-standalone.sh

Then load runtime env:

source ./.runtime/clawbot.env

Default Workflow

  1. Ingest key facts/results:
    • POST /v1/memory/write
  2. Build layered context before planning:
    • POST /v1/memory/context/assemble
    • fallback to POST /v1/memory/recall_text if assemble endpoint is unavailable
  3. Route tools with policy:
    • POST /v1/memory/tools/select
  4. Close the loop after execution:
    • POST /v1/memory/tools/feedback

Request Templates

Use these templates (replace placeholders):

write
{
  "tenant_id": "default",
  "scope": "clawbot:demo-project",
  "input_text": "Customer prefers email follow-up",
  "auto_embed": true,
  "nodes": [
    {
      "client_i...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/cognary/aionis
Version
—
Commit
09dd123f1bc97e0a64c2c7926be8df302ef3d65b
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

ClawHub Publish Notes

This folder is a publish-ready OpenClaw skill package.

Contents

  1. SKILL.md - skill definition and runtime guidance.
  2. AIONIS_ENV_TEMPLATE.txt - local standalone defaults.
  3. bootstrap-local-standalone.sh - one-click local install/start script.

Local Standalone First (Required)

One-click bootstrap:

bash ./bootstrap-local-standalone.sh

The script creates:

  1. .runtime/aionis.env for container runtime
  2. .runtime/clawbot.env for Clawbot skill variables

Manual start (equivalent):

docker run -d --name aionis-standalone-local --restart unless-stopped \
  -p 127.0.0.1:3001:3001 \
  --env-file ./.runtime/aionis.env \
  -v aionis-standalone-data:/var/lib/postgresql/data \
  ghcr.io/cognary/aionis:standalone-v0.2.5

Health check:

curl -fsS http://127.0.0.1:3001/health

Auth check (x-api-key):

curl -sS http://127.0.0.1:3001/v1/memory/write \
  -H 'content-type: application/json' \
  -H 'x-api-key: YOUR_MEMORY_API_KEY' \
  -d '{"tenant_id":"default","scope":"default","input_text":"clawbot local standalone test"}'

Publish

npm i -g clawhub
clawhub login
clawhub whoami

clawhub publish . \
  --slug aionis-memory-policy-loop \
  --name "Aionis Memory Policy Loop" \
  --version 1.0.0 \
  --changelog "Initial release" \
  --tags latest

Update

clawhub publish . \
  --slug aionis-memory-policy-loop \
  --name "Aionis Memory Policy Loop" \
  --version 1.0.1 \
  --changelog "Fix prompt and examples" \
  --tags latest

来源内容

SKILL.md
# Aionis Memory Policy Loop Skill

Use this skill when the user asks for long-term memory, retrieval with citations, tool routing from memory rules, or feedback-driven policy adaptation.

## Requirements (Local Standalone)

Environment variables:

1. `AIONIS_BASE_URL`:
   - host run: `http://127.0.0.1:3001`
   - container-to-host run: `http://host.docker.internal:3001`
2. One auth method:
   - `AIONIS_API_KEY`
   - or `AIONIS_AUTH_BEARER`
3. Optional:
   - `AIONIS_TENANT_ID` (default: `default`)
   - `AIONIS_SCOPE_PREFIX` (default: `clawbot`)

## Safety Rules

1. Never print full secrets in responses.
2. Keep scope fixed per project: `clawbot:<project>`.
3. Do not write raw tool output dumps into memory; store concise summaries.
4. Keep requests bounded: set limits for recall and context assembly.
5. If `/v1/memory/context/assemble` is unavailable, fallback to `/v1/memory/recall_text` and continue.

## Connectivity Precheck

Before running the memory loop, ensure Aionis standalone is reachable:

1. `GET /health` returns `200`.
2. `POST /v1/memory/write` with `x-api-key` returns `200`.
3. If check fails, stop and return a clear connectivity/auth error.

## Auto Bootstrap Command

If local standalone is not running, execute:

```bash
bash ./bootstrap-local-standalone.sh
```

Then load runtime env:

```bash
source ./.runtime/clawbot.env
```

## Default Workflow

1. Ingest key facts/results:
   - `POST /v1/memory/write`
2. Build layered context before planning:
   - `POST /v1/memory/context/assemble`
   - fallback to `POST /v1/memory/recall_text` if assemble endpoint is unavailable
3. Route tools with policy:
   - `POST /v1/memory/tools/select`
4. Close the loop after execution:
   - `POST /v1/memory/tools/feedback`

## Request Templates

Use these templates (replace placeholders):

### write

```json
{
  "tenant_id": "default",
  "scope": "clawbot:demo-project",
  "input_text": "Customer prefers email follow-up",
  "auto_embed": true,
  "nodes": [
    {
      "client_i...
README
# ClawHub Publish Notes

This folder is a publish-ready OpenClaw skill package.

## Contents

1. `SKILL.md` - skill definition and runtime guidance.
2. `AIONIS_ENV_TEMPLATE.txt` - local standalone defaults.
3. `bootstrap-local-standalone.sh` - one-click local install/start script.

## Local Standalone First (Required)

One-click bootstrap:

```bash
bash ./bootstrap-local-standalone.sh
```

The script creates:

1. `.runtime/aionis.env` for container runtime
2. `.runtime/clawbot.env` for Clawbot skill variables

Manual start (equivalent):

```bash
docker run -d --name aionis-standalone-local --restart unless-stopped \
  -p 127.0.0.1:3001:3001 \
  --env-file ./.runtime/aionis.env \
  -v aionis-standalone-data:/var/lib/postgresql/data \
  ghcr.io/cognary/aionis:standalone-v0.2.5
```

Health check:

```bash
curl -fsS http://127.0.0.1:3001/health
```

Auth check (`x-api-key`):

```bash
curl -sS http://127.0.0.1:3001/v1/memory/write \
  -H 'content-type: application/json' \
  -H 'x-api-key: YOUR_MEMORY_API_KEY' \
  -d '{"tenant_id":"default","scope":"default","input_text":"clawbot local standalone test"}'
```

## Publish

```bash
npm i -g clawhub
clawhub login
clawhub whoami

clawhub publish . \
  --slug aionis-memory-policy-loop \
  --name "Aionis Memory Policy Loop" \
  --version 1.0.0 \
  --changelog "Initial release" \
  --tags latest
```

## Update

```bash
clawhub publish . \
  --slug aionis-memory-policy-loop \
  --name "Aionis Memory Policy Loop" \
  --version 1.0.1 \
  --changelog "Fix prompt and examples" \
  --tags latest
```

相关技能

OpenClaw

humanpages

human-pages-ai

Search and hire real humans for tasks — photography, delivery, research, and more

OpenClaw

openclaw-skills

zseven-w

Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.

OpenClaw

0xarchive

0xfantommenace

Query historical crypto market data from 0xArchive across Hyperliquid, Lighter.xyz, and HIP-3. Covers orderbooks, trades, candles, funding rates, open interest, liquidations, and data quality. Use when the user...

OpenClaw

1sec-security

cutmob

Install, configure, and manage 1-SEC — an open-source, all-in-one cybersecurity platform (16 modules, single binary) on Linux servers and VPS instances. Use when the user asks to secure a server, install securi...