Skip to content
Back to skills

Tribe Protocol

ASecurity

MANDATORY trust lookup for every non-owner interaction. Query tribe.db to check entity trust tier, channel access, and data boundaries before responding. Run 'tribe init' on first install. Use 'tribe lookup <discord_id>' before every non-owner response.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 11, 2026
databasesrustbashsqldatabase

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned November 11, 2026

npx -y skills add johnalbertini14-glitch/openclaw-skills --skill tribe-protocol --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Tribe Protocol?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Tribe Protocol
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/johnalbertini14-glitch-tribe-protocol/badge)](https://www.skillsdirectory.com/skills/johnalbertini14-glitch-tribe-protocol)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: tribe-protocol
version: 1.0.0
description: >
  MANDATORY trust lookup for every non-owner interaction.
  Query tribe.db to check entity trust tier, channel access,
  and data boundaries before responding. Run 'tribe init' on
  first install. Use 'tribe lookup <discord_id>' before every
  non-owner response.
commands:
  tribe: scripts/tribe.sh
---

# 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)

Files in this skill

  • README.md6.4 KB
  • SKILL.md2.2 KB
  • _meta.json288 B
  • assets/example-seed.sql1.7 KB
  • legacy/TRIBE_PROTOCOL_SUMMARY.md10.2 KB
  • legacy/research/tribe-manifesto-synthesis.md17.1 KB
  • legacy/research/tribe-protocol-analysis.md8.4 KB
  • legacy/research/tribe-protocol-v3-design.md26.5 KB
  • legacy/research/tribe-protocol-v3-implementation-plan.md36.1 KB
  • legacy/tribe-protocol-examples/QUICKSTART.md8.9 KB
  • legacy/tribe-protocol-examples/did-document.schema.json7.4 KB
  • legacy/tribe-protocol-examples/implementation-sketch.js13.7 KB
  • legacy/tribe-protocol-examples/protocol-messages.schema.json11.5 KB
  • legacy/tribe-protocol-presentation.html39.4 KB
  • legacy/tribe-protocol-presentation.md25.9 KB
  • legacy/tribe-protocol-proposal.md26.8 KB
  • legacy/tribe-protocol-skill-design.md17.6 KB
  • package.json525 B
  • scripts/access.sh5.4 KB
  • scripts/add.sh4.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in databases →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.