accounts
/accounts
**Always invoke for any connectivity or account-access question.** Use whenever the user asks about reaching a machine, logging into a service, getting credentials, or any flavor of \"do I have access to X\" — SSH hosts, machines, GitHub/GitLab orgs and repos, API tokens, cloud accounts (AWS/GCP/Cloudflare), URLs/dashboards. Trigger phrases include \"can I reach X\", \"how do I connect to Y\", \"log into github/gitlab\", \"do we have AWS creds\", \"what's the staging URL\", \"what hosts can I reach in this project\", \"what does this project use\", \"set up access to <thing>\". Also use when t
- Author
- x85446 ↗
- Repository
- claudecodetricks ↗
- Licence
- MIT
- Last repository change
- 27.10.2026
Assessment and security
- Files in this package
- 1
- Scripts
- 0
- HTML comments
- 1
- URLs in SKILL.md
- 5
No signals detected. Repository changed on 27.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.
What it does and when to use it
**Always invoke for any connectivity or account-access question.** Use whenever the user asks about reaching a machine, logging into a service, getting credentials, or any flavor of \"do I have access to X\" — SSH hosts, machines, GitHub/GitLab orgs and repos, API tokens, cloud accounts (AWS/GCP/Cloudflare), URLs/dashboards. Trigger phrases include \"can I reach X\", \"how do I connect to Y\", \"log into github/gitlab\", \"do we have AWS creds\", \"what's the staging URL\", \"what hosts can I reach in this project\", \"what does this project use\", \"set up access to <thing>\". Also use when t
Triggers from the description
Arguments
/accounts <show|where|remember|check> [args]
Original author description
**Always invoke for any connectivity or account-access question.** Use whenever the user asks about reaching a machine, logging into a service, getting credentials, or any flavor of \"do I have access to X\" — SSH hosts, machines, GitHub/GitLab orgs and repos, API tokens, cloud accounts (AWS/GCP/Cloudflare), URLs/dashboards. Trigger phrases include \"can I reach X\", \"how do I connect to Y\", \"log into github/gitlab\", \"do we have AWS creds\", \"what's the staging URL\", \"what hosts can I reach in this project\", \"what does this project use\", \"set up access to <thing>\". Also use when t
How it works
- When to invoke
- Subcommands
- Read flow
- Write flow — remember <details>
- File schema
- Project-local relevance — pointers, not duplication
- Held entitlements — the answer to a cost question
- Apple signing and notarization
- check [service] — read-only CLI state
- Troubleshooting trees — try first, walk on failure
SKILL.md preview
---
name: accounts
description: "**Always invoke for any connectivity or account-access question.** Use whenever the user asks about reaching a machine, logging into a service, getting credentials, or any flavor of \"do I have access to X\" — SSH hosts, machines, GitHub/GitLab orgs and repos, API tokens, cloud accounts (AWS/GCP/Cloudflare), URLs/dashboards. Trigger phrases include \"can I reach X\", \"how do I connect to Y\", \"log into github/gitlab\", \"do we have AWS creds\", \"what's the staging URL\", \"what hosts can I reach in this project\", \"what does this project use\", \"set up access to <thing>\". Also use when the user *shares* new access info (\"you can ssh to xyz\", \"the AWS account is 12345\", \"the stripe key is at ~/.ssh/foo.key\", \"the staging URL is …\"). Also use for paid memberships and subscriptions the user already holds — \"do I have an Apple developer account\", \"do we already pay for X\" — and before any stage rules a dependency paid. Also use for auth status for gh/glab/cloudflare, or `/accounts`. **Use IMMEDIATELY on any SSH auth failure** — \"permission denied (publickey)\", \"too many authentication failures\", \"load key ... invalid format\", \"could not open a connection to your authentication agent\", agent has no identities, ssh hangs on password prompt, can't ssh into a host that worked yesterday. The dominant cause on this setup is KeePassXC being locked (which empties ssh-agent) — this skill checks for that BEFORE any config diagnosis."
argument-hint: <show|where|remember|check> [args]
---
# accounts
Knowledge base of what access Claude has. Read it to figure out what's possible. Write to it when the user shares new access info. Two stores:
| Store | Path | Scope |
|---|---|---|
| **Project** | `<project>/.claude/data/accounts.md` | Project-specific (this repo's deploy targets, this client's hosts, etc.) |
| **Global** | `~/.claude/skills/accounts/known.md` | Personal / cross-project (your machines, your everyday accounts) |
Project store wins on conflict (more specific). Read both, merge.
## When to invoke
Auto-invoke whenever:
- The user **asks** about connectivity or access: "can I ssh to X", "how do I connect to Y", "what's the token for Z", "do we have AWS creds here", "what's the staging URL", "log into github", "what hosts/services does this project use", "what access do I have for this project". **Any flavor of "do I have access to X" should fire this skill.**
- The user **shares** new access info: "you can ssh to xyz as foo", "the staging URL is X", "use the cloudflare token at Y", "we deploy to AWS account 12345"
- A command in another skill fails with auth and the calling skill needs to know what creds exist
- **An SSH command fails for any auth-related reason** — `Permission denied (publickey)`, `Too many authentication failures`, `Load key ... invalid format`, `Connection closed by remote host` mid-handshake, `Could not open a connection to your authentication agent`, agent has no identities, ssh hangs on a password prompt, or a previously-working host suddenly stops working. See the "SSH auth failures" section below — KeePassXC is the canonical first suspect, not the config.
- The user types `/accounts`
**Do not invoke** for a plain instruction like "ssh xyz" or "use incus on M". Run the command; invoke only if it fails (see Troubleshooting trees).
## Subcommands
| Form | Purpose |
|---|---|
| `/accounts show` (default) | Read both stores, print what's known |
| `/accounts where <thing>` | Find which store a piece of info lives in |
| `/accounts remember <details>` | Record new info (asks where to store) |
| `/accounts check [service]` | Read-only auth state (gh/glab/cloudflare/ssh) |
If no subcommand: assume `show`. If a service name alone is given: assume `check <service>`.
## Read flow
The skill always **inventories every relevant source**, not just the two store files. Some access info lives in `~/.ssh/config.d/*`, in `gh auth status`, in `glab auth status`, in `CLOUDFLARE_API_TOKEN`, etc. — the stores are for what you couldn't otherwise discover, plus for tagging "this project frequently uses X".
1. Determine project root: nearest git root upward from cwd. If not in a git repo, project is "none".
2. Read `<project-root>/.claude/data/accounts.md` if it exists.
3. Read `~/.claude/skills/accounts/known.md` if it exists.
4. **Inventory global sources** (read-only — do not modify):
- SSH hosts: list `~/.ssh/config.d/*` (one file per site; each `Host <name>` block is one node). Cross-reference the matching site/banner in the [[ssh-config]] skill if needed.
- CLI auth state on demand: `gh auth status`, `glab auth status`, `curl ... cloudflare verify` — only when the question touches these.
- Token files: list `ls -1 ~/.ssh/*.key 2>/dev/null` (just names, never contents).
- Apple Developer Program: `security find-identity -v -p codesigning` — a `Developer ID Application: <name> (<TEAMID>)` identity means the membership is held. Only when the question touches signing, notarization or Apple distribution.
5. Merge: project entries override global-store entries on the same key. Global-store entries override raw global-source data on the same key (so a curated entry beats a discovered one).
6. Answer the user's question. For single-item lookups, label the source: `from project`, `from global`, or `from <source-file>` (e.g. `from ~/.ssh/config.d/df-austin`).
## Write flow — `remember <details>`
User shares something new. Steps:
1. **Parse** the detail into the right section (see schema below). Examples:
- "you can ssh to web-01.foo.com as deploy with key ~/.ssh/foo_deploy" → SSH Hosts
- "the stripe key for companyX is at ~/.ssh/companyX.stripe.key" → API Tokens / Credentials
- "staging is at https://staging.foo.com" → URLs / Dashboards
- "we deploy to AWS account 12345 (foo-prod)" → Services / Accounts
2. **Refuse to write actual secret values.** Only file paths, env var names, public identifiers, and URLs. If the user pastes a literal token/password/key, respond: "I'll record the file path or env var name only — paste the value into a file (chmod 600) and tell me where." Never let a raw secret value land in either store.
3. **Check** both stores AND raw global sources (`~/.ssh/config.d/*`, gh/glab/cloudflare state) for an existing entry on the same key.
- **If it already exists globally (in a store or a raw source)**: don't duplicate. Instead offer the **project-pointer pattern** — see "Project-local relevance" below. Ask: "I already know about `<thing>` from `<source>`. Want me to note in this project's `accounts.md` that this project frequently uses it? (Pointer only — no duplication.)"
- **If it exists with different details**: ask whether to update, duplicate (different context), or skip.
- **If it's genuinely new**: proceed to step 4.
4. **Ask where to store**, using AskUserQuestion. Options offered depend on context:
- **Project** (`<project-root>/.claude/data/accounts.md`) — recommended when the info is project-scoped
- **Global** (`~/.claude/skills/accounts/known.md`) — recommended when the info is yours across projects
- **Project pointer to global** — when the info already exists globally and the user wants to flag it as project-relevant (writes a one-line entry under "Used by this project" referencing the global source — no value duplication)
- If cwd isn't inside a project, only Global is offered.
5. **Create the file** if missing. Project file: `mkdir -p <project-root>/.claude/data/` first. Initialize with the section headers from the schema below.
6. **Append** to the right section. Sort entries alphabetically by name within the section after the insert. Preserve any unmanaged sections, comments, or notes already in the file.
7. **Confirm** what was written and where, in one line: `Recorded SSH host 'web-01.foo.com' to project store (.claude/data/accounts.md).`
## File schema
Both stores share these sections; the project store also has an optional `## Used by this project` section for pointers.
```markdown
# Known Access
## Used by this project <!-- project store only — pointers to global sources -->
- **<name>** — kind: <ssh|api|service|url>, source: <e.g. ~/.ssh/config.d/df-austin or "global store">, role: <one-line description of why this project uses it>
## SSH Hosts
- **<name>** — host `<hostname>`, user `<user>`, key `<key-path>`[, via `<jump-host>`][, notes: <free-form>]
## API Tokens / Credentials
- **<service> (<context>)** — file `<path>` (chmod 600), env var `<VAR_NAME>` (no value stored)
## Services / Accounts
- **<service>** — id `<id>`, name `<friendly-name>`[, notes: <free-form>]
## Memberships / Subscriptions
- **<program>** — held by `<holder>`, id `<team/account id>`, covers: <the capabilities it enables>[, renews: <YYYY-MM>][, notes: <free-form>]
## URLs / Dashboards
- **<name>** — `<url>`[, notes: <free-form>]
```
Bracketed `[...]` fields are optional. Empty sections may be omitted. New sections can be added if a fact doesn't fit — note new section names in `## Other` at the bottom so future writes find them.
## Project-local relevance — pointers, not duplication
Many things the user has access to are *globally discoverable* — `~/.ssh/config.d/*` defines hosts; `gh auth status` shows GitHub login; `CLOUDFLARE_API_TOKEN` is exported from the shell profile. Claude doesn't need a project store to *find* these; it just reads the global source.
What the project store adds is **relevance tagging**: "in this project, the following globally-known access is salient." Without that, a future Claude session sees 40 SSH hosts in `~/.ssh/config.d/` and doesn't know which 3 matter here.
The pattern: when the user mentions an access detail that already exists globally, **do not copy the details into the project store**. Write a one-line pointer under `## Used by this project`:
```markdown
## Used by this project
- **P64** — kind: ssh, source: ~/.ssh/config.d/df-austin, role: kube-master access for the izprod cluster
- **GitHub `companyX/web`** — kind: service, source: gh auth (global), role: this repo
- **Cloudflare zone `companyX.com`** — kind: service, source: $CLOUDFLARE_API_TOKEN (global), role: DNS + Workers for the production site
```
This means:
- The details of how to reach P64 live in `~/.ssh/config.d/df-austin` — single source of truth, never copied
- The project tag tells future-Claude *why* P64 matters here, so it surfaces only the relevant subset
- Pointers don't drift — if the SSH config changes, the pointer still resolves correctly
Only write a **full entry** in the project store when the access is genuinely project-specific and not in any global source (e.g. a per-project Stripe key that lives in the project's secrets, not in `~/.ssh/`).
## Held entitlements — the answer to a cost question
The free-and-permissive default makes every paid dependency a question for the user. A membership the user already pays for is not a purchase, so it is not that question. Any stage about to rule a dependency paid (`/product-architecture`, `/product-engineering`, `/iterate-planner`) asks this skill first: "is `<program>` held?"
1. Look under `## Memberships / Subscriptions` in both stores, then run the live inventory source for that program (the Apple Developer Program has `security find-identity`; anything else has only the stores).
2. Answer in one line: `held — <program>, <holder> (<id>), from <store or source>` or `not held`.
3. **Held** → the caller records `Cost: held — <program> (<id>), per /accounts` and adopts it with no question. The credential still goes through the caller's access preflight.
4. **Not held** → the caller asks the user, as its own rule says.
5. A live source finds a membership neither store records → record it in the global store and tell the user in one line.
## Apple signing and notarization
The Apple Developer Program enables two separate credentials. Report each one:
| Capability | Check | Held signal |
|---|---|---|
| Signing | `security find-identity -v -p codesigning` | a `Developer ID Application: … (<TEAMID>)` line |
| Notarization | `xcrun notarytool history --keychain-profile <profile>` | exit 0 |
Without a stored notarytool profile, notarization needs one created once with `xcrun notarytool store-credentials <profile> --apple-id <id> --team-id <TEAMID>`, which prompts for an app-specific password. Creating it is the user's act. Record the profile name, never the password.
## `check [service]` — read-only CLI state
Useful for the "do I currently have working auth" question. Not for fixing broken auth — this skill doesn't guide token creation.
| Service | Check command | OK signal |
|---|---|---|
| `github` | `gh auth status` | exit 0 |
| `gitlab` | `glab auth status` | exit 0 |
| `cloudflare` | `curl -fsS -H "Authorization: Bearer $CLOUDFLARE_API_TOKEN" https://api.cloudflare.com/client/v4/user/tokens/verify` | `"success":true` |
| `ssh` | `ssh-add -l` | exit 0 with at least one key listed |
| `apple` | `security find-identity -v -p codesigning` | a `Developer ID Application` identity listed |
If `service` is omitted, run all five. Print one short table — never the token values, just OK / MISSING / EXPIRED / NO_CLI / AGENT_EMPTY / NO_AGENT per service.
When auth is broken: report the state, point to the relevant dashboard, and stop. Token creation belongs to a separate, future skill.
- GitHub: https://github.com/settings/tokens
- GitLab: https://gitlab.com/-/user_settings/personal_access_tokens
- Cloudflare: https://dash.cloudflare.com/profile/api-tokens
## Troubleshooting trees — try first, walk on failure
**Run the obvious command first.** `ssh xyz`, `incus list xyz:`, the API call. SSH resolves its own aliases; do not read `known.md` or `~/.ssh/config.d/*` before trying. Walk a tree only when the command fails, or when the access type is unknown.
Walk the tree for the connection type, one node at a time, in order. Each node is one command. Report the node id as you go. A leaf is an action: do it, or if it says STOP, tell the user in one line and wait. At a STOP leaf make no other suggestion, edit no file, retry nothing.
```mermaid
flowchart TD
E{"connection type?"}
E -->|ssh| S1
E -->|incus| I0["incus tree: not yet written"]
E -->|account login| A0["account tree: not yet written"]
E -->|apikey| K0["apikey tree: not yet written"]
```
### ssh
```mermaid
flowchart TD
S1{"S1: rustorm show ALIAS --filter privateKeyLocation --just-value"}
S1 -->|"error: does not exist"| L0(["not an ssh alias: leave this tree, discover what ALIAS is"])
S1 -->|keepassxc| S3
S1 -->|"empty (no privateKeyLocation)"| S2{"S2: identityfile ends in .pub? rustorm show ALIAS --filter identityfile --just-value"}
S2 -->|yes| S3
S2 -->|no| S2a{"S2a: test -r the identityfile"}
S2a -->|fail| L1(["STOP: key file missing or unreadable. Tell the user the path."])
S2a -->|pass| S5
S3{"S3: KeePassXC locked? ssh-add -l"}
S3 -->|"no identities, or agent unreachable"| L2(["STOP: ask the user to unlock KeePassXC, then re-run S3"])
S3 -->|keys listed| S4{"S4: key in agent? ssh-keygen -lf PUBFILE matches ssh-add -l"}
S4 -->|fail| L3(["STOP: key not in the KeePassXC agent. Tell the user which key."])
S4 -->|pass| S5{"S5: host answers? nc -z -w5 HOST PORT"}
S5 -->|pass| S9
S5 -->|fail| S6{"S6: host in df-austin? 10.7.112/114/158/160.0/23 or 172.26.28.0/23"}
S6 -->|yes| S7{"S7: warp-cli status = Connected?"}
S7 -->|no| L4(["run warp-cli connect, re-run S5"])
S7 -->|yes| L5(["STOP: cloudflared-austin tunnel may be down. Ask the user to check Zero Trust > Tunnels."])
S6 -->|no| S8{"S8: ssh -G ALIAS hostname still current? compare known.md and the old 10.7 -> 10.11 move"}
S8 -->|stale| L6(["STOP: tell the user the stale address, ask for the new one"])
S8 -->|current| S8b{"S8b: ssh -G ALIAS proxyjump set?"}
S8b -->|yes| L7(["walk this tree on the jump host first"])
S8b -->|no| L8(["STOP: host unreachable, cause unknown. Report what S1-S8 showed."])
S9{"S9: ssh -v ALIAS true. Failure text?"}
S9 -->|"Permission denied"| L9(["check user in known.md, IdentitiesOnly=yes (try -o IdentitiesOnly=no once), fail2ban cooldown. Do not retry in a loop."])
S9 -->|"host key changed"| L10(["STOP: tell the user, do not edit known_hosts"])
S9 -->|connects| L11(["done"])
```
S1 uses rustorm's `privateKeyLocation` (`keepassxc` means the key lives in the KeePassXC agent). When it is absent, S2 falls back to the `.pub` heuristic. A `warning: ... also defined in ...` line from rustorm means a stale duplicate block; ssh uses the first, so mention it to the user in one line and continue.
## Guardrails
- **On SSH auth failure, run `ssh-add -l` first and assume KeePassXC is locked if the agent is empty.** Do NOT propose IdentityFile edits, key file restoration, `IdentitiesOnly`, control-master tricks, or any per-host fix before that. See "SSH auth failures" above for the full forbidden list.
- **Never print, store, or echo secret values.** Only paths, env var names, and public identifiers (account IDs, URLs, hostnames).
- **Never touch token files** (`~/.ssh/*.key`, etc.). This skill does not write them, rotate them, or read their contents. It only records *where* they live.
- **Never write to a global store from inside a project unless explicitly asked.** When ambiguous, ask via AskUserQuestion.
- **Always confirm before writing** with a short "about to record X to Y" summary. Skip the confirm only when the user explicitly used `/accounts remember <full unambiguous detail>` and the parse is unambiguous.
- **Don't auto-create the project file in a non-project directory.** If there's no git root, the only available store is global.
- **Project file (`<project>/.claude/data/accounts.md`) is committable by default** — it's metadata about access, not secret values. If you're about to write to a project that looks public (open-source, no .gitignore covering `.claude/data/`), warn the user before writing — internal hostnames or account IDs may leak.
- **Global file (`~/.claude/skills/accounts/known.md`) is NOT committable.** It's personal. Stays on this machine only.
## Notes
- Safe to auto-invoke for `show`, `where`, `check`. For `remember`, always confirm before writing.
- `known.md` lives next to this `SKILL.md` inside `~/.claude/skills/accounts/`. **Skill update flows must not overwrite this file** — it's user data, not skill content. The canonical source repo (`~/workspace/x85446/claudecodetricks/skills/accounts/`) intentionally does NOT contain a `known.md`, so any `cp -r` install from source preserves the user's local data.
- Per-project file path is fixed at `<project>/.claude/data/accounts.md` regardless of where this skill is installed.
- `~/.ssh/.accounts-registry` is not part of this skill. If it exists, migrate its entries into `known.md` and delete it.
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · x85446/claudecodetricks | 87 | MIT |
| rubycatco/herdr-fleet | 100 | MIT |
| howdycarter/role-mosaic | 90 | MIT |
Database snapshot: 13.11.2026 · package version f516bed79b63 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Similar skills
- 90infra-access
How to log into Izuma/Datafoundry infrastructure — SSH aliases, jump hosts, and per-device quirks for MAAS, Dell/Huawei/Cisco switches, BMCs/iDRACs, pfSense, and jump hosts. Use whenever a task needs you to reach a piece of infrastructure and you're working out how to connect,… - 95glab-ssh-key
Manage SSH keys for GitLab account including add, list, and delete operations. Use when setting up SSH authentication, managing SSH keys, or configuring Git over SSH. Triggers on SSH key, add SSH key, SSH authentication, Git SSH. - 100gh-switch
You MUST use this when a project-scoped GitHub CLI (gh) command is about to run on github.com, including every subsequent command in the same session, or when checking or switching the project's GitHub account, and before the first project-scoped GitLab API or glab call in a… - 95glab-deploy-key
Manage SSH deploy keys for GitLab projects including add, list, and delete operations. Use when setting up deploy keys for CI/CD, managing read-only access, or configuring deployment authentication. Triggers on deploy key, SSH key, deployment key, read-only access. - 90cloud-architecture
Choose and design cloud services from concrete application, data, availability and operational requirements. Use when comparing AWS, Azure, GCP, Cloudflare or VPS architectures; preserve provider/account constraints and verify region-specific capabilities. - 90infisical-dynamic-secrets
Guide for configuring Infisical Dynamic Secrets — on-demand, short-lived credentials for databases, cloud IAM, SSH, and Kubernetes. Covers all 30 providers including PostgreSQL, MySQL, MSSQL, Oracle, Redis, AWS ElastiCache, AWS MemoryDB, MongoDB, Elasticsearch, Couchbase,…