Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计异常

lpm-configlpm 配置

Agent Skill

lpm-config 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

210

周安装

9

GitHub Stars

4

下载量

73
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:lpm-config(lpm 配置)
来源仓库:https://github.com/gug007/lpm
仓库路径:skills/lpm-config
安装命令:
npx skills add https://github.com/gug007/lpm --skill lpm-config
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/gug007/lpm --skill lpm-config

简介

lpm-config 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于配置管理、参数设置和环境变量查找等研究场景。
  • 通过关键词、任务或来源仓库进行信息筛选,需结合原始 README 确认具体用法。
  • 安装命令为 npx skills add https://github.com/gug007/lpm --skill lpm-config。
  • 使用前建议确认权限范围、维护状态及是否触发联网或文件读写操作。

SKILL.md

Instructions

Use this skill to create, modify, and delete lpm (Local Project Manager) YAML configuration files. lpm is a CLI + macOS app that manages long-running services, one-shot commands (actions), and interactive terminals for dev projects.

For the full YAML field reference, see YAML Schema Reference.

Installation

Install lpm (if not already installed):

curl -fsSL https://raw.githubusercontent.com/gug007/lpm/main/install.sh | bash

Install this skill via skills.sh:

# Interactive — shows available skills
npx skills add gug007/lpm

# Or install directly
npx skills add gug007/lpm -s lpm-config

# Install globally (available everywhere)
npx skills add gug007/lpm -s lpm-config -g

# Update to latest version
npx skills update lpm-config

tmux is required by lpm:

# macOS
brew install tmux
# Debian/Ubuntu
sudo apt install tmux

When to Use

User intentOperation
"create lpm config", "set up lpm for this project"Create a new config file
"add service/action/terminal to lpm"Modify an existing config
"change/update lpm config"Modify an existing config
"remove/delete lpm config"Delete a config file
"remove action/service/terminal from lpm"Modify — remove a section entry
"I want a button that runs X"Modify — add action or terminal with display: button
"add a log viewer", "add a watcher"Modify — likely a terminal action with type: terminal and reuse: true
"make it reuse the same terminal", "only one terminal"Modify — set type: terminal + reuse: true on the action
"rename the button", "change the label"Modify — update label field on the action/terminal
"add a button with a dropdown of actions"Modify — action group with display: button and nested actions
"when I click it, give me options to choose"Modify — could be inputs (radio options before running) or an action group (sub-actions). Ask the user which they mean.
"group these actions together"Modify — create an action group with nested actions
"duplicate this project for another directory"Create — use parent_name for a duplicate project
"make it run in background", "notify when done", "run silently"Modify — add action with type: background
"button with a default and alternatives"Modify — split-button action group (parent cmd + nested actions)
"dropdown of related commands", "menu of sub-actions"Modify — dropdown-only action group (nested actions, no parent cmd)

How to Use

Step 1: Check that lpm is installed

command -v lpm

If not found, run the install command from Installation above.

Step 2: Pick the target project file

