Sandbox
@techygarg/lattice

Composable skills for Claude Code, Codex, and Cursor

Lattice packages reusable skills that teach assistants how to work with design, context, architecture, review, and team standards. It uses a shared `skills/` folder plus host-specific plugin manifests so the same workflow can run in Claude Code, Codex, Cursor, and other compatible clients.

190 stars13 forksJavaScriptUpdated 10d ago
Who it's for

Builders who want their coding assistant to follow the same design and review process every time.

What it delivers

You can turn ad hoc agent output into a repeatable workflow with project standards, structured design, and review steps.

What it does

Three skill tiers

Organizes work into atoms, molecules, and refiners so small rules can combine into larger workflows.

Feature lifecycle pipeline

Guides work from `requirement-forge` to `design-blueprint`, `code-forge`, and `review`.

Living project context

Writes standards, decisions, and review insights into `.lattice/` so the next cycle has more context.

Host plugin support

Ships manifests for Claude Code, Codex, Cursor, Grok, and Kimi, plus an Agent Plugins standard package.

Verification flow

Includes `scripts/run-verification.sh` for running the verification step directly when a host has no subagent concept.

Project bootstrap

Provides `/lattice-init` and a sample project under `sample/` to start from an existing codebase or a template spec.

How to get it

  1. 1Option A — Claude Code plugin (also works in Cursor — reads Claude Code skills…
    /plugins marketplace add techygarg/lattice
    /plugins install lattice
    /reload-plugins
  2. 2Option B — Codex-compatible plugin package
    codex plugin marketplace add techygarg/lattice
    codex plugin add lattice@lattice
    codex plugin list | rg -i lattice
  3. 3Option C — Clone and install locally (any AI tool)
    git clone https://github.com/techygarg/lattice.git
    cd lattice
    ./tools/install.sh /absolute/path/to/your/skills/folder

README

Lattice

lattice

Composable AI skills that teach assistants structured thinking — design-first, context-aware, and architecture-guided.

License: MIT Claude Code Cursor PRs Welcome martinfowler.com StarMapper

What is Lattice?

AI coding assistants jump straight to code, silently make design decisions, forget constraints mid-conversation, and produce output nobody reviewed against real standards. Lattice fixes this with composable skills in three tiers — atoms, molecules, refiners — that embed battle-tested engineering disciplines plus a living context layer that accumulates your project's standards, decisions, and review insights across every feature cycle.

Three principles guided Lattice's design:

  • Skills over prompts — versioned, team-owned skill files in the repository beat personal prompts on one developer's machine
  • Composability over monoliths — small single-purpose skills that combine into workflows beat one instruction document that tries to cover everything
  • Living context over static config — the .lattice/ folder grows smarter with every feature cycle rather than being configured once and forgotten

The Three Tiers

TierPurpose
AtomsSingle-principle guardrails — clean code, architecture, DDD, secure coding, test quality, design-first, and more
MoleculesMulti-step workflows that compose atoms — design, implement, refactor, fix, review
RefinersGuided interviews that produce project-specific standards, customizing how atoms behave for your team

The Composability Model

See How It Works for the full skill inventory and mechanics.

The Pipeline

Skills form a delivery lifecycle: requirement-forgedesign-blueprintcode-forgereview, with refactor-safely and bug-fix covering structural and defect-driven work. requirement-forge starts the pipeline — it acts as a senior PM + BA pair to produce structured feature specs in .lattice/requirements/ that feed directly into design-blueprint. For teams with existing codebases, architecture-compass sits before the pipeline — it scans the repository, runs a structured interview, and produces an agreed architectural direction that orients the team before any code changes begin. Each stage consumes and produces artifacts in .lattice/, growing the living context layer.

Feature Lifecycle Pipeline

Getting Started

  1. Install Lattice — choose the path that fits your setup:

    Option A — Claude Code plugin (also works in Cursor — reads Claude Code skills automatically)

    /plugins marketplace add techygarg/lattice
    /plugins install lattice
    /reload-plugins
    

    Option B — Codex-compatible plugin package

    codex plugin marketplace add techygarg/lattice
    codex plugin add lattice@lattice
    codex plugin list | rg -i lattice
    

    The Codex plugin manifest lives in .codex-plugin/ and is registered by .agents/plugins/marketplace.json. Like every host plugin here, it's a thin manifest only — it points at the same shared, flat skills/ folder every other host uses, plus the verification runner script (scripts/run-verification.sh) — Codex has no subagent concept, so verification always runs the script directly rather than via a subagent. Grok (.grok-plugin/) and Kimi (.kimi-plugin/) follow the same pattern.

    Option C — Clone and install locally (any AI tool)

    git clone https://github.com/techygarg/lattice.git
    cd lattice
    ./tools/install.sh /absolute/path/to/your/skills/folder
    

    Pass the skills directory for your tool: ~/.claude/skills/ for Claude Code, .cursor/skills/ for Cursor, or any tool's skills folder.

    Option D — Agent Plugins 1.0-conformant clients A root plugin.json conforming to the open, vendor-neutral Agent Plugins standard ships alongside the host-specific manifests above — any conformant client auto-discovers skills straight from the skills/ folder with zero extra install steps. Shipped in Codex CLI, Cursor, VS Code / GitHub Copilot, and Kiro as of this writing.

    See docs/plugins.md for the full per-host status table and how to add a new host.

    Try it immediately. The repo includes sample/ — a realistic .NET 8 User Service spec with requirements, domain concepts, and constraints already written. Copy the sample/ folder contents into any empty directory and follow the steps below.

  2. Run /lattice-init in your AI tool's chat — scans the project, suggests refiners in priority order, creates .lattice/config.yaml. All skill commands (/lattice-init,/requirement-forge, /design-blueprint, /code-forge, etc.) are typed in the AI chat, not the terminal.

  3. Spec (optional but recommended)/requirement-forge acts as a senior PM + BA pair to define epics and feature specs before any design begins. Accepts existing PRDs, feature lists, or a verbal description. Produces .lattice/requirements/ as direct input to design-blueprint.

  4. Design/design-blueprint walks through five progressive design levels before any code is written.

  5. Implement/code-forge generates implementation from the approved blueprint, applying all quality atoms.

  6. Review/review audits the change and persists insights into .lattice/ for the next cycle.

Learn More

  • Origin Story — why Lattice exists, how five collaboration patterns became an installable framework, and the design philosophy behind it
  • How It Works — full skill inventory, composability mechanics, atoms/molecules/refiners in depth, the pipeline
  • Practical Guide — scenario-driven Q&A: getting started, customization, workflow, transformation, team usage, troubleshooting
  • Architecture Compass — the architectural thinking partner: why it exists, what to expect, and how a session works
  • Configuration Reference — every .lattice/config.yaml key documented
  • Framework Intelligence — verification passes, feedback loops, AI compliance techniques
  • Collaborative Judgment — why AI should ask on genuine judgment calls or missing/conflicting facts and how it works at runtime
  • Verification Agent — why the verifier subagent exists, the cost model behind it, and how to enable the done-gate manually or automatically per project
  • The Article Series — the five collaboration patterns Lattice operationalizes (martinfowler.com)

Dev Skills

Helper skills for creating and maintaining Lattice itself — see dev-skills/.

StarMapper

StarMapperStarMapper

License

MIT

Files in the repo

Repository payload27 top-level entries
  • .agents
  • .claude
  • .claude-plugin
  • .codex-plugin
  • .cursor-plugin
  • .github
  • .grok-plugin
  • .kimi-plugin
  • agents
  • dev-skills
  • docs
  • sample
  • scripts
  • skills
  • source
  • tools
  • website
  • .gitignore
  • .gitleaks.toml
  • AGENTS.md
  • CLAUDE.md
  • CONTRIBUTING.md
  • LICENSE
  • plugin.json
  • PROJECT.md
  • README.md
  • SECURITY.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More skills

obra/
superpowers

An agentic skills framework & software development methodology that works.

285k
1 add

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local deterministic AST parsing, every edge explained, no vector store.

117k
1 add
Vincentwei1021/
anything2explainer

Topic in, narrated explainer video out. A Claude Code / Codex skill that turns any topic into a black-canvas motion-graphics explainer video with TTS voiceover, subtitles and a chapter progress bar. Chinese or English; every frame drawn in code with Remotion.

666

Open-source AI job search: scan job portals, evaluate listings into a structured A-H report with a global 1-5 score, tailor your CV, track applications — runs locally in your AI coding CLI (Claude Code, Codex, OpenCode, Antigravity…)

71k