AgentSkillsCN

sync-discovered-work

将已发现的工作事项审阅并同步至 Jira。列出技能执行过程中待处理的事项(review_pr、start_work 等),按类型或优先级分组,并创建 Jira 问题。当用户说“同步已发现的工作”或“为已发现的事项创建 Jira 问题”时,可使用此功能。

SKILL.md
--- frontmatter
name: sync-discovered-work
description: Review and sync discovered work items to Jira. Lists pending items from skill execution (review_pr, start_work, etc.), groups by type/priority, creates Jira issues. Use when user says "sync discovered work" or "create Jira for discovered items".

Sync Discovered Work

Syncs pending discovered work items (tech_debt, bug, improvement, missing_test, security) to Jira.

Inputs

InputTypeDefaultPurpose
auto_createboolfalseAuto-create Jira for all (default: review first)
priority_filterstring""Only sync this priority or higher
type_filterstring""Only sync this type
parent_epicstring""Epic key to link issues to
dry_runboolfalseShow what would be created

Workflow

1. Load Persona

  • persona_load("developer")

2. Load Discovered Work

  • Load from memory: get_discovered_work(), get_discovered_work_summary()
  • Filter pending (not jira_synced)

3. Filter Items

  • Apply priority_filter (low/medium/high/critical)
  • Apply type_filter (tech_debt, bug, improvement, etc.)
  • Group by type and priority

4. Build Review Summary

  • Total, pending sync, synced
  • By type, by priority, by source skill

5. List Pending Items

  • For each: task, type, priority, source_skill, source_issue, file_path, notes

6. Create Jira (if auto_create and not dry_run)

  • For each filtered item: build description (task, notes, file, source)
  • jira_create_issue(project, issue_type, summary, description, labels)
  • Mark as synced in memory: mark_discovered_work_synced(original_task, jira_key)
  • Limit batch (e.g., 3 per run) or loop with tool calls

7. Log

  • memory_session_log("Reviewed discovered work", "{count} items pending")

Output

Review summary, items list. If dry_run: "Would create X issues". If auto_create: created/failed list. Next steps for creating.