Agent skill

Dev Guide

by yansongda in yansongda/pay

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

MITAuto-check passedBackend & APIs

Install Dev Guide

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

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

GitHub CLI
$ gh skill install yansongda/pay dev-guide --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/dev-guide .claude/skills/dev-guide && 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
dev-guide
GitHub stars
5.4k
Token cost
~378 tokens
SKILL.md length
73 words
Files
1
Skills in repo
4
Repo updated
First seen
Licence
MIT

At a glance

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

  • Works in 6 steps: 配置:src/Config/{Provider}Config.php → 核心类:src/Provider/{Provider}.php +… → 插件:src/Plugin/{Provider}/V{n}/(含… → …
  • Adding new providers to yansongda/pay project
  • SKILL.md covers 开发命令, 代码规范, 新增 Provider 流程 and 常见错误
  • Calls composer and pnpm

What it does

Dev Guide is an agent skill from yansongda/pay. Use when developing, testing, or adding new providers to yansongda/pay project. Covers commands, code standards, and provider implementation guide.

Its SKILL.md is about 380 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 Backend & APIs. It works with PHP, WeChat and Laravel. The repository describes itself as: 可能是我用过的最优雅的 Alipay/WeChat/Douyin/Unipay/江苏银行 的支付 SDK 扩展包了. The licence is MIT.

When your agent uses it

  • Adding new providers to yansongda/pay project

Example prompts

  • “/dev-guide”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. 配置:src/Config/{Provider}Config.php
  2. 核心类:src/Provider/{Provider}.php + src/Service/{Provider}ServiceProvider.php(继承 AbstractServiceProvider)
  3. 插件:src/Plugin/{Provider}/V{n}/(含 CallbackPlugin)
  4. 快捷方式:src/Shortcut/{Provider}/{Action}Shortcut.php
  5. Trait:src/Traits/{Provider}Trait.php(get{Provider}Url、verify{Provider}Sign)
  6. 注册:Pay.php + Config.php 映射 + Exception.php 常量 + 测试 + 文档

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
    • pnpm

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

  • Network

    No URLs in SKILL.md. Its commands use pnpm, 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

Dev Guide loads about 378 tokens when it runs. Until then it costs about 39 tokens; SKILL.md has 73 words of instructions outside code blocks.

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

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). 73 words, ~378 tokens.

