Skip to content
lukavtzPublic

About

Quality gate for omp: CRAP, structural duplication and mutation testing as one skill, one tool and a commit guard.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

assay

An omp plugin marketplace: deterministic quality gates for agent-written code.

omp plugin marketplace add lukavtz/assay
omp plugin install omp-assay@assay

Or install the plugin directly, without the catalog:

omp plugin install github:lukavtz/assay#v0.1.0

Catalog

Plugin What it adds
omp-assay assay tool, assay skill, commit guard. CRAP < 10, structural duplication review, mutation testing

Why

A skill alone is advice. A model that is told to keep functions simple agrees and moves on. The plugin ships measurements: cyclomatic complexity and coverage per function, structural similarity between functions, and mutation survival. The tool returns pass/fail, and a hook stops git commit while the result is missing, failed, or stale.

Layout

.omp-plugin/marketplace.json   catalog read by `omp plugin marketplace add`
plugins/assay/               the installable plugin
  skills/assay/SKILL.md      the method
  extensions/assay.ts        registers the assay tool
  lib/tool.ts                checks, record, remediation
  lib/engine/                parsing, complexity, coverage, duplication, mutation
  assets/                    tree-sitter runtime + six grammars (MIT)
  tests/                     bun tests
  hooks/pre/commit-gate.ts   blocks a commit on a missing, failed or stale gate

Docs

  • Specification — surfaces, contracts, acceptance criteria
  • ADR 0001 — superseded: the vendored Python tools
  • ADR 0002 — why pass/fail is a persisted record
  • ADR 0003 — own TypeScript engine, vendored tree-sitter, no Python

Development

omp plugin link plugins/assay
omp plugin doctor
omp plugin list

A linked plugin tracks source edits. Tools, hooks and extension modules need a new session, not /reload-plugins.

Test the gate on a project whose functions are known-bad:

cd some/project
omp -p 'Call assay with paths ["src"] and report the result.'

Publish

git tag v0.1.0
git push origin main --tags

Consumers refresh with omp plugin marketplace update assay and omp plugin upgrade omp-assay@assay.

License

Plugin code MIT. Vendored parser assets (tree-sitter, grammars) MIT; versions and licenses in plugins/assay/assets/README.md.

About

Quality gate for omp: CRAP, structural duplication and mutation testing as one skill, one tool and a commit guard.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages