基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/DataDog/datadog-ci --skill create-plugin命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | create-plugin |
| description | Scaffold a new datadog-ci plugin end-to-end using repository conventions. |
Scaffold a new datadog-ci plugin end-to-end. Walk the user through each step, confirming the scope name and whether the plugin should be built-in or separately installable.
Ask for the scope name (kebab-case) and whether this is a built-in or separately installable plugin.
Run yarn plugin:create <scope> to scaffold packages/plugin-<scope>/.
Create the base command in packages/base/src/commands/<scope>/<command>.ts:
BaseCommand from @datadog/datadog-ci-baseCommand.Usage() for descriptionOption.* from clipanion for arguments/flagsexecute() should call return executePluginCommand(this)Create packages/base/src/commands/<scope>/cli.ts exporting a commands array containing the command class.
Create the plugin implementation in packages/plugin-<scope>/src/commands/<command>.ts:
execute() logic0 for successUpdate project files per the CONTRIBUTING.md checklist:
.github/CODEOWNERS under the correct productREADME.mdpr-required-labels.yml, advanced-issue-labeler.yml, and release.yml changelog configpackages/base/src/cli.ts is auto-generated by bin/lint-packages.ts -- do not edit it manually. Run yarn lint:packages to verify.getRequestBuilder() or httpRequest() from base helpers for HTTP, not raw fetch or axios.