# Layerkit Design Integration

> Choose linear map vs flow (route/foreach/if), multi-step, batch; write design decision to memory.

- **Type:** Skill
- **Install:** `agentstack add skill-hariharapanigrahy-layerkit-layerkit-design-integration`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [hariharapanigrahy](https://agentstack.voostack.com/s/hariharapanigrahy)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [hariharapanigrahy](https://github.com/hariharapanigrahy)
- **Source:** https://github.com/hariharapanigrahy/layerkit/tree/main/skills/layerkit-design-integration

## Install

```sh
agentstack add skill-hariharapanigrahy-layerkit-layerkit-design-integration
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# layerkit-design-integration

Decide **how** to integrate after research: flat map vs multi-step flow. Record the design before authoring.

## Decision tree

| Situation | Choose |
|-----------|--------|
| Single endpoint, one payload per event, no branching | **Linear `VendorMap`** |
| OAuth/token then POST, multi-call sequence | **Flow** (`call` + `assign` + `responseInto`) |
| Cart line fan-out / batch chunks | **Flow** (`foreach` + optional `batch_chunks`) |
| Intent-specific routes or predicates | **Flow** (`route` / `if`) |
| Simple intents + multi-step intents for same vendor | **Hybrid** |
| PII before egress | Map or flow + **privacy node** / policy |

Default: **prefer flat map**. Introduce flow only when sequence, branching, or multi-call is required by evidence.

## Protocol

1. Read research memory + domain_spec for the vendor.
2. List required operations (from OpenAPI/curl) and which intents they serve.
3. Choose shape: `linear_map` | `flow` | `hybrid` (map for simple intents, flow for multi-step).
4. Emit a design decision artifact (preferred CLI):

```bash
# compute shape from signals (sequence/branch/foreach/oauth/multi-call)
layerkit design decide --vendor  \
  [--sequence] [--branch] [--foreach] [--oauth] [--multi-call] \
  [--intent purchase]... [--evidence https://docs.example/...]... \
  [--shape linear_map|flow|hybrid] [--out memory|path] [--json]
```

Writes `{projectDir}/memory/runbooks/design-.md` (and optional companion JSON with `--json`).

5. Sketch design (ids only — no invented field names):

```text
shape: linear_map | flow | hybrid
vendor: 
intents: [...]
operations: [operationId → method path]
batch: none | foreach products[] | batch_chunks N
auth_steps: none | token_then_post
privacy: pre-egress policy required? yes/no
evidence: [urls / file://]
open_questions: [...]
```

6. Also keep a short proposals note if useful:

```bash
layerkit memory append --type proposals --title " integration design" --vendor  --body-file ./design.md
```

7. Next:
   - linear → `layerkit-author-map` (+ processors as needed)
   - flow → `layerkit-design-flow` after map/processors for field rows
   - hybrid → author map for simple intents; flow for multi-step
   - always → `layerkit-privacy-review` when PII/consent applies

## Forbidden

- Designing multi-step auth without cited OpenAPI/curl evidence
- Preferring flow when a flat map satisfies the contract
- Inventing endpoints or batch semantics
- Finalizing / promoting from this skill

## Success criteria

- [ ] Explicit shape decision with evidence pointers
- [ ] Open questions listed (none silently assumed)
- [ ] Design runbook at `{projectDir}/memory/runbooks/design-.md`
- [ ] Matches later author-map / design-flow artifacts

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [hariharapanigrahy](https://github.com/hariharapanigrahy)
- **Source:** [hariharapanigrahy/layerkit](https://github.com/hariharapanigrahy/layerkit)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** yes
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-hariharapanigrahy-layerkit-layerkit-design-integration
- Seller: https://agentstack.voostack.com/s/hariharapanigrahy
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
