Files
scientific-agent-skills/tests/_contract/__init__.py
Timothy KassisandClaude Opus 5.5 f7a50ed295 Remove vendored Anthropic document skills (docx, pdf, pptx, xlsx)
These four skills were vendored from anthropics/skills under Anthropic's
proprietary license. Remove them with their tests, illustrated guides,
diagrams, and skill-requirements entries.

- Drop the office/ test contract that only those skills used; move the
  schematic-generator drift check it also held into schematic.py.
- scientific-slides no longer calls skills/pptx/ scripts: PowerPoint decks
  are built with PptxGenJS or python-pptx and reviewed through LibreOffice
  plus the bundled pdf_to_images.py and validate_presentation.py.
- liteparse and markitdown point PDF manipulation at pypdf.
- Update skill counts to 177 across README and docs, remove the skills from
  the catalog, guide index, and workflow examples, and prune them from the
  security report.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-01 15:41:00 -07:00

36 lines
1.2 KiB
Python

"""Shared test contract for every skill in this repository.
Suites do not import this package by name from `sys.path` -- putting `tests/`
on `sys.path` would turn `tests/simpy/`, `tests/qutip/`, `tests/neurokit2/` and
friends into importable namespace packages that shadow the real libraries (see
the comment on `addopts` in `pyproject.toml`). Instead `tests/conftest.py`
loads this package by file location and registers it as `skill_contract`, so a
suite writes:
import skill_contract
CliHelpTests = skill_contract.cli.help_test_case(SKILL_ROOT)
Two halves, split by what they need from the environment:
`structure`
Never imports skill code -- scripts are parsed with `ast`, not executed --
so it is safe to run across every skill in one interpreter.
`tests/_meta` does exactly that.
`cli`
Runs each script's `--help` in a subprocess. Skips when the skill's
packages are absent, and runs for real under
`python tests/run_all.py --isolated`.
`schematic`
The AI schematic generator that scientific-schematics, latex-posters,
literature-review, and scientific-slides each ship a byte-identical copy of.
"""
from __future__ import annotations
from . import cli, schematic, structure
__all__ = ["cli", "schematic", "structure"]