agentleFS
MoeenNehzatiMoeenNehzati/famulus/skills/connect-google/SKILL.md

connect-google

Skill4 starsChanged 4 months agoMITView on GitHub

Use when the user needs to set up or restore Google authentication for Famulus. Do not use for ordinary Google-service operations.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. About 0 are common, 6 are distinctive, and 8 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    When first exposed to this skill in a session, invoke famulus_dispatcher.invoke_security_2 once with:

    line 12
  2. Distinctive:

    Do not repeat this initial call during the session.

    line 27
  3. Very specific:

    Use connect-google._rtx.interface.client-status before asking the user for a file.

    line 75
  4. Very specific:

    If the stored client is valid, use connect-google.interface.connect-services.

    line 76
  5. Very specific:

    If no valid client is installed and status reports legacy candidates, ask before importing one.

    line 77
  6. Very specific:

    If no candidate is selected, explain that Famulus needs a Google Cloud project to register its Desktop OAuth client.

    line 80
  7. Distinctive:

    use the developer's experimental Google Cloud project.

    line 82
  8. Distinctive:

    use their own Google Cloud project.

    line 83
  9. Very specific:

    If yes, ask for the local path to the Desktop OAuth client JSON provided by the developer, then route it to …

    line 86
  10. Distinctive:

    If the user was added but does not have the file, tell them to obtain the JSON from the developer.

    line 88
  11. Very specific:

    If no, route to connect-google.interface.create-client.

    line 90
  12. Distinctive:

    If the user is unsure, tell them to confirm with the developer.

    line 93
  13. Very specific:

    When a user without a client asks why this step cannot be automated, explain that Google requires every application reaching an account to …

    line 96
  14. Distinctive:

    Never commit, publish, quote, or log the client JSON.

    line 120

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md
<!-- BEGIN BLUEPRINT INTERFACES -->

Generated from blueprint.yaml. Do not edit this block by hand.

Managed setup

When first exposed to this skill in a session, invoke famulus_dispatcher.invoke_security_2 once with:

{
  "caller": "connect-google",
  "interface": "connect-google.interface.setup",
  "version": 1,
  "arguments": {
    "positionals": [],
    "options": {},
    "stdin": null
  }
}

Do not repeat this initial call during the session. Obtain permission before carrying out setup, then follow the returned setup-manager instructions exactly. If the result is busy or failed, stop and report it.

Executable Interfaces:

Send the required caller (caller skill), interface, version, and arguments; optional dry_run defaults to false. Compact uses ordered positionals plus an option mapping; ordered raw argv uses positionals: [] plus every argv token in list options. Never mix forms.

  • connect-google._rtx.interface.bind-credential-file — Retry service-owned binding with an existing credential descriptor; never invoke OAuth authorization.
    • Caller: connect-google
    • Version: 1
    • Security level: 2
    • Alternative: default Arguments JSON (replace labels with actual values). Omit optional positionals and options that are not needed. {"options": {"--allow-account-change": "comma-separated-list", "--credential-file": "path", "--gmail-nickname": "name", "--home": "dir", "--services": "comma-separated-list"}, "positionals": [], "stdin": null} Required options: ["--credential-file", "--home", "--services"]; positional arity: 0..0; stdin: forbidden
  • connect-google._rtx.interface.client-status — Report whether the canonical Google Desktop OAuth client is missing, valid, invalid, or needs migration from plaintext, including whether its opaque client-secret reference resolves, without exposing secrets.
    • Caller: connect-google
    • Version: 1
    • Security level: 2
    • Alternative: default Arguments JSON (replace labels with actual values). Omit optional positionals and options that are not needed. {"options": {"--home": "dir"}, "positionals": [], "stdin": null} Required options: []; positional arity: 0..0; stdin: forbidden
  • connect-google._rtx.interface.connect-services — Run one combined OAuth authorization and bind its new credential file through the fixed service-owner map.
    • Caller: connect-google
    • Version: 1
    • Security level: 2
    • Alternative: default Arguments JSON (replace labels with actual values). Omit optional positionals and options that are not needed. {"options": {"--account-hint": "email", "--allow-account-change": "comma-separated-list", "--callback-port": "port", "--gmail-nickname": "name", "--home": "dir", "--no-open-browser": true, "--services": "comma-separated-list"}, "positionals": [], "stdin": null} Required options: ["--home", "--services"]; positional arity: 0..0; stdin: forbidden
  • connect-google._rtx.interface.install-client — Validate a Google Desktop OAuth client JSON and atomically install a private canonical copy.
    • Caller: connect-google
    • Version: 1
    • Security level: 2
    • Alternative: default Arguments JSON (replace labels with actual values). Omit optional positionals and options that are not needed. {"options": {"--from-json": "client-json", "--home": "dir", "--replace": true}, "positionals": [], "stdin": null} Required options: ["--from-json"]; positional arity: 0..0; stdin: forbidden

Instruction Interfaces:

These are LLM-readable instruction surfaces. Read and follow them directly; do not invoke the MCP server for them.

  • connect-google.source.instructions-connect-services.interface.connect-services@1 — Install or reuse a Google Desktop OAuth client and hand selected Google services to their owning skills.
  • connect-google.source.instructions-create-client.interface.create-client@1 — Guide a user through creating and privately downloading a Google Desktop OAuth client for selected Famulus services.
<!-- END BLUEPRINT INTERFACES -->

Skill: connect-google

This is the shared router for Google OAuth-client preparation.

  1. Use connect-google._rtx.interface.client-status before asking the user for a file.
  2. If the stored client is valid, use connect-google.interface.connect-services.
  3. If no valid client is installed and status reports legacy candidates, ask before importing one; when candidates differ, ask which one to use. A confirmed candidate routes to connect-google.interface.connect-services.
  4. If no candidate is selected, explain that Famulus needs a Google Cloud project to register its Desktop OAuth client. Present the two options:
    • use the developer's experimental Google Cloud project; or
    • use their own Google Cloud project. Then ask whether the Google account they want to connect has been added by the developer to the experimental project's OAuth test-user list.
    • If yes, ask for the local path to the Desktop OAuth client JSON provided by the developer, then route it to connect-google.interface.connect-services. If the user was added but does not have the file, tell them to obtain the JSON from the developer; never request its contents.
    • If no, route to connect-google.interface.create-client. After the user creates their own project and downloads its Desktop client JSON, obtain its local path and continue through connect-google.interface.connect-services.
    • If the user is unsure, tell them to confirm with the developer; do not assume enrollment.

When a user without a client asks why this step cannot be automated, explain that Google requires every application reaching an account to be registered in a Cloud project, and that Famulus runs locally with no server to hold a shared identity. Bundling one client would put every user under a single app identity, where one user's misuse suspends the app for everyone. Reproduce the following two sentences verbatim; do not paraphrase, soften, or add specifics such as costs or timelines:

Drive, Calendar, and Gmail require Google's restricted scopes, and verifying an app for those requires an annual third-party security assessment. Until an app passes it, Google's OAuth user cap allows at most 100 manually listed test users, and their refresh tokens expire after seven days, so those users must authorize again.

Owning a project removes that cap for its owner; using the developer's experimental project is subject to it. instructions/create-client.md repeats the second sentence at the configuration step; keep both copies identical.

Apply the same route to initial setup and reconnect requests. Recommend Drive, Calendar, and Gmail while allowing the user to choose a subset. The connection route creates one timestamped credential file and binds that exact path through service-owned machine interfaces. Treat only complete: true as success; retry an incomplete binding with bind-credential-file and the same file.

Never commit, publish, quote, or log the client JSON. Do not request, inspect, or move service access tokens, refresh tokens, account records, or user data. The deterministic coordinator invokes only the declared service-owned binders.

@./personal-preferences/default.md

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.