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.