@delfini/cli 0.1.0-rc.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.
@@ -0,0 +1,27 @@
1
+ ## Delfini drift detection
2
+
3
+ `/delfini` runs local drift detection between this PR's diff and the team's documentation, using your existing coding-agent LLM tokens — no Delfini API key, no GitHub App, no Delfini workspace required. It dispatches a subagent that compares the diff against the configured doc scope, then surfaces a structured report with one-click apply for fixable findings. The full step-by-step protocol the host agent follows on invocation lives in `.claude/skills/delfini/SKILL.md`.
4
+
5
+ ### When to invoke `/delfini`
6
+
7
+ Auto-invoke `/delfini` when the user signals intent to open a PR from the current branch. Treat any of the following as the trigger:
8
+
9
+ - The user says "create a PR" / "open a PR" / "raise a PR" / "submit a PR" / "publish a PR" / "make a PR" / "let's PR this", or any phrase that clearly requests a pull request be opened from the current branch.
10
+ - The user otherwise clearly signals they want to open a PR from the current branch.
11
+
12
+ Use your own intent recognition — phrasing is fuzzy. The principle is: create-PR intent, fired once per PR-creation pass.
13
+
14
+ A create-PR auto-invocation is non-interactive on the diff-source choice: it analyses `both` (committed + uncommitted — what the opened PR will contain) silently, with no local-vs-both prompt. The SKILL.md diff-source resolution step consumes this signal; a manual `/delfini` may prompt instead.
15
+
16
+ ### When NOT to invoke `/delfini`
17
+
18
+ Do NOT auto-invoke `/delfini` in any of the following situations:
19
+
20
+ - On every commit. `/delfini` is a pre-PR check, not a per-commit check. Normal coding flow must stay quiet — no surprise LLM dispatches between edits.
21
+ - During normal coding flow (refactors, exploratory edits, in-progress work).
22
+ - From any git lifecycle event. Git-hook integration is explicitly NOT used (design-spec NG5) — git hooks run in non-interactive shells without host-agent subagent access, which breaks the architecture. "On PR creation" means create-PR intent recognition by the host agent, never a git or GitHub event hook.
23
+ - When the user has already run `/delfini` for the current PR-creation pass and is iterating on its findings — wait for the next create-PR intent before re-firing.
24
+
25
+ ### Protocol reference
26
+
27
+ On invocation, follow the numbered protocol in `.claude/skills/delfini/SKILL.md`. That file is the versioned contract between the CLI and the host agent; do not improvise the steps.