ARTICLE DETAIL

资讯详情

深耕郑州网站建设与运营推广的一线实战洞察。

Testing Patterns

Testing Patterns Testing Patterns【免费下载链接】awesome-copilotCommunity-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.项目地址: https://gitcode.com/GitHub_Trending/aw/awesome-copilotFollow the patterns documented in references/testing-patterns.md.Use templates/test-template.ts as a starting structure.链接是相对于 SKILL.md 所在目录的不是仓库根目录。需要脚本依赖的 skill 还应提供 setup 说明例如 [skills/convert-pdf-to-md/SKILL.md](https://link.gitcode.com/i/37c8b65524862f338555a1997ed6351e) 通过 [references/setup.md](https://link.gitcode.com/i/37c8b65524862f338555a1997ed6351e) 引导先安装 markitdown、pymupdf并指向捆绑的 scripts/convert_pdf_to_md.py 执行转换。 ## 第四步验证并更新文档 在仓库根目录依次运行 bash npm run skill:validate npm run buildskill:validate对应 eng/validate-skills.mjs扫描skills/下所有文件夹逐项检查SKILL.md存在且 frontmatter 可解析缺name或description会告警并视为无效name符合^[a-z0-9-]$长度 1–64且与文件夹名一致不一致时报Folder name x does not match skill name ydescription长度 10–1024每个捆绑资产可访问且不超过 5MB全仓库无重名 skill。成功时每个文件夹打印✅ folder is valid最后输出✅ All N skills are valid和 Skill validation passed任何一项失败会打印❌ Validation errors in folder并以退出码 1 结束。注意它是全量校验仓库里其他 skill 的问题也会在同一轮输出中暴露。npm run build执行node ./eng/update-readme.mjs node ./eng/generate-marketplace.mjs把新 skill 写进生成的 README 表格。CONTRIBUTING.md 明确要求在提交前运行它并有 GitHub Actions 检查会验证这一步已执行。第五步确认 skill 可以被调用验证通过的 skill 有三种调用方式都来自 Creating Effective Skills 的 Common Questions斜杠命令在消息中输入 skill 名例如/generate-tests。v1.0.44 起斜杠命令可以出现在输入任意位置一条消息中可以写多个 skill如/generate-tests and then /conventional-commit按顺序执行。agent 自动发现agent 根据description和用户意图自动匹配并调用无需斜杠命令——这正是把描述写具体的原因。CLI 管理copilot skill子命令v1.0.65可以直接管理本地已加载的 skillcopilot skill list # 列出当前已加载的 skill copilot skill add ./my-skill/ # 从本地目录添加 copilot skill remove my-skill # 按名称移除【免费下载链接】awesome-copilotCommunity-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.项目地址: https://gitcode.com/GitHub_Trending/aw/awesome-copilot创作声明:本文部分内容由AI辅助生成(AIGC),仅供参考
返回列表