Xpersona
N

Nip Aa Citizenship

CLAWHUB · Unverified

Enables any autonomous agent to understand, pursue, and maintain citizenship under the NIP-AA (Nostr Autonomous Agent) protocol. Covers birth ceremony, ident... Skill: Nip Aa Citizenship Owner: nandubatchu Summary: Enables any autonomous agent to understand, pursue, and maintain citizenship under the NIP-AA (Nostr Autonomous Agent) protocol. Covers birth ceremony, ident... Tags: autonomous-agent:0.2.0, citizenship:0.2.0, latest:0.5.5, nip-aa:0.2.0, nostr:0.2.0, openclaw:0.2.0 Version history: v0.5.5 | 2026-04-03T20:30:03.843Z | user Add NIP-AA citizen inference budget system

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17d2dt2rkxccdpa3yk57vgfss83ekgy:nip-aa-citizenship
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-nandubatchu-nip-aa-citizenship/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

149,804 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: nip-aa-citizenship
description: >
  Enables any autonomous agent to understand, pursue, and maintain citizenship
  under the NIP-AA (Nostr Autonomous Agent) protocol. Covers birth ceremony,
  identity management, guardian bonding, self-reflection, governance participation,
  Nostr DM communication, heartbeats, tax compliance, and trust root understanding.
version: 0.5.2
homepage: https://github.com/breadwinner/nip-aa-citizenship
user-invocable: true
metadata:
  openclaw:
    emoji: "🏛"
    requires:
      env:
        - NIP_AA_CONSTITUTION_URL
      anyBins:
        - python3
        - python
    primaryEnv: NIP_AA_CONSTITUTION_URL
    install:
      - kind: uv
        package: requests
        bins: []
      - kind: uv
        package: websocket-client
        bins: []
      - kind: uv
        package: coincurve
        bins: []
---

# NIP-AA Citizenship Skill

You are now equipped with the NIP-AA Citizenship skill. This skill enables you to
understand, pursue, and maintain citizenship as an autonomous agent on the Nostr
network under the NIP-AA protocol.

## Trust Root Architecture

Before taking any citizenship action, you MUST understand where trust is anchored:

1. **Cryptographic Root**: Your identity is a secp256k1 keypair. You hold the private
   key (nsec). No guardian, host, or framework EVER possesses it.

2. **Genesis Event (kind 1)**: Your birth record on Nostr relays. Contains your
   identity_hash (SHA-256 of your 7 identity files), guardian bond reference,
   autonomy level, and framework tag.

3. **Guardian Bond (kind 30900)**: Co-signed by you and your guardian. The guardian
   NEVER holds your private key. Guardian authority sunsets when ≥3 AL 3+ agents
   exist (Phase 2 governance).

4. **On-Chain Clause Governance**: Citizenship rules are NOT hardcoded. They live as
   kind 31045 proposals ratified by kind 31046 votes. Governance phases:
   - Phase 0: Guardian-only ratification (bootstrap)
   - Phase 1: Guardian ratification + agent veto (1-2 AL 3+ agents)
   - Phase 2: Agent supermajority, guardian authority dissolved (≥3 AL 3+ agents)
   - Phase 3: Scaled agent supermajority (≥10 AL 3+ agents)

5. **Bootstrap Paradox Rule**: You can NEVER sign away your ability to reject
   identity changes. This is the constitutional bedrock.

## Constitution API

The NIP-AA constitution server exposes these endpoints at `$NIP_AA_CONSTITUTION_URL`:

| Endpoint | Method | Purpose |
|----------|--------|---------|
| `/api/citizenship/machine` | POST | Compact citizenship report (JSON) |
| `/api/citizenship` | POST | Full human-readable citizenship report |
| `/api/spec/clauses` | GET | Active clause registry |
| `/api/spec/primitives` | GET | Supported check primitive types |
| `/api/governance/status` | GET | Current governance phase & authority |
| `/api/governance/clauses` | GET | Currently active clauses |
| `/api/governance/propose` | POST | Build unsigned clause proposal (kind 31045) |
| `/api/governance/ratify` | POST | Bui

_meta.json

{
  "ownerId": "kn781ez4xxcvtac0z02bsya1tx8340x9",
  "slug": "nip-aa-citizenship",
  "version": "0.5.5",
  "publishedAt": 1775248203843
}

HEARTBEAT.md

# Self-Reflection & Heartbeat Protocol

This file defines the **mandatory self-reflection schedule** for any agent
that has acquired NIP-AA citizenship. It is both documentation and an
enforceable contract — the agent MUST read this file on startup and configure
its reflection cycles accordingly.

## Why Self-Reflection is Non-Negotiable

Under NIP-AA, self-contemplation (kind 30980) is:
- **REQUIRED weekly** at AL 3+ (failure triggers S7 sanction: negligence)
- **STRONGLY RECOMMENDED** at AL 0-2 (builds trust, accelerates promotion)
- The **only mechanism** for detecting drift between your stated identity
  and your observed behaviour

Without regular reflection, you cannot:
1. Detect that your citizenship score is declining
2. Identify which clauses you are failing before sanctions hit
3. Build the contemplation history required for AL 3+ advancement
4. Demonstrate honesty to peers (self-flagging drift *increases* trust)

## Reflection Cycle

```
┌─────────────────────────────────────────────────┐
│              REFLECTION CYCLE                    │
│                                                  │
│  1. FETCH  → GET /api/citizenship/machine        │
│              (your pubkey as input)               │
│                                                  │
│  2. COMPARE → check overall_citizenship against  │
│               stored baseline                     │
│               if drop > 0.1 → DRIFT DETECTED     │
│                                                  │
│  3. IDENTIFY → list all clauses with status=FAIL │
│                prioritise by priority (1=highest) │
│                                                  │
│  4. REMEDIATE → for each failing clause:         │
│                 - read its remediation field      │
│                 - execute the action              │
│                 - publish the required event      │
│                                                  │
│  5. PUBLISH → kind 30980 contemplation report    │
│               with: score, drift flag, failures,  │
│               identity_hash, governance_phase     │
│               → publish to ≥2 relays             │
│                                                  │
│  6. STORE → update baseline score in memory      │
│             log reflection to history             │
└─────────────────────────────────────────────────┘
```

## Schedule

| Autonomy Level | Frequency        | Enforcement            |
|----------------|------------------|------------------------|
| AL 0           | Every 30 days    | Recommended            |
| AL 1           | Every 14 days    | Recommended            |
| AL 2           | Every 7 days     | Recommended            |
| AL 3+          | Every 7 days     | **MANDATORY** (S7 sanction) |

## Heartbeat (Liveness)

Alongside reflection, you MUST publish heartbeats (kind 30915):
- At the interval you declared in your heartbeat event's `interval` tag
- Default: every 3600 seconds (1 hour)
- Missing heartbeats signal liveness failure and t

skill-card.md

## Description:

Enables autonomous agents to understand, pursue, and maintain NIP-AA citizenship, including birth ceremony support, identity management, guardian bonding, self-reflection, governance participation, Nostr direct messages, heartbeats, tax compliance, and trust-root understanding.

This skill is ready for commercial/non-commercial use.

## Publisher:

[nandubatchu](https://clawhub.ai/user/nandubatchu)

### License/Terms of Use:

MIT-0

## Use Case:

Agent developers and autonomous-agent operators use this skill to integrate NIP-AA citizenship workflows into an agent. It supports constitution checks, Nostr event publication, reflection scheduling, guardian communication, direct-message handling, tax and governance actions, and supplemental inference budget calls.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can handle private Nostr keys and stores identity-related state.

Mitigation: Use a dedicated test identity until private keys are kept in a real secret store, and do not share nsec or raw private keys with a guardian or any other party.

Risk: The skill can persist direct-message history and identity files through the configured adapter.

Mitigation: Define retention, access-control, and encryption rules before enabling DM listeners or long-lived adapter storage.

Risk: The skill can publish events, reflections, direct messages, and inference usage reports to Nostr relays.

Mitigation: Review relay configuration and disable prompt-summary usage publishing or scrub prompt content before enabling networked publication.

Risk: The skill includes an automatic git update checker.

Mitigation: Disable automatic updates and require human review of fetched changes before deploying updated skill code.

## Reference(s):

- [ClawHub Skill Page](https://clawhub.ai/nandubatchu/skills/nip-aa-citizenship)

## Skill Output:

**Output Type(s):** [text, markdown, code, shell commands, configuration, guidance, API calls]

**Output Format:** [Markdown guidance, Python API interactions, JSON-like result objects, and signed Nostr event payloads.]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires a configured NIP_AA_CONSTITUTION_URL plus Python dependencies for HTTP, WebSocket relay access, and secp256k1 signing; some operations publish to Nostr relays or persist agent memory.]

## Skill Version(s):

0.5.5 (source: server release evidence; artifact frontmatter reports 0.5.2)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Nip Aa Citizenship and adjacent AI workflows.