import-issue

Solid

从 Issue 导入并创建任务。 当想从既有 Issue 开工并在本地跟踪时使用。

AI & Automation 83 stars 5 forks Updated today MIT

Install

View on GitHub

Quality Score: 80/100

Stars 20%
64
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 导入 Issue 导入指定的 Issue 并创建任务。参数:issue 编号。 ## 行为边界 / 关键规则 - 本技能的唯一产出是 `task.md` - 不要编写或修改业务代码。仅做导入 - 执行本技能后,你**必须**立即更新任务状态 ## 任务入参短号别名 > 如果 `{task-id}` 入参匹配 `^[#]?[0-9]+$`(裸数字或带 `#` 前缀),先读取 `.agents/rules/task-short-id.md` 的「SKILL 入参解析」段执行解析;后续命令视 `{task-id}` 为解析后的全长 `TASK-YYYYMMDD-HHMMSS` 形式。 ## 步骤开始:记录开始时间 本技能会**创建** task.md,开始时尚无文件可写。先在内存记录开始时间 `started_at`(`date "+%Y-%m-%d %H:%M:%S%z" | sed 's/\([+-][0-9][0-9]\)\([0-9][0-9]\)$/\1:\2/'`);在最后写活动日志时**一次性补两条**——started 行用 `started_at`、done 行用完成时间,二者同基名(started 行 action 加 ` [started]` 后缀、note 用 `started`)。基名必须跟实际导入场景一致: ``` # 场景 B:新 Issue 导入 - {started_at} — **Import Issue [started]** by {agent} — started - {done_at} — **Import Issue** by {agent} — {完成说明} # 场景 C:从历史 Issue 评论恢复 - {started_at} — **Import Issue (Recovered) [started]** by {agent} — started - {done_at} — **Import Issue (Recovered)** by {agent} — {完成说明} ``` `ai task log` 会按基名把两条配对成一行(进行中 → 已完成)。约定见 `.agents/rules/task-management.md` 的「Activity Log started / done 双标记约定」。 ## 执行流程 ### 1. 获取 Issue 信息 执行前先读取 `.agents/rules/issue-pr-commands.md`,并按其中的前置步骤完成认证和代码托管平台检测;随后按其中的 “读取 Issue” 命令获取 Issue 信息。 提取:issue 编号、标题、描述、标签。 从 Issue 标题派生任务标题:按下方契约剥掉可选的单层前导 Conventional Commits 前缀,其余描述原文与原始语言保持不变。下方 fenced 契约是权威的、与语言无关的规则——在所有 `import-issue` 变体中保持逐字节一致: ``` # title-derivation-contract strip-prefix: type(scope): prefix-types: feat fix docs style refactor perf test build ci chore revert single-layer-only: true preserve-body-colon: true keep-when-no-prefix: true ...

Details

Author
fitlab-ai
Repository
fitlab-ai/agent-infra
Created
4 months ago
Last Updated
today
Language
TypeScript
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category