ClaudeMods
☰
ZH-TW
● 0 人在線上 · 瀏覽 0 次
贊助提交作品
GitHub 儲存庫 · 發布者 alamine42

my-actions

my-actions 是一個 Claude Code 外掛,它會在提示上方顯示一個方塊,列出代理留給您的動作和問題,分為「待辦」、「代理可做」和「問題」群組。它使用一個小型模型(預設為 haiku)在每次回覆後重建清單。透過 /plugin marketplace add alamine42/claude-mods 安裝,然後 /plugin install my-actions@claude-mods。早期存取,已在 Claude Code 2.1.288 上測試;MIT 授權。

alamine42@alamine42

alamine42/claude-mods/tree/main/plugins/my-actions

已翻譯

關於這個 mod

my-actions 模組會在提示上方的條帶中列出代理留給您的要求,分為三個方塊:「待辦」(▸,只有您可以做,如果有確切的指令則顯示該指令)、「待辦,代理可做」(↻,暗淡)和「問題」(?)。每個項目都有一個「完成」按鈕,當方塊獲得焦點時,按鍵 1-9 可以按下它;「清除」可以清空一個方塊。狀態列會顯示計數,例如「您的行動:2 個動作,1 個問題」。當回覆結束時,模組會將回覆、您的最後一則訊息和開啟的清單傳送給一個小型模型(選項模型,預設為 haiku),該模型會傳回新的清單;在載入或會話恢復時,它會讀取最後幾則訊息。指令:/my-actions 會從整個會話重建清單,/my-actions clear 會清空清單。成本和隱私:在您自己的 Claude 帳戶上,每次回覆進行一次模型呼叫,傳送回覆文字和您的最後一則訊息。限制:子代理輸出中的要求僅在主回覆重複它們時顯示;模型可能會遺漏或虛構要求。

安裝

請先查看作者 README,確認 marketplace 與外掛名稱;指令可能隨儲存庫結構而變動。

claude plugin marketplace add alamine42/claude-mods
claude plugin install my-actions
原文 / README

claude-mods

Two mods for Claude Code. They work in the terminal and in the Code tab of the Claude desktop app.

| Mod | What it shows | | --- | --- | | ci-pipeline | A pane with the CI/CD stage of the branch you work on | | my-actions | A box above the prompt with the actions and questions the agent left for you |

Early access. Mods use the Claude Code function-hooks API. This API changes between releases. I tested these mods on Claude Code 2.1.288.

Install

In Claude Code, add this repo as a plugin marketplace:

/plugin marketplace add alamine42/claude-mods

Then install the mods you want:

/plugin install ci-pipeline@claude-mods
/plugin install my-actions@claude-mods

To try a mod without installing it, clone this repo and start Claude Code with the mod folder:

claude --plugin-dir ./plugins/my-actions

ci-pipeline

<!-- TODO: screenshot -->

A pane that shows where the current branch is in 12 stages:

| Code | Staging | Production | | --- | --- | --- | | Local dev | Deploying to Staging | Deploying to Prod | | PR open | Staging Deployed | Prod Deployed | | PR checks running | Smoke Testing Staging | Smoke Testing Prod | | PR merged | Staging Smoke Tested | Prod Smoke Tested |

Each stage has a mark: ✓ done, ● running, ✗ failed, ◌ the next stage it waits for, · not yet reached. The status line shows the current stage. A toast tells you when the stage changes.

Commands

  • /pipeline opens the pane.
  • /pipeline 123 follows PR #123.
  • /pipeline branch follows the current branch again.
  • In the pane, press r to refresh.

How it finds each stage

  • Local dev, PR open, PR checks and PR merged come from git and gh pr view.
  • The staging and prod stages come from the GitHub Actions jobs that ran on the merge commit. The mod matches the name workflow / job against a regex for each stage.

Options

| Option | Default | | --- | --- | | deployStaging | deploy.*stag\|stag.*deploy | | smokeStaging | smoke.*stag\|stag.*smoke | | deployProd | deploy.*prod\|prod.*deploy | | smokeProd | smoke.*prod\|prod.*smoke | | pollSeconds | 20 |

Change them in the Claude Code config menu, or under pluginConfigs.ci-pipeline in your settings.

Needs: git and the GitHub CLI, logged in.

Limits

  • Deploys that do not run in GitHub Actions on the merge commit do not show.
  • After you switch to main, the pane follows main. Use /pipeline <number> to keep a PR in view.

my-actions

<!-- TODO: screenshot -->

When you come back to a long session, the asks for you are easy to miss in the text. This mod lists them above the prompt, in two boxes:

  • To do (▸): a task only you can do, such as a check in the app or a test by hand. It shows the exact command when there is one.
  • To do, agent can do (↻, dim): a task the agent asked you to do but could do itself. Tell the agent to do it, or do it yourself.
  • Questions (?): a question the agent waits on. A request for your go-ahead ("Shall I push?") is a question too.

Each item has a Done button. When the box has focus, keys 1–9 press it. Clear empties one box. The boxes sit side by side when the window is wide enough. Long items wrap, and a long list scrolls. A task shows in one box only. The status line shows a count, for example Your move: 2 actions, 1 question.

How it works. When a reply ends, the mod sends the reply, your last message, and the open list to a small model. The model returns the new list. It adds new asks. It removes the asks that you answered or that the agent did. When the mod loads or a session resumes, it reads the last few messages.

Commands

  • /my-actions builds the list again from the whole session.
  • /my-actions clear empties the list.

Options

| Option | Default | | --- | --- | | model | haiku |

Cost and privacy. The mod makes one model call per reply, on your own Claude account. Each call sends the reply text and your last message to that model.

Limits

  • Asks inside subagent output show only when the main reply repeats them.
  • The model can miss an ask or add one that is not real. Use Done or /my-actions to correct the list.

License

MIT

更多類似作品