Code / /kosuke:qa-guide

/kosuke:qa-guide.

/kosuke:qa-guide keeps a project's QA Guide correct and up to date. A QA run in a chat session never saves the guide. It writes down what it proved in a file called qa-guide-notes.md in that session's Files. This skill reads those notes from the project's recent sessions. It adds or fixes a fact only when more than one session found it, so one branch's view never changes the guide alone. It also removes what is stale: steps sessions proved wrong, and paths, scripts and commands the project's default branch no longer has.

When it runs

Kosuke runs it for you, as a system cron. There is nothing to set up.

  • Every day at 06:00, in the workspace's time zone.
  • For each project with QA on that someone worked in during the last 14 days, so it also catches steps a change on the default branch made stale. A project nobody touched is skipped. Projects in a Personal space are not included.
  • Each project gets its own run, in its own sandbox, using the workspace's AI provider.

The system cron does not appear in your workspace's Crons, and nobody in the workspace can change or delete it. Turn QA off for a project to stop it there.

What it does

  1. It reads the project's saved QA Guide and its revision.
  2. It reads the qa-guide-notes.md that each chat session of the project active in the last 14 days wrote itself. Each note says what the session's QA run found missing, wrong or no longer true in the guide. A file a session only points at does not count.
  3. It sorts each fact:
A fact isWhenWhat happens
ConfirmedTwo or more sessions found it, and none found the oppositeThe guide changes
StaleSessions proved the line wrong, or it names a path, script or command the default branch no longer hasThe line is fixed to the new name, or removed
ContestedSessions found opposite facts about the same lineNothing changes, and the run reports it
PendingOnly one session found itNothing changes yet
DoneThe guide already says itNothing changes
Applied beforeAn earlier run already made this changeNothing changes, even if someone changed it back since: their change stands

A step only a running app can prove, such as a URL or a sign-in, is never removed just because of the repository. It changes only when sessions' notes say so.

  1. It changes only the lines those facts name, and keeps every other line as it is.
  2. It saves the guide, naming the revision it read. If someone saved the guide in the meantime, the save is refused, and the run reads the guide again and applies the facts to the new text.

What you get

A file per project in the run's Files, named qa-guide-<project>.md. It shows the revision saved, each fact added with the sessions that found it, each stale line removed or fixed with the commit that made it stale, the contested facts, how many facts are still pending, and the list of every change the cron has made so far, which the next run reads.