new-account-test
Skill46 starsChanged 11 days agoApache-2.0View on GitHub
The end-to-end account scenarios for a self-hosted Markbase instance — the first account on a fresh instance, the first invited teammate (through the desktop app and in the browser), and a new account creating vaults — each with the exact steps, what must be seen, and how to check it. Use when asked to test sign-up, invites, joining, or vault creation, or after changing any of those flows; it starts from the clean state the markbase-dev-test skill provides.
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- markbase-dev-testSkill
- monorepo-single-feature-structureSkill
- markbaseSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 2 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Start every run from a clean state (see the markbase-dev-test skill):
- Distinctive: line 16
Keep the code; every scenario needs it.
- Very specific: line 32
Create first-<date>@example.com.
- Very specific: line 47
Add invited-<date>@example.com.
- Very specific: line 50
Check: instance_invites has the row, accepted_at null.
- Very specific: line 83
Create "Team notes" without picking a folder.
- Very specific: line 86
Create a second vault and pick a folder that already belongs to the first (~/Markbase/Team notes).
- Distinctive: line 92
Create a document in each vault.
≈ “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
New account scenarios
Start every run from a clean state (see the markbase-dev-test skill):
.claude/skills/markbase-dev-test/scripts/reset-local-stack.sh --yes
.claude/skills/markbase-dev-test/scripts/reset-desktop-app.sh --yesThe reset prints the instance's invite link, http://localhost:3100/join?code=….
Keep the code; every scenario needs it. Use a private window for every
"someone new" step, and record each test account's password in a scratchpad
file, not in the conversation.
A. The first account on a fresh instance
The instance has no accounts, so the link alone admits — nobody is there to invite anyone.
- Open the invite link in a private window. Expect: Join localhost:3100, a lime Open in desktop app button, Download for Mac, and at the bottom No desktop app? Create your account in the browser. No "Signed in as" line, ever.
- Click Create your account in the browser →
/signup?code=…. Expect: Create your account on localhost:3100, "Use the address your teammate invited", email + password, Already have one? Log in. - Create
first-<date>@example.com. Expect: signed in, landing on the dashboard with the first-vault prompt. - Checks:
auth.usershas one row;instance_invitesis empty (the first account was not on the list, by design); the log shows no error.
Negative: with an account now present, a second sign-up through the same
link with an address nobody added must be refused — POST /api/v1/instance/join
answers 403 "That address has not been invited…".
B. The first invited teammate
- As the first account, open Settings (account row at the bottom of the sidebar). Expect: Invite your team — an address field with Add, then the join link with Copy and New link. No dividers in the dialog.
- Add
invited-<date>@example.com. Expect: it appears as a chip with an X; adding the same address again is a no-op; adding one that already has an account says so. - Check:
instance_inviteshas the row,accepted_atnull.
Then the teammate joins, one of two ways.
Through the desktop app (the main path):
- Open the invite link in a private window and press Open in desktop app. The app asks Join localhost:3100? with "where you create your account" (or, if the app is already on 3100 and signed out, skips the question).
- The app restarts on the instance and its window shows Create your account on localhost:3100. Enter the invited address and a password.
- Expect: the window returns to the dashboard signed in as that address;
settings.jsonhasapiKeyandownerIdand nopendingInviteCode; the log saysstarting — … app at http://localhost:3100; Settings shows Instance … localhost:3100 and Invite your team. - Back in the first account's Settings, the chip for that address is gone;
instance_invites.accepted_atis set.
In the browser (no app):
- Private window → invite link → Create your account in the browser → the invited address + password. Expect: dashboard, signed in.
Negative: an address that was added and then withdrawn (the chip's X) is refused at sign-up; a rotated link (New link) refuses the old code with "That invite link is not valid any more".
C. A new account creating vaults
Signed in as the invited account (desktop app, on the instance):
- The dashboard offers Create your first vault. Expect the dialog's
Local folder row to read "Defaults to ~/Markbase/
<name>". - Create "Team notes" without picking a folder. Expect: the vault appears in
the sidebar;
~/Markbase/Team notesexists; the log shows[Team notes] syncing …;~/.markbaseConfig/locks/<vaultId>.jsonholds the app's pid. - Create a second vault and pick a folder that already belongs to the
first (
~/Markbase/Team notes). Expect: the refusal dialog ("That folder already belongs to another vault…") at the pick, the dialog's inline "That folder can't hold this vault. Pick another, or leave it to the default.", and no vault created yet. Pressing Create afterwards makes the vault at its default folder. - Create a document in each vault; expect the markdown file to appear in the folder within a few seconds, and an edit to the file to show in the app.
- In the browser, signed in as the same account on http://localhost:3100, both vaults and their documents are there.
Checks: select name from public.vaults-style queries depend on the schema;
the reliable view is the app's sidebar plus the folders on disk plus the
instance log.
Reporting
Say which scenario and step failed, what was on screen (screenshot over CDP for the app, the browser pane for the web), the instance log lines around it, and whether the state was clean when the run started.
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.

