@clipboard-health/ai-rules 2.16.0 → 2.16.2

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 CHANGED
@@ -41,7 +41,7 @@ npm install --save-dev @clipboard-health/ai-rules
41
41
  {
42
42
  "scripts": {
43
43
  "sync-ai-rules": "node ./node_modules/@clipboard-health/ai-rules/scripts/sync.js [PROFILE_NAME]",
44
- "postinstall": "npm run sync-ai-rules"
44
+ "postinstall": "node --run sync-ai-rules"
45
45
  }
46
46
  }
47
47
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clipboard-health/ai-rules",
3
- "version": "2.16.0",
3
+ "version": "2.16.2",
4
4
  "description": "Pre-built AI agent rules for consistent coding standards.",
5
5
  "keywords": [
6
6
  "ai",
@@ -16,9 +16,11 @@ description: Commit, push, and open a PR. Use when the user wants to ship change
16
16
 
17
17
  If `Commits ahead of default branch` is `(unknown)`, `origin/HEAD` couldn't be resolved — stop and tell the user to run `git remote set-head origin -a` (or otherwise set the default branch) before retrying, since the simplify step also depends on it. Otherwise, if `Git status`, `Commits ahead of default branch`, and `Existing PR` are all empty/none, stop and reply `nothing to ship.`. Otherwise:
18
18
 
19
+ Before doing any step, output the full 7-step checklist below in your first response so it stays in recent context across sub-skill calls. Do not skip this — it's what keeps you from stopping after `simplify`.
20
+
19
21
  1. Create a new branch if on main (e.g., `feat/add-user-validation`, `fix/null-check-in-parser`).
20
- 2. Run the `simplify` skill on the full PR diff — `git diff $(git merge-base HEAD origin/HEAD)..HEAD` plus any uncommitted changes. When it returns, continue to step 3 in the same turn; do not stop.
21
- 3. If `git status --short` shows changes, create a single conventional commit.
22
+ 2. Run the `simplify` skill on the full PR diff — `git diff $(git merge-base HEAD origin/HEAD)..HEAD` plus any uncommitted changes. When it returns, your very next action is to restate the remaining steps (3–7) and continue with step 3 in the same turn. Do not stop, do not end the turn with a simplify summary.
23
+ 3. If `git status --short` shows changes, create a single conventional commit with `git commit --no-gpg-sign`.
22
24
  4. Push the branch to origin.
23
25
  5. Look up the current agent session ID with `bash scripts/find-session-id.sh '<phrase>'`. Pass a distinctive verbatim chunk (≥10 words) from the most recent user message; see the script header for quoting constraints. On success the script prints `<agent> <id>`; otherwise nothing — if empty, omit the session ID line below.
24
26
  6. Check for an existing PR with `gh pr view`.
@@ -29,7 +29,7 @@ The plan or request is the source of truth for scope:
29
29
 
30
30
  ## Phase 3: Validate
31
31
 
32
- - Read `AGENTS.md`, `CLAUDE.md`, `CONTRIBUTING.md`, or equivalent contributor instructions for the mandated pre-PR command (e.g. `npm run affected`). That wins over everything.
32
+ - Read `AGENTS.md`, `CLAUDE.md`, `CONTRIBUTING.md`, or equivalent contributor instructions for the mandated pre-PR command (e.g. `node --run verify`). That wins over everything.
33
33
  - If the repo relies on pre-commit/pre-push hooks and mandates no manual command, don't invent one — let the hooks run during the `commit-push-pr` handoff.
34
34
  - If the plan names specific checks, run them when practical. Ask before running anything that's clearly a slow CI-only suite.
35
35