Skip to content
Back to skills

Module Bound Check

ASecurity

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.

  • 41 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 19, 2026
documentation

Security analysis

A100/100

Scanned September 19, 2026

npx -y skills add SteveGJones/ai-first-sdlc-practices --skill module-bound-check --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Module Bound Check?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Module Bound Check
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/stevegjones-module-bound-check/badge)](https://www.skillsdirectory.com/skills/stevegjones-module-bound-check)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: module-bound-check
description: 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.
---

<!-- 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).

2. **Build the spec_module_lookup.** Walk all `docs/specs/**/*.md` artefacts; map each declared ID → module (from frontmatter or positional ID prefix).

3. **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.

4. **Run each validator.**
    - `req_has_module_assignment`
    - `code_annotation_maps_to_module`
    - `visibility_rule_enforcement` (mode from team-config: strict for regulated, advisory otherwise)
    - `anaemic_context_detection`
    - `granularity_match`

5. **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
    ```

6. **Report each error and warning** with file path and line number.

## Done criteria

- All 5 validators ran.
- Result table printed.
- Exit code: 0 if all pass; 1 if any error; 0 if only warnings (warnings don't block).

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in documentation →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.