.cursor/skills/business-partnership-patterns/SKILL.md
--- name: business-partnership-patterns description: Guides business partnership implementation: multi-party events, revenue sharing, vibe matching, pre-event agreements. Use when implementing partnerships, event collaborations, or revenue sharing features. --- # Business Partnership Patterns ## Core Components ### Partnership Matching Service Matches users with businesses based on compatibility. ### Partnership Service Manages partnership agreements and revenue splits. ### Revenue Split Ca
npx skillsauth add avra-cadavra/avrai .cursor/skills/business-partnership-patternsInstall 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.
Matches users with businesses based on compatibility.
Manages partnership agreements and revenue splits.
Calculates revenue sharing for multi-party events.
/// Calculate compatibility between user and business
Future<double> calculateCompatibility({
required String userId,
required String businessId,
ExpertiseEvent? event,
}) async {
// Try quantum matching first (if enabled)
if (_quantumIntegrationService != null && event != null) {
final quantumResult = await _quantumIntegrationService!
.calculateUserBusinessCompatibility(
user: await _getUser(userId),
business: await _getBusiness(businessId),
event: event,
);
if (quantumResult != null) {
// Hybrid approach: 70% quantum, 30% classical
final classicalCompatibility = await _calculateClassicalCompatibility(
userId: userId,
businessId: businessId,
);
final hybridScore = 0.7 * quantumResult.compatibility +
0.3 * classicalCompatibility;
return hybridScore.clamp(0.0, 1.0);
}
}
// Fall back to classical vibe-based matching
return await _calculateClassicalCompatibility(
userId: userId,
businessId: businessId,
);
}
/// Create multi-party event partnership
Future<Partnership> createMultiPartyPartnership({
required Event event,
required List<Partner> partners,
required RevenueSplitAgreement agreement,
}) async {
// Validate 70%+ compatibility requirement
for (final partner in partners) {
final compatibility = await calculateCompatibility(
userId: partner.userId,
businessId: event.businessId,
event: event,
);
if (compatibility < 0.70) {
throw PartnershipException(
'Compatibility below 70% threshold: ${compatibility.toStringAsFixed(2)}',
);
}
}
// Create partnership with pre-event agreement
final partnership = Partnership(
id: generateId(),
eventId: event.id,
partners: partners,
revenueSplit: agreement,
status: PartnershipStatus.active,
createdAt: DateTime.now(),
);
// Lock revenue splits before event starts
await _partnershipService.lockRevenueSplits(partnership);
return partnership;
}
/// Calculate revenue split for multi-party partnership
Future<RevenueSplit> calculateRevenueSplit({
required Partnership partnership,
required double totalRevenue,
}) async {
final splits = <RevenueShare>[];
// Split among partners based on agreement
for (final partner in partnership.partners) {
final shareAmount = totalRevenue * partner.revenuePercentage;
splits.add(RevenueShare(
partnerId: partner.id,
amount: shareAmount,
percentage: partner.revenuePercentage,
));
}
// Platform fee (10%)
final platformFee = totalRevenue * 0.10;
splits.add(RevenueShare(
partnerId: 'platform',
amount: platformFee,
percentage: 0.10,
));
return RevenueSplit(
totalRevenue: totalRevenue,
platformFee: platformFee,
partnerSplits: splits,
);
}
/// Calculate vibe-based compatibility (classical method)
Future<double> calculateClassicalCompatibility({
required String userId,
required String businessId,
}) async {
final user = await _getUser(userId);
final business = await _getBusiness(businessId);
// Calculate compatibility factors
final valueAlignment = _calculateValueAlignment(user.vibe, business.vibe);
final qualityFocus = _calculateQualityFocus(user.vibe, business.vibe);
final communityOrientation = _calculateCommunityOrientation(user.vibe, business.vibe);
final eventStyleMatch = _calculateEventStyleMatch(user.preferences, business.eventStyle);
final authenticityMatch = _calculateAuthenticityMatch(user.vibe, business.vibe);
// Weighted combination
final compatibility = (
valueAlignment * 0.25 +
qualityFocus * 0.25 +
communityOrientation * 0.20 +
eventStyleMatch * 0.20 +
authenticityMatch * 0.10
);
return compatibility.clamp(0.0, 1.0);
}
lib/core/services/partnership_matching_service.dartlib/core/services/business_expert_matching_service.dartdocs/plans/monetization_business_expertise/development
--- 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