matthewwong525/WongStack / .agents/plugins/access
access
VerifiedSee who can sign in and what each person may use; add, change or remove a person.
server/page.mjs
View on GitHub// The Access page's own HTML, answered by `serve()` at every address under the page's path that names no file, so a
// reload deep in Access opens it. The app serves the screen/ folder's files at that same path.
/** A path the page and the API live under: it starts and ends with `/`, and holds nothing to escape. */
export const PATH = /^\/(?:[\w-]+\/)*$/;
/** Whether `path`, under the page's path, names one of the screen/ folder's files rather than a view. */
export const namesFile = path => /\.(?:mjs|css)$/.test(path);
/** The page for one address: its files are under `page`, and it asks the Access API at `api`. */
export const pageHtml = (page, api) => `<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Access</title>
<base href="${page}" />
<link rel="stylesheet" href="access.css" />
</head>
<body>
<main id="access" data-api="${api}"></main>
<script type="module">
const { mount } = await import(new URL("main.mjs", document.baseURI));
const element = document.getElementById("access");
mount(element, { base: element.dataset.api, home: new URL(".", document.baseURI).pathname });
</script>
</body>
</html>
`;
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 |