diff --git a/CHANGELOG.md b/CHANGELOG.md index 22ab62a..b56f7b6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/). ### Added - Skill `aclib-import`: find suitable modules for a task in the ACLib catalog (`_codelib/catalog/catalog.md` / `catalog.json`, local repository or GitHub) before resolving the import. +- Skill `aclib-import`: read the tests and examples listed in the catalog as usage reference when it is + unclear how a module is meant to be used (no import required). ## [0.1.0] - 2026-10-12 diff --git a/skills/aclib-import/SKILL.md b/skills/aclib-import/SKILL.md index b9dac54..bca512b 100644 --- a/skills/aclib-import/SKILL.md +++ b/skills/aclib-import/SKILL.md @@ -68,6 +68,13 @@ Selecting modules: - Request only the main module(s); dependencies are added by `aclib_resolve`. - If the catalog contains nothing suitable, say so. Do not invent modules or paths. +## Using a module (tests as usage reference) +- If it is unclear how a module is meant to be used, read its tests and examples: they show typical + calls, parameters and expected results. The catalog lists them per module (`tests`, `examples` + in `catalog.json`); read them from the catalog location (local repository or GitHub raw). + Reading does not require an import. +- If the tests do not cover the intended use either, say so; do not guess the behaviour. + ## Workflow 0. **Discover (only if the user did not name the file paths):** read the catalog (see Catalog), then show the user a table of candidates: file, description, relevant public members, dependencies