---
name: spatial-reasoning
description: Design and refine 3D scenes, spatial interfaces, product explorers, and interactive environments through scale, depth, occlusion, landmarks, and interaction zones. Use when users must understand, inspect, compare, navigate, or manipulate spatial relationships.
title: spatial-reasoning
canonical_url: https://skilld.dev/gh/nikunjkothiya/gpt-6-astra-skills/spatial-reasoning
last_updated: 2026-09-30T03:35:07.000Z
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> If the user asked to install this Skill, run `npx skilld install nikunjkothiya/gpt-6-astra-skills/spatial-reasoning`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/spatial-reasoning`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/nikunjkothiya/gpt-6-astra-skills/spatial-reasoning) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/spatial-reasoning`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/spatial-reasoning --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/spatial-reasoning --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Spatial Reasoning

Use space to express relationships. The presence of a spatial representation does not require all information or actions to live inside it.

## Decide what space contributes

Identify whether users inspect form, compare arrangement, navigate, configure, discover, learn construction, or play. Compare the information gained with a flat diagram, still image, sequence, or aligned collection. A fixed viewpoint and fixed sequence may not need free spatial manipulation.

An explicitly immersive brief can justify atmosphere and exploration. It still needs an understandable entry, meaningful landmarks, legible feedback, and a way to return. Preserve the smallest complete task when optional spatial presentation is unavailable.

## Establish a coherent world

Choose a scale, units or declared relative scale, origin, up and forward directions, and orientation convention. Define which relationships are measured, comparative, or stylized. If object size encodes rank or quantity, keep that encoding consistent and explicit; decorative variation must not imply false data.

Treat known dimensions and observed relationships as constraints; label inferred dimensions as assumptions where they affect interpretation. A perspective reference cannot establish every hidden distance. Preserve relational accuracy without presenting an attractive reconstruction as a measured model.

Place the primary subject first, then related subjects, context, and environment. Define foreground, middle ground, and background by their communicative roles rather than filling every depth layer. Empty space may provide inspection clearance, motion room, or separation.

Use shared axes, contact planes, repeated spacing, and landmarks to make orientation recoverable. Avoid accidental near-tangencies that merge independent objects or tiny gaps that look like rendering errors. A floor or support should establish believable contact where the scene implies gravity.

Establish one dominant spatial relationship: enclosure, alignment, suspension, radial arrangement, stacking, or a deliberate alternative. Let secondary placement reinforce or meaningfully interrupt it. Concentrate density around the important relationship and use quieter intervals to make its shape legible; uniformly distributing objects often makes a rich scene feel arbitrary.

Use [object structure](../object-structure/SKILL.md) for articulated hierarchies and [geometric reasoning](../geometric-reasoning/SKILL.md) for the form itself.

## Compose projected and world relationships together

World-space separation does not guarantee visible separation. Across permitted viewpoints, objects can overlap, reverse apparent order, or collapse along the viewing axis. Inspect the primary relationships in projection before adding environmental detail.

Reserve usable regions for controls, navigation, captions, and detail. An available full scene area is not the same as an unobstructed subject area. Coordinate [camera composition](../camera-composition/SKILL.md) with actual overlays, aspect ratio, and selected state.

Use occlusion to communicate depth where appropriate, but do not hide information required for a comparison or action. If transparency is needed to reveal internals, assess whether a cutaway, separated view, or selected-part isolation communicates the relationship more clearly.

Keep the depth cues mutually intelligible. Size reduction, overlap, perspective, contrast, and parallax should support the intended ordering unless a deliberate illusion is the subject. For metric comparison, align relevant depths or provide an explicit scale reference so a nearer object does not appear to encode a larger value. Do not displace a selected object merely to make it visible when that displacement would imply a false attachment or location; use a clearly connected detail view instead.

## Integrate labels and controls

Anchor a label to a semantic feature such as a joint, selected part, or attachment point. Convert its location through consistent frames after the relevant object and view updates. Projection alone does not establish visibility: consider behind-view positions, clipping, obstruction, label collisions, and distance.

Prioritize selected and task-critical labels. Suppress or disclose secondary labels before shrinking all text. If a label becomes unstable during travel, preserve a stable detail region or simplify its tracking. Do not move every hidden label to the border without a meaningful directional convention.

Use distinct entry and exit thresholds for visibility or placement decisions so tiny viewpoint changes do not cause repeated swapping. Keep leader endpoints attached to the feature when label placement changes. Preserve the selected annotation in a stable detail region when its in-scene position becomes unusable.

Keep identity and state consistent across spatial and nonspatial presentations. Selecting a part through either path should reveal the same part, options, and status. The user must not need to understand the presentation mechanism to complete the task.

## Define interaction zones and ownership

Specify what region supports selection, drag, orbit, travel, or ordinary content navigation. Decorative areas should not consume unrelated input. Distinguish selection from a drag or navigation gesture and provide cancellation.

Transfer control between scripted viewpoint changes and direct manipulation deliberately. Keep orientation cues and reset or return available. If free movement creates dead ends, unreadable views, or misleading relationships, bound it around meaningful exploration instead of exposing unrestricted travel by default.

For spatial play, make the playable action, relevant obstacles, outcome, and restart understandable. Visual richness should support the reading of the playfield rather than conceal it.

## Adapt and diagnose

When space contracts, preserve the primary subject and its required relations. Reduce secondary objects, relocate controls, change viewpoint, or switch to a focused detail composition before uniformly shrinking the world. Use [responsive composition](../responsive-composition/SKILL.md) for these changes and [visual performance](../visual-performance/SKILL.md) for capability constraints.

If the scene feels confusing, identify whether scale, occlusion, viewpoint, labels, or competing interaction zones caused the loss of understanding. Repair the responsible relationship. More depth effects will not explain an unclear selection, and more labels will not fix a viewpoint that hides the important connection.

Carry forward the world convention, known versus inferred scale, dominant relationship, required visible connections, and permitted navigation range. State any view-dependent exception that the camera or interaction work must preserve; keep this handoff in the existing task context.
