← Back to Skills Marketplace
bytesagain3

Assert

by bytesagain3 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
166
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install assert
Description
Assertion patterns reference — guard clauses, preconditions, invariants, and contract programming. Use when writing defensive code, validating inputs, or imp...
README (SKILL.md)

Assert — Assertion Patterns Reference

Quick-reference skill for assertion techniques, design-by-contract, and defensive programming patterns.

When to Use

  • Writing precondition checks for function inputs
  • Implementing class invariants and postconditions
  • Choosing between assertions and exceptions
  • Applying design-by-contract methodology
  • Understanding assertion behavior across languages

Commands

intro

scripts/script.sh intro

Overview of assertions — purpose, philosophy, and when to use them vs exceptions.

preconditions

scripts/script.sh preconditions

Precondition patterns: validating inputs, guard clauses, and fail-fast design.

postconditions

scripts/script.sh postconditions

Postcondition patterns: validating outputs and return value contracts.

invariants

scripts/script.sh invariants

Class and loop invariants — maintaining consistent state throughout execution.

languages

scripts/script.sh languages

Assertion syntax and behavior in Python, Java, C, JavaScript, Rust, Go.

contracts

scripts/script.sh contracts

Design-by-contract methodology — Bertrand Meyer's approach and modern implementations.

antipatterns

scripts/script.sh antipatterns

Common assertion mistakes: side effects, catching AssertionError, using in production flow.

strategies

scripts/script.sh strategies

Assertion strategies for different contexts: unit tests, production code, APIs, libraries.

help

scripts/script.sh help

version

scripts/script.sh version

Powered by BytesAgain | bytesagain.com | [email protected]

Usage Guidance
This skill appears to be a local, read-only reference implemented as a shell script that prints documentation. If you want maximum assurance, open and inspect scripts/script.sh yourself (it’s included) to verify there are no hidden network calls or commands beyond printing text; otherwise it is reasonable to install and use. Also note that when invoked the agent will run the script locally (normal behavior) — no credentials or external installs are required.
Capability Analysis
Type: OpenClaw Skill Name: assert Version: 1.0.0 The 'assert' skill is a purely educational reference tool providing information on assertion patterns, design-by-contract, and defensive programming. The 'scripts/script.sh' file contains only static text output via heredocs (cat << 'EOF') for various informational commands, and 'SKILL.md' contains standard instructions for an AI agent without any signs of prompt injection or malicious intent.
Capability Assessment
Purpose & Capability
Name/description match the provided content: SKILL.md documents assertion patterns and the included scripts/script.sh prints reference material. No unrelated credentials, binaries, or install steps are requested.
Instruction Scope
Runtime instructions simply invoke scripts/script.sh with a single subcommand (intro, preconditions, etc.). The script prints documentation via here-docs; the SKILL.md does not instruct reading unrelated files, accessing environment secrets, or contacting external endpoints.
Install Mechanism
No install specification; the skill is delivered as an instruction file plus a local shell script. No external downloads, package installs, or archive extraction are requested.
Credentials
The skill declares no required environment variables, credentials, or config paths. The included shell script does not reference credentials or environment secrets in the provided content.
Persistence & Privilege
always is false and the skill does not request elevated or persistent presence. It does not modify other skills or system-wide configuration based on the provided files.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install assert
  3. After installation, invoke the skill by name or use /assert
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
publish v1.0.0
Metadata
Slug assert
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Assert?

Assertion patterns reference — guard clauses, preconditions, invariants, and contract programming. Use when writing defensive code, validating inputs, or imp... It is an AI Agent Skill for Claude Code / OpenClaw, with 166 downloads so far.

How do I install Assert?

Run "/install assert" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Assert free?

Yes, Assert is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Assert support?

Assert is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Assert?

It is built and maintained by bytesagain3 (@bytesagain3); the current version is v1.0.0.

💬 Comments