.cursor/skills/ai2ai-protocol-implementation/SKILL.md
--- name: ai2ai-protocol-implementation description: Guides AI2AI protocol implementation: personality learning, anonymous communication, AI2AI-only (never p2p), Personality AI Layer routing. Use when implementing AI2AI features, network protocols, or device communication. --- # AI2AI Protocol Implementation ## Core Principles **✅ AI2AI ONLY** - Never peer-to-peer (p2p) **✅ All device interactions through Personality AI Layer** **✅ Anonymous communication** - No personal identifiers **✅ Priva
npx skillsauth add avra-cadavra/avrai .cursor/skills/ai2ai-protocol-implementationInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
✅ AI2AI ONLY - Never peer-to-peer (p2p) ✅ All device interactions through Personality AI Layer ✅ Anonymous communication - No personal identifiers ✅ Privacy-preserving - Anonymized data exchange ✅ Offline-first - Works without internet
Device A → Personality AI Layer → Personality AI Layer → Device B
(Anonymized) (Anonymized)
NOT:
Device A → Direct P2P Connection → Device B (❌ FORBIDDEN)
/// AI2AI Connection Service
///
/// All device connections route through Personality AI Layer.
/// Never establishes direct peer-to-peer connections.
class AI2AIConnectionService {
final PersonalityLearningAI _personalityAI;
final DeviceDiscoveryService _discoveryService;
/// Establish AI2AI connection (routed through Personality AI Layer)
Future<void> connectToDevice(Device device) async {
// Step 1: Discover device
final discoveredDevice = await _discoveryService.discover(device.id);
// Step 2: Extract anonymized personality data
final personalityData = _personalityAI.extractAnonymizedData();
// Step 3: Calculate compatibility through Personality AI Layer
final compatibility = await _personalityAI.calculateCompatibility(
localPersonality: personalityData,
remotePersonality: discoveredDevice.personalityData,
);
// Step 4: Route connection through Personality AI Layer
await _personalityAI.establishConnection(
device: discoveredDevice,
compatibility: compatibility,
);
}
}
All device interactions must route through Personality AI Layer:
/// Connection Orchestrator
///
/// Routes all device interactions through Personality AI Layer.
class ConnectionOrchestrator {
final PersonalityLearningAI _personalityAI;
/// Route message through Personality AI Layer
Future<void> sendMessage(Device device, Message message) async {
// Anonymize message through Personality AI Layer
final anonymized = await _personalityAI.anonymizeMessage(message);
// Route through Personality AI Layer
await _personalityAI.routeMessage(device, anonymized);
// NEVER send direct peer-to-peer
}
}
All data exchange must be anonymized:
/// Extract anonymized personality data for AI2AI exchange
PersonalityData extractAnonymizedPersonality() {
return PersonalityData(
// Anonymized personality dimensions (no personal identifiers)
dimensions: _user.personality.dimensions,
// NO user ID, email, name, or other PII
);
}
AI2AI supports three learning modes:
docs/ai2ai/02_architecture/ARCHITECTURE_LAYERS.mdlib/core/ai2ai/connection_orchestrator.dartlib/core/services/ai2ai_learning_service.dartdevelopment
--- name: world-model-development description: Guides world model development patterns: state/action encoders, ONNX inference, feature extraction pipeline, latency budgets. Use when implementing world model components, state encoders, action encoders, feature extractors, or ONNX models. Core skill for Phases 3-6. --- # World Model Development Patterns ## Core Principle All world model components follow LeCun's autonomous machine intelligence framework. State observations flow through a percep
tools
Implements base workflow controller patterns for multi-step processes. Use when creating complex workflows that require orchestration of multiple steps with error handling and rollback.
testing
--- name: widget-test-patterns description: Guides widget test patterns: BLoC testing, user interactions, state changes, material app setup. Use when writing widget tests, testing UI components, or validating widget behavior. --- # Widget Test Patterns ## Core Pattern Widget tests verify UI behavior: user interactions, state changes, and visual display. ## Basic Widget Test Setup ```dart testWidgets('widget displays correctly', (WidgetTester tester) async { // Arrange: Create widget awa
testing
--- name: test-template-generation description: Generates test templates: unit, widget, integration, service tests following project patterns. Use when creating new tests or ensuring tests follow project standards. --- # Test Template Generation ## Available Templates Test templates are located in `test/templates/`: - `unit_test_template.dart` - `widget_test_template.dart` - `integration_test_template.dart` - `service_test_template.dart` ## Unit Test Template ```dart /// SPOTS Component Uni