{"record":{"id":"07c613535b05731b","repo":"anthropics/skills","slug":"this-module-should-not-be-run-directly-07c613","errorCode":null,"errorMessage":"This module should not be run directly.","messagePattern":"This module should not be run directly\\.","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"info","filePath":"skills/xlsx/scripts/office/validators/pptx.py","lineNumber":441,"sourceCode":"                for slide_name, rels_file in references:\n                    errors.append(f\"    - {rels_file.relative_to(self.unpacked_dir)}\")\n\n        if errors:\n            print(\n                f\"FAILED - Found {len([e for e in errors if not e.startswith('    ')])} notes slide reference validation errors:\"\n            )\n            for error in errors:\n                print(error)\n            print(\"Each slide may optionally have its own slide file.\")\n            return False\n        else:\n            if self.verbose:\n                print(\"PASSED - All notes slide references are unique\")\n            return True\n\n\nif __name__ == \"__main__\":\n    raise RuntimeError(\"This module should not be run directly.\")\n","sourceCodeStart":423,"sourceCodeEnd":442,"githubUrl":"https://github.com/anthropics/skills/blob/f6656c1256d5a8adfa37db9110046ef20bac644c/skills/xlsx/scripts/office/validators/pptx.py#L423-L442","documentation":"pptx.py is a library module of the office validators package; the __main__ guard raises RuntimeError if it is executed directly. Its slide/notes-slide validation logic runs only when imported by the validation driver.","triggerScenarios":"`python skills/xlsx/scripts/office/validators/pptx.py` directly; IDE run action; CI glob-execute harness reaching into the validators directory.","commonSituations":"Developer opening the validator file and hitting Run; automation that treats all .py files as scripts.","solutions":["Use the driver script that imports this validator for command-line validation","Import the module when you need its classes programmatically","Mark the validators directory as non-executable in IDE run configurations / CI globs"],"exampleFix":"# before\npython skills/xlsx/scripts/office/validators/pptx.py deck.pptx\n# after\npython skills/xlsx/scripts/office/validate.py deck.pptx  # driver imports pptx validator","handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":"# Usage error, not a runtime failure — call the driver that imports the pptx validator.","preventionTips":["Invoke the package's validation entry point for command-line use","Import, don't execute, validator modules during exploration"],"tags":["module-guard","usage-error","python"],"backgroundTag":null,"analyzedSha":"f6656c1256d5a8adfa37db9110046ef20bac644c","analyzedAt":"2026-08-14T16:09:17.493Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}