@staff0rd/assist 0.654.1 → 0.655.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 CHANGED
@@ -104,7 +104,7 @@ Every command supports `--help` for full detail on its flags and behaviour.
104
104
 
105
105
  ### Git and GitHub
106
106
 
107
- - `assist sync [--prune] [--force]` - Copy commands, settings, `CLAUDE.md` and design assets to `~/.claude` (plus `~/.codex` and `~/.pi` when those CLIs are on PATH). With `--prune`, also lists commands in the target dirs that sync did not write — anything whose name is not in the repo's `claude/commands/*.md` set — and adding `--force` removes them. `~/.codex/skills` and `~/.pi/agent/prompts` are only inspected when those CLIs are detected; an orphaned codex skill directory is removed only when `SKILL.md` is its sole content, and any other is left in place with a reason. Subdirectories and non-`.md` files are listed separately and never removed. `--force` without `--prune` is an error
107
+ - `assist sync [--prune] [--force]` - Copy commands, settings and design assets to `~/.claude` (plus `~/.codex` and `~/.pi`, which also receive `CLAUDE.md` as their `AGENTS.md`, when those CLIs are on PATH). `~/.claude/CLAUDE.md` is no longer written — Claude Code gets its instructions from `assist advise --hook` at session start instead. With `--prune`, also lists commands in the target dirs that sync did not write — anything whose name is not in the repo's `claude/commands/*.md` set — and adding `--force` removes them. `~/.codex/skills` and `~/.pi/agent/prompts` are only inspected when those CLIs are detected; an orphaned codex skill directory is removed only when `SKILL.md` is its sole content, and any other is left in place with a reason. Subdirectories and non-`.md` files are listed separately and never removed. `--force` without `--prune` is an error
108
108
  - `assist activity [--since <date>]` - Chart GitHub commit activity per day (defaults to last 30 days)
109
109
  - `assist commit status` - Show git status and diff
110
110
  - `assist commit <message> [files...] [--ref <ref>]` - Stage files and create a git commit with validation. The message must be a single line under 50 characters; `--ref` is the only way to give the commit a body. Each `--ref` value is free text containing a URL (e.g. `--ref "rationale for removing it https://…"`) and becomes one `Ref:` trailer line, verbatim — commas are not separators, so repeat the flag to pass several. A value carrying no `http`/`https` URL is rejected before anything is staged
@@ -270,7 +270,7 @@ The Config tab of the sessions web dashboard never receives secret values: `GET
270
270
  - `assist code-comment confirm <pin>` - Insert the pinned comment at its file/line and clear the pin state
271
271
  - `assist db-migration unlock` - Page a human to approve creating the next new migration module, issuing a pin via desktop notification
272
272
  - `assist db-migration confirm <pin>` - Confirm a pin from `db-migration unlock`, letting that migration's file write through once
273
- - `assist advise [--hook]` - Print the advice fragments from `claude/advice/*.md` that apply to the cwd's repo, each selected by its `when` condition against the merged config and repo facts, composed in filename order. `--hook` reads the SessionStart payload from stdin for the session's cwd and emits the markdown as `hookSpecificOutput.additionalContext`
273
+ - `assist advise [--hook] [--explain]` - Print the advice fragments from `claude/advice/*.md` that apply to the cwd's repo, each selected by its `when` condition against the merged config and repo facts, composed in filename order. A fragment body may interpolate `{{variable}}` placeholders — `verify.md` names the repo's own `verify*` run commands that way. `advice.include` and `advice.exclude` override a fragment's condition by name, `advice.verify` replaces the verify fragment's text and forces it in, and `advice.extra` is appended as a "Repo notes" section. `--hook` reads the SessionStart payload from stdin for the session's cwd and emits the markdown as `hookSpecificOutput.additionalContext`; `--explain` lists every shipped fragment with whether it was included and the reason
274
274
  - `assist notify` - Show desktop notification from JSON stdin (macOS, Windows, WSL)
275
275
  - `assist status-line` - Format Claude Code status line from JSON stdin
276
276
 
@@ -0,0 +1,6 @@
1
+ ---
2
+ title: Naming files after their export
3
+ when: filenameConvention
4
+ ---
5
+
6
+ A file's name must match the function it exports (e.g. `updateWorkerCapacity.ts` for `updateWorkerCapacity`), per the `oxlint-rules/filenameConvention.ts` lint rule — including the destination passed to `assist refactor extract`.
@@ -0,0 +1,12 @@
1
+ ---
2
+ title: Renaming and extracting TypeScript
3
+ when: typescript
4
+ ---
5
+
6
+ When renaming TypeScript files or symbols, use the refactor commands instead of doing it manually:
7
+
8
+ - `assist refactor rename file <source> <destination>` — rename/move a file and update all imports
9
+ - `assist refactor rename symbol <file> <oldName> <newName>` — rename a variable, function, class, or type across the project
10
+ - `assist refactor extract <file> <functionName> <destination>` — extract a function and its private dependencies to a new file
11
+
12
+ All default to dry-run; add `--apply` to execute.
@@ -0,0 +1,6 @@
1
+ ---
2
+ title: Editing claude/settings.json
3
+ when: claudeSettings
4
+ ---
5
+
6
+ Do not modify `claude/settings.json` without asking the user first. Only read-only commands should be added to the allow list — write operations (add, remove, set, delete) must require confirmation.
@@ -0,0 +1,6 @@
1
+ ---
2
+ title: Verifying a change
3
+ when: verify
4
+ ---
5
+
6
+ After any code change, run `assist verify` — it runs this repo's {{verifyCommands}} in parallel and prints only what failed. Run it bare, never piped through `head`, `tail`, `grep`, `rg` or `wc`.