ari-vitest-guardian
Vitest-specific testing skill for ARI's 80%+ coverage requirement and security path testing
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Vitest-specific testing skill for ARI's 80%+ coverage requirement and security path testing
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Discord slash commands, approval routing, channel policy, button interaction patterns for OpenClaw/ARI Discord integration
Obsidian vault integration patterns — vault-analyzer.ts, /ari-vault-* commands, morning briefing snippet, PARA structure, read-only enforcement
OpenClaw plugin development patterns — hooks, manifest structure, plugin SDK, APEX/CODEX enforcement
NOVA's P1 PayThePryce pipeline — market signal ingest, card detection, price monitoring, script generation, thumbnail generation, video assembly, approval gate
CHASE's P2 Pryceless Solutions pipeline — lead discovery, 5-criteria audit, LLM qualification, Prompt Forge 4-pass lock, demo generation, outreach approval gate
NOVA's thumbnail generation pipeline — Ideogram V3 via Fal.ai (primary) + DALL-E 3 fallback, 4-variant strategy, Pokemon TCG copyright rules,
| name | ari-vitest-guardian |
| description | Vitest-specific testing skill for ARI's 80%+ coverage requirement and security path testing |
| triggers | ["run tests","test ari","check coverage","test security paths"] |
Ensure ARI maintains its testing requirements:
tests/
├── unit/ # Component tests
│ ├── kernel/ # sanitizer, audit, event-bus (100% required)
│ ├── system/ # router
│ ├── agents/ # core, guardian, executor, planner, memory-manager
│ └── governance/ # council, arbiter, overseer (100% required)
├── integration/ # Full pipeline tests
└── security/ # Injection defense tests (100% required)
npm test # Run all 187+ tests
npm run test:watch # Watch mode
npm run test:coverage # Coverage report
npm test via BashFollow ARI's test structure:
import { describe, it, expect, beforeEach } from 'vitest';
import { Component } from '../../src/layer/component.js';
describe('Component', () => {
let component: Component;
beforeEach(() => {
component = new Component();
});
describe('featureName', () => {
it('should handle expected case', () => {
const result = component.method('input');
expect(result).toBe('expected');
});
});
});
These paths require 100% coverage:
| Path | File | Critical Functions |
|---|---|---|
| Sanitizer | src/kernel/sanitizer.ts | sanitize(), detectInjection() |
| Guardian | src/agents/guardian.ts | assessThreat(), calculateRisk() |
| Arbiter | src/governance/arbiter.ts | validateConstitutional() |
| Audit | src/kernel/audit.ts | log(), verifyChain() |
ARI uses GitHub Actions for CI. Tests must pass before merge.