返回 Skill 列表
extension
分类: 开发与工程无需 API Key

summarize-composer-json

分析并总结PHP Composer配置文件(composer.json)。当用户要求总结、审查、分析或理解一个composer.json文件时使用此技能。以清晰、结构化的格式提取并解释项目元数据、依赖项、需求、脚本和配置设置。

person作者: jakexiaohubgithub

Skill: summarize-composer-json

When to Use

Use this skill when the user asks to:

  • Summarize a composer.json file
  • Analyze PHP project dependencies
  • Review composer configuration
  • Understand project requirements
  • Extract metadata from composer.json
  • Explain what packages a PHP project uses

Input Parameters

| Parameter | Required | Description | Example | |-----------|----------|-------------|---------| | composer_json_content | Yes | The full content of the composer.json file to analyze | {"name": "vendor/project", "require": {"php": "^8.2"}} |

Procedure

  1. Receive the composer.json file content from the user (via file attachment or paste)
  2. Parse the JSON structure to extract key sections: name, description, require, scripts, autoload, config, authors, license
  3. Organize findings into logical categories: project metadata, PHP/extension requirements, dependencies with versions, executable binaries, available scripts, namespace configuration
  4. Format output with clear headers, bullet points, and explanations of what each dependency does
  5. Highlight critical information such as minimum PHP version, key packages, and available commands
  6. Present summary in a readable format that explains both what the project is and how it's structured

Example

Example requests that trigger this skill:

## Attached File Context The following files have been provided by the user as context: ### File: composer.json (38 lines, 891 bytes) ```json { "name": "dalehurley/phpbot", "description": "PHP Bot for automating your life - An evolving AI assistant powered by Claude", "type": "project", "require": { "php": "^8.2", "ext-readline": "*", "cboden/ratchet": "^0.4.4", "claude-php/agent": "^1.4.6", "claude-php/claude-php-sdk": "^0.5.3", "phpoffice/phpword": "^1.0", "react/datagram": "^1.2" }, "license": "MIT", "autoload": { "psr-4": { "Dalehurley\\Phpbot\\": "src/" } }, "bin": [ "bin/phpbot" ], "authors": [ { "name": "Dale Hurley", "email": "dale.hurley@createmy.com.au" } ], "scripts": { "phpbot": "php bin/phpbot", "web": "bin/run-web.sh" }, "config": { "sort-packages": true, "process-timeout": 0 } } ``` ## User Request summarise