Agent skill

Container Dev

by yansongda in yansongda/pay

A skill your agent uses when local PHP environment is unavailable.

MITAuto-check passedDevOps & Cloud

Install Container Dev

skills CLI
$ npx skills add yansongda/pay --skill container-dev -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install yansongda/pay container-dev --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/yansongda/pay.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/container-dev .claude/skills/container-dev && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
container-dev
GitHub stars
5.4k
Token cost
~968 tokens
SKILL.md length
136 words
Files
1
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when local PHP environment is unavailable.

  • Local PHP environment is unavailable
  • SKILL.md covers 使用原则, 快速参考, Apple Container and Docker, plus 2 more sections
  • Calls composer, sh and pnpm

What it does

Container Dev is an agent skill from yansongda/pay. Use when local PHP environment is unavailable. Fallback container-based development environment for yansongda/pay project.

Its SKILL.md is about 970 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in DevOps & Cloud. It works with PHP, Docker, WeChat and pnpm. The repository describes itself as: 可能是我用过的最优雅的 Alipay/WeChat/Douyin/Unipay/江苏银行 的支付 SDK 扩展包了. The licence is MIT.

When your agent uses it

  • Local PHP environment is unavailable

Example prompts

  • “/container-dev”

Requirements

  • Node.js
  • Docker

What it can do on your machine

Read from SKILL.md and the folder at commit d1b354b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • composer
    • sh
    • pnpm
    • docker
    • curl

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use pnpm, docker and curl, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Container Dev loads about 968 tokens when it runs. Until then it costs about 34 tokens; SKILL.md has 136 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~34
When it runs · the whole SKILL.md, loaded when a task matches
~968

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from yansongda/pay at commit d1b354b, republished under its MIT licence (© yansongda). 136 words, ~968 tokens.

