matthewwong525/WongStack / .agents/plugins/browser
browser
VerifiedThe person's own browser, for errands.
| File | Kind | Size |
|---|---|---|
| README.md | markdown | 4.4 KB |
| SKILL.md | skill md | 3.6 KB |
| VERSION | other | 6 B |
| addon/background.js | script | 1.1 KB |
| addon/check.svg | other | 591 B |
| addon/manifest.json | config | 462 B |
| references/browser-proxy.md | markdown | 5.2 KB |
| references/browser-window.md | markdown | 6.4 KB |
| references/browsing.md | markdown | 18.6 KB |
| references/login-codes.md | markdown | 5.6 KB |
| references/password-manager.md | markdown | 8.3 KB |
| references/setup.md | markdown | 6.4 KB |
| scripts/addons.mjs | script | 26.3 KB |
| scripts/browse.mjs | script | 53.5 KB |
| scripts/browser-server.mjs | script | 50.8 KB |
| scripts/connect-browser.mjs | script | 17.3 KB |
| scripts/forwarder.mjs | script | 14.5 KB |
| scripts/launch-config.py | script | 7.4 KB |
| scripts/lib/cli.mjs | script | 1.2 KB |
| scripts/lib/env.mjs | script | 614 B |
| scripts/lib/primary-root.mjsexecutable | script | 1.9 KB |
| scripts/lib/profile.mjs | script | 1.4 KB |
| scripts/login-move.mjs | script | 4.0 KB |
| scripts/mask-keys.mjs | script | 2.9 KB |
| scripts/proxy-lines.mjs | script | 4.7 KB |
| scripts/refs.mjs | script | 5.4 KB |
scripts/lib/profile.mjs
View on GitHub// The repo's own parts, by named slot: `.agents/browser/profile.mjs` at the checkout's top, loaded once. An empty slot
// turns off only its own extra. The slots and what each does when empty: ../../README.md#slots
import { existsSync } from 'node:fs';
import { dirname, join } from 'node:path';
import { fileURLToPath, pathToFileURL } from 'node:url';
/** The nearest folder up from `from` that holds `.git`, or null: never a count of folders, since Node resolves the
* source's skill link to a path one level deeper. */
export function checkoutTop(from = dirname(fileURLToPath(import.meta.url))) {
for (let dir = from; ; dir = dirname(dir)) {
if (existsSync(join(dir, '.git'))) return dir;
if (dirname(dir) === dir) return null;
}
}
/** The profile file: `WONG_BROWSER_PROFILE` when set (empty for none), else the checkout's own. */
export function profileFile(env = process.env) {
if (env.WONG_BROWSER_PROFILE !== undefined) return env.WONG_BROWSER_PROFILE || null;
const top = checkoutTop();
return top && join(top, '.agents', 'browser', 'profile.mjs');
}
let loaded = null;
const load = async () => {
const file = profileFile();
return file && existsSync(file) ? (await import(pathToFileURL(file).href)).default ?? {} : {};
};
/** The profile's part named `name`, or null when the repo has no profile or leaves the slot empty. */
export async function slot(name) {
loaded ??= load();
return (await loaded)[name] ?? null;
}
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: 196k | 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: 196k | 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: 196k | Updated | Claude CodeCodex | Verified | Install |