Skip to content

Commit 063efe3

Browse files
committed
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
1 parent ce2002d commit 063efe3

2 files changed

Lines changed: 54 additions & 18 deletions

File tree

docs/intro/ai-agents.md

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,38 @@ To avoid copying skills by hand from `vendor/testo/testo/skills/` into wherever
3333
composer require --dev llm/skills
3434
```
3535

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:
39+
40+
```bash
41+
composer skills:init
42+
```
43+
44+
Either way you end up with something like this:
3745

3846
```json
3947
{
40-
"extra": {
41-
"skills": {
42-
"aliases": [".claude/skills", ".cursor/skills"],
43-
"auto-sync": true
44-
}
45-
}
48+
"$schema": "https://raw.githubusercontent.com/roxblnfk/skills/master/resources/skills.schema.json",
49+
"target": ".agents/skills",
50+
"aliases": [".claude/skills", ".cursor/skills"],
51+
"auto-sync": true
4652
}
4753
```
4854

49-
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+
:::
5068

5169
## Typical workflow
5270

@@ -58,7 +76,7 @@ The same three steps work for new tests and for porting an existing suite:
5876

5977
### Example prompts
6078

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.
6280

6381
Writing tests from scratch:
6482

ru/docs/intro/ai-agents.md

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,38 @@ AI-агенты хорошо пишут тесты на Testo и так же х
2929
composer require --dev llm/skills
3030
```
3131

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+
Если хочется выбрать всё самому или вернуться к настройкам позже, запустите мастер:
35+
36+
```bash
37+
composer skills:init
38+
```
39+
40+
Так или иначе, получится примерно такой файл:
3341

3442
```json
3543
{
36-
"extra": {
37-
"skills": {
38-
"aliases": [".claude/skills", ".cursor/skills"],
39-
"auto-sync": true
40-
}
41-
}
44+
"$schema": "https://raw.githubusercontent.com/roxblnfk/skills/master/resources/skills.schema.json",
45+
"target": ".agents/skills",
46+
"aliases": [".claude/skills", ".cursor/skills"],
47+
"auto-sync": true
4248
}
4349
```
4450

45-
На этих путях плагин создаст ссылки (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 как источник скиллов и сразу же его скачивает — удобно для собственной коллекции скиллов вашей команды.
63+
:::
4664

4765
## Типичный сценарий
4866

@@ -54,7 +72,7 @@ composer require --dev llm/skills
5472

5573
### Примеры промптов
5674

57-
Готовые промпты для более сложных сценариев (инициализация проекта, миграция существующего набора тестов через `bridge-rector` и другие) собраны на странице [Промпты](/ru/docs/ai/prompts.md). Ниже — два коротких промпта для быстрого старта.
75+
Готовые промпты для более сложных сценариев (инициализация проекта, миграция существующего набора тестов через `bridge-rector` и другие) собраны на странице [Промпты](/ru/docs/intro/prompts.md). Ниже — два коротких промпта для быстрого старта.
5876

5977
Написание тестов с нуля:
6078

0 commit comments

Comments
 (0)