Xpersona
L

latent-space-engineering

CLAWHUB · Unverified

Shapes agent behavior via instruction framing and style transfer Skill: latent-space-engineering Owner: athola Summary: Shapes agent behavior via instruction framing and style transfer Tags: latest:1.9.19 Version history: v1.9.19 | 2026-08-26T13:12:52.116Z | user Release v1.9.19 v1.9.17 | 2026-07-30T05:34:24.258Z | user Release v1.9.17 v1.9.16 | 2026-07-14T19:51:08.110Z | user Release v1.9.16 v1.9.14 | 2026-06-30T18:00:10.157Z | user Release v1.9.14 v1.9.13 | 2026-06-27T16:18:54.2

62
Rank
84
Safety
1.5k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.5K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17emme0e2m3cpf7k2jvp3a84984b8z9:nm-imbue-latent-space-engineering
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-athola-nm-imbue-latent-space-engineering/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

103,159 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: latent-space-engineering
description: Shapes agent behavior via instruction framing and style transfer
version: 1.9.8
triggers:
  - prompt-engineering
  - agent-behavior
  - instruction-framing
  - style-transfer
  - review-optimization
  - composing dispatch prompts or writing skill instructions for parallel review agents
metadata: {"openclaw": {"homepage": "https://github.com/athola/claude-night-market/tree/master/plugins/imbue", "emoji": "\ud83e\udd9e"}}
source: claude-night-market
source_plugin: imbue
---

> **Night Market Skill** — ported from [claude-night-market/imbue](https://github.com/athola/claude-night-market/tree/master/plugins/imbue). For the full experience with agents, hooks, and commands, install the Claude Code plugin.


# Latent Space Engineering

Shape agent behavior by framing instructions for
optimal performance. Distinct from context engineering
(packing the right information), this skill addresses
HOW instructions are framed to put agents in productive
mental states.

## When To Use

- Composing agent dispatch prompts
- Writing skill instructions that guide behavior
- Dispatching 3+ parallel review agents
- Generating code or documentation that must match
  an existing style

## When NOT To Use

- Packing factual context (use context-optimization)
- Simple single-shot tasks with no behavioral nuance
- Tasks where instruction tone is irrelevant

## Core Techniques

### 1. Emotional Framing

Replace threat-based prompting with calm, confident
instructions. Fear-based prompts cause rushing and
corner-cutting.

**Load module**: `modules/emotional-framing.md`

### 2. Style Gene Transfer

Inject exemplar code or prose into context before
requesting output. Agents reproduce stylistic
attributes from pre-loaded samples.

**Load module**: `modules/style-gene-transfer.md`

### 3. Competitive Review

Frame multi-agent review dispatch with competitive
incentives to increase rigor and thoroughness.

**Load module**: `modules/competitive-review.md`

## Quick Reference

| Technique | When | Module |
|-----------|------|--------|
| Emotional framing | Any agent prompt | emotional-framing |
| Style gene transfer | Code/doc generation | style-gene-transfer |
| Competitive review | 3+ parallel reviewers | competitive-review |

_meta.json

{
  "ownerId": "kn7d107jg9jv602h9ytsegydq184a42s",
  "slug": "nm-imbue-latent-space-engineering",
  "version": "1.9.19",
  "publishedAt": 1787749972116
}

modules/competitive-review.md

---
name: competitive-review
description: Frame multi-agent review dispatch with competitive
  incentives for increased rigor. Use when dispatching 3+ parallel
  review agents.
parent_skill: imbue:latent-space-engineering
category: methodology
estimated_tokens: 200
---

# Competitive Review Framing

## Principle

When multiple agents review the same artifact, framing the dispatch
with competitive incentives increases thoroughness and evidence
quality.

## For 3+ Agents (Competitive)

Add this to each agent's dispatch prompt:

~~~
You are one of N independent reviewers analyzing this code. Each
reviewer's findings will be compared. The most thorough and
well-evidenced findings will be prioritized for action. Focus on
depth over breadth.
~~~

## For 2 Agents (Collaborative)

Use collaborative framing instead:

~~~
You and one other reviewer will cover different angles. Your findings
will be integrated into a single report. Focus on your assigned scope.
~~~

Competitive framing adds overhead for fewer than 3 agents and can
cause redundant coverage.

## Avoiding Perverse Incentives

Thoroughness means evidence-backed and prioritized by severity, not
volume. To prevent inflated issue counts:

- Require evidence citations for each finding
- Weight findings by severity, not count
- Discard findings that lack specific code references

## Where To Apply

- `pensive` review agents (code-reviewer, etc.)
- `pr-review-toolkit` multi-agent reviews
- `attune:war-room` expert panels
- Any parallel dispatch of 3+ review subagents

## Anti-Pattern

Do NOT use competitive framing for:

- Implementation agents (cooperation > competition)
- Planning agents (synthesis > competition)
- Single-agent dispatch (no comparison possible)

modules/emotional-framing.md

---
name: emotional-framing
description: Guidelines for instruction tone in skills and agent prompts.
  Replace threat language with confident framing for better agent
  performance.
parent_skill: imbue:latent-space-engineering
category: methodology
estimated_tokens: 250
---

# Emotional Framing

## Principle

Calm, confident instructions produce better results than threats or
fear-based prompting. Agents under stress (threat-heavy prompts) rush,
cut corners, and produce lower-quality output.

## Anti-Patterns (Replace These)

| Threat Pattern | Problem |
|----------------|---------|
| "You MUST do X or the system will fail" | Creates urgency that bypasses careful reasoning |
| "CRITICAL: failure to comply will..." | Frames task as punishment avoidance |
| "WARNING: do NOT deviate from..." | Implies deviation is the default |
| "NEVER do X under ANY circumstances" | Absolute prohibitions invite edge-case failures |
| "This is your LAST CHANCE to..." | Artificial scarcity degrades quality |

## Preferred Patterns (Use These)

| Confident Pattern | Why It Works |
|-------------------|-------------|
| "You've got this. Take your time with X." | Encourages careful reasoning |
| "Focus on getting X right. The details matter here." | Directs attention without threat |
| "This is important work. Here's what good looks like..." | Sets positive exemplar |
| "Take a careful look at X before proceeding." | Promotes deliberation |
| "Your goal is to produce Y. Here's the approach..." | Outcome-focused, not fear-focused |

## Checklist for Skill Authors

1. Read your prompt aloud. Does it sound threatening?
2. Count urgency markers (MUST, NEVER, CRITICAL, WARNING). Are they
   justified by genuine safety constraints?
3. Replace threat language with confidence language.
4. Keep urgency markers for genuine safety constraints only
   (e.g., "NEVER commit secrets to git" is valid).

## When Urgency IS Appropriate

Some constraints are genuinely critical:

- Security boundaries (secret handling, auth)
- Data loss prevention (destructive operations)
- Constitutional rules (human approval requirements)

For these, urgency markers are appropriate. The test: would violating
this instruction cause real harm? If yes, keep the strong language.
If no, soften it.

modules/style-gene-transfer.md

---
name: style-gene-transfer
description: Pattern for injecting exemplar code or prose into context
  before requesting output to transfer stylistic attributes.
parent_skill: imbue:latent-space-engineering
category: methodology
estimated_tokens: 200
---

# Style Gene Transfer

## Principle

Agents reproduce stylistic attributes from pre-loaded samples. By
injecting a representative exemplar before requesting output, you
transfer naming conventions, comment style, error handling patterns,
and prose voice.

## Template

~~~
Review this prior work for style and conventions:
---
[exemplar snippet, 50-200 lines]
---
Now apply the same style to your output for: [task]
~~~

## When To Use

- Generating code that must match codebase conventions
- Writing documentation in an established voice
- Creating tests that follow existing test patterns
- Producing configuration that matches project style

## When NOT To Use

- Greenfield projects with no style precedent
- Exemplar exceeds 200 lines (diminishing returns, wasted tokens)
- Task is purely algorithmic (style is irrelevant)
- Output format is rigidly specified (template-driven)

## Size Guidelines

| Exemplar Size | Effectiveness | Token Cost |
|---------------|---------------|------------|
| 20-50 lines | Basic style transfer | Low |
| 50-100 lines | Good pattern coverage | Medium |
| 100-200 lines | Excellent fidelity | High |
| 200+ lines | Diminishing returns | Wasteful |

## Selection Criteria

Choose exemplar code that:

1. Is from the same codebase and language
2. Represents the BEST style (not legacy code)
3. Contains the patterns you want reproduced
4. Is recent (reflects current conventions)

Sponsored

Ads related to latent-space-engineering and adjacent AI workflows.