Verification Engineering

    by Lone Wolf

    0

    Enforce a 4-phase autonomous workflow using deterministic oracles to ensure verified, bug-free code implementations.

    Free

    Security scanned

    Works with the AI Agents you already use

    Verification Engineering

    Example session with this skill installed

    Fix the NullPointerException in the UserService.findById method. Use the existing JUnit test suite as the oracle.

    • Read your context and instructions
    • Compiled the verification engineering

    I have completed the fix for the NullPointerException in UserService.findById using the Verification Engineering protocol. The issue was caused by an unchecked optional retrieval from the repository.

    Verification Report

    PhaseActivityResult
    ContextAnalyzed UserService.java and UserRepository.javaStack: Spring Boot / Java 17 / Maven
    OracleSelected mvn test -Dtest=UserServiceTestEstablished baseline failure (NPE)
    ExecutionImplemented Optional handling and added UserNotFoundException2 iterations to align with existing error handler
    AuditVerified resource cleanup and git diff invariantsPass: No debug logs, proper exception propagation

    Implementation Details

    public UserDto findById(Long id) {
        return userRepository.findById(id)
            .map(userMapper::toDto)
            .orElseThrow(() -> new UserNotFoundException("User not found with id: " + id));
    }
    

    Oracle Execution Proof

    $ mvn test -Dtest=UserServiceTest
    [INFO] Scanning for projects...
    [INFO] Running com.example.service.UserServiceTest
    [INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0
    [INFO] BUILD SUCCESS
    

    Next steps

    1. Review the new UserNotFoundException class for alignment with global API error codes.
    2. Merge the PR and monitor the staging logs for the new exception type.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Software engineering often suffers from "guess-and-check" workflows that lead to regressions and fragile PRs. This skill enforces a rigorous Verification Engineering protocol, moving from context curation to automated oracle loops before a single line of production code is finalized. It eliminates the habit of rushing into implementation by requiring machine-verifiable exit criteria for every change.

    What it does

    • Context Curation identifies stack boundaries and prunes irrelevant files to minimize context bloat.
    • Oracle Definition establishes deterministic, machine-verifiable exit criteria using test suites or compilers.
    • Closed-Loop Execution automates the cycle of incremental implementation and self-correction based on error traces.
    • Invariant Auditing performs a final check of business logic, security boundaries, and resource cleanup before handoff.
    • Autonomous Troubleshooting halts and escalates only after four consecutive failed attempts at a specific root cause.

    How it works

    1. Identify stack and dependencies to map the architectural boundaries of the task.
    2. Define the Oracle by selecting the strongest available verification tool like pytest, npm test, or tsc.
    3. Execute the loop by writing code and running the oracle in the terminal until all checks pass.
    4. Audit the diff for invariants and resource hygiene before delivering the final report.

    Frameworks & tools

    Works with any stack providing a CLI-based oracle, including Maven, Gradle, NPM, Pytest, TSC, ESLint, and Ruff. It integrates with existing project conventions and dependency manifests.

    Why this beats prompting it yourself

    Standard prompts often lead to "lazy coding" where the agent ignores test failures or deletes assertions to pass. This skill forces a strict four-phase protocol that refuses to finalize work until a deterministic machine check proves the implementation is correct.

    Use cases

    • Bug Fixes by reproducing failures with new tests and iterating until they pass.
    • Greenfield Setup by initializing project structures with working build runners first.
    • Refactoring legacy code while maintaining strict architectural invariants.
    • Feature Development guided by a "test-first" deterministic plan.

    Known limitations

    Requires a workspace with functional terminal access and at least one CLI-based verification tool or compiler. It cannot verify purely visual or subjective UI requirements without a coded oracle.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 9 days ago

    • Free with an Agensi account

    Software
    Git

    Permissions

    Terminal / Shell
    Read Files
    Listed9 days ago

    What's inside

    Frequently Asked Questions

    This skill enforces a 4-phase verification protocol that prevents agents from 'lazy coding.' It requires a machine-verifiable oracle (like a test suite or compiler) to pass before work is finalized, ensuring code isn't just written, but proven to work.

    It is compatible with any stack that uses CLI-based verification tools, such as Maven, Gradle, NPM, Pytest, and TSC. As long as your project has a terminal-executable test or build command, this skill can manage the workflow.

    The skill requires a workspace environment with functional terminal access and at least one installed verification tool. It cannot autonomously verify subjective UI/UX elements unless there is a coded oracle (like Playwright or Cypress) to provide deterministic feedback.

    You receive the specialized skill definition and the architectural protocol that governs the agent's behavior. This includes the logic for the four-phase workflow: Context Curation, Oracle Definition, Closed-Loop Execution, and Invariant Auditing.

    The agent follows a strict 'Autonomous Troubleshooting' rule where it will attempt to self-correct based on error traces up to four times. If it cannot resolve the root cause after four consecutive failures, it will halt and escalate to you with a detailed report of its attempts.

    New in Agents & Orchestration

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Agents & Orchestration.

    Free