auriga-cli 1.4.1 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/README.zh-CN.md +3 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ This repo itself is a fully configured harness project. You can clone it to see
|
|
|
14
14
|
| **Skills** | Development process skills — brainstorming, systematic-debugging, TDD, verification, planning, playwright |
|
|
15
15
|
| **Recommended Skills** | Optional utility skills (e.g. `ui-ux-pro-max`) you can add on top of the workflow skills |
|
|
16
16
|
| **Plugins** | Recommended Claude Code plugins — skill-creator, claude-md-management, codex |
|
|
17
|
-
| **Hooks** | Claude Code hooks
|
|
17
|
+
| **Hooks** | Claude Code hooks: `notify` (macOS notification), `pr-create-guard` (PostToolUse body snapshot after `gh pr create`), `pr-ready-guard` (PreToolUse block on stray planning docs / unpushed commits before `gh pr ready`) |
|
|
18
18
|
|
|
19
19
|
## Quick Start
|
|
20
20
|
|
|
@@ -80,6 +80,8 @@ Installs Claude Code hooks into a chosen scope. Each hook is self-contained unde
|
|
|
80
80
|
| Hook | Description |
|
|
81
81
|
|---|---|
|
|
82
82
|
| notify | Native macOS notification when Claude needs your attention. Shows the brand mark in the small app-icon position, with click-to-activate that brings the originating terminal back to the foreground. Auto-installs `alerter` via Homebrew (`vjeantet/tap/alerter`). Customize sound and icon by editing `.claude/hooks/notify/config.json` and replacing `.claude/hooks/notify/icon.png`. macOS-only at runtime; silent no-op on other platforms. |
|
|
83
|
+
| pr-create-guard | PostToolUse hook for `gh pr create`. Queries the newly-created PR via `gh pr view` and injects a body snapshot (headings found + TODO-checkbox counts) as `additionalContext` for the Agent to self-verify against the step-10 scope / acceptance / risks / TODO contract. Never blocks — PostToolUse runs after the fact. Graceful degradation when gh is unavailable. |
|
|
84
|
+
| pr-ready-guard | PreToolUse hook for `gh pr ready`. Blocks on structural signals only: stray planning docs at `findings.md` / `progress.md` / `task_plan.md` / `docs/superpowers/specs/*.md` (must be archived to `docs/worklog-<date>-<branch>/` per the `Document Conventions` in CLAUDE.md), or unpushed commits on the current branch. No text regex of PR content is ever used as a block signal. On pass, injects a PR body snapshot as `additionalContext`. |
|
|
83
85
|
|
|
84
86
|
Scope choices:
|
|
85
87
|
|
package/README.zh-CN.md
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
| **Skills** | 开发流程 skills —— brainstorming、systematic-debugging、TDD、verification、planning、playwright |
|
|
15
15
|
| **Recommended Skills** | 可选的工具类 skills(如 `ui-ux-pro-max`),在 workflow skills 之外按需追加 |
|
|
16
16
|
| **Plugins** | 推荐的 Claude Code 插件 —— skill-creator、claude-md-management、codex |
|
|
17
|
-
| **Hooks** | Claude Code hooks
|
|
17
|
+
| **Hooks** | Claude Code hooks:`notify`(macOS 通知)、`pr-create-guard`(`gh pr create` 后注入 PR body 快照的 PostToolUse)、`pr-ready-guard`(`gh pr ready` 前按游离 planning 文档 / 未 push commits 拦截的 PreToolUse) |
|
|
18
18
|
|
|
19
19
|
## 快速开始
|
|
20
20
|
|
|
@@ -80,6 +80,8 @@ npx auriga-cli
|
|
|
80
80
|
| Hook | 说明 |
|
|
81
81
|
|---|---|
|
|
82
82
|
| notify | 当 Claude 需要你关注时弹一条原生 macOS 通知。在通知小图标位显示品牌图,点击通知可把发起 Claude 的终端拉回前台。会自动通过 Homebrew 安装 `alerter`(`vjeantet/tap/alerter`)。改 `.claude/hooks/notify/config.json` 即可换提示音、替换 `.claude/hooks/notify/icon.png` 即可换图标。仅 macOS 运行时生效,其它平台静默 no-op。 |
|
|
83
|
+
| pr-create-guard | `gh pr create` 的 PostToolUse hook。创建成功后通过 `gh pr view` 拉真实 PR body,扫 `^##` / `^###` headings 并统计 `- [ ]` / `- [x]`,通过 `additionalContext` 注入快照让 Agent 对照 step 10 的"范围 / 验收标准 / 风险 / 剩余 TODO"四要素。不 block——PostToolUse 发生在动作之后。gh 不可用时静默降级。 |
|
|
84
|
+
| pr-ready-guard | `gh pr ready` 的 PreToolUse hook。**只按结构信号**拦截:仓库根存在游离 planning 文档(`findings.md` / `progress.md` / `task_plan.md`),或 `docs/superpowers/specs/*.md` 未归档——这些必须按 CLAUDE.md 的"文档规范"迁到 `docs/worklog-<date>-<branch>/`;或者本地有未 push commits。**不做 PR 正文文本 regex 匹配**。放行时注入 PR body 快照。 |
|
|
83
85
|
|
|
84
86
|
作用域选择:
|
|
85
87
|
|