Package management

From VectorSpaceLab/AREX-Skill · View interactive version

Package management is an AI agent skill from the GitHub repository VectorSpaceLab/AREX-Skill. Guides Argos Translate package index, argospm, local .argosmodel installation, package inspection, and model-package troubleshooting workflows.

How to use this skill

Skill file

Package Management

Use this sub-skill when the user needs to find, install, inspect, list, remove, or troubleshoot Argos Translate language packages.

Scope

This sub-skill owns:

Route actual text translation, translation-object selection, sentence-boundary behavior during translation, and argos-translate runtime failures to ../translation/.

Read these first

Minimal decision flow

  1. If the user already has a local .argosmodel, validate it first:

```bash

python sub-skills/package-management/scripts/check_argosmodel.py translate-en_es.argosmodel

```

  1. If using remote packages, update and search the index:

```bash

argospm update

argospm search -f en -t es

```

  1. Install the package by index name or local archive path:

```bash

argospm install translate-en_es

```

or:

```python

from pathlib import Path

from argostranslate import package

package.install_from_path(Path("translate-en_es.argosmodel"))

```

  1. Verify discovery:

```bash

argospm list

```

  1. Switch back to ../translation/ to run a tiny translation.

Package names and language pairs

argospm names combine package type and language codes. For direct translation packages, expect names like:

translate-en_es
translate-de_en
translate-tr_en

argospm install translate installs all packages and can be very large. Do not run it unless the user explicitly wants all language packages and has enough disk/network budget.

Local archive workflow

Use local archives when network access is unavailable, a package link fails, or the user supplies a downloaded .argosmodel.

Safety boundaries

Native verification anchors

The source repository's safe package unit-test anchor is tests/test_package.py, especially metadata loading and installed package object behavior. Remote index/download workflows are network-dependent and should be tested separately only when the user authorizes network use.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.