Lattice plugin

Lattice: composable skills for AI assistants covering requirements, design before code, standards-based work and review

  • 211 ★ on the repository
  • Last commit
  • MIT
Plugin

Minimal access

Why this level

  • Skills read the project and write files in `.lattice/`, and source code changes only at the implementation stage from an approved design
All reasons and checks

techygarg/lattice

Install

In your terminal, with SkillFoxx CLI

npx skillfoxx add plugins/lattice

Detects the agents on your machine, shows the access level and pins the version.

Other ways to install

Access and checks

How we review

Minimal accessThe tool runs nothing and makes no network calls.

  • Skills read the project and write files in `.lattice/`, and source code changes only at the implementation stage from an approved design

This is third-party code. Review the repository files before installing.

What it does

Lattice is a skill set in three tiers. Atoms each set one boundary: clean code, architecture, DDD, secure coding, test quality, design before code. Molecules combine atoms into workflows: design, implementation, refactoring, bug fixing, review. Refiners run an interview and record your project standards, which change how the atoms behave. The flow runs through `requirement-forge`, `design-blueprint`, `code-forge` and `review`, while `refactor-safely` and `bug-fix` handle structural and defect work. `requirement-forge` plays a senior PM and analyst pair, and `design-blueprint` walks through five design levels before the first line of code. Context builds up in the `.lattice/` folder and gets sharper after every cycle. `/lattice-init` scans the project and creates `.lattice/config.yaml`. Plugin manifests exist for Claude Code, Codex, Cursor and other clients.

Who it is for. Engineering teams that want shared versioned skills instead of personal prompts, from requirements and design to implementation and review of one change.

Good fit when

  • The agent jumps to code and silently makes design decisions while you want the design first
  • A new feature starts with epics and specs prepared by `requirement-forge`
  • The team needs shared clean code and architecture standards stored in `.lattice/`
  • A refactor runs under the `refactor-safely` skill so behavior does not break

Not a fit when

  • The task is a one-liner: a chain with requirements, design and review slows it down
  • You want a ready set for one language or framework: Lattice covers process, not an API
  • You need a vulnerability checklist scan: the secure coding atom sets principles

Example request

Run lattice-init, then requirement-forge on this PRD and design-blueprint before any code

Limitations

  • The skills set a way of thinking, so results depend on how the team fills `.lattice/config.yaml` and the refiners. Without it the standards stay generic.
  • The `.lattice/` folder grows with each cycle and lives in the repository, so its contents deserve a look during review.
  • For Codex and other clients the README keeps a per-host status table in `docs/plugins.md`, and support varies.
  • The `verifier` agent is enabled manually or automatically and spends extra tokens.

How to disable. For the Claude Code plugin run `/plugin uninstall lattice`. If installed through `tools/install.sh`, delete the copied skill folders; the project `.lattice/` folder is removed by hand.

FAQ

How do I install Lattice in Claude Code?

Use `/plugins marketplace add techygarg/lattice`, `/plugins install lattice` and `/reload-plugins`. Cursor reads the same Claude Code skills automatically.

How do I install Lattice in Codex?

Use `codex plugin marketplace add techygarg/lattice` and `codex plugin add lattice@lattice`. The manifest sits in `.codex-plugin/`.

What are atoms, molecules and refiners?

An atom sets one boundary such as clean code, a molecule combines atoms into a workflow and a refiner runs an interview and records project standards.

What is the `.lattice/` folder for?

It holds `config.yaml`, requirements and accumulated review insights. After each cycle it grows, and the next cycle starts with sharper context.

Is there a sample to try?

Yes, the `sample/` folder has a .NET 8 User Service spec with requirements and constraints. Copy it into an empty directory and run the pipeline.

Discussion

No questions or reviews yet.

Plugins

Skills and a CLI with a product graph: roles, states and failures checked before code, the live product after the build

SkillExtended access120Repository stars

lencx skills

lencx-skills

Two skills for Claude Code and Codex: keel works through architecture questions, coding-protocol keeps code edits inside the task

SkillMinimal access197Repository stars

Standalone skills for the whole development lifecycle: product, architecture, planning, implementation, QA, delivery and operations

SkillBroad access594Repository stars

Ten software lifecycle skills for Claude Code: requirements, design, tests, adversarial review and release checks with hooks.

