setup
Set up ele after installing it, or in a directory no owner covers, by proposing the ele owner commands that map it and running them once the user approves. Use when the user asks to set up or configure ele, when the start block says no owner covers the directory, or when ele status names no owner here.
- License 许可
- GPL-3.0
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- setup
- description
- Set up ele after installing it, or in a directory no owner covers, by proposing the ele owner commands that map it and running them once the user approves. Use when the user asks to set up or configure ele, when the start block says no owner covers the directory, or when ele status names no owner here.
03 SKILL.md 正文
Setup
Every session ele indexes and every note it keeps belongs to an owner: the person or organisation whose work it is. A directory no owner covers gets no notes, and recall there needs --owner or --all. Setup maps the working directory to an owner through ele owner, which writes owner-map.json. The user approves each mapping: never write one unasked.
Find what is missing
ele status
Read the Here line:
- An owner and project, as
personal · claude-ephant: say this directory is set up, under that owner, and stop - A project or path rule naming an owner the map does not list: the fix is the
ele owner add <name>it prints - No owner covers the directory: propose a mapping, below
Read owner-map.json in the Data directory for the owners already listed; a missing file lists none.
Done when the Here line is read and the listed owners are known, or the directory is set up already.
Propose
With AskUserQuestion, loading it through ToolSearch if it is deferred, ask in one call:
- Which owner: each listed owner, and a new one. A new owner's name is letters, digits,
-and_, starting with a letter or digit; take it from the user'sOther, never invent one - What to map, absolute paths written out, each option with the command it runs:
- The directory above the root:
ele owner add-path <parent> <owner>, covering every project under it. Offer it first, unless it is the home directory or/ - The root alone:
ele owner add-path <root> <owner> - This project by name, wherever it is checked out:
ele owner add-project <project> <owner>, the project being the oneele statusnamed
- The directory above the root:
Build the paths from the directory the Here line names, never from git rev-parse: ele matches rules against that path as the shell reached it, and git prints it with symlinks resolved. The root is the nearest directory at or above it holding .git, or that directory itself outside a repository. Where pwd -P prints another path, each path rule is proposed for both forms, as two commands. In a worktree, whose .git is a file, the directory above the root holds only worktrees: offer the directory above the main checkout instead, the checkout being the directory above git rev-parse --path-format=absolute --git-common-dir.
An unlisted owner the map already names needs only the owner question: confirm the ele owner add it printed.
Done when the user has picked an owner and a mapping, or declined.
Run
On approval, run the commands in order: ele owner add <owner> first for a new owner, then the mapping. Pass --no-sync to every one but the last: each write starts a background sync, whose lock refuses the next write.
When one refuses with a sync or backup holds the archive lock or no sync has completed, follow its row in reference/errors.md in the plugin root. When the timeout cuts ele sync off, say a sync is still running and to run /ele:setup again once ele status shows none.
When the last command prints nothing written after an earlier one took --no-sync, run ele sync --background, so the earlier write is still synced.
A refusal over notes a project has under another owner names one flag: --move, refiling the notes with the project, or, where no single owner would cover them, --move-to <owner>. Show it and ask whether to rerun with it, and for --move-to which owner; never pick for the user.
Then run ele status again.
Report what each command printed, and the Here line now naming the owner and project. Name what the mapping covers: every project under a path rule, or the one project. Where the directory above the root was not offered, say why: it is the home directory or /. Say the background sync files the existing sessions under the owner, and that a session started after it shows this project's notes. Never say the sync has finished unless ele status shows Sync running as no.
Done when ele status names an owner here, or the reply shows the refusal that stopped it.
04 同仓库更多 Skills
wrap
Wrap up a session by asking what to keep as notes, plan inbox items, progress lines or a recipe, which due reminders to close, and whether to hand off. Use when the user asks to wrap up or end a session, or asks "anything to remember or hand off?"; never start one unasked.
ticket-audit
Audit a tracker's ticket map against the code for stale premises and contradictions. Use when about to pick up a ticket or close a map, or when asked for a ticket audit; for ele plans, use ele:plan-audit.
review
Review a merge request or pull request, a local branch or a commit with checkpoint's reviewers, and walk through its major findings, then any minor ones you pick, to publish, copy or skip. Uncommitted work is checkpoint's.
remember
Save a decision, an open question, a dated fact or a reminder for a later date so later sessions start with it. Use when the user says "remember this", "we decided…" or "remind me on…", or a skill or ele's Stop hook asks for notes.
recipe
Propose a reusable multi-step procedure this session ran as a user skill, and write it once the user approves; with audit, check the user's skills for commands, flags and versions that no longer exist. Use when the user asks to save a procedure as a recipe or skill, or to audit their skills for stale commands; /ele:wrap offers a recipe too; never start one unasked.
recall
Search what was discussed in earlier Claude Code sessions. Use when the user asks "did we already…", or when a past decision, command or fix would save re-deriving it.