Download SKILL.mdSave it as .claude/skills/dev-guide/SKILL.md (or your agent's skills folder).
name
dev-guide
description
Use when developing, testing, or adding new providers to yansongda/pay project. Covers commands, code standards, and provider implementation guide.

yansongda/pay 开发指南

开发命令

对 src/ PHP 代码的任何修改,需运行以下三项检查:

bash
composer cs-fix && composer analyse && composer test
测试
bash
composer test       # PHPUnit 11.x + Mockery 1.6
  • 测试前需安装 hyperf/pimple
  • Mock HTTP 客户端避免真实请求
代码风格
bash
composer cs-fix     # 代码格式化检查(dry-run)
静态分析
bash
composer analyse    # PHPStan
文档
bash
cd web && pnpm web:dev    # 文档开发
cd web && pnpm web:build  # 文档构建
cd web && pnpm web:serve  # 本地预览
本地开发环境

优先本地 PHP 环境;若无 PHP,使用 Container 作为备选,详见 container-dev Skill。

CI 矩阵

PHP 8.2-8.5 + Laravel/Hyperf/Default


代码规范

  • declare(strict_types=1); 必须
  • use 导入,禁止 \Yansongda\Pay\...
  • 日志/异常消息用中文
  • 命名:{Action}Plugin.php、{Action}Shortcut.php、{Provider}Trait.php

新增 Provider 流程

6 阶段
  1. 配置:src/Config/{Provider}Config.php
  2. 核心类:src/Provider/{Provider}.php + src/Service/{Provider}ServiceProvider.php(继承 AbstractServiceProvider)
  3. 插件:src/Plugin/{Provider}/V{n}/(含 CallbackPlugin)
  4. 快捷方式:src/Shortcut/{Provider}/{Action}Shortcut.php
  5. Trait:src/Traits/{Provider}Trait.php(get{Provider}Url、verify{Provider}Sign)
  6. 注册:Pay.php + Config.php 映射 + Exception.php 常量 + 测试 + 文档

常见错误

  • 忽略 declare(strict_types=1);
  • 直接写完整命名空间
  • 回调未验签
  • 测试未 Mock HTTP 客户端

© 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/dev-guide of yansongda/pay.

Open the folder on GitHubat commit d1b354b

Compare with similar skills

Dev Guide 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.

Dev Guide compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Dev Guide this skillyansongda/pay5.4k—~378Automated safety check: PassMIT
Configuring Horizoncoollabsio/coolify63k4 repos~898Automated safety check: PassMIT
Fortify Developmentcoollabsio/coolify63k4 repos~1.9kAutomated safety check: PassMIT
Laravel Best Practicesanonaddy/anonaddy4.9k13 repos~1.2kAutomated safety check: PassMIT
Geoflowyaojingang/GEOFlow3.8k—~722Automated safety check: PassAGPL-3.0
Livewire Developmentcoollabsio/coolify63k—~964Automated safety check: PassMIT

Similar skills

  • Configuring Horizon

    coollabsio/coolify

    A skill your agent uses whenever the user mentions Horizon by name in a Laravel context.

    63k GitHub starsUsed in 4 repos~898 tokens
    Backend & APIsAuto-check passed
  • Fortify Development

    coollabsio/coolify

    ACTIVATE when the user works on authentication in Laravel. An agent skill from coollabsio/coolify.

    63k GitHub starsUsed in 4 repos~1.9k tokens
    Backend & APIsAuto-check passed
  • Laravel Best Practices

    anonaddy/anonaddy

    Apply this skill whenever writing, reviewing, or refactoring Laravel PHP code.

    4.9k GitHub starsUsed in 13 repos~1.2k tokens
    Backend & APIsAuto-check passed
  • Geoflow

    yaojingang/GEOFlow

    Operate/develop GEOFlow CLI/Laravel/admin/API, topics/专题 and topic tasks, theme libraries/replication, sites/leads/Agent, channel sync and legacy yao-geoflow-cli/design/template migration.

    3.8k GitHub stars~722 tokensUpdated 6 days ago
    Backend & APIsAuto-check passed
  • Livewire Development

    coollabsio/coolify

    A skill your agent uses for any task or question involving Livewire.

    63k GitHub stars~964 tokensUpdated today
    Backend & APIsAuto-check passed
  • Livewire Development

    yungifez/skuul

    A skill your agent uses for any task or question involving Livewire.

    409 GitHub starsUsed in 1 repo~1.9k tokens
    Backend & APIsAuto-check passed

More from yansongda/pay

  • Container Dev

    yansongda/pay

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

    5.4k GitHub stars~968 tokensUpdated 9 days ago
    Auto-check passed
  • 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

Categories

Questions about Dev Guide

What does Dev Guide do?

A skill your agent uses when developing, testing, or adding new providers to yansongda/pay project. Dev Guide is an agent skill from yansongda/pay. Use when developing, testing, or adding new providers to yansongda/pay project.

When should I use Dev Guide?

Dev Guide fits situations like: adding new providers to yansongda/pay project.

How do I install Dev Guide in Claude Code?

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

How do I install Dev Guide in Codex?

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

Can I use Dev Guide 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 dev-guide -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/dev-guide, .gemini/skills/dev-guide, .github/skills/dev-guide and .opencode/skills/dev-guide in your project.

What does Dev Guide need to run?

Going by SKILL.md and its folder, Dev Guide needs the command-line tools its instructions call (composer and pnpm).

Does Dev Guide access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Dev Guide 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 Dev Guide use?

Dev Guide 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 Dev Guide use?

About 378 tokens (SKILL.md is roughly 1.5k 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 Dev Guide?

Skills that share tags, products or a category with Dev Guide: Configuring Horizon (coollabsio/coolify, 63k stars), Fortify Development (coollabsio/coolify, 63k stars), Laravel Best Practices (anonaddy/anonaddy, 4.9k stars) and Geoflow (yaojingang/GEOFlow, 3.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Dev Guide?

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.