From 9255055c438759bb369e493a774c6f04947628f9 Mon Sep 17 00:00:00 2001 From: "david.delagneau" Date: Thu, 9 Apr 2026 15:30:11 -0600 Subject: [PATCH] feat: Update context commands to include work items and enhance Mattermost integration --- .opencode/commands/fidelity-context.md | 7 ++++++ .opencode/commands/jeff-update.md | 7 ++++++ .opencode/commands/log-note.md | 11 ++++++--- .opencode/commands/mattermost-translate.md | 23 ------------------- .opencode/commands/promote-project-context.md | 9 ++++++-- .opencode/commands/standup.md | 6 +++++ .opencode/commands/translate.md | 2 +- 7 files changed, 36 insertions(+), 29 deletions(-) delete mode 100644 .opencode/commands/mattermost-translate.md diff --git a/.opencode/commands/fidelity-context.md b/.opencode/commands/fidelity-context.md index 0d5628d..903b202 100644 --- a/.opencode/commands/fidelity-context.md +++ b/.opencode/commands/fidelity-context.md @@ -11,10 +11,13 @@ Use these files as the baseline context: @ai/context/project.md @ai/context/people/jeff.md @ai/state/current.md +@ai/state/work-items.md @ai/context/decisions/rest-vs-graphql.md @ai/context/decisions/discourse-handling.md @knowledge/workspace-model.md @knowledge/communication-rules.md +@knowledge/agent-memory-rules.md +@knowledge/memory-promotion-rules.md Today's date: @@ -28,6 +31,10 @@ Recent logs available: !`ls -1 ai/logs 2>/dev/null | sort | tail -n 5` +Latest Mattermost context, if available: + +!`if [ -s ai/inbox/mattermost-latest.md ]; then cat ai/inbox/mattermost-latest.md; elif [ -s scripts/mattermost/generated/mattermost_context.jsonl ]; then cat scripts/mattermost/generated/mattermost_context.jsonl; else echo "No Mattermost context available."; fi` + Respond with: 1. Current context diff --git a/.opencode/commands/jeff-update.md b/.opencode/commands/jeff-update.md index 8f29505..d0348d4 100644 --- a/.opencode/commands/jeff-update.md +++ b/.opencode/commands/jeff-update.md @@ -11,12 +11,18 @@ Read: @ai/context/project.md @ai/context/people/jeff.md @ai/state/current.md +@ai/state/work-items.md @knowledge/communication-rules.md +@knowledge/agent-memory-rules.md Today's log, if present: !`if [ -f ai/logs/$(date +%F).md ]; then cat ai/logs/$(date +%F).md; else echo "No log exists for today yet."; fi` +Latest Mattermost context, if available: + +!`if [ -s ai/inbox/mattermost-latest.md ]; then cat ai/inbox/mattermost-latest.md; elif [ -s scripts/mattermost/generated/mattermost_context.jsonl ]; then cat scripts/mattermost/generated/mattermost_context.jsonl; else echo "No Mattermost context available."; fi` + User draft or rough notes: $ARGUMENTS @@ -27,6 +33,7 @@ Requirements: - Clarify scope - Preserve technical meaning - Mention auth state when relevant +- Mention Jira IDs and approved titles when they materially improve clarity - Do not label something a regression unless the context supports it - Keep the result short enough for Mattermost diff --git a/.opencode/commands/log-note.md b/.opencode/commands/log-note.md index 2df51a2..daab017 100644 --- a/.opencode/commands/log-note.md +++ b/.opencode/commands/log-note.md @@ -1,8 +1,8 @@ --- -description: Update today's log from rough notes or Mattermost context +description: Update today's log from rough notes or contextual notes --- -Use this workspace as the source of truth for daily context maintenance. +Use this command for quick same-day note capture. Read: @@ -10,6 +10,9 @@ Read: @ai/AGENTS.md @ai/context/project.md @ai/state/current.md +@ai/state/work-items.md +@knowledge/agent-memory-rules.md +@knowledge/memory-promotion-rules.md Today's existing log, if present: @@ -26,8 +29,10 @@ Instructions: - Capture both technical findings and communication context when relevant - Keep the log concise but reusable for later standups and manager updates - If the notes are ambiguous, normalize them without inventing facts +- If a note clearly corrects or sharpens existing current memory, update the corresponding canonical file as well +- Prefer `sync-context` for broader memory updates; use this command for fast daily capture After editing, respond with: 1. What was added or clarified -2. Any missing context still worth capturing +2. Whether any broader memory was also updated diff --git a/.opencode/commands/mattermost-translate.md b/.opencode/commands/mattermost-translate.md deleted file mode 100644 index fd4de7e..0000000 --- a/.opencode/commands/mattermost-translate.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -description: Translate rough Spanish engineering notes into Mattermost-ready English ---- - -Translate and tighten the following rough notes for Mattermost: - -$ARGUMENTS - -Read: - -@prompts/mattermost-translation.md -@ai/AGENTS.md -@ai/context/people/jeff.md -@knowledge/communication-rules.md - -If relevant, use today's log for context: - -!`if [ -f ai/logs/$(date +%F).md ]; then cat ai/logs/$(date +%F).md; else echo "No log exists for today yet."; fi` - -Return: - -1. Clean message -2. Short assumptions note diff --git a/.opencode/commands/promote-project-context.md b/.opencode/commands/promote-project-context.md index e27e2d1..3cb2c2d 100644 --- a/.opencode/commands/promote-project-context.md +++ b/.opencode/commands/promote-project-context.md @@ -1,8 +1,8 @@ --- -description: Promote confirmed project facts from the inbox into Fidelity workspace memory +description: Manually promote confirmed project facts into Fidelity workspace memory --- -Promote confirmed Fidelity project context into the workspace. +Use this only when you want an explicit manual promotion pass. Read: @@ -22,6 +22,10 @@ Current Mattermost inbox, if present: !`if [ -f ai/inbox/mattermost-latest.md ]; then cat ai/inbox/mattermost-latest.md; else echo "No Mattermost inbox file is available."; fi` +Generated Mattermost context, if present: + +!`if [ -s scripts/mattermost/generated/mattermost_context.jsonl ]; then cat scripts/mattermost/generated/mattermost_context.jsonl; else echo "No generated Mattermost context is available."; fi` + User direction or facts to promote: $ARGUMENTS @@ -38,6 +42,7 @@ Instructions: - `ai/context/decisions/*.md` - Prefer concrete project updates over broad summaries - If a fact is still ambiguous, do not promote it +- Use this command when you want a deliberate manual pass beyond the agent's default automatic memory maintenance Return: diff --git a/.opencode/commands/standup.md b/.opencode/commands/standup.md index a460c42..35c32c2 100644 --- a/.opencode/commands/standup.md +++ b/.opencode/commands/standup.md @@ -30,6 +30,12 @@ Latest Mattermost context, preferring inbox and falling back to generated JSONL: !`if [ -s ai/inbox/mattermost-latest.md ]; then cat ai/inbox/mattermost-latest.md; elif [ -s scripts/mattermost/generated/mattermost_context.jsonl ]; then cat scripts/mattermost/generated/mattermost_context.jsonl; else echo "No Mattermost context available."; fi` +Before drafting: + +- update workspace memory if the refreshed context introduced clear high-confidence project facts +- prefer existing memory when the latest context is ambiguous +- mention Jira IDs and approved titles when they map cleanly to yesterday's work + Return a standup that is: - specific diff --git a/.opencode/commands/translate.md b/.opencode/commands/translate.md index e3563d4..906703e 100644 --- a/.opencode/commands/translate.md +++ b/.opencode/commands/translate.md @@ -1,5 +1,5 @@ --- -description: Alias for Mattermost-ready translation and polishing +description: Translate rough engineering notes into Mattermost-ready English --- Translate and tighten the following rough notes into concise Mattermost-ready English: