matthewwong525/WongStack / .agents/plugins/access
access
VerifiedSee who can sign in and what each person may use; add, change or remove a person.
screen/note.mjs
View on GitHub// The welcome note the owner forwards, and whether a person may connect an assistant at all.
// Install pages for two assistants, named as examples: any assistant that runs on the computer works.
const ASSISTANTS = "Claude Code (https://claude.com/product/claude-code) or Codex (https://developers.openai.com/codex)";
/** Whether a person may connect an assistant, read the way setup reads it: while the install hands out its project,
* only Project code, held in their own set or through their role, lets them; otherwise everyone may. */
export function mayConnect(status, person) {
if (status.project !== "ready") return true;
const role = status.roles.find(item => item.id === person.role);
if (role) return !!role.builtIn || !!role.keys.code;
return !!person.keys.code;
}
/** The note the owner forwards: address and sign-in email; for a person who may connect, install steps and `setup`,
* the one message for everyone, unchanged, so the whole note pastes into their assistant. No key; it sends nothing. */
export function welcomeNote(status, person, setup) {
const lines = [`You can now use our company app at ${window.location.origin}`, `Sign in with ${person.email}.`];
if (!mayConnect(status, person)) return lines.join("\n");
if (!setup) return [...lines, "Then open Connect your assistant and follow its steps."].join("\n");
return [...lines, "", "To connect your AI assistant:",
`1. No assistant on your computer yet? Install one, such as ${ASSISTANTS}.`,
"2. Paste this whole note into its chat.",
`3. When it shows a sign-in link, sign in with ${person.email}.`,
"", "For the assistant:", setup].join("\n");
}
/** Whether a save newly gives a person the project: the install hands it out, and they may connect `after` it but
* could not before, as a new or removed person or by their saved set. Only then is there a message to send them. */
export function givesProject(status, before, after) {
if (status.project !== "ready") return false;
return mayConnect(status, after) && !(before?.status === "active" && mayConnect(status, before));
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |