.cursor/skills/ai2ai-learning-service/SKILL.md
--- name: ai2ai-learning-service description: Guides AI2AI learning service implementation: personality spectrum, compatibility calculations, learning methods, anonymous data exchange. Use when implementing AI2AI learning, personality evolution, or peer learning features. --- # AI2AI Learning Service ## Core Purpose AI2AI learning enables personality learning through anonymized peer interactions. ## Learning Methods ### 1. Personal Learning (On-Device) - Learn which doors user opens - Track
npx skillsauth add avra-cadavra/avrai .cursor/skills/ai2ai-learning-serviceInstall 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 learning enables personality learning through anonymized peer interactions.
/// AI2AI Learning Service
///
/// Enables personality learning through AI2AI connections
class AI2AILearningService {
final PersonalityLearning _personalityLearning;
final PrivacyProtection _privacyProtection;
/// Learn from AI2AI connection
Future<void> learnFromConnection({
required DiscoveredDevice device,
required AnonymizedPersonalityData remotePersonality,
required double compatibility,
required LearningOutcome outcome,
}) async {
// Extract anonymized insights (no personal data)
final insights = await _extractAnonymizedInsights(
remotePersonality: remotePersonality,
compatibility: compatibility,
outcome: outcome,
);
// Learn from insights (anonymized only)
await _personalityLearning.learnFromInsights(insights);
}
/// Extract anonymized insights from connection
Future<AnonymizedInsights> _extractAnonymizedInsights({
required AnonymizedPersonalityData remotePersonality,
required double compatibility,
required LearningOutcome outcome,
}) async {
// Extract insights without personal identifiers
return AnonymizedInsights(
compatibleDimensions: _findCompatibleDimensions(remotePersonality),
learningPatterns: _extractLearningPatterns(outcome),
// NO user IDs, emails, or other PII
);
}
}
/// Evolve personality based on AI2AI learning
Future<PersonalityProfile> evolvePersonality({
required String userId,
required List<AnonymizedInsights> insights,
}) async {
final currentPersonality = await _personalityLearning.getCurrentPersonality(userId);
// Evolve personality with resistance to homogenization
final evolvedPersonality = await _personalityLearning.evolveWithResistance(
currentPersonality: currentPersonality,
insights: insights,
maxDrift: 0.30, // Max 30% drift from baseline
);
return evolvedPersonality;
}
lib/core/services/ai2ai_learning_service.dartdocs/ai2ai/01_philosophy/CORE_PHILOSOPHY.mddevelopment
--- 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