agentleFS
RohanMuppaRohanMuppa/brightspace-mcp-server/skills/sign-in-help/SKILL.md

sign-in-help

Skill71 starsChanged 10 months agoMITView on GitHub

Use when a Brightspace tool answer says sign-in is needed, shows an approval number, says a session expired, or reports a sign-in problem (paused, stuck, held, could not be reached). Explains what to tell the student and what to call next.

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 3 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Never ask for a password, a code or a key in the chat.

    line 14
  2. Distinctive:

    Do not open a visible browser window to retry.

    line 15
  3. Distinctive:

    If the app can show a box in the chat, the student may see the number there.

    line 24
  4. Very specific:

    Do not call sign_out just to get a new number sooner.

    line 54

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Helping a student sign in to Brightspace

There is no login step. The first question that needs Brightspace starts a sign-in on its own, and a saved session renews itself most days. This skill is for the times it needs the student's phone or fails.

The rules that matter most

  1. The student cannot see tool results. Say the approval number in your own reply, as text, before you make another tool call.
  2. Approve only the newest number. A new number replaces the old one, and an earlier one no longer works.
  3. Never ask for a password, a code or a key in the chat. Sign-in never needs one from you.
  4. Do not open a visible browser window to retry. It does not skip a prompt and does not help when a password is saved.
  5. "Could not sign in" is not "no data". Never answer a course question as if the course were empty while sign-in is unfinished.

When the answer shows an approval number

This is mfaPending. Tell the student: open Microsoft Authenticator, enter that number, and approve. Then call the same tool again right away, without waiting for the student to confirm. Each call waits up to 45 seconds and returns as soon as the sign-in completes. Keep calling until it succeeds or reports a different problem.

Each number lasts 5 minutes. If it expires or is denied, the sign-in asks for a new one by itself, at most twice. Give the student the new number when an answer carries one.

If the app can show a box in the chat, the student may see the number there. If they decline or close it, nothing is lost: the answer still carries the number.

You can also call sign_in yourself to start or finish a sign-in without asking a course question.

What each message means and what to do

KindWhat it meansWhat to do
mfaPendingWaiting for the student to approve on their phone.Give the number, call again right away.
mfaHeldMicrosoft shows "We're having trouble verifying your account" and holds a new prompt until an earlier one expires, up to 5 minutes. Nothing is waiting to approve yet.Say so, then call again; each call returns the new number when Microsoft sends it. If a prompt the student did not start shows on the phone, they should deny it. Cancelling does not make it sooner.
automaticPendingThe sign-in is answering its own verification code.Ask for nothing. Call again right away.
inProgressThe sign-in is still starting, before any prompt.Call again right away.
cancelledThe sign-in was stopped (for example by sign_out), so its number no longer works.Call again to start a new sign-in. A new number can take up to 5 minutes.
timeoutA prompt went unanswered and the sign-in stopped.Do not open a window. The next call starts a new sign-in, or says automatic sign-in is paused.
cooldownAutomatic sign-in is paused for 5 minutes after a missed prompt.Tell the student to run the auth command in a terminal from their home folder to sign in now, or wait.
busyAnother process is already signing in.Let it finish, then try again.
stuckThe school's sign-in page never settled.Call sign_in again; no window is needed.
transportBrightspace could not be reached. The saved session was kept.Call sign_in once more. If it fails again, ask the student to check their connection and try in a few minutes.
unsupportedThe login needs something the app cannot give, usually a code from an authenticator app.Tell the student to run auth in a terminal.
secureStorageThe computer's credential store is locked.Ask the student to unlock their keychain or keyring, then try again.
failedThe sign-in did not complete.Tell the student to run auth in a terminal to see why, or setup if the school or username is wrong.
browserInstallThe sign-in browser is not installed.Tell the student to run the repair command the answer names.
dependencyMissingA part the sign-in needs is missing.Tell the student to run the repair command the answer names.

The auth command is npx -y brightspace-mcp-server@latest auth. Tell the student to run it from their home folder, because macOS blocks npx in Documents, Desktop and Downloads.

An expired or stale session

A session that has lapsed is renewed silently when the school allows it. When it cannot be, the next tool call starts a sign-in and you get an approval number as above. Ask the student to approve and call again. To force a fresh start, sign_out clears this computer's saved session only; it does not sign the student out of Microsoft or Brightspace elsewhere. A sign-in that was waiting is cancelled first.

Do not call sign_out just to get a new number sooner. Microsoft sends no new prompt to the account until the earlier one expires.

More than one app or computer

Two apps on the same computer share one sign-in: the second waits on the first, so one approval serves both. Different computers each sign in on their own. Sign in on one at a time, or Microsoft holds the second prompt.

More detail for the student is in the project's docs/sign-in.md and docs/troubleshooting.md on GitHub.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.