# Module Compliance

> >-

- **Type:** Skill
- **Install:** `agentstack add skill-opendatahub-io-ai-helpers-module-compliance`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [opendatahub-io](https://agentstack.voostack.com/s/opendatahub-io)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** Apache-2.0
- **Upstream author:** [opendatahub-io](https://github.com/opendatahub-io)
- **Source:** https://github.com/opendatahub-io/ai-helpers/tree/main/helpers/skills/module-compliance
- **Website:** https://opendatahub-io.github.io/ai-helpers/

## Install

```sh
agentstack add skill-opendatahub-io-ai-helpers-module-compliance
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# ODH Module Compliance Check

Validate a module operator repository against the ODH platform contract.

## Step 1: Identify the module root

If `$ARGUMENTS` provides a path, use it. Otherwise use the current working
directory.

Verify the directory contains a Go module by checking for `go.mod`. Read
`go.mod` and confirm it imports
`github.com/opendatahub-io/odh-platform-utilities` at version `v0.1.0` or
later. If the import is missing, record a **CRITICAL** finding immediately --
the module must use the shared library, not the operator internal types.

Locate the CRD types directory by searching for files matching
`api/**/types.go` or `api/**/*_types.go`. Locate the controller directory by
searching for files matching `internal/controller/**/*.go`.

## Step 2: Run compliance checks

Load the full rule set from `${CLAUDE_SKILL_DIR}/references/contract.md`.

For each rule, search the codebase using `Grep` and `Read` to determine
pass/fail. Collect results into a list with rule ID, status (PASS / FAIL /
WARN / SKIP), file path and line number for violations, and a short
explanation.

Rules are grouped into these categories:

1. **API contract** -- PlatformObject interface, status fields, mandatory
   conditions, singleton enforcement, API group and version.
2. **Spec conventions** -- CommonSpec pattern, ManagementSpec, platform-managed
   fields, ConfigMap minimality.
3. **Controller patterns** -- Reconciler builder, GC action ordering, condition
   manager setup, dependency handling, observedGeneration.
4. **Helm chart** -- Controller-only manifests, no application resources.
5. **Security & metadata** -- Webhook ownership, cert-manager TLS, metadata
   labels/annotations, RBAC scoping.
6. **Separation of concerns** -- No orchestrator logic, self-contained module.

## Step 3: Report findings

Present results grouped by category. Use this format:

```text
## Module Compliance Report: 

### API Contract
- [PASS] MC-01 PlatformObject interface implemented
- [FAIL] MC-02 Missing WithReleases implementation (api/v1alpha1/types.go:42)
  → Add GetReleaseStatus() and SetReleaseStatus() methods

### Spec Conventions
...

### Summary
  Total: 18 rules checked
  Passed: 15
  Failed: 2
  Warnings: 1
```

After the report, suggest running `/module-scaffold` if the repo is missing
fundamental structure, or provide specific fix instructions for each failure.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [opendatahub-io](https://github.com/opendatahub-io)
- **Source:** [opendatahub-io/ai-helpers](https://github.com/opendatahub-io/ai-helpers)
- **License:** Apache-2.0
- **Homepage:** https://opendatahub-io.github.io/ai-helpers/

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-opendatahub-io-ai-helpers-module-compliance
- Seller: https://agentstack.voostack.com/s/opendatahub-io
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
