Skip to content

feat(cli): add promote command to turn next actions into tasks#6

Merged
hideack merged 1 commit into
mainfrom
feat/promote-next-action
Apr 12, 2026
Merged

feat(cli): add promote command to turn next actions into tasks#6
hideack merged 1 commit into
mainfrom
feat/promote-next-action

Conversation

@hideack

@hideack hideack commented Apr 12, 2026

Copy link
Copy Markdown
Owner

背景

ingest next で記録した next_action はイベントログに残るだけで、独立したタスクとして追跡できなかった。壁打ちや議論の結果として出てきた具体的な作業項目をそのまま放置しないよう、next action → task への昇格コマンドを追加する。

コマンド仕様

# 最近の next action 一覧を表示(IDつき)
ingest promote

# 指定した next action をタスクに昇格
ingest promote --next <event-id>

# タスクタイトルをカスタム指定
ingest promote --next <event-id> --title "テックブログ記事作成"

# トピック・プロジェクトも指定可
ingest promote --next <event-id> --topic <name> --project <name>

動作例

$ ingest promote
========================================================================
NEXT ACTIONS  (4 entries)
========================================================================
ID                    DATE             SUMMARY
------------------------------------------------------------------------
mWVhZ-9_Ygrb6Q_sz9sJ7 2026/04/12 12:26 【今週中】4/22・4/30向け発信担当を明示的にアサイン
-ju--h0aUEK7IKQdDKLFu 2026/04/12 12:26 【別途】デモ動画撮影(QuickTime、Claude...
RnWGs-QNmdjcuzPIu5feb 2026/04/12 12:26 【今日】テックブログ記事を作成(開発者向け実例付き)
uVjLKplAk0GYiUtce0dHQ 2026/04/12 12:26 【今日】公式X投稿文を作成・投稿(体験ベースコピー+C...
========================================================================
To promote: ingest promote --next <ID> [--title <custom title>]

$ ingest promote --next RnWGs-QNmdjcuzPIu5feb --title "テックブログ記事作成(CLI-Skills発信)"
Task created: R76wUBoJ6q3ewAKx0MFG9
Title  : テックブログ記事作成(CLI-Skills発信)
Event  : LTJGx5tP76yFxAaf6Qj82
Source : next_action RnWGs-QNmdjcuzPIu5feb (2026-04-12T03:26:52.786Z)

設計上の割り切り

昇格済みの next_action に「促進済み」フラグは付けない(イベントログは不変)。ingest tasks で新タスクが確認できるので運用でカバー。複雑度が上がったときに再検討する。

Test plan

  • ingest promote で next_action 一覧が表示されることを確認
  • ingest promote --next <id> でタスクが作成され ingest tasks に現れることを確認
  • --title でタイトルを上書きできることを確認
  • 存在しないIDや next_action 以外のイベントIDを渡したときエラーになることを確認

🤖 Generated with Claude Code

Adds `ingest promote` which bridges next_action_defined events and
the task lifecycle:

- `ingest promote`            — list recent next actions with IDs
- `ingest promote --next <id>` — create a task from that next action

The task title defaults to the next action's summary and can be
overridden with --title. Topic and project are inherited from the
original event or can be set explicitly.

Also exports getEventById() from eventService for reuse.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@hideack hideack merged commit 605af98 into main Apr 12, 2026
1 check passed
@hideack hideack deleted the feat/promote-next-action branch April 12, 2026 05:17
hideack added a commit that referenced this pull request Apr 14, 2026
Document ingest edit task / ingest edit topic in SKILL.md (usage rules),
commands.md (reference), and examples.md (scenario #6).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant