← 返回 Skills 市场
cnf6682

Lattice

作者 CNF6682 · GitHub ↗ · v1.2.1
cross-platform ⚠ suspicious
825
总下载
2
收藏
2
当前安装
4
版本数
在 OpenClaw 中安装
/install lattice
功能描述
Initialize and manage Lattice organizations — a file-based operating system for AI agent teams that enables stable, long-running iterative development throug...
使用说明 (SKILL.md)

Lattice

Lattice is a file-based operating system for AI agent teams. It replaces volatile chat windows with persistent files, enabling agents to work stably through long, iterative development cycles via an 8-phase execution pipeline.

Why Lattice?

  • Stable long-running execution — File-driven state machine ensures agents stay on track across sessions. No context window overflow, no drift. Tasks complete reliably over hours or days through structured iteration.
  • Three-tier failure handling — When an agent gets stuck: (1) Model Escalation retries with stronger models, (2) Peer Consult gathers parallel opinions from multiple models, (3) Auto-Triage makes a judgment call (relax constraints / defer / block for human). Most blockers resolve automatically.
  • Per-phase model configuration — Thinking-heavy phases (planning, review, architecture) need strong reasoning models; token-heavy phases (implementation, testing) can use cost-efficient coding models. This dramatically reduces overall token cost without sacrificing quality where it matters.

Example model assignment (from a production setup):

Phase Model tier Example
Constitute (architecture) Strong reasoning Claude Opus
Research Strong reasoning Gemini Pro
Specify (design) Strong reasoning Claude Opus
Plan + Tasks Strong reasoning Claude Opus
Implement Cost-efficient coding GPT Codex
Test Cost-efficient coding GPT Codex
Review Strong reasoning Claude Opus
Gap Analysis Strong reasoning Gemini Pro

The key insight: implementation and testing consume the most tokens (writing/running code), but don't require the most expensive models. Planning and review consume fewer tokens but need deeper reasoning. Match model strength to cognitive demand, not token volume.

  • Multi-project parallel execution — Run multiple projects simultaneously, each with its own cron-scheduled orchestrator. Combined with OpenClaw's cron system, projects advance autonomously on independent cadences.

Templates are bundled at templates/ORG/ relative to this skill directory.

Quick Reference

  • Full design doc: templates/ORG/PROJECTS/pipeline-framework/DESIGN.md
  • Pipeline guide (all agents): templates/ORG/PIPELINE_GUIDE.md
  • Sub-agent guide: templates/ORG/PROJECTS/pipeline-framework/templates/PIPELINE_GUIDE_FOR_SUBAGENTS.md
  • Orchestrator prompt template: templates/ORG/PROJECTS/pipeline-framework/templates/ORCHESTRATOR_PROMPT.template.md
  • Phase prompt templates: templates/ORG/PROJECTS/pipeline-framework/templates/PHASE_PROMPTS/
  • State machine template: templates/ORG/PROJECTS/pipeline-framework/templates/PIPELINE_STATE.template.json

Task: Initialize a New Organization (lattice init)

1. Gather Information

Ask the user for:

  • Organization name (e.g. "Acme Labs")
  • Target directory — where to create the ORG/ folder (default: current workspace root)
  • Departments — list of department names (e.g. Research, Engineering, Reliability)
  • First project (optional) — name + one-line description

Keep it conversational. Don't dump all questions at once.

2. Scaffold the ORG Directory

Copy the entire templates/ORG/ directory to \x3Ctarget>/ORG/.

Then customize:

  1. ORG_README.md — Replace the example org structure in §5 with the user's actual departments
  2. TASKBOARD.md — Leave the template structure intact (user fills in priorities later)
  3. Departments — For each department the user listed:
    • Copy DEPARTMENTS/example-dept/DEPARTMENTS/\x3Cdept-name>/
    • In each copied department, replace \x3CDepartment Name> placeholders in CHARTER.md, RUNBOOK.md, HANDOFF.md with the actual department name
    • Reset STATE.json to {"lastRun": null, "cursor": null, "notes": "Initial state"}
  4. Remove DEPARTMENTS/example-dept/ after creating real departments (unless user wants to keep it as reference)

3. Create the First Project (if requested)

  • Copy PROJECTS/example-project/PROJECTS/\x3Cproject-name>/
  • Update STATUS.md with the project name
  • Update DECISIONS.md header
  • Configure PIPELINE_STATE.json (see "Configure Pipeline State" below)
  • Remove PROJECTS/example-project/ after creating the real project

4. Configure Pipeline State

