executor-cli
Use and maintain lfx, lfx run, lfx serve, lfx-mcp, Flow DevOps commands, and stateless executor semantics.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- executor-cli
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Use and maintain lfx, lfx run, lfx serve, lfx-mcp, Flow DevOps commands, and stateless executor semantics.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/cli-reference.md13.9 KB
- 参考文档references/stateless-runtime.md11.9 KB
- 参考文档references/troubleshooting.md13.4 KB
- 脚本scripts/validate_lfx_flow.py8.7 KB
03 SKILL.md 正文
Executor CLI
Use this sub-skill when the task involves the lightweight Langflow Executor (lfx), Flow DevOps CLI workflows, local flow execution, serving flow JSON as a small API, lfx-mcp, or debugging stateless executor behavior.
Read First
- CLI reference: command map,
lfx run,lfx serve, Flow DevOps commands, extension commands,lfx-mcp, and safe command templates. - Stateless runtime: what persists, what does not, credential/request-variable behavior,
NoopSession,--flow-dir, and memory/session caveats. - Troubleshooting: install/import, optional dependency, flow schema, variable, API-key, network, and runtime failure signals.
- Flow validation helper: offline JSON parse/shape check that prints safe
lfx validate,lfx run, andlfx servecommand templates without executing the flow.
Use This For
- Running a local flow JSON or Python graph with
lfx run, including path,--stdin, and--flow-jsonmodes. - Serving one or more flow JSON files with
lfx serve, including API-key setup,.envfiles,--flow-dir, multi-worker behavior, uploads, streaming, and--no-env-fallback. - Flow DevOps tasks with
lfx init,create,validate,requirements,upgrade,status,push,pull, andexport. - MCP server startup and remote Langflow flow-building control through
lfx-mcp. - Explaining why LFX does not provide full Langflow database/server persistence.
Route Elsewhere
- Full Langflow server, database, auth, migrations, and service internals belong in
../backend-runtime/SKILL.md. - SDK client code, REST client implementation, and Python API integrations belong in
../sdk-and-api-clients/SKILL.md. - Component class authoring, bundles, and component-index maintenance belong in
../component-development/SKILL.md. - Production container/deployment operations beyond
lfx servebelong in../deployment-and-operations/SKILL.md.
Fast Workflow
- Identify whether the user needs one-shot execution (
lfx run), an HTTP endpoint (lfx serve), Flow DevOps sync (status/push/pull/export), extension inspection (lfx extension ...), or MCP (lfx-mcp). - Validate the flow file offline before suggesting execution:
python scripts/validate_lfx_flow.py path/to/flow.json - If the flow contains provider components, confirm required component packages and credentials are installed/configured before running or serving.
- For
lfx serve, require a localLANGFLOW_API_KEYorLFX_API_KEYtoken and decide whether process-env fallback is acceptable; use--no-env-fallbackfor request-scoped credentials. - For multi-worker serving, use
--flow-dirwith JSON flows only; do not use.pyscript flows with--workers > 1 --flow-dir.
Safety Notes
- Do not execute untrusted flow JSON or Python graph scripts just to inspect them; use the bundled helper and
lfx validatefirst. - Do not paste real API keys into examples, flow JSON, or committed
.lfx/environments.yaml; store key values in environment variables. - Treat
lfx runandlfx serveas stateless executor paths, not replacements for the full Langflow app database.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).