agentleFS
gug007gug007/lpm/lpm-cli/SKILL.md

lpm-cli

Skill152 starsChanged 56 days agoMITView on GitHub

Operate lpm-managed projects through the `lpm` CLI: start or stop projects and services, inspect logs and agent status, wait for readiness, run actions, and duplicate projects into standalone copies or create linked Git worktrees. Use when the user asks to operate or inspect lpm runtime state. `LPM_PROJECT_NAME` selects the default project after the skill triggers; it is not a trigger by itself. For editing YAML configuration, use `lpm-config`.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 0 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

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

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

    Default output is compact text (cheapest).

    line 12
  2. Very specific:

    After lpm start, use lpm wait — never a sleep or poll loop.

    line 38
  3. Very specific:

    After queueing agent work, use lpm wait --agent -p <copy> --timeout N instead of polling lpm status in a loop.

    line 39
  4. Very specific:

    Read logs with a small -n first (e.g.

    line 40
  5. Very specific:

    Remove worktrees with lpm remove.

    line 48
  6. Very specific:

    If a standalone duplicate reports that the source is a linked Git checkout, retry with lpm worktree.

    line 49
  7. Very specific:

    Use lpm worktree for the fan-out when each copy should use an independent Git branch without duplicating repository data.

    line 55

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

lpm is a command-line companion to the lpm desktop app. Verify it is available with lpm --version; if it is missing, install it from the lpm app's Settings.

Key facts

  • The project name is inferred from LPM_PROJECT_NAME or the current directory — omit it inside lpm terminals.
  • Default output is compact text (cheapest); add --json only when you need to parse the result.
  • Exit codes: 0 ok, 2 usage / not found / app not running, 1 failure / timeout.
  • config get, config apply, and control commands need the lpm app running; other inspection commands do not.

Commands

  • lpm list — all projects, running state, agent counts.
  • lpm project [name] [--full] — one project in full (--full adds env maps, action details, terminal history).
  • In lpm list --json and lpm project --json, when isRemote is true, root is the project's ssh.dir: a path on the SSH host, not on this machine. Don't cd into it or read files there locally.
  • lpm config resolve [--cwd PATH] [--json] — match a directory to its deepest project root without using LPM_PROJECT_NAME. An SSH project matches only from its local sync mirror ~/.lpm/sync/<project-file-name>, never by root or ssh.dir.
  • lpm config validate <file> [--json] — validate syntax, fields, layer rules, and effective merged configuration.
  • lpm config get --layer project|repo|global|template [--project NAME | --template NAME] [--create] [--json] — read a config layer with the revision required for a safe write.
  • lpm config apply --layer project|repo|global|template [--project NAME | --template NAME] [--create] --if-revision HASH (--stdin | --file PATH) [--json] — validate a candidate and atomically apply it through the running app. Never edit a live config file directly.
  • lpm logs [service] [-n 30] [-p proj] — service scrollback, exactly N lines.
  • lpm status [project] — live agent statuses (Running/Waiting/Done/Error).
  • lpm start [project] [--profile X] / lpm stop [project] — start / stop a project's services.
  • lpm service <name> start|stop|restart [-p proj] — one service.
  • lpm wait [project] [--service X | --port N | --agent] [--timeout 60] — block until ready; --agent waits for the project's agents to settle.
  • lpm duplicate [project] [-n N] [--label TEXT]... [--group X] [--run ACTION | --command CMD] [--prompt TEXT] [--include-uncommitted | --exclude-uncommitted] — create parallel working directories. Always pass a --label describing the copy's purpose so it's identifiable in the app — one repeated --label per copy in creation order, <project-name>-<short-description> style such as lpm-fix-auth. Only omit it when you genuinely can't infer a purpose. Output lists each copy's path.
  • lpm worktree [project] [-n N] [--label TEXT]... [--group X] [--run ACTION | --command CMD] [--prompt TEXT] [--reinstall-deps] — create linked Git worktrees instead of standalone copies. The same labeling guidance applies. Output lists each worktree's path.
  • lpm remove <copy-name> — remove a duplicate. For a linked worktree, this also removes its Git worktree registration and lpm-created branch. Originals and SSH projects (SSH duplicates too) need --force, and their folder is kept; don't use --force unless the user explicitly asks.
  • lpm run [action | --command CMD] [--prompt TEXT] [-p proj] — queue in a new app terminal, fire-and-forget.
  • lpm set-status <key> <value> / lpm clear-status <key> — report status to the app UI.

Token rules

  • After lpm start, use lpm wait — never a sleep or poll loop.
  • After queueing agent work, use lpm wait --agent -p <copy> --timeout N instead of polling lpm status in a loop.
  • Read logs with a small -n first (e.g. -n 30); increase only if needed.
  • Errors already name the fix — unknown project/service errors list the valid names. Read the error before retrying.

Duplicate modes

  • lpm duplicate makes a standalone APFS copy. The app's duplicate setting decides whether uncommitted changes are copied; --include-uncommitted and --exclude-uncommitted override it.
  • lpm worktree makes a linked Git checkout with its own branch and shared repository data. The source must be a local Git repository, its lpm root must equal the repository root, and it must have at least one commit.
  • A worktree starts at the source's current HEAD on an lpm-created lpm/<copy-name> branch. It does not include uncommitted changes.
  • Remove worktrees with lpm remove; do not move, trash, or delete their folders directly.
  • If a standalone duplicate reports that the source is a linked Git checkout, retry with lpm worktree.

Fan-out (parallel agents)

lpm duplicate -n 3 --label <proj>-<purpose> --label <proj>-<purpose> --label <proj>-<purpose> --run <action> --prompt "..." clones the project into 3 labeled copies and queues the task in each. Then, per copy: lpm wait --agent -p <copy> until it settles, review its work at the printed path (e.g. git diff there), and lpm remove <copy>.

Use lpm worktree for the fan-out when each copy should use an independent Git branch without duplicating repository data.

To create or edit project configs (services/actions/YAML), use the lpm-config skill.

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.