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.
In this repository8 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- course-summarySkill
- download-courseSkill
- grade-checkSkill
- study-planSkill
- weekly-briefingSkill
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
- Distinctive: line 14
Never ask for a password, a code or a key in the chat.
- Distinctive: line 15
Do not open a visible browser window to retry.
- Distinctive: line 24
If the app can show a box in the chat, the student may see the number there.
- Very specific: line 54
Do not call sign_out just to get a new number sooner.
≈ “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.
Files
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
- The student cannot see tool results. Say the approval number in your own reply, as text, before you make another tool call.
- Approve only the newest number. A new number replaces the old one, and an earlier one no longer works.
- Never ask for a password, a code or a key in the chat. Sign-in never needs one from you.
- Do not open a visible browser window to retry. It does not skip a prompt and does not help when a password is saved.
- "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
| Kind | What it means | What to do |
mfaPending | Waiting for the student to approve on their phone. | Give the number, call again right away. |
mfaHeld | Microsoft 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. |
automaticPending | The sign-in is answering its own verification code. | Ask for nothing. Call again right away. |
inProgress | The sign-in is still starting, before any prompt. | Call again right away. |
cancelled | The 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. |
timeout | A 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. |
cooldown | Automatic 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. |
busy | Another process is already signing in. | Let it finish, then try again. |
stuck | The school's sign-in page never settled. | Call sign_in again; no window is needed. |
transport | Brightspace 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. |
unsupported | The login needs something the app cannot give, usually a code from an authenticator app. | Tell the student to run auth in a terminal. |
secureStorage | The computer's credential store is locked. | Ask the student to unlock their keychain or keyring, then try again. |
failed | The 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. |
browserInstall | The sign-in browser is not installed. | Tell the student to run the repair command the answer names. |
dependencyMissing | A 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.
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
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.