Download SKILL.mdSave it as .claude/skills/container-dev/SKILL.md (or your agent's skills folder).
name
container-dev
description
Use when local PHP environment is unavailable. Fallback container-based development environment for yansongda/pay project.

Container-based Local Development (Fallback)

当本地没有 PHP 环境时,使用 Apple Container 或 Docker 作为备选方案。

使用原则

优先本地环境:先检查本地是否有 PHP/composer,有则直接使用。

容器作为备选:仅在本地环境不可用时使用容器。

快速参考

镜像
registry.cn-shenzhen.aliyuncs.com/yansongda/php:cli-8.5-alpine
常用命令
任务命令
运行测试composer test
PHPStan 分析composer analyse
代码风格检查composer cs-fix(仅检查,不修复)
代码风格修复php-cs-fixer fix ./src
Composer 更新composer update --with-all-dependencies
安装依赖composer install
Web 文档开发pnpm web:dev(需本地 Node 或 Node 容器)
Web 文档构建pnpm web:build(需本地 Node 或 Node 容器)

Apple Container

基本模板
bash
container run --rm -v "$(pwd)":/app -w /app \
  registry.cn-shenzhen.aliyuncs.com/yansongda/php:cli-8.5-alpine \
  COMMAND
DNS 问题处理

若出现 DNS 解析失败(198.18.0.x 地址、连接超时),添加 DNS fix:

bash
container run --rm -v "$(pwd)":/app -w /app \
  registry.cn-shenzhen.aliyuncs.com/yansongda/php:cli-8.5-alpine \
  sh -c "echo 'nameserver 8.8.8.8' > /etc/resolv.conf && COMMAND"
PHP 命令示例
bash
# 测试(需 DNS fix + COMPOSER_ALLOW_SUPERUSER)
container run --rm -v "$(pwd)":/app -w /app \
  registry.cn-shenzhen.aliyuncs.com/yansongda/php:cli-8.5-alpine \
  sh -c "echo 'nameserver 8.8.8.8' > /etc/resolv.conf && COMPOSER_ALLOW_SUPERUSER=1 composer test"

# PHPStan 分析
container run --rm -v "$(pwd)":/app -w /app \
  registry.cn-shenzhen.aliyuncs.com/yansongda/php:cli-8.5-alpine \
  sh -c "echo 'nameserver 8.8.8.8' > /etc/resolv.conf && COMPOSER_ALLOW_SUPERUSER=1 composer analyse"

# 代码风格检查(仅查看差异)
container run --rm -v "$(pwd)":/app -w /app \
  registry.cn-shenzhen.aliyuncs.com/yansongda/php:cli-8.5-alpine \
  sh -c "echo 'nameserver 8.8.8.8' > /etc/resolv.conf && COMPOSER_ALLOW_SUPERUSER=1 composer cs-fix"

# 代码风格修复
container run --rm -v "$(pwd)":/app -w /app \
  registry.cn-shenzhen.aliyuncs.com/yansongda/php:cli-8.5-alpine \
  sh -c "echo 'nameserver 8.8.8.8' > /etc/resolv.conf && COMPOSER_ALLOW_SUPERUSER=1 php-cs-fixer fix ./src"

# Composer update
container run --rm -v "$(pwd)":/app -w /app \
  registry.cn-shenzhen.aliyuncs.com/yansongda/php:cli-8.5-alpine \
  sh -c "echo 'nameserver 8.8.8.8' > /etc/resolv.conf && composer update --with-all-dependencies"
Web 文档命令

Web 文档使用 pnpm,镜像中无 Node.js,需使用 Node 镜像或本地运行。

注意:web/package.json 要求 Node >=20.12.0,请确保使用的镜像版本满足此约束。

bash
# 方案1: 本地运行(推荐)
cd web && pnpm web:dev

# 方案2: 使用 Node 容器(版本 >=20.12.0)
docker run --rm -v "$(pwd)/web":/app -w /app \
  node:20-alpine \
  sh -c "npm install -g pnpm && pnpm install && pnpm web:dev"

Docker

Docker 命令类似,通常不需要 DNS fix:

bash
# 测试
docker run --rm -v "$(pwd)":/app -w /app \
  registry.cn-shenzhen.aliyuncs.com/yansongda/php:cli-8.5-alpine \
  composer test

# PHPStan 分析
docker run --rm -v "$(pwd)":/app -w /app \
  registry.cn-shenzhen.aliyuncs.com/yansongda/php:cli-8.5-alpine \
  composer analyse

# 代码风格检查
docker run --rm -v "$(pwd)":/app -w /app \
  registry.cn-shenzhen.aliyuncs.com/yansongda/php:cli-8.5-alpine \
  composer cs-fix

# 代码风格修复
docker run --rm -v "$(pwd)":/app -w /app \
  registry.cn-shenzhen.aliyuncs.com/yansongda/php:cli-8.5-alpine \
  php-cs-fixer fix ./src

DNS 问题诊断(Apple Container)

症状:

  • curl error 28 Connection timed out
  • DNS 解析返回 198.18.0.x(基准测试保留地址)

原因:Container 系统 DNS 解析器异常。

解决:手动写入 nameserver 8.8.8.8 到 /etc/resolv.conf。


注意事项

  • COMPOSER_ALLOW_SUPERUSER=1:容器内运行 composer 脚本必须
  • composer cs-fix:仅检查并显示差异,不自动修复
  • php-cs-fixer fix ./src:实际修复代码风格
  • Apple Container 需先启动:container system start
  • Docker 需确保 Docker Desktop 或 daemon 已启动
  • 容器内网络可能无法访问某些 CDN,测试中可能出现 PHP warning(不影响核心功能)

© yansongda, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/container-dev of yansongda/pay.

Open the folder on GitHubat commit d1b354b

Compare with similar skills

Container Dev next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Container Dev compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Container Dev this skillyansongda/pay5.4k—~968Automated safety check: PassMIT
WooCommerce Email Editor Developmentwoocommerce/woocommerce11k—~893Automated safety check: PassCustom licence
Close The Looppietheinstrengholt/rssmonster564—~2kAutomated safety check: PassMIT
Ddevhaxtheweb/haxcms-php130—~1.6kAutomated safety check: PassApache-2.0
Shopware CLI Dockershopware/shopware-cli123—~1.8kAutomated safety check: PassMIT
Final Reviewpietheinstrengholt/rssmonster564—~2.3kAutomated safety check: PassMIT

Similar skills

  • Sets up a local environment for the WooCommerce block email editor, with a watcher, Mailpit email capture and build and test commands for its PHP and JS packages.

    11k GitHub stars~893 tokensUpdated today
    Backend & APIsAuto-check passed
  • Close The Loop

    pietheinstrengholt/rssmonster

    A skill your agent uses when a feature has already gone through multiple implementation and review cycles and the work is starting to loop.

    564 GitHub stars~2k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Ddev

    haxtheweb/haxcms-php

    DDEV local development environment guidance for Docker-based PHP/Node projects.

    130 GitHub stars~1.6k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Shopware CLI Docker

    shopware/shopware-cli

    A skill your agent uses when working on Docker-backed Shopware projects and needing to run Shopware or Symfony CLI commands, interact with project services or databases, start or stop the…

    123 GitHub stars~1.8k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Final Review

    pietheinstrengholt/rssmonster

    Perform a rigorous final review of an implementation before considering it ready to merge or ship.

    564 GitHub stars~2.3k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Pwa Release

    AHS12/thoth-blueprint

    Safely change Vite, service-worker, offline fallback, cache, Docker, Vercel, or release-distribution behavior.

    626 GitHub stars~505 tokensUpdated 1 mo ago
    DevOps & CloudAuto-check passed

More from yansongda/pay

  • PR Review Provider

    yansongda/pay

    A skill your agent uses when reviewing PRs that add or modify a payment Provider in yansongda/pay - covers plugin pipeline, multi-tenant safety, signature verification, docs, and naming conventions.

    5.4k GitHub stars~2.4k tokensUpdated 9 days ago
    Auto-check passed
  • A skill your agent uses when preparing to publish a new version of a PHP Composer package and need to write or update CHANGELOG, upgrade guides, and documentation before tagging and releasing

    5.4k GitHub stars~1.6k tokensUpdated 9 days ago
    Auto-check passed
  • Dev Guide

    yansongda/pay

    A skill your agent uses when developing, testing, or adding new providers to yansongda/pay project.

    5.4k GitHub stars~378 tokensUpdated 9 days ago
    Auto-check passed

Categories

Questions about Container Dev

What does Container Dev do?

A skill your agent uses when local PHP environment is unavailable. Container Dev is an agent skill from yansongda/pay. Use when local PHP environment is unavailable.

When should I use Container Dev?

Container Dev fits situations like: local PHP environment is unavailable.

How do I install Container Dev in Claude Code?

Run `npx skills add yansongda/pay --skill container-dev -a claude-code`. Or copy the skill folder (.agents/skills/container-dev in yansongda/pay) into .claude/skills/container-dev in your project. Claude Code loads it when a task matches its description.

How do I install Container Dev in Codex?

Run `npx skills add yansongda/pay --skill container-dev -a codex`. Or copy the skill folder (.agents/skills/container-dev in yansongda/pay) into .agents/skills/container-dev in your project. Codex loads it when a task matches its description.

Can I use Container Dev in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add yansongda/pay --skill container-dev -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/container-dev, .gemini/skills/container-dev, .github/skills/container-dev and .opencode/skills/container-dev in your project.

What does Container Dev need to run?

Going by SKILL.md and its folder, Container Dev needs the command-line tools its instructions call (composer, sh, pnpm, docker and curl). Our summary lists: Node.js; Docker.

Does Container Dev access the network?

SKILL.md contains no URLs. Its commands use docker and curl, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Container Dev safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Container Dev use?

Container Dev is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Container Dev use?

About 968 tokens (SKILL.md is roughly 3.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Container Dev?

Skills that share tags, products or a category with Container Dev: WooCommerce Email Editor Development (woocommerce/woocommerce, 11k stars), Close The Loop (pietheinstrengholt/rssmonster, 564 stars), Ddev (haxtheweb/haxcms-php, 130 stars) and Shopware CLI Docker (shopware/shopware-cli, 123 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Container Dev?

yansongda (a GitHub user) maintains it in yansongda/pay, which has 5,370 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on September 28, 2026.

Source: yansongda/pay on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.