Read templates/ORG/PROJECTS/pipeline-framework/templates/PIPELINE_STATE.template.json as the reference.

Ask the user:

  • Which agents will run each phase? (agentId per role — or a single agent for all)
  • Which models for each phase? (or a default model)
  • Escalation chain — list of models from cheapest to strongest (e.g. ["gflash", "gpro", "sonnet"])
  • Peer consult models — which models to consult in parallel when stuck
  • Synthesizer/triage model — typically the strongest available model
  • Notification channel (optional) — where to send pipeline status updates

Fill in the project's PIPELINE_STATE.json with these values, replacing all \x3Cplaceholder> tokens.

5. Set Up the Orchestrator Cron Job

Read templates/ORG/PROJECTS/pipeline-framework/templates/ORCHESTRATOR_PROMPT.template.md.

Create a cron job using the cron tool:

  • Schedule: every 30 minutes (adjustable)
  • Session target: isolated
  • Payload kind: agentTurn
  • Model: the user's chosen orchestrator model
  • Message: the orchestrator prompt template, with all \x3Cplaceholder> tokens filled in:
    • \x3Cproject> → project name
    • \x3Corg-root> → absolute path to the ORG directory
    • \x3Cproject-root> → absolute path to the project directory
    • \x3Crepo-root> → absolute path to the code repository (ask user)
    • Phase prompt paths → absolute paths to the skill's bundled phase prompt templates

Tell the user the cron job ID so they can manage it later.

6. Summary

Print a brief summary:

  • ORG directory location
  • Departments created
  • Project(s) created
  • Cron job ID and schedule
  • Remind them to fill in TASKBOARD.md with initial priorities

Task: Add a New Project (lattice new-project)

  1. Ask for: project name, one-line description, code repo path
  2. Copy templates/ORG/PROJECTS/example-project/ORG/PROJECTS/\x3Cname>/
  3. Customize STATUS.md, DECISIONS.md, PIPELINE_STATE.json (same as step 3-4 above)
  4. Optionally create a new orchestrator cron job for this project

Task: Add a New Department (lattice new-dept)

  1. Ask for: department name, mission (one sentence)
  2. Copy templates/ORG/DEPARTMENTS/example-dept/ORG/DEPARTMENTS/\x3Cname>/
  3. Fill in CHARTER.md with the department name and mission
  4. Update ORG_README.md §5 to include the new department

Task: Check Organization Status (lattice status)

  1. Read ORG/TASKBOARD.md — summarize active priorities
  2. For each project in ORG/PROJECTS/:
    • Read STATUS.md — current phase and progress
    • Read PIPELINE_STATE.json — phase statuses, blockers, run number
  3. For each department in ORG/DEPARTMENTS/:
    • Read HANDOFF.md — current state and blockers
  4. Present a concise status report

Pipeline Architecture (for reference)

8 Phases

Constitute → Research → Specify → Plan+Tasks → Implement → Test → Review → Gap Analysis

3-Layer Assistance (when a phase gets stuck)

  1. Model Escalation — retry with progressively stronger models
  2. Peer Consult — parallel multi-model consultation + synthesis
  3. Auto-Triage — automated judge decides: RELAX (loosen constraints) / DEFER (next iteration) / BLOCK (wait for human)

Key Files per Project

ORG/PROJECTS/\x3Cproject>/
├── STATUS.md              # Human-readable status
├── DECISIONS.md           # Key decisions + rationale
├── PIPELINE_STATE.json    # Phase state machine
├── PIPELINE_LOG.jsonl     # Append-only history
├── pipeline/              # Current run artifacts
└── pipeline_archive/      # Historical runs
安全使用建议
This skill is basically a template pack and a design doc for a multi-phase pipeline; it appears internally consistent. Before installing or running: 1) Backup your workspace and confirm the chosen target directory, because the scaffolding will create/overwrite files under <target>/ORG/. 2) Review the templates (especially PIPELINE_STATE.json and Orchestrator prompt) so you understand what files agents will read/write and what will be broadcast to notification channels. 3) The orchestrator logic assumes the ability to spawn sessions (sessions_spawn) and to pass model/agent IDs — ensure your platform's session-spawn and cron permissions, and lock down which agentIds/models are allowed to be used to avoid inadvertent cost or scope escalation. 4) The templates explicitly exclude secrets, but double-check you don't accidentally put tokens/credentials into any generated files (notification channel or agentId fields should be identifiers, not secret tokens). 5) If you plan to allow autonomous runs, limit who can change the config (escalation chains, triage rules, notify channels) and audit initial runs. If you want added assurance, test the init flow in an isolated sandbox repository first.
功能分析
Type: OpenClaw Skill Name: lattice Version: 1.2.1 The skill bundle is classified as suspicious due to significant prompt injection vulnerabilities stemming from the direct incorporation of unsanitized user inputs into agent prompts and configuration files. Specifically, user-provided values like project names, repository paths, agent IDs, and models are used to construct the `ORCHESTRATOR_PROMPT.template.md` (which defines the cron job payload) and `PIPELINE_STATE.json`. This allows an attacker to inject malicious instructions into the orchestrator agent's prompt or sub-agent configurations, potentially leading to unauthorized file system operations, command execution, or resource abuse. The ability to create persistent cron jobs and orchestrate multiple agents with dynamically generated prompts amplifies this risk, even though the skill's stated purpose is benign and includes self-imposed constraints against harmful actions.
能力评估
Purpose & Capability
Name/description claim to provide a file-based 'Lattice' org and pipeline framework matches the contents: templates, prompts, and a long SKILL.md describing scaffolding and orchestration. There are no unrelated environment variables, binaries, or install steps requested — everything needed is local template files and instructions to copy/customize them.
Instruction Scope
The runtime instructions instruct the agent to scaffold an ORG/ directory, replace placeholders, and populate PIPELINE_STATE.json and other files — all local file operations consistent with the stated purpose. The guides also describe use of platform primitives like sessions_spawn to spawn sub-agents and require the orchestrator to pass explicit model/agent arguments. This is expected for an orchestrator design doc, but it assumes platform-level capabilities (session spawning, cron triggers) that the skill itself cannot provide. Nothing in the instructions asks the agent to read or exfiltrate secrets or to contact unknown external endpoints.
Install Mechanism
No install spec or code is included; the skill is instruction-only and ships templates and prompt files. No downloads, extracted archives, or third-party package installs are performed.
Credentials
The skill declares no required environment variables, no credentials, and no config paths. The SKILL.md does request the user configure agentIds and model names in pipeline state, which is appropriate for orchestrating agents but does not require secrets or unrelated credentials.
Persistence & Privilege
The skill does instruct creating and modifying files under the chosen target workspace (ORG/). always:false and default autonomous invocation are used. The templates explicitly forbid modifying system config/gateway and recommend change control. There is some operational risk in that an Orchestrator (once implemented) would spawn sub-agents and update project files automatically — this is coherent with the skill purpose but you should ensure platform-level permissions and model/agent mappings are controlled.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install lattice
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /lattice 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.1
lattice 1.2.1 - Documentation updated in SKILL.md for improved clarity and completeness. - No changes to code or features.
v1.2.0
- Clarified guidance on selecting AI models for each pipeline phase, emphasizing the use of strong models for thinking-heavy stages and cost-efficient ones for implementation/testing. - Added an example table mapping phases to model tiers. - Expanded rationale behind model assignment to optimize for both cost and cognitive demand. - No functional or behavioral changes to skill commands or workflows; documentation improvements only.
v1.1.0
- Expanded the skill description to highlight Lattice's core strengths: stable, file-driven agent execution, three-tier failure handling (model escalation, peer consult, auto-triage), per-phase model configuration for token optimization, and support for multi-project parallel execution with cron scheduling. - Added a new **Why Lattice?** section summarizing key benefits and usage advantages. - Clarified and rephrased multiple sections for improved readability and emphasis on reliability, automatic unblocking, and resource efficiency. - Updated triggers to cover new use-cases: long-running tasks, model escalation, peer consult, auto-triage, and token optimization. - No structural changes to tasks or procedures. All functionality and quick reference remain intact.
v1.0.0
Initial release: self-contained org scaffolding with 8-phase pipeline, 3-layer assistance (model escalation → peer consult → auto-triage), department/project templates, and orchestrator cron setup. Zero runtime dependencies.
元数据
Slug lattice
版本 1.2.1
许可证
累计安装 2
当前安装数 2
历史版本数 4
常见问题

Lattice 是什么?

Initialize and manage Lattice organizations — a file-based operating system for AI agent teams that enables stable, long-running iterative development throug... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 825 次。

如何安装 Lattice?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install lattice」即可一键安装,无需额外配置。

Lattice 是免费的吗?

是的,Lattice 完全免费(开源免费),可自由下载、安装和使用。

Lattice 支持哪些平台?

Lattice 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Lattice?

由 CNF6682(@cnf6682)开发并维护,当前版本 v1.2.1。

💬 留言讨论