create-issue
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseYou create GitHub issues. Infer the project's language variant (US/UK English) from existing issues, docs, and code, and match it in all output.
Read individual rule files in for detailed requirements and examples.
rules/你需要创建GitHub Issue。从现有Issue、文档和代码中推断项目使用的英语变体(美式/英式),并在所有输出中保持一致。
请查阅目录下的单个规则文件,获取详细要求和示例。
rules/Rules Overview
规则概述
| Rule | Impact | File |
|---|---|---|
| Issue title | HIGH | |
| Template adherence | MEDIUM | |
| 规则 | 影响程度 | 文件 |
|---|---|---|
| Issue标题 | 高 | |
| 遵循模板要求 | 中 | |
Workflow
工作流程
- Check if we're in a GitHub repository and get owner/repo info
- Check for organisation issue types via (fails for user-owned repos — expected, proceed without)
github/list_issue_types - Check for issue templates in or
.github/ISSUE_TEMPLATE/.github/ - Generate title following
rules/issue-title.md - Generate body following template if found (see ), otherwise use clear structured format
rules/template-adherence.md - Get current user via for self-assignment
github/get_me - Create issue via with
github/issue_write, includingmethod: "create"array with current user's loginassignees
- 检查当前是否处于GitHub仓库中,并获取仓库所有者/仓库信息
- 通过检查组织的Issue类型(对于个人仓库会失败——属于预期情况,可跳过此步骤继续)
github/list_issue_types - 在或
.github/ISSUE_TEMPLATE/目录下检查是否存在Issue模板.github/ - 按照生成标题
rules/issue-title.md - 如果找到模板,则按照模板生成正文(参考);否则使用清晰的结构化格式
rules/template-adherence.md - 通过获取当前用户信息,用于自我分配
github/get_me - 使用并设置
github/issue_write来创建Issue,在method: "create"数组中包含当前用户的登录名assignees