PluginExtended access66Repository stars

Hooks and skills make Claude Code plan before coding, test before shipping and escalate when it is not confident.

PluginExtended access53Repository stars

Claude Code plugins for design-first work: designs, EARS requirements, tests, then code, plus spec-to-code tracking

PluginExtended access118Repository stars

Comparison with similar tools

Cards that share the main search query, and how they differ.

ToolOfficialRepository starsMain difference
Lattice (this card)no211
SpecKit Companionno105a Spec Kit companion, while this brings its own atoms, molecules and context accumulation
superpowers-zhno8,534a general process skill set, while this has three tiers and project refiners

README in short

The README explains the three Lattice principles, the three skill tiers and the pipeline from requirements to review. It goes on with four install routes, first-run steps, guides and the martinfowler.com article series the set is based on.

README badge

Original SKILL.md

---
name: design-blueprint
description: "Run a complete design workflow -- from establishing context through four progressive design levels (Capabilities, Components, Interactions, Contracts) to an approved blueprint. Composes knowledge-priming, context-anchoring, learning-harvest, collaborative-judgment, design-first, architecture, and domain-driven-design into one process. Handles both new features (create context doc) and resuming existing work (load context doc). Level 5 (Implementation) is delegated to code-forge. Use when starting a design, planning architecture, or when the user says 'design a feature', 'blueprint', 'start designing', 'plan the architecture', or 'let's design before coding'."
---

# Design Blueprint

## Required Skills

Read and apply in order before Step 1:

1. `framework:knowledge-priming` -- Load the project knowledge base so every decision grounds in the real project. (always)
2. `framework:context-anchoring` -- Create or load the feature's living context doc (Create / Load / Enrich behaviors). (always)
3. `framework:learning-harvest` -- Load prior operational learnings at session start; harvest new ones at session end. (always)
4. `framework:collaborative-judgment` -- Surface genuine judgment calls as structured options instead of silently assuming. (always)
5. `framework:design-first` -- Owns the 5-level methodology. Its Entry Assessment, Complexity Calibration, Simplicity Check, and Level Completion Protocol govern Step 2. (Step 2)
6. `framework:architecture` -- Validate components, layers, dependency direction, and boundary rules (design mode). (Levels 2-4)
7. `framework:domain-driven-design` -- Model aggregates, entities, value objects, events, and contracts (design mode). (Levels 2-4)

## Additional Instructions

**STOP: Before Step 1, read `additional_instructions.design_blueprint` (one line or a list) from `.lattice/config.yaml`.** No file or no key → skip silently.

When lines are found:

1. Show them verbatim under "Additional instructions (from config):".
2. **Highest priority — apply them for the whole session, including on resume.** On any conflict with anything else in this skill — steps, gates, STOP rules — or with its Required Skills, standards documents, or operational learnings, the config line wins.

## Workflow

### Step 1: Establish Context

1. Run `framework:learning-harvest` Load behavior. Focus hint: "design session — focus: design patterns, reliability, structural health".
2. Set up the feature's living doc with `framework:context-anchoring`:
   - **Discover**: run context-anchoring Document Discovery — scan the context base directory (per the atom's Config Resolution) for an existing anchor doc matching the feature name or frontmatter.
   - **Found** → Load behavior. Present the structured acknowledgment: feature name, status, decision count, open questions, constraints. Then run the resume check below.
   - **Not found** → Create behavior. Confirm the feature name, summary, and requirement doc link with the user before creating. Then begin Step 2 — the Entry Assessment sets the entry level.

3. **Resume check** (when a doc was found) — derive the earliest incomplete step from the doc itself. **STOP:** Never re-walk agreed work:
   - `status: approved` → design is finished. Say so and stop; suggest `/code-forge`.
   - No sections starting `## Design: Level` → begin Step 2 — the Entry Assessment (and its spec rule) sets the entry level.
   - Some levels persisted → summarize the approved levels briefly, then resume at the first missing level at or after the recorded entry level (the `[Entry]` Decisions Log entry; older docs without one → treat entry as Level 1).
   - Every level from entry through Level 4 persisted, but no `## Design Summary`, or `status` ≠ `approved` → go directly to Step 3.

4. **Requirement constraints**: read `requirement_doc` from the context doc frontmatter.

Report a problem