Module bound check

From SteveGJones/ai-first-sdlc-practices · View interactive version

Module bound check is an AI agent skill from the GitHub repository SteveGJones/ai-first-sdlc-practices. Run all 5 decomposition validators (req-has-module, code-annotation-maps-to-module, visibility-rule-enforcement, anaemic-context-detection, granularity-match) on the project, reporting violations.

How to use this skill

Skill file

<!-- implements: DES-assured-skills-004 -->

Skill: module-bound-check

Use this skill to verify the project's decomposition is sound. Aggregates results from all 5 module-bound validators and reports a single pass/fail with per-validator detail. Run this before pushing a substantial change to a regulated-context project.

Steps

  1. Load the decomposition. Read programs.yaml (or use default_decomposition if absent).
  1. Build the spec_module_lookup. Walk all docs/specs/**/*.md artefacts; map each declared ID → module (from frontmatter or positional ID prefix).
  1. Build the import-edge graph. Walk source files; for each import, determine the from-module and to-module by mapping the file path to declared module paths.
  1. Run each validator.
  1. Aggregate results. Print a table:

```

Validator Status Errors Warnings

req_has_module_assignment PASS 0 0

code_annotation_maps_to_module FAIL 2 0

visibility_rule_enforcement PASS 0 1

anaemic_context_detection PASS 0 0

granularity_match PASS 0 3

```

  1. Report each error and warning with file path and line number.

Done criteria

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.