lifecyclemodel-automated-builder
Lifecycle Model Automated Builder
Use this skill when the source of truth is a set of existing local process-automated-builder run directories and the next step is to assemble a native lifecyclemodel artifact locally.
Read First
references/workflow.mdreferences/model-contract.mdreferences/source-analysis.md
Guardrails
- The canonical runtime path is
skill -> Node wrapper -> tiangong CLI. - Persistent build outputs must use an explicit
--out-dir; this skill does not choose a default output root. - For repeatable runs, use an explicit output directory such as
/abs/path/artifacts/<case_slug>/.... - The current canonical slices are:
tiangong lifecyclemodel auto-buildtiangong lifecyclemodel validate-buildtiangong lifecyclemodel publish-build
- The supported workflow is CLI-based and local to your build inputs:
- no Python workflow
- no MCP transport
- no remote lifecyclemodel CRUD
- no reference-model discovery against KB / LLM services
- The skill produces native
json_orderedonly. It does not emitjson_tg,rule_verification, or resulting-process artifacts. validate-buildandpublish-buildnow exist as dedicated CLI follow-up commands; do not reintroduce those stages inside the skill.- Only
local_runs[]is executable today. Discovery hints may be recorded as deferred notes, but they are not executed inside this skill.
Workflow
- Prepare a manifest whose core input is
local_runs[]. - Pick an output directory, typically under a path such as
/abs/path/artifacts/<case_slug>/.... - Run
node scripts/run-lifecyclemodel-automated-builder.mjs build --input <manifest> --out-dir <dir>. - During assembly, preserve TianGong native model conventions from
tiangong-lca-next:lifeCycleModelInformation.quantitativeReference.referenceToReferenceProcesstechnology.processes.processInstance[*].referenceToProcesstechnology.processes.processInstance[*].connections.outputExchange- computed
@multiplicationFactor - a valid
referenceToResultingProcessreference insidejson_ordered
- Review the local outputs:
run-plan.jsonresolved-manifest.jsonselection/selection-brief.mddiscovery/reference-model-summary.jsonmodels/**/tidas_bundle/lifecyclemodels/*.jsonmodels/**/summary.jsonmodels/**/connections.jsonmodels/**/process-catalog.jsonreports/lifecyclemodel-auto-build-report.json
- If the workflow later needs validation or publish handoff, call the dedicated CLI follow-up commands instead of rebuilding those paths inside the skill:
node scripts/run-lifecyclemodel-automated-builder.mjs validate --run-dir <dir>node scripts/run-lifecyclemodel-automated-builder.mjs publish --run-dir <dir>
- If someone asks for remote discovery or AI-assisted model selection, add it as a native
tiangong lifecyclemodel ...capability first.
Commands
node lifecyclemodel-automated-builder/scripts/run-lifecyclemodel-automated-builder.mjs build \
--input lifecyclemodel-automated-builder/assets/example-request.json \
--out-dir /abs/path/artifacts/<case_slug>/lifecyclemodel-auto-build \
--dry-run
node lifecyclemodel-automated-builder/scripts/run-lifecyclemodel-automated-builder.mjs build \
--input /abs/path/request.json \
--out-dir /abs/path/artifacts/<case_slug>/lifecyclemodel-auto-build
node lifecyclemodel-automated-builder/scripts/run-lifecyclemodel-automated-builder.mjs build \
--input lifecyclemodel-automated-builder/assets/example-local-runs.json \
--out-dir /abs/path/artifacts/<case_slug>/lifecyclemodel-auto-build
node lifecyclemodel-automated-builder/scripts/run-lifecyclemodel-automated-builder.mjs validate \
--run-dir /abs/path/artifacts/<case_slug>/lifecyclemodel-auto-build
node lifecyclemodel-automated-builder/scripts/run-lifecyclemodel-automated-builder.mjs publish \
--run-dir /abs/path/artifacts/<case_slug>/lifecyclemodel-auto-build
Troubleshooting
- Local CLI override issues: set
TIANGONG_LCA_CLI_DIRor pass--cli-dironly when you intentionally need an unpublished working tree. - Missing
--out-dir: the wrapper requires an explicit output path such as/abs/path/artifacts/<case_slug>/.... - Missing
local_runs[]: the current canonical slice only accepts local process-build runs. - Validation/publish follow-up: use the dedicated CLI subcommands against one existing auto-build run; they work from local build outputs and do not perform remote writes.
- Validation failures on required model fields: inspect
references/model-contract.md. - Topology disagreements: inspect
references/source-analysis.mdfor native lifecycle model conventions. - If you need remote discovery or writes, add that capability to the native CLI instead of extending this skill with a separate runtime.
Bundled Resources
scripts/run-lifecyclemodel-automated-builder.mjs: native Node wrapper that delegates totiangong lifecyclemodel ....assets/example-request.json: minimal current-slice manifest usinglocal_runs[].assets/example-local-runs.json: multi-run local assembly manifest example.references/workflow.md: current CLI-backed workflow and deferred slices.references/source-analysis.md: extracted conventions fromtiangong-lca-next,tidas-sdk, andtidas-tools.references/model-contract.md: nativejson_orderedfields required before validation or publish.
More from tiangong-lca/skills
process-hybrid-search
Execute and troubleshoot Supabase edge function `process_hybrid_search`, which rewrites process descriptions and calls `hybrid_search_processes` with optional filters. Use when validating process query/filter behavior, tuning retrieval prompts, or debugging auth, embedding, and RPC failures.
15flow-hybrid-search
Execute and troubleshoot Supabase edge function `flow_hybrid_search`, which rewrites flow descriptions and calls `hybrid_search_flows` with optional filters. Use when validating flow query/filter behavior, tuning retrieval prompts, or debugging auth, embedding, and RPC failures.
14embedding-ft
Execute and troubleshoot Supabase edge function `embedding_ft` that consumes PGMQ embedding jobs, calls AWS SageMaker embeddings, and writes vectors back to Postgres. Use when validating job payload handling, investigating failed embeddings, tuning ack semantics, or adjusting worker auth/environment.
13process-automated-builder
Execute the supported `process_from_flow` CLI workflow. Use `node scripts/run-process-automated-builder.mjs auto-build|resume-build|publish-build|batch-build` when you need the unified `tiangong process ...` surface from a skill wrapper.
13lifecyclemodel-hybrid-search
Execute and troubleshoot Supabase edge function `lifecyclemodel_hybrid_search`, which rewrites lifecycle model descriptions and calls `hybrid_search_lifecyclemodels` with optional filters. Use when validating lifecycle-model query/filter behavior, tuning retrieval prompts, or debugging auth, embedding, and RPC failures.
13lifecycleinventory-review
Review process-level or lifecyclemodel-level lifecycle inventory outputs from local TianGong build runs, plus frozen remote TianGong process snapshots. Use when auditing process_from_flow batches, remote process rows fetched through the canonical snapshot wrapper, or lifecyclemodel build artifacts through the unified CLI with reproducible review inputs and outputs.
10