Skills direct-tests
๐Ÿ“ฆ

direct-tests

Content revision r1 Safe โš™๏ธ External commands

Write Fast GenLayer Direct Tests

GenLayer contract testing can be slow when every change needs a full node or container. This skill helps Claude, Codex, and Claude Code create focused direct mode tests with pytest fixtures, mocks, and VMContext controls.

Supports: Claude Codex Code(CC)
๐Ÿฅ‰ 77 Bronze

Install with my Agent

Copy this request to your Agent. It includes the canonical Skill page and manifest.

Agent request
Review the Skillstore skill "direct-tests" from https://skillstore.io/skills/internet-court-direct-tests.md and its manifest at https://skillstore.io/api/skills/internet-court-direct-tests/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.

Your Agent should still show its plan and request any confirmation required by the security policy.

Agent-readable resources

Use these links when an AI agent, crawler, or script needs clean context instead of reading the full page.

Test it

Using "direct-tests". Add direct tests for a contract method that stores and returns an item status.

Expected outcome:

A focused test plan with deployment, sender setup, item creation, status assertions, and a separate invalid input case.

Using "direct-tests". Test a contract method that reads a price from a web endpoint.

Expected outcome:

A direct mode test approach with a mocked price response, a contract update call, and assertions for parsed values and error handling.

Using "direct-tests". Review my direct tests for missing coverage.

Expected outcome:

A coverage checklist that separates direct mode cases from consensus and live integration cases.

Security Audit

Safe
v2 โ€ข 7/21/2026 Open versioned report

All 30 external-command alerts are false positives caused by Markdown backticks in documentation, not executable shell or Ruby substitutions. The two reconnaissance alerts describe contract-test state snapshots and authorization cases, not host discovery. No prompt injection, data exfiltration, or malicious intent was found.

2
Files scanned
204
Lines analyzed
0
Review items
0
False positives ignored
No confirmed security findings were detected by the latest completed static and semantic audit. This does not prove the skill has no side effects.
Audited by: claude View Audit History โ†’
Share & cite this report

Share the versioned assessment report, neutral badge, embed card, and citations. Skillstore reports evidence without deciding whether this Skill is safe.

Open versioned report
Security Assessment

Copy report link

https://skillstore.io/skills/internet-court-direct-tests/audits/2?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_report

Markdown badge

[![Skillstore security assessment](https://skillstore.io/badges/skills/internet-court-direct-tests/security.svg)](https://skillstore.io/skills/internet-court-direct-tests?utm_source=security_passport_badge)

HTML badge

<a href="https://skillstore.io/skills/internet-court-direct-tests?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/internet-court-direct-tests/security.svg" alt="Skillstore security assessment" loading="lazy"></a>

Embed card

<iframe src="https://skillstore.io/embed/skills/internet-court-direct-tests.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>
Academic citations (APA ยท BibTeX ยท CFF)

APA citation

internet-court. (2026). direct-tests security audit report (audit version 2) [Author version unspecified]. Skillstore. https://skillstore.io/skills/internet-court-direct-tests/audits/2

BibTeX citation

@techreport{internet-court-internet-court-direct-tests-2026, author = {internet-court}, title = {direct-tests security audit report (audit version 2)}, institution = {Skillstore}, year = {2026}, number = {2}, url = {https://skillstore.io/skills/internet-court-direct-tests/audits/2}, note = {Author version unspecified} }

CITATION.cff

cff-version: 1.2.0 message: "If you use this Skill, cite its author and this versioned security audit report." title: "direct-tests security audit report (audit version 2)" version: "unspecified" type: report authors: - name: "internet-court" date-released: "2026-07-21" url: "https://skillstore.io/skills/internet-court-direct-tests/audits/2" identifiers: - type: other value: "skillstore:internet-court-direct-tests:audit:2" description: "Skillstore immutable audit report identifier"

Skillstore Score

Why this score Evidence Confidence: Medium
55
Architecture
85
Maintainability
87
Content
65
Community
83
Spec Compliance

What You Can Build

Add contract unit tests

Create fast direct tests for contract methods, state changes, and expected return values.

Check access control

Test sender changes, owner-only methods, unauthorized calls, and expected reverts before integration testing.

Mock nondeterministic inputs

Validate contract parsing logic with mocked web responses and mocked LLM outputs.

Try These Prompts

Create a first direct test
Use direct-tests to add a pytest direct mode test for this GenLayer contract method. Set the sender, deploy the contract, call the method, and assert the expected state.
Cover validation errors
Use direct-tests to add tests for invalid input, unauthorized sender behavior, and expected reverts. Keep each test focused on one failure case.
Mock external responses
Use direct-tests to test this contract logic with mocked web responses or mocked LLM outputs. Include success and parsing failure scenarios.
Design a direct test suite
Use direct-tests to design a direct mode test suite for this GenLayer contract. Cover state transitions, access control, edge cases, mocked nondeterministic calls, and gaps that need integration tests.

Best Practices

  • Set direct_vm.sender before every write method to make authorization behavior explicit.
  • Mock web and LLM responses with realistic success and failure data.
  • Use integration tests for validator logic and full consensus behavior.

Avoid

  • Do not rely on direct mode tests as the only coverage for consensus behavior.
  • Do not share mutable mock state across unrelated test scenarios.
  • Do not skip revert and unauthorized caller tests for write methods.

Frequently Asked Questions

What does this skill help me test?
It helps test GenLayer contract behavior in direct mode with pytest fixtures, mocks, and VMContext controls.
Does direct mode replace integration testing?
No. Direct mode is useful for fast leader-logic checks, while integration tests are still needed for consensus validation.
Can it mock web requests?
Yes. The skill documents direct_vm.mock_web patterns for deterministic web response tests.
Can it mock LLM outputs?
Yes. The skill shows how to use direct_vm.mock_llm for prompt-dependent contract behavior.
What tools does the skill expect?
It expects pytest and the genlayer-test plugin in a GenLayer project.
Is the skill safe to use?
The reviewed files contain documentation and examples only. Commands shown are hardcoded testing commands for local development.

Developer Details

License

MIT

Skillstore revision

r1

Version notice

The author did not declare a version.

Ref

3f6e026a3363e0954ede7bef0cfe88d4475de137

Maintenance freshness

7/20/2026

Usage

1 downloads ยท 0 views

File structure

๐Ÿ“ agents/

๐Ÿ“„ openai.yaml

๐Ÿ“„ SKILL.md

More from internet-court

View all
View all