Skip to content

Commit 0c677cc

Browse files
authored
Merge pull request #9 from AccessCodeLib/feature/skill-tests-as-usage-reference
Add skill section on using tests as usage reference
2 parents bccc91e + f650440 commit 0c677cc

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
88
### Added
99
- Skill `aclib-import`: find suitable modules for a task in the ACLib catalog
1010
(`_codelib/catalog/catalog.md` / `catalog.json`, local repository or GitHub) before resolving the import.
11+
- Skill `aclib-import`: read the tests and examples listed in the catalog as usage reference when it is
12+
unclear how a module is meant to be used (no import required).
1113

1214
## [0.1.0] - 2026-10-12
1315

‎skills/aclib-import/SKILL.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ Selecting modules:
6868
- Request only the main module(s); dependencies are added by `aclib_resolve`.
6969
- If the catalog contains nothing suitable, say so. Do not invent modules or paths.
7070

71+
## Using a module (tests as usage reference)
72+
- If it is unclear how a module is meant to be used, read its tests and examples: they show typical
73+
calls, parameters and expected results. The catalog lists them per module (`tests`, `examples`
74+
in `catalog.json`); read them from the catalog location (local repository or GitHub raw).
75+
Reading does not require an import.
76+
- If the tests do not cover the intended use either, say so; do not guess the behaviour.
77+
7178
## Workflow
7279
0. **Discover (only if the user did not name the file paths):** read the catalog (see Catalog), then
7380
show the user a table of candidates: file, description, relevant public members, dependencies

0 commit comments

Comments
 (0)