Skip to content

Add Contextual Prompts pattern#23

Merged
lexler merged 2 commits intomainfrom
add-contextual-prompts-pattern
Mar 10, 2026
Merged

Add Contextual Prompts pattern#23
lexler merged 2 commits intomainfrom
add-contextual-prompts-pattern

Conversation

@devill
Copy link
Collaborator

@devill devill commented Jan 24, 2026

Summary

  • Adds new pattern: Contextual Prompts - embed guidance directly in script outputs (error messages, CLI responses) instead of front-loading instructions in CLAUDE.md
  • This is a generalization of the principle behind Habit Hooks

Discussion Requested

@lexler - I'd like to discuss whether we should restructure the relationship between these related patterns:

  • Contextual Prompts (this new one) - the fundamental principle of putting guidance where it will be seen at the right moment
  • Habit Hooks - a more specific implementation that uses hooks to guarantee scripts run and detect violations
  • Reminders - techniques for injecting reminders into conversations
  • Hooks - the infrastructure pattern that enables Habit Hooks

Currently I've set up habit-hooks -->|uses| contextual-prompts and contextual-prompts <-->|similar| reminders, but there might be a cleaner way to organize this family of patterns. Open to suggestions!

Test plan

  • npm run validate passes (relationships are valid)
  • Pattern renders correctly on site

🤖 Generated with Claude Code

devill and others added 2 commits January 24, 2026 11:55
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@lexler
Copy link
Owner

lexler commented Mar 10, 2026

Good for now, re relationships. In general I'm wondering if we should sit down and go through the relationships carefully.
And there's a bunch of them missing for my patterns still, I was meaning to add them to the repo but haven't done them yet.

@lexler lexler merged commit a0e70aa into main Mar 10, 2026
3 checks passed
@devill
Copy link
Collaborator Author

devill commented Mar 10, 2026

Yes, we should definitely get together for a few hours and clean up the repo. Will you be coming to the Samman Coaching Openspace this year? It would be a great place to sit down together and re org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants