Metadata-Version: 2.4
Name: aai-pyskills
Version: 0.1.0
Summary: Reusable pyskills for coding, writing, understanding, and vision across harnesses and Solveit
Author: aai-pyskills contributors
License-Expression: Apache-2.0
Project-URL: Homepage, https://github.com/AnswerDotAI/aai-pyskills
Project-URL: Repository, https://github.com/AnswerDotAI/aai-pyskills
Project-URL: Issues, https://github.com/AnswerDotAI/aai-pyskills/issues
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: fastcore>=2.2.47
Requires-Dist: pypdfium2>=5
Requires-Dist: pyvips[binary]>=3
Requires-Dist: python-fastllm>=0.0.75
Requires-Dist: pyskills>=0.0.35
Provides-Extra: dev
Requires-Dist: fastship; extra == "dev"
Requires-Dist: build; extra == "dev"
Requires-Dist: twine; extra == "dev"
Provides-Extra: solveit
Requires-Dist: dialoghelper>=0.2.55; extra == "solveit"
Dynamic: license-file

# aai-pyskills

Reusable [pyskills](https://github.com/AnswerDotAI/pyskills) for Answer.AI coding, writing, understanding, and vision workflows across CLI harnesses and Solveit dialogs.

## Install

```bash
pip install aai-pyskills
```

In a Python kernel with `pyskills` loaded, run `list_pyskills()` to list registered skills and `doc(aai_pyskills.<module>)` to read one.

## Modules

- `coding_patterns`: Python, Rust, nbdev, and testing conventions.
- `nbreview`: notebook style review workflow built on `nbdev.skill` and `coding_patterns`.
- `write_prose`: anti-slop rules for narrative prose, plus optional `check_prose`.
- `write_docs`: plain reference prose rules for docstrings, READMEs, API docs, PRs, and commits, plus optional `check_docs`.
- `write_summary`: standalone summaries for human readers.
- `write_llms`: dense documentation rules for LLM-facing files (`llms.txt`, pyskills, prompts).
- `understand`: building and testing a Theory (Naur, Socrates, Knoblich et al., Lakatos) before design or review work.
- `vision`: image and PDF inspection (`look`, `transcribe`, `pdf2pngs`) keeping visual content out of the caller's context.
- `llms`: short model names (`models`) and one-shot `ask()` helper used by `write_prose`, `write_docs`, and `vision`.

## Solveit and harness LLM calls

`llms.ask` and `vision.look`/`transcribe` check `JUPYGATE_LAUNCHER == 'rustygate'`. Inside a Solveit kernel, requests route over the `rustygate` comm via `dialoghelper` (`/api/prompt`) using the prompting user's Solve-LP access without direct provider API keys. Outside Solveit, requests go through `fastllm`.

## Development

```bash
pytest -q
```

Live model tests are marked `slow` and skipped by default (`pytest -q -m slow` runs them).
