agentleFS
derwellsderwells/learn-skill/skills/access/SKILL.md

access

Skill2 starsChanged 23 days agoMITView on GitHub

Use when a task needs something behind a login, a consent screen, a dashboard with no API, or another step that normally needs the user clicking around. Picks API, script or browser, fills passwords without exposing them, and pulls the user in only for MFA and CAPTCHA.

27 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use calendar and setup.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • jacobraskSkill

    calendar

    Interact with Apple Calendar via AppleScript. Use when the user asks to check calendar, view events, create events, manage schedule, find free time, or list calendars. Triggers include "my calendar", "my schedule", "calendar events", "create event", "add to calendar", "what's on my calendar", "free time", "available slots", "upcoming events", "today's events". Requires macOS with Calendar.app.

    Also in 3 projects that use this

  • VercelSkill

    setup

    Set up Vercel CLI and project configuration. Use when the user says "set up Vercel", "configure Vercel", "link to Vercel", or "vercel init".

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 25 edited versions we read keep these.

  • 4

    Distinctive

    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
  1. Distinctive:

    Stop at the first rung that works.

    line 14
  2. Very specific:

    Before acting on a site, write down the origins you are allowed to act on (for example https://app.example.com).

    line 21
  3. Distinctive:

    Ask in one message for the single step you need, then wait:

    line 47
  4. Distinctive:

    Takeover: run the browser headed, ask the user to solve the check in that window and tell you when they are done.

    line 50
  5. Distinctive:

    After the user's step, check the page yourself.

    line 53

“Common” is measured: kept by at least 6 in 10 of the 25 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

access

Goal: automate the steps that normally need a human and have no API key. The user steps in only for MFA and CAPTCHA, and their effort should be a code or a tap.

Order

Stop at the first rung that works.

  1. Official API or CLI. gh, gcloud, Linear, Stripe, Slack manifests, Atlassian tokens, and so on. If it needs a one-time grant, prefer a device-code or OAuth consent the user approves once over clicking through the UI. Check what access already exists before asking for new access; a new grant, account or paid plan is the user's decision.
  2. Saved script for a known browser flow: a Playwright script that logs in, does the task and checks the outcome in code (browser).
  3. agent-browser to work out a new flow or fix a broken one, then save it as a script (browser).
  4. The user, only for MFA, CAPTCHA, a locked vault, or a page the agent cannot read.

Before acting on a site, write down the origins you are allowed to act on (for example https://app.example.com). Leave that list only with the user's approval.

Credentials

Passwords never enter model context. Read them from the password manager inside the script that types them, check the page's origin first, and print status only. With Bitwarden's CLI, the user unlocks the vault in their own terminal and exports BW_SESSION; you never ask for the master password.

import subprocess
from urllib.parse import urlsplit

ALLOWED = {"https://app.example.com"}

def fill_secret(page, item_id, label, field="password"):
    u = urlsplit(page.url)
    if f"{u.scheme}://{u.netloc}" not in ALLOWED:
        raise SystemExit(f"refusing to fill on {u.scheme}://{u.netloc}")
    value = subprocess.run(["bw", "get", field, item_id],
                           capture_output=True, text=True, check=True).stdout.strip()
    page.get_by_label(label).fill(value)
    print(f"filled {label}")

bw get totp <item> works only for items that store a TOTP seed; otherwise the code comes from the user. If the vault is locked or bw is not logged in, stop and ask the user to unlock it in their terminal. Never ask for a password in chat.

Pulling the user in

Ask in one message for the single step you need, then wait:

  • Code: the user types it into the page themselves. If they send it in chat instead, fill it at once and do not repeat it in later messages or files.
  • Takeover: run the browser headed, ask the user to solve the check in that window and tell you when they are done.
  • Consent: give the exact screen and button ("Allow Acme CLI access").

After the user's step, check the page yourself; "done" means submitted, not accepted. If a code was rejected, ask again.

Never

  • CAPTCHA solving services, MFA bypass, or anti-detection tools.
  • Touching a browser, profile, cookies or debugging port that you did not start for this task.
  • Creating accounts, buying plans, or adding grants or vault items without the user.
  • Recording passwords, tokens or codes in transcripts, state, messages or logs. Never print a debugging endpoint that carries a token.

Residual risk

An agent can script the page it drives, so a password typed into that page is only as safe as the agent's own scripts. Submit the form as part of the fill so the login clears the field, and do not inject page scripts before a fill.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.