/slack:standup does not know which days are work days

Open
#156 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
38/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
markdown
Domain
cli

Research direction

Start with step 2 of commands/standup.md and compare its yesterday-based after: boundary with the Monday–Friday and Sunday–Thursday cases in the issue. Decide how the command should learn a user's working days, then update the instruction so after: targets the day before the previous working day and excludes intervening days off. Done means both example work weeks select the correct prior work day.

Written by the indexing model from the issue text.

Description

What kind of change is this?

Improvement to an existing slash command /slack:standup

What problem are you trying to solve?

/slack:standup (commands/standup.md, step 2) tells the agent to search with after: set to yesterday's date, and describes that boundary as the last working day. The command has no way to know which days are work days for the user and which are not: no work week, locale, or days off.

That shows up differently depending on the week:

  • In a Monday–Friday week, running the command on Monday sets the cutoff to Sunday. Friday's updates fall outside after:, and weekend activity can fall inside it.
  • In a Sunday–Thursday week, where Sunday is a working day and Friday and Saturday are off, yesterday on Monday is Sunday, which is the actual last working day. Treating Saturday and Sunday as the weekend would drop Sunday's work and can include Friday instead.

The same gap appears on the other side of each week. A Sunday–Thursday user running the command on Sunday needs Thursday, not Saturday. A Monday–Friday user running it on Monday needs Friday, not Sunday.

Proposed solution

The standup search should cover the user's last working day, based on that user's work week, and exclude the days they have off in between. Monday–Friday and Sunday–Thursday (and other weeks) should each include the real previous work day.

How the command learns the week can stay open: ask the user which days they work, or use locale or profile information when it is available. The after: date should then be the day before that previous work day, since after: excludes the date it names.

Alternatives considered
  • Keep searching from yesterday, and stop describing that as the last working day. The wording would match the search, and a Monday–Friday standup on Monday would still miss Friday.
  • Hardcode the previous weekday and always skip Saturday and Sunday. That covers a Monday–Friday Monday, and it is the wrong window on Monday for a Sunday–Thursday week.
Anything else?

The current instruction is step 2 of commands/standup.md:

Search for the user's recent messages using slack_search_public with the filter from:<@USER_ID> and after: set to yesterday's date. This captures messages from the last working day.

The other commands do not set this kind of date boundary. summarize-channel and channel-digest limit by message count, and find-discussions does not pick a start date.

Dominant language
Python
Stars
173
Forks
46
Avg merge
1d 47m
Merged PRs (30d)
38

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from slackapi/slack-skills-plugin

All issues in slackapi/slack-skills-plugin

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.