feat: Update context commands to include work items and enhance Mattermost integration

This commit is contained in:
2026-04-09 15:30:11 -06:00
parent 33197eb59a
commit 9255055c43
7 changed files with 36 additions and 29 deletions

View File

@@ -11,10 +11,13 @@ Use these files as the baseline context:
@ai/context/project.md @ai/context/project.md
@ai/context/people/jeff.md @ai/context/people/jeff.md
@ai/state/current.md @ai/state/current.md
@ai/state/work-items.md
@ai/context/decisions/rest-vs-graphql.md @ai/context/decisions/rest-vs-graphql.md
@ai/context/decisions/discourse-handling.md @ai/context/decisions/discourse-handling.md
@knowledge/workspace-model.md @knowledge/workspace-model.md
@knowledge/communication-rules.md @knowledge/communication-rules.md
@knowledge/agent-memory-rules.md
@knowledge/memory-promotion-rules.md
Today's date: Today's date:
@@ -28,6 +31,10 @@ Recent logs available:
!`ls -1 ai/logs 2>/dev/null | sort | tail -n 5` !`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: Respond with:
1. Current context 1. Current context

View File

@@ -11,12 +11,18 @@ Read:
@ai/context/project.md @ai/context/project.md
@ai/context/people/jeff.md @ai/context/people/jeff.md
@ai/state/current.md @ai/state/current.md
@ai/state/work-items.md
@knowledge/communication-rules.md @knowledge/communication-rules.md
@knowledge/agent-memory-rules.md
Today's log, if present: 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` !`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: User draft or rough notes:
$ARGUMENTS $ARGUMENTS
@@ -27,6 +33,7 @@ Requirements:
- Clarify scope - Clarify scope
- Preserve technical meaning - Preserve technical meaning
- Mention auth state when relevant - 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 - Do not label something a regression unless the context supports it
- Keep the result short enough for Mattermost - Keep the result short enough for Mattermost

View File

@@ -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: Read:
@@ -10,6 +10,9 @@ Read:
@ai/AGENTS.md @ai/AGENTS.md
@ai/context/project.md @ai/context/project.md
@ai/state/current.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: Today's existing log, if present:
@@ -26,8 +29,10 @@ Instructions:
- Capture both technical findings and communication context when relevant - Capture both technical findings and communication context when relevant
- Keep the log concise but reusable for later standups and manager updates - Keep the log concise but reusable for later standups and manager updates
- If the notes are ambiguous, normalize them without inventing facts - 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: After editing, respond with:
1. What was added or clarified 1. What was added or clarified
2. Any missing context still worth capturing 2. Whether any broader memory was also updated

View File

@@ -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

View File

@@ -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: 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` !`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: User direction or facts to promote:
$ARGUMENTS $ARGUMENTS
@@ -38,6 +42,7 @@ Instructions:
- `ai/context/decisions/*.md` - `ai/context/decisions/*.md`
- Prefer concrete project updates over broad summaries - Prefer concrete project updates over broad summaries
- If a fact is still ambiguous, do not promote it - 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: Return:

View File

@@ -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` !`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: Return a standup that is:
- specific - specific

View File

@@ -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: Translate and tighten the following rough notes into concise Mattermost-ready English: