lobehub/.claude/prompts
Innei 8b3c871d08
♻️ refactor(onboarding): add OnboardingContextInjector and wire context engine (#13518)
* ♻️ refactor(onboarding): add OnboardingContextInjector and wire context engine

Made-with: Cursor

* 🔧 refactor(onboarding): update tool call references to use `lobe-user-interaction________builtin`

Modified onboarding documentation and utility functions to standardize the use of the `lobe-user-interaction________builtin` tool call for structured input collection, enhancing clarity and consistency across the codebase.

Signed-off-by: Innei <tukon479@gmail.com>

* 🔧 refactor(onboarding): standardize tool call references to `lobe-user-interaction____askUserQuestion____builtin`

Updated documentation and utility functions to replace instances of the `lobe-user-interaction________builtin` tool call with `lobe-user-interaction____askUserQuestion____builtin`, ensuring consistency in structured input collection across the onboarding process.

Signed-off-by: Innei <tukon479@gmail.com>

* ♻️ refactor(onboarding): move onboarding context before first user

* ♻️ refactor(context-engine): add virtual last user provider

* update v3

* 🐛 fix(onboarding): add early exit escape hatch for boundary cases

The `<next_actions>` directive only prompted finishOnboarding in the
summary phase, but phase transition required all fields + 5 discovery
exchanges — a condition extreme cases rarely meet. This left the model
stuck in discovery, never calling finishOnboarding.

- Add EARLY EXIT hint in discovery phase next_actions
- Add universal completion-signal REMINDER across all phases
- Add minimum-viable discovery fallback in systemRole
- Add explicit completion signal list in Early Exit section
- Add off-topic redirect limit in Boundaries
- Add CRITICAL persistence rule in toolSystemRole

*  test(context-engine): fix OnboardingContextInjector tests to match BaseFirstUserContentProvider

Remove brittle MessagesEngine onboarding test that hardcoded XML content.

---------

Signed-off-by: Innei <tukon479@gmail.com>
2026-04-07 19:25:16 +08:00
..
auto-testing.md ♻️ refactor(onboarding): add OnboardingContextInjector and wire context engine (#13518) 2026-04-07 19:25:16 +08:00
e2e-coverage.md ♻️ refactor(onboarding): add OnboardingContextInjector and wire context engine (#13518) 2026-04-07 19:25:16 +08:00
issue-triage.md 🔨 chore: improve Claude Code triage workflow (#9713) 2025-10-14 23:05:25 +08:00
migration-support.md ♻️ refactor(onboarding): add OnboardingContextInjector and wire context engine (#13518) 2026-04-07 19:25:16 +08:00
pr-assign.md feat(ci): add Claude PR auto-assign reviewer workflow (#13120) 2026-03-19 16:13:01 +08:00
security-rules.md ♻️ refactor(onboarding): add OnboardingContextInjector and wire context engine (#13518) 2026-04-07 19:25:16 +08:00
team-assignment.md ♻️ refactor(onboarding): add OnboardingContextInjector and wire context engine (#13518) 2026-04-07 19:25:16 +08:00
translate-comments.md ♻️ refactor(onboarding): add OnboardingContextInjector and wire context engine (#13518) 2026-04-07 19:25:16 +08:00