skills/skillxiv-v0.0.2-claude-opus-4.6/cooper-spatial-intelligence/SKILL.md
Enhance spatial reasoning in multimodal LLMs by integrating depth and segmentation as auxiliary modalities with adaptive reasoning strategies. COOPER achieves 6.91% improvement in spatial understanding—when you need 3D-aware vision-language capabilities.
npx skillsauth add ADu2021/skillXiv cooper-spatial-intelligenceInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
COOPER unifies cooperative perception and reasoning through a two-stage training approach that develops both auxiliary modality generation and adaptive reasoning capabilities. Rather than treating perception and reasoning separately, the model learns to generate depth and segmentation maps while developing interleaved reasoning strategies.
Two-stage training developing auxiliary modality generation and adaptive reasoning:
# Unified spatial reasoning architecture
class CooperativeSpatialModel:
def __init__(self, vllm_backbone):
self.vllm = vllm_backbone
# Auxiliary modality generators
self.depth_generator = DepthDecoder()
self.segmentation_generator = SegmentationDecoder()
# Adaptive reasoning module
self.reasoning_adapter = ReasoningAdapter()
def forward(self, image, question):
"""
Unified perception and reasoning for spatial intelligence.
Generates auxiliary modalities and performs adaptive reasoning.
"""
# Extract visual features
features = self.vllm.encode_image(image)
# Generate auxiliary modalities
depth_map = self.depth_generator(features)
segmentation = self.segmentation_generator(features)
# Integrate auxiliary modalities with text
enhanced_features = self.integrate_modalities(
features, depth_map, segmentation
)
# Adaptive interleaved reasoning
reasoning_path = self.reasoning_adapter.compute_path(
enhanced_features, question
)
# Generate answer with spatial reasoning
answer = self.vllm.decode_with_path(
enhanced_features,
question,
reasoning_path
)
return answer, depth_map, segmentation
def integrate_modalities(self, visual, depth, segmentation):
"""
Combine visual understanding with spatial auxiliary modalities.
Learning to generate these modalities helps internalize spatial knowledge.
"""
# Depth provides scale and distance information
depth_features = self.process_depth(depth)
# Segmentation provides object boundaries and relationships
seg_features = self.process_segmentation(segmentation)
# Multi-stream fusion
combined = torch.cat([visual, depth_features, seg_features], dim=-1)
return combined
def reasoning_adapter(self, features, question):
"""
Adaptive interleaved reasoning strategies.
Routes reasoning based on spatial complexity.
"""
complexity_score = self.estimate_spatial_complexity(question)
if complexity_score > 0.7:
# Multi-step reasoning for complex spatial questions
return self.multi_step_reasoning(features, question)
else:
# Direct reasoning for simple questions
return self.direct_reasoning(features, question)
Two-stage training: first learn auxiliary modality generation, then jointly optimize with adaptive reasoning.
testing
Uses flow maps as look-ahead operators to enable principled reward-guided diffusion by predicting trajectory endpoints at any denoising step. Deploy when applying rewards or preferences to diffusion trajectories with meaningful gradients throughout generation.
testing
Train language models where each expert learns independently on closed datasets, enabling flexible inference with selective data inclusion or exclusion. 41% performance improvement while allowing users to opt out of specific data sources without retraining.
data-ai
Understand how token generation flexibility in diffusion LMs paradoxically constrains reasoning, as models exploit ordering flexibility to avoid uncertain tokens, and apply simplified approaches that preserve parallel decoding benefits. Use when optimizing diffusion-based language models for reasoning tasks.
devops
Enable LLM agents to improve continuously during deployment by constructing structured experience libraries through self-reflection on successes and failures—achieving 23% improvement on reasoning without gradient-based parameter updates or external training.