Skip to content

gaoguobin/codex-eide-rebuild / skills/eide-rebuild

eide-rebuild

Verified

EIDE rebuild and compile Agent Skill for Embedded IDE for VS Code workspaces. Runs a Python unify_builder runner and returns compact or full JSON build results.

scripts/eide_rebuild/eide_model.py

View on GitHub
from __future__ import annotations

from dataclasses import dataclass
from pathlib import Path
from typing import Any


@dataclass
class EideModel:
    project_name: str
    project_uid: str
    target_names: list[str]
    payload: dict[str, Any]


def require_yaml_module() -> Any:
    try:
        import yaml as yaml_module
    except ModuleNotFoundError as error:
        raise RuntimeError("PyYAML is required. Run `python -m pip install --user PyYAML`.") from error
    return yaml_module


def load_eide_model(eide_yml_path: Path) -> EideModel:
    yaml_module = require_yaml_module()
    with eide_yml_path.open("r", encoding="utf-8") as stream:
        payload = yaml_module.safe_load(stream) or {}
    targets = list((payload.get("targets") or {}).keys())
    misc_info = payload.get("miscInfo") or {}
    project_uid = str(misc_info.get("uid") or "") if isinstance(misc_info, dict) else ""
    return EideModel(
        project_name=str(payload.get("name", "")),
        project_uid=project_uid,
        target_names=targets,
        payload=payload,
    )
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall