manage-accounts
Connect, discover, create, select, review, and revoke online accounts through the local Elegy Accounts broker, and request least-privilege access for Codex or Holon agents without exposing credentials. Use when an agent needs an account for research, client work, deployment, email, cloud infrastructure, source control, or another provider-backed action; when a user asks what accounts are connected; or when auth, CAPTCHA, MFA, consent, terms, payment, identity verification, or account selection blocks a workflow.
- License 许可
- Apache-2.0
- 所属仓库
- Sofreshx/Elegy
- 最近更新
- 2026-11-02
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- manage-accounts
- description
- Connect, discover, create, select, review, and revoke online accounts through the local Elegy Accounts broker, and request least-privilege access for Codex or Holon agents without exposing credentials. Use when an agent needs an account for research, client work, deployment, email, cloud infrastructure, source control, or another provider-backed action; when a user asks what accounts are connected; or when auth, CAPTCHA, MFA, consent, terms, payment, identity verification, or account selection blocks a workflow.
02 资源文件 2
- 参考文档agents/openai.yaml434 B
- 参考文档references/provider-modes.md1.3 KB
03 SKILL.md 正文
Manage accounts
Use the elegy-accounts MCP tools. Treat account metadata, grants, leases, and request status as safe agent data. Treat credentials, OAuth codes, browser sessions, and provider tokens as broker-only data.
Resolve access
- State the concrete purpose and smallest named operations required by the downstream tool, such as
dns.records.readordeployments.create. - Call
account_requirewith provider, purpose, operations, and an account ID only when the user already selected one. - If an account is available, call
account_request_access. Never widen operations to avoid a later approval. - If interaction is required, call
account_discoverand explain the runtime provider-pack choices. Useaccount_presentwith the request ID so Account Center opens at the exact durable checkpoint. Fall back toaccount_open_centeronly when there is no request yet. - If no suitable account exists and creation is appropriate, call
account_request_creationwith purpose and user constraints. Useaccount_attention_listto recover durable work. Poll only when useful withaccount_request_status; do not busy-wait. - Continue the original task only after the request reports approved/connected and the downstream provider tool accepts the capability.
For bundled GitHub and Cloudflare reads, use the typed elegy-account-actions tools after account resolution. The action host reuses an active read grant, requests one durable approval when needed, and keeps the credential and lease inside the broker. Never ask the user to reconnect merely because a new Codex session started.
Human checkpoints
Stop automation and hand control to the person for CAPTCHA, MFA, terms, payment, KYC/identity verification, ambiguous plans, unexpected pages, or provider consent. Explain exactly what is waiting and how the agent will resume. Never click through, accept, solve, or bypass these boundaries without the user's direct action where policy permits.
Browser discovery
Describe Brave discovery as "continue with your signed-in browser." It is an unverified hint until the broker validates provider identity. Never claim that Elegy imports saved passwords or cookies. Never ask the user to paste a password, session cookie, OAuth code, refresh token, or API token into chat. When a provider requires a limited token, direct capture to Account Center or the Elegy Brave extension.
Multiple accounts and revocation
When more than one identity matches, show sanitized provider identities and ask the user to select; do not guess. Use account_revoke_grant when requested or when access is no longer needed. Use account_audit_list to explain a decision or failure without requesting secret diagnostics.
Read references/provider-modes.md only when choosing between connection methods. Pack authors use the provider-pack contract.
04 同仓库更多 Skills
elegy-skill-authoring
Doctrine for drafting, auditing, and fixing Elegy skills. Use when creating a new skill, running an audit against an existing one, or triaging structural and content findings.
elegy-plugin-authoring
Use when creating or reviewing an Elegy system-adapter plugin that connects an agent to a data source, database, platform, API, local system, or executable boundary.
elegy-obsidian
Read, write, and search a local Obsidian vault via the official Obsidian Desktop CLI (v1.12.7+). Non-authoritative convenience layer; durable planning state continues to flow through elegy-planning and SQLite. User-invoked; do not auto-load.
elegy-doc-practices
Use when an agent or contributor needs to classify, place, scaffold, or validate documentation in the Elegy ecosystem — the central doctrine for ADRs, specs, guides, notes, and roadmap material across Elegy and downstream repos.
test-skill
A test skill for the app-binding fixture.
elegy-planning
Use when an agent needs to create, inspect, update, validate, or export durable planning state — goals, roadmaps, plans, work points, todos, issues, review points, insights, and project runs — through the dedicated elegy-planning CLI over SQLite.