Testing - Verification Patterns

Community

Ensure code quality and safety.

AuthorGlorktelligence
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill provides a comprehensive guide and patterns for writing robust tests, ensuring the reliability and safety of the Bastion protocol and its components.

Core Features & Use Cases

  • Testing Framework Guidance: Details the use of Vitest for unit and integration testing across packages.
  • Critical Testing Areas: Outlines essential aspects to test for the Protocol, Safety Engine, and Relay.
  • Mandatory Test Patterns: Includes specific examples for Safety Floor and MaliClaw Clause tests, emphasizing immutability and hardcoded security.
  • Use Case: When developing a new feature for the Safety Engine, consult this Skill to understand the required unit tests, specifically how to verify that safety floors cannot be lowered and that the MaliClaw Clause remains effective.

Quick Start

Run all tests for the Bastion project using the command pnpm test.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: Testing - Verification Patterns
Download link: https://github.com/Glorktelligence/Bastion/archive/main.zip#testing-verification-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.