You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(ai-agents): update the llm/skills setup and link the setup prompt
Since llm/skills 1.13.0 `composer require` is the whole setup: the plugin reads the agent directories the project already has, proposes a skills.json and asks one question to confirm it. The previous text described settings under `extra.skills` in composer.json, a surface that is now deprecated.
Assisted-By: Claude Opus 5
Copy file name to clipboardExpand all lines: docs/intro/ai-agents.md
+27-9Lines changed: 27 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,20 +33,38 @@ To avoid copying skills by hand from `vendor/testo/testo/skills/` into wherever
33
33
composer require --dev llm/skills
34
34
```
35
35
36
-
Once installed, `composer skills:update` copies skills into `.agents/skills/` (the path is configurable via `extra.skills.target` in `composer.json`). Testo is a trusted skill provider, so no extra configuration is needed. To make them visible to a specific agent, add its path to `extra.skills.aliases` — for example, `.claude/skills` for Claude Code:
36
+
That's the whole setup. Composer will ask you to allow the plugin — answer **y**. After that, the plugin looks at the agent directories the project already has (`.claude/`, `.cursor/`, …), builds a configuration from them, and asks a single question to confirm it. Press **Enter** and it writes a `skills.json` at the project root and syncs the skills right away. Commit that file next to `composer.json` so the whole team gets the same setup.
37
+
38
+
If you'd rather make the choices yourself, or come back to them later, run the wizard:
At those paths the plugin creates links (Windows junctions or POSIX symlinks) pointing at the main folder — the same set of skills is visible to every agent with no duplicated files.
55
+
Skills land in `target` — one real directory, tool-agnostic by default. Every path in `aliases` becomes a link to it (a junction on Windows, a symlink on POSIX), so each agent sees the same set of skills and no file is duplicated. With `auto-sync` on (the default), the skills are refreshed after every `composer install` and `composer update`; you can also run the sync by hand at any moment:
56
+
57
+
```bash
58
+
composer skills:update
59
+
```
60
+
61
+
Testo needs no extra configuration: the `testo/*` vendor is on the plugin's built-in trusted list, and a package you require directly is trusted anyway.
62
+
63
+
You don't have to do any of this by hand — hand the [Set Up Agent Skills](/docs/ai/prompts/skills.md) prompt to your agent and it installs the plugin, builds a `skills.json` around the agents this project uses, and checks that the skills landed.
64
+
65
+
::: tip
66
+
The plugin isn't limited to Composer packages. `composer skills:add <vendor>/<repo>` registers a GitHub or GitLab repository as a skill source and fetches it right away — handy for your team's own skill collection.
67
+
:::
50
68
51
69
## Typical workflow
52
70
@@ -58,7 +76,7 @@ The same three steps work for new tests and for porting an existing suite:
58
76
59
77
### Example prompts
60
78
61
-
For ready-made, more elaborate prompts (project initialization, migrating an existing suite with `bridge-rector`, and more), see the [Prompts](/docs/ai/prompts.md) page. The two below are quick, minimal starting points.
79
+
For ready-made, more elaborate prompts (project initialization, migrating an existing suite with `bridge-rector`, and more), see the [Prompts](/docs/intro/prompts.md) page. The two below are quick, minimal starting points.
Copy file name to clipboardExpand all lines: ru/docs/intro/ai-agents.md
+27-9Lines changed: 27 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,20 +29,38 @@ AI-агенты хорошо пишут тесты на Testo и так же х
29
29
composer require --dev llm/skills
30
30
```
31
31
32
-
После установки `composer skills:update` копирует скиллы в `.agents/skills/` (путь настраивается через `extra.skills.target` в `composer.json`). Testo является доверенным поставщиком скиллов, так что никаких дополнительных настроек не нужно. А чтобы их подхватил конкретный агент, добавьте в `extra.skills.aliases` нужный путь — например, `.claude/skills` для Claude Code:
32
+
Это и есть вся установка. Composer спросит разрешение на запуск плагина — ответьте **y**. Дальше плагин посмотрит, какие папки агентов уже есть в проекте (`.claude/`, `.cursor/` и другие), соберёт по ним конфигурацию и задаст один вопрос — подтвердить её. Нажмите **Enter**, и он запишет в корень проекта файл `skills.json` и сразу синхронизирует скиллы. Закоммитьте этот файл рядом с `composer.json`, чтобы у всей команды была одинаковая настройка.
33
+
34
+
Если хочется выбрать всё самому или вернуться к настройкам позже, запустите мастер:
На этих путях плагин создаст ссылки (junction на Windows, symlink на POSIX) на основную папку — один и тот же набор скиллов будет виден всем агентам без дублирования файлов.
51
+
Скиллы попадают в `target` — это единственная настоящая папка, по умолчанию не привязанная к конкретному агенту. На каждый путь из `aliases` плагин создаёт ссылку на неё (junction на Windows, symlink на POSIX), поэтому все агенты видят один и тот же набор скиллов, а файлы не дублируются. Пока включён `auto-sync` (а он включён по умолчанию), скиллы обновляются после каждого `composer install` и `composer update`; синхронизацию можно запустить и вручную в любой момент:
52
+
53
+
```bash
54
+
composer skills:update
55
+
```
56
+
57
+
Никаких дополнительных настроек для Testo не требуется: вендор `testo/*` есть во встроенном списке доверенных, да и пакет, который вы подключили сами, доверенный по умолчанию.
58
+
59
+
Всю настройку можно не делать руками, а поручить агенту: отдайте ему промпт [«Настройка скиллов для агентов»](/ru/docs/ai/prompts/skills.md) — он подключит плагин, соберёт `skills.json` под агентов этого проекта и проверит, что скиллы разложились.
60
+
61
+
::: tip
62
+
Плагин работает не только с Composer-пакетами. Команда `composer skills:add <vendor>/<repo>` регистрирует репозиторий на GitHub или GitLab как источник скиллов и сразу же его скачивает — удобно для собственной коллекции скиллов вашей команды.
Готовые промпты для более сложных сценариев (инициализация проекта, миграция существующего набора тестов через `bridge-rector` и другие) собраны на странице [Промпты](/ru/docs/ai/prompts.md). Ниже — два коротких промпта для быстрого старта.
75
+
Готовые промпты для более сложных сценариев (инициализация проекта, миграция существующего набора тестов через `bridge-rector` и другие) собраны на странице [Промпты](/ru/docs/intro/prompts.md). Ниже — два коротких промпта для быстрого старта.
0 commit comments