TopRank Skills

Home / Claw Skills / Git / GitHub / sardis-policy
Official OpenClaw rules 36%

sardis-policy

Natural language spending policy creation and management for Sardis agent wallets

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 sardis-policy 技能。 若已安装,则直接安装 sardis-policy 技能。

Overview

Skill Key
efedurmaz16/sardis-policy
Author
efedurmaz16
Source Repo
openclaw/skills
Version
1.0.0
Source Path
skills/efedurmaz16/sardis-policy
Latest Commit SHA
276a771bb29183ff253d3f94cacb5479fac0c698

Extracted Content

SKILL.md excerpt

# Sardis Policy - Natural Language Spending Controls

Create and manage spending policies for AI agents using natural language. Define limits, restrictions, and approval workflows without complex configuration.

## Capabilities

- **Natural Language Policies**: "Max $500/day, only Amazon and OpenAI, no weekends"
- **Policy Templates**: Pre-built templates for common scenarios
- **Policy Testing**: Dry-run transactions against policies without execution
- **Multi-Layer Policies**: Combine transaction, daily, weekly, monthly limits
- **Vendor Restrictions**: Allowlists, blocklists, category controls
- **Time-Based Rules**: Weekend blocks, business hours only, time-of-day limits

## Security Model

Policies are IMMUTABLE once created. To change a policy, create a new version and migrate the wallet.

## Quick Setup

```bash
export SARDIS_API_KEY=sk_your_key_here
```

## API Endpoint Patterns

Base URL: `https://api.sardis.sh/v2`

### Create Policy with Natural Language

```bash
# Create a new spending policy from natural language
curl -X POST https://api.sardis.sh/v2/policies \
  -H "Authorization: Bearer $SARDIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Procurement Agent Policy",
    "description": "Max $500/day, only Amazon and OpenAI, no weekends",
    "wallet_id": "wallet_abc123"
  }'

# The natural language in "description" is automatically parsed into rules
```

### Create Policy with Explicit Rules

```bash
# Create policy with structured rules
curl -X POST https://api.sardis.sh/v2/policies \
  -H "Authorization: Bearer $SARDIS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "SaaS Subscription Policy",
    "wallet_id": "wallet_abc123",
    "rules": {
      "per_transaction_limit": "100.00",
      "daily_limit": "500.00",
      "weekly_limit": "2000.00",
      "monthly_limit": "8000.00",
      "allowed_vendors": ["openai.com", "anthropic.com", "github.com"],
      "blocked_categories": ["gambling", "crypto-excha...

Related Claw Skills