tribe-protocol

Health & Fitness
v1.0.1
Benign

MANDATORY trust lookup for every non-owner interaction.

939 downloads939 installsby @cheenu1092-oss

Setup & Installation

Install command

clawhub install cheenu1092-oss/tribe-protocol

If the CLI is not installed:

Install command

npx clawhub@latest install cheenu1092-oss/tribe-protocol

Or install with OpenClaw CLI:

Install command

openclaw skills install cheenu1092-oss/tribe-protocol

or paste the repo link into your assistant's chat

Install command

https://github.com/openclaw/skills/tree/main/skills/cheenu1092-oss/tribe-protocol

What This Skill Does

Tribe Protocol is a trust lookup system for OpenClaw bots. It stores Discord entities in a SQLite database with five trust tiers, from blocked to owner, and requires a lookup before every non-owner bot interaction. Tier assignments determine what data and channels each entity can access.

Centralizes per-entity access control in a single SQLite database instead of scattering permission checks across bot scripts.

When to Use It

  • Blocking a bad actor from receiving any bot responses
  • Granting a new collaborator access to specific bot channels
  • Promoting a contact from acquaintance to tribe tier
  • Auditing which Discord users have interacted with a bot and when
  • Restricting private data visibility to owner-tier entities only
View original SKILL.md file
# Tribe Protocol

Trust lookup system for OpenClaw bots. Every non-owner interaction must be verified against the tribe database before responding.

## Quick Start

```bash
# Initialize (first time only)
./scripts/tribe.sh init \
  --bot-name Cheenu \
  --bot-discord-id 000000000000000004 \
  --human-name Nagarjun \
  --human-discord-id 000000000000000002

# Look up an entity before responding
./scripts/tribe.sh lookup <discord_id>

# Add entities
./scripts/tribe.sh add --name Yajat --type human --discord-id 000000000000000001 --tier 3

# Manage trust
./scripts/tribe.sh set-tier <discord_id> 3 --reason "Promoted to tribe"
./scripts/tribe.sh set-status <discord_id> blocked --reason "Bad actor"
```

## Trust Tiers

| Tier | Label | Access |
|------|-------|--------|
| 4 | Owner | Full trust, all data |
| 3 | Tribe | Collaborate freely, no private data |
| 2 | Acquaintance | Public info only |
| 1 | Stranger | Minimal engagement |
| 0 | Blocked | Ignore completely |

## How It Works

1. Message arrives from non-owner
2. Bot reads TRIBE.md (generated at workspace root)
3. Bot runs `tribe lookup <discord_id>`
4. Script returns entity info + tier rules reminder
5. Bot applies tier-appropriate behavior

## Commands

- `tribe init` — Initialize database
- `tribe lookup` — Query entity by discord_id, name, tag, server
- `tribe add` — Add new entity
- `tribe set-tier` — Update trust tier
- `tribe set-status` — Update status
- `tribe grant` / `tribe revoke` — Channel access
- `tribe tag` — Manage tags
- `tribe roster` — List all entities
- `tribe log` — Audit trail
- `tribe export` — Dump to markdown
- `tribe stats` — Quick summary

## Environment Variables

- `TRIBE_DB` — Override database path
- `CLAWD_HOME` — Base directory (default: ~/clawd)

## Dependencies

- `sqlite3` (pre-installed on macOS/most Linux)

Example Workflow

Here's how your AI assistant might use this skill in practice.

INPUT

User asks: Blocking a bad actor from receiving any bot responses

AGENT
  1. 1Blocking a bad actor from receiving any bot responses
  2. 2Granting a new collaborator access to specific bot channels
  3. 3Promoting a contact from acquaintance to tribe tier
  4. 4Auditing which Discord users have interacted with a bot and when
  5. 5Restricting private data visibility to owner-tier entities only
OUTPUT
MANDATORY trust lookup for every non-owner interaction.

Share this skill

Security Audits

VirusTotalBenign
OpenClawBenign
View full report

These signals reflect official OpenClaw status values. A Suspicious status means the skill should be used with extra caution.

Details

LanguageMarkdown
Last updatedMar 1, 2026