尧图网络科技YAOTU DIGITAL 获取报价
获取报价
首页 / 资讯中心 / 文章详情

Testing Patterns

发布时间:2026/9/10 5:29:56

资讯中心
01
ARTICLE

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),仅供参考
02
RELATED NEWS

相关资讯

更多网站建设与数字化升级内容

03
WHY YAOTU

想打造同款高转化官网?

懂行业、懂生意,从建站到增长一站式陪跑

场景化定制

不做模板站,围绕你的业务场景量身设计,小众不撞款。

营销型架构

以转化目标组织内容与路径,让官网真正带来询盘。

全周期服务

设计、开发、运营、运维一体,上线只是开始。

免费获取你的建站方案

留下需求,专属顾问 24 小时内为你输出方案建议。