Work out which ~/.lpm/projects/<name>.yml to edit *before* asking the user anything. Use the cwd as the primary signal.

  1. Get the current working directory: pwd.
  2. List existing projects: ls ~/.lpm/projects/*.yml (empty is fine).
  3. For each project file, read its root: line (expand ~ to $HOME). A one-liner that works: for f in ~/.lpm/projects/*.yml; do [-f "$f"] || continue name=$(basename "$f".yml) root=$(awk '/^root:/ {print $2; exit}' "$f" | sed "s|^~|$HOME|") printf '%s\t%s\n' "$name" "$root" done
  4. Match cwd against each root:

- Exact match (cwd == root) wins outright. - Otherwise, any root that is a path-component prefix of cwd is a candidate. Longest prefix wins.

  1. Act on the match count: Matches What to do 1 Silently edit ~/.lpm/projects/<name>.yml. No "I'll edit X" line, no confirmation. Apply the change and write the file. ≥2 Ask once: *"cwd is inside multiple lpm projects (a, b). Which one?"* 0 Offer two options in the same reply: (1) create a new project for this cwd (lpm init or from scratch), (2) pick an existing project by name — list every ~/.lpm/projects/*.yml.

Overrides (these win over cwd detection):

  • The user names a project explicitly ("add a service to myapp") → use that name.
  • The user says "globally" / "to all my projects" / "для всех проектов" → write to ~/.lpm/global.yml instead.

Confirmations are kept only for deleting a config file or overwriting an existing one during a Create flow. Never confirm the target on a single-match cwd.

Step 3: Execute the operation

Create:

  1. Check if a config already exists at ~/.lpm/projects/<name>.yml — if so, confirm with the user before overwriting (or switch to Modify flow).
  2. Read YAML Schema Reference for the full field reference.
  3. Consider using lpm init first — it auto-detects services for Rails, Next.js, Go, Django, Flask, Docker Compose, and more. You can then read the generated config and refine it rather than writing from scratch.
  4. If writing from scratch, analyze the project directory to discover:

- Services — look at package.json scripts, Makefile, docker-compose.yml, Procfile, mise.toml for long-running processes (dev servers, watchers, workers). - Actions — one-shot commands: test, lint, build, migrate, deploy scripts. - Terminals — interactive shells: database consoles, REPLs, log tailers. - Profiles — logical groupings of services (frontend-only, full-stack, etc.).

  1. Create directory if needed: mkdir -p ~/.lpm/projects
  2. Write the config at ~/.lpm/projects/<name>.yml.

Modify:

  1. Read the existing config: ~/.lpm/projects/<name>.yml.
  2. Apply the requested changes (add/update/remove entries).
  3. Use the Smart Guidance section below to ask the right follow-up questions.
  4. Validate all fields (see Validation below).
  5. Write the updated config back.

Delete:

  1. Confirm with the user before removing.
  2. Run: rm ~/.lpm/projects/<name>.yml

Smart Guidance

When the user asks to add something, ask follow-up questions to pick the right config shape. Don't dump all options — ask only what's relevant.

"Add a button / action that does X"

  1. Is it a long-running/interactive process (log tailer, watcher, REPL) or a one-shot command (test, deploy, migrate)?

- Long-running/interactive → ask: "Should this always reuse the same terminal pane, or open a new one each time?" - Reuse → type: terminal, reuse: true - New each time → type: terminal (no reuse) - One-shot → regular action

  1. Should it be a visible button or in the menu?

- Frequently used → display: button - Occasional → leave default (menu)

  1. Is it destructive? → confirm: true

"Make it run in the background / only tell me when it's done"

→ Add the action with type: background. The command runs hidden and lpm shows a toast on completion. Common fits: builds, migrations, docker pull, git fetch, dependency installs. Pair with confirm: true when it's destructive.

"Button with a default action plus alternatives" (split button)

→ Action group with cmd on the parent AND nested actions. Main click runs the parent's command; chevron opens the children. Example: deploy that defaults to staging with production/preview tucked behind it.

"Dropdown of related commands" (dropdown-only)

→ Action group with nested actions but no parent cmd. The whole button opens the menu. Example: a database button that expands into migrate / seed / reset.

"Add a terminal / shell / console"

→ Goes in terminals section. Ask:

  • Should it be a visible button or menu item?

"This action needs parameters"

→ Add inputs. Ask:

  • What parameters? (name, label, type)
  • Are any required?
  • Should any be a selection from fixed options? → type: radio with options
  • Any defaults?

"Add a button with a dropdown" / "button with options"

This is ambiguous — clarify what the user means:

  • "When I click, I see a list of sub-actions to pick from" → dropdown-only action group (nested actions, no parent cmd) with display: button.
  • "When I click, the default runs, but I can pick an alternative from a chevron" → split-button action group (parent cmd + nested actions) with display: button.
  • "When I click, it asks me for a parameter then runs" → single action with inputs (e.g. type: radio for fixed choices) and display: button.

Ask: "Should the button run a default command with alternatives behind a chevron (split button), open a menu of commands (dropdown), or prompt for a parameter before running (inputs)?"

"Group related actions together"

→ Create an action group with nested actions. Ask:

  • What's the group name/label?
  • Do the sub-actions share a working directory or env vars? → Set on parent, children inherit.

"Rename a button" / "change the label"

→ Update the label field on the action or terminal. Read the existing config, find the entry, set or change label.

"Set up the same project for another directory"

→ Create a duplicate with parent_name. Only needs name, root, and parent_name.

"Add this action/terminal to all my projects"

→ Goes in the global config at ~/.lpm/global.yml. It supports actions and terminals only (no services, profiles, name, or root), but both of those carry the full field set — display, confirm, type (including type: background), reuse, inputs, and nested actions. Project-level entries with the same key take precedence.

Output

Config files are written to ~/.lpm/projects/<name>.yml. Global config at ~/.lpm/global.yml supports only actions and terminals. Project-level entries take precedence when names collide.

Config structure:

name: <string>           # optional — defaults to the config filename
root: <path>             # required — project root (supports ~)
label: <string>          # optional — display name in UI
parent_name: <string>    # optional — duplicate from parent project

services:                # required — at least one
  <key>: <cmd>           # shorthand
  <key>:                 # full form
    cmd: <string>        # required
    cwd: <path>          # optional
    port: <int>          # optional (0-65535, unique)
    env: {}              # optional
    profiles: []         # optional

actions:                 # optional — one-shot commands
  <key>: <cmd>           # shorthand
  <key>:                 # full form
    cmd: <string>        # required (unless nested actions)
    label: <string>      # optional — display name in UI
    cwd: <path>          # optional
    env: {}              # optional
    confirm: <bool>      # optional (default: false)
    display: <string>    # optional (button | menu, default: menu)
    type: <string>       # optional — "terminal" (pane) or "background" (hidden + toast)
    reuse: <bool>        # optional — reuse same terminal pane
    inputs: {}           # optional — user-prompted parameters
    actions: {}          # optional — nested sub-actions (action group)

terminals:               # optional — interactive shells (sugar for actions with type: terminal)
  <key>: <cmd>           # shorthand
  <key>:                 # full form — supports the same fields as actions
    cmd: <string>        # required (unless nested actions)
    label: <string>      # optional
    cwd: <path>          # optional
    env: {}              # optional
    display: <string>    # optional (button | menu, default: menu)
    confirm: <bool>      # optional
    reuse: <bool>        # optional — reuse the existing pane on next launch
    inputs: {}           # optional — prompted parameters
    actions: {}          # optional — nested sub-actions (split-button or dropdown)

profiles:                # optional — named service subsets
  <key>: [<service>, ...]

Key rules:

  • Shorthand (test: go test./...) when the command needs no options.
  • Full form when you need cwd, env, confirm, display: button, type, reuse, inputs, or a label.
  • Set confirm: true on destructive actions (migrations, deploys, cleanup).
  • Set display: button on frequently-used actions/terminals.
  • Use type: terminal + reuse: true for commands that should stay in one persistent pane (log tailers, watchers).
  • Use type: background for slow commands you want to fire and forget — lpm shows a toast when they finish.
  • Action groups: parent cmd + nested actions renders as a split button; nested actions alone renders as a dropdown. Children inherit cwd and env.
  • Use parent_name to duplicate a project config for a different root directory.
  • Keys: short, lowercase, hyphen-separated (db-migrate, run-tests).
  • ~ expands to home. Relative cwd resolves from root. All cwd must exist.

Validation — verify before writing any config:

  • root is set (name is optional — defaults to the config filename)
  • At least one service is defined (unless parent_name is set)
  • All cmd fields are non-empty strings (actions or terminals with nested actions may omit cmd)
  • All cwd paths point to existing directories
  • All ports are in range 0–65535 with no duplicates across services
  • display values are only button or menu
  • type values are only terminal or background (or omitted)
  • Profile entries reference defined services
  • Nested sub-actions are validated recursively
  • parent_name references an existing project

Examples

Example 1: Create a minimal config

User: Set up lpm for this project
Agent: No lpm project matches cwd ~/Projects/my-api. I can:
       1. Create a new project for this directory (name: my-api)
       2. Edit an existing project: myapp, storefront
User: Create it
Agent: [analyzes project, writes config]

       Created ~/.lpm/projects/my-api.yml:
       - 1 service: dev server
       - 2 actions: test, lint
       - 1 terminal: database console

Minimal output:

name: my-api
root: ~/Projects/my-api

services:
  server: npm run dev

Example 2: Full config

name: myapp
root: ~/Projects/myapp
label: My Application

services:
  api:
    cmd: go run ./cmd/server
    cwd: ./backend
    port: 8080
  frontend:
    cmd: npm run dev
    cwd: ./frontend
    port: 3000

actions:
  test:
    cmd: go test ./...
    cwd: ./backend
    display: button

  deploy:
    cmd: ./scripts/deploy.sh --env {{env}}
    label: Deploy
    confirm: true
    inputs:
      env:
        type: radio
        label: Target Environment
        required: true
        default: staging
        options:
          - staging
          - production

  database:
    label: Database
    cwd: ./backend
    actions:
      migrate:
        cmd: rails db:migrate
        confirm: true
      seed:
        cmd: rails db:seed
      reset:
        cmd: rails db:reset
        confirm: true

  logs:
    cmd: tail -f /var/log/myapp/app.log
    type: terminal
    reuse: true
    label: Tail Logs
    display: button

  fetch-all:
    cmd: git fetch --all --prune
    label: Fetch All
    type: background
    display: button

terminals:
  psql:
    cmd: psql myapp_dev
    label: Database
    display: button

profiles:
  frontend-only: [frontend]
  full-stack:    [api, frontend]

Example 3: Add a terminal action with reuse

User: Add a button that shows logs and always uses the same terminal
Agent: [reads config, adds action]

       Added to ~/.lpm/projects/myapp.yml:
       actions.logs:
         cmd: tail -f /var/log/myapp/app.log
         type: terminal
         reuse: true
         label: Tail Logs
         display: button

Example 4: Add an action group

User: Group the database commands together
Agent: [reads config, creates action group]

       Grouped in ~/.lpm/projects/myapp.yml:
       actions.database:
         label: Database
         cwd: ./backend
         actions:
           migrate, seed, reset

Example 5: Create a duplicate project

User: I have a second checkout of myapp at ~/Projects/myapp-v2, set it up in lpm
Agent: I'll create a duplicate config pointing to the existing myapp config.

       Created ~/.lpm/projects/myapp-v2.yml:
         parent_name: myapp
         root: ~/Projects/myapp-v2

Output:

name: myapp-v2
root: ~/Projects/myapp-v2
parent_name: myapp

Example 6: Add an action with user inputs

User: Add a deploy action that asks which environment to deploy to
Agent: [adds action with inputs]

       Added to ~/.lpm/projects/myapp.yml:
       actions.deploy:
         cmd: ./scripts/deploy.sh --env {{env}}
         confirm: true
         inputs:
           env (radio): staging, production

Example 7: Delete a config

User: Remove lpm config for myapp
Agent: Delete ~/.lpm/projects/myapp.yml? This will remove the project from lpm.
User: Yes
Agent: Deleted ~/.lpm/projects/myapp.yml

Example 8: Add a background action

User: Add a button that resets the dev database in the background
Agent: [reads config, adds action — silent cwd match on ~/.lpm/projects/myapp.yml]

       Added to ~/.lpm/projects/myapp.yml:
       actions.db-reset:
         cmd: npm run db:reset && npm run db:seed
         label: Reset DB
         type: background
         confirm: true
         display: button

Example 9: Split-button action group

User: Make deploy a button that defaults to staging but lets me pick production or preview
Agent: [adds split-button group]

       Added to ~/.lpm/projects/myapp.yml:
       actions.deploy:
         cmd: ./deploy.sh staging
         label: Deploy
         display: button
         confirm: true
         actions:
           production:
             cmd: ./deploy.sh production
             confirm: true
           preview:
             cmd: ./deploy.sh preview

Limitations

  • Project names must be lowercase with no slashes; cannot be . or ..
  • All cwd paths must point to existing directories — lpm validates on load
  • Ports must be in range 0–65535 and unique across services
  • Global config only supports actions and terminals — no services, profiles, name, or root
  • Duplicate projects (parent_name) inherit everything — you cannot override individual entries

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.86%
按下载量换算25

Claude

31.53%
按下载量换算23

Cursor

18.36%
按下载量换算13

Gemini CLI

9.25%
按下载量换算7

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

未通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/gug007/lpm --skill lpm-config 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills