anbeime/skill / skills/img2threejs/img2threejs
img2threejs
VerifiedTurn an object or character reference image into a quality-gated, animation-ready procedural Three.js model built in code. Use for image-to-3D reconstruction, detail-accurate object rebuilds, stylized/likeness-maximized human characters, sculpt specs, and staged code generation.
forge/_shared/status_banner.py
View on GitHubfrom __future__ import annotations
import json
import sys
from pathlib import Path
from typing import Any, TextIO
def _pipeline(spec: dict[str, Any] | None) -> tuple[str, int, str, str]:
if not isinstance(spec, dict):
return "unknown", 0, "spec not loaded", "forge/next.py <spec>"
pipeline = spec.get("sculptPipeline")
if not isinstance(pipeline, dict):
return "unknown", 0, "sculptPipeline is missing", "forge/next.py <spec>"
current = str(pipeline.get("currentPass") or "unknown")
completed = pipeline.get("completedPasses", [])
count = len(completed) if isinstance(completed, list) else 0
reason = str(pipeline.get("blockedReason") or "none")
next_command = "none (pipeline complete)" if current == "complete" else "forge/next.py <spec>"
return current, count, reason, next_command
def emit_status(spec: dict[str, Any] | None = None, *, next_command: str | None = None, stream: TextIO = sys.stdout) -> None:
current, count, reason, default_next = _pipeline(spec)
print(f"STATUS pass={current} completed={count} blocked={reason} next={next_command or default_next}", file=stream)
def load_optional_spec(path: str | Path | None) -> dict[str, Any] | None:
if not path:
return None
try:
payload = json.loads(Path(path).expanduser().read_text(encoding="utf-8"))
except (OSError, json.JSONDecodeError):
return None
return payload if isinstance(payload, dict) else None
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| receiving-code-reviewobra/superpowersUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| requesting-code-reviewobra/superpowersUse when completing tasks, implementing major features, or before merging to verify work meets requirements | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| using-git-worktreesobra/superpowersUse when starting feature work that needs isolation from current workspace or before executing implementation plans - ensures an isolated workspace exists via native tools or git worktree fallback | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| verification-before-completionobra/superpowersUse when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |