Install the Playwright CLI skill for Codex and other agents, not only Claude Code
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 80/100
調査の方向性
まず config.playwright-cli.yaml で、起動後のフックがどのように skill をインストールするかを確認し、次に README と tests/test.bats を読んで既存のセットアップとアサーションを把握してください。PLAYWRIGHT_CLI_SKILLS を通じて claude と agents のターゲットを選択できるようにし、デフォルトは claude のままとして、フックの失敗で処理が中断されないようにしてください。README に両方のターゲットが記載され、設定時とデフォルト時の動作、および想定される skill のパスをテストで確認できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Is there an existing issue for this?
- I have searched the existing issues
Is your feature request related to a problem?
Problem
The post-start hook in config.playwright-cli.yaml runs playwright-cli install --skills without a value:
- exec: "which playwright-cli > /dev/null 2>&1 && playwright-cli install --skills || true"
Playwright CLI treats that as claude:
$ playwright-cli install --help
--skills install skills, possible values: claude (default), agents.
So the skill only lands in .claude/skills/playwright-cli/. Codex, and other agents that read .agents/skills/, never get it, although the CLI and Chromium are installed and work for them.
Steps to reproduce
ddev add-on get e0ipso/ddev-playwright-cli && ddev restartddev exec ls .agents/skills: there's noplaywright-cli.- In Codex inside the web container, the skill isn't listed (
codex debug prompt-input "hi"doesn't mention it).
Running ddev exec playwright-cli install --skills agents by hand writes .agents/skills/playwright-cli/, and Codex picks it up.
Versions: add-on v1.2.3, @playwright/cli 0.1.24, Codex CLI 0.169.0, DDEV ≥ 1.25.
Current workaround
A project-owned .ddev/config.playwright-cli-codex.yaml:
hooks:
post-start:
- exec: "which playwright-cli > /dev/null 2>&1 && playwright-cli install --skills agents || true"
DDEV runs the hooks from every config.*.yaml file, so the add-on's own hook still runs too.
Describe your solution
Let projects choose the targets with an environment variable, keeping today's behavior as the default:
#ddev-generated
hooks:
post-start:
# Install the Playwright CLI skill for each target in PLAYWRIGHT_CLI_SKILLS
# ("claude", "agents"; default "claude"), if the CLI is available.
- exec: 'which playwright-cli > /dev/null 2>&1 && for target in ${PLAYWRIGHT_CLI_SKILLS:-claude}; do playwright-cli install --skills "$target"; done || true'
web_environment:
- PLAYWRIGHT_MCP_CONFIG=/var/www/html/.ddev/playwright-cli/cli.config.json
A project opts in with:
ddev dotenv set .ddev/.env.web --playwright-cli-skills="claude agents"
ddev restart
Setting web_environment in a project config.*.yaml file would work too.
- Default unchanged: existing projects don't suddenly get an
.agents/skills/folder they would need to ignore in Git. - Failures stay non-fatal:
|| truekeeps the hook from breakingddev start, as it does today. - README: document the variable and the two targets.
- Test: extend
tests/test.bats. WithPLAYWRIGHT_CLI_SKILLS="claude agents", assert that.agents/skills/playwright-cli/SKILL.mdexists. With the default, keep the current.claude/skills/playwright-cliassertion and check that.agents/skills/playwright-clidoesn't exist.
Describe alternatives
No response
Additional context
- Always install both targets: no configuration, but every project gets
.agents/skills/playwright-cli/and has to ignore it in Git. - Detect the agents in use from folders such as
.codex/or.agents/: works without configuration, but it's implicit and easy to get wrong.
- 主要言語
- Shell
- スター
- 6
- フォーク
- 2
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
📦 Update Request
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
cdnjs/packages#2225 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
-
good first issue help wanted testing
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
-
[issue]: Ventoy2Disk.sh can leave the end of VTOYEFI unwritten (xzcat | dd without iflag=fullblock)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
bot:ai-assisted component:platform-js status:untriaged
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
midnightntwrk/platform-js#69 ·
メンテナーはふだん 1 日以内に返信