inspequte-rule-impl

Implement static analysis rules in Rust from specifications with generated tests.

8|2|Updated Jan 12, 2026
One-click install
npx skills add https://github.com/KengoTODA/inspequte --skill inspequte-rule-impl
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: inspequte-rule-impl
Source: https://github.com/KengoTODA/inspequte/tree/main/.codex/skills/inspequte-rule-impl
Command: npx skills add https://github.com/KengoTODA/inspequte --skill inspequte-rule-impl

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the implementation of static analysis rules in Rust for the inspequte tool, ensuring adherence to specifications and generating necessary tests.

Core Features & Use Cases

  • Rule Implementation: Translates rule specifications (spec.md) into functional Rust code.
  • Test Generation: Creates unit and harness tests to validate rule logic against acceptance criteria.
  • Use Case: When a new static analysis rule is defined, use this Skill to write the Rust code, implement tests, and ensure it integrates correctly with the inspequte engine.

Quick Start

Implement the rule defined in src/rules/my-new-rule/spec.md by running the inspequte-rule-impl skill.

Frequently Asked Questions about inspequte-rule-impl

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement static analysis rules in Rust for inspequte?

To implement static analysis rules in Rust for inspequte, you provide a rule specification file to automate the generation of Rust source code, rule metadata, and unit tests that integrate with the analysis context. This ensures your rule logic correctly maps to acceptance criteria.

How does automated Rust code generation handle static analysis rule testing?

Automated Rust code generation handles static analysis rule testing by creating unit tests and harness tests that validate the generated rule logic against the defined acceptance criteria. This ensures deterministic output and correct integration with the reporting mechanisms.

What is the best way to translate a static analysis rule specification into Rust code?

The best way to translate a static analysis rule specification into Rust code is to use a rule implementation skill that reads your spec.md file and automatically generates the functional Rust source code alongside the required unit tests. This ensures the output aligns with the inspequte engine.

Do I need to manually write unit tests when adding static analysis rules in Rust?

You do not need to manually write unit tests when adding static analysis rules in Rust if you automate the process. The implementation skill generates both the functional Rust code and the necessary harness tests to validate the rule logic against the acceptance criteria.

Why does my static analysis rule implementation need deterministic output generation?

Static analysis rule implementation needs deterministic output generation to ensure that the generated Rust source code and test results remain consistent across multiple runs. This consistency is crucial for reliable rule validation and accurate reporting within the analysis context.

Can I use this approach to integrate custom rule metadata with the inspequte engine?

Yes, you can use this approach to integrate custom rule metadata with the inspequte engine. The rule implementation process handles rule metadata generation and ensures that your custom static analysis rules correctly connect with the existing reporting mechanisms and analysis context.