hr-assembly
Adapt approved candidates into staged Agent Hub packages for test and promote
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Adapt approved candidates into staged Agent Hub packages for test and promote
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Safely edit an existing Agent Hub asset with asset-type-specific checks and follow-up verification.
Create or revise the core assets for an Agent Hub agent, including soul, bundle, and optional profile.
Draft or update a portable Agent Hub skill with clean frontmatter and a practical workflow.
Use when implementation is complete on a normal feature branch and you need to verify, clean up commits, rebase, and either merge locally or create a PR without using a worktree-heavy workflow.
Use after implementing a feature, fixing a bug, or reaching a wave checkpoint when you need to actively test the behavior by running the app, exercising the flow, and confirming the change actually works.
Use when you have a written implementation plan to execute in a separate session with review checkpoints
| name | hr-assembly |
| description | Adapt approved candidates into staged Agent Hub packages for test and promote |
| audience | HR adapter subagent |
| license | MIT |
| compatibility | opencode >= 0.1 |
| metadata | {"domain":"agent-assembly","version":"1.0"} |
Generate a staged package under $HR_HOME/staging/<package-id>/ without mutating imported home assets.
$HR_HOME/staging/<package-id>/
handoff.json
promotion-memo.md
worker-card.json
agenthub-home/
bundles/
profiles/
souls/ or skills/
mcp/
mcp-servers/
subagent mode unless the user explicitly wants otherwise.agenthub-home/skills/<skill-name>/ unless the package is explicitly documented as depending on a separately imported prerequisite package.agenthub-home/mcp/<name>.json registration file and the referenced agenthub-home/mcp-servers/ implementation files. If the command relies on mcp-servers/node_modules/..., also stage mcp-servers/package.json so dependencies can be installed on import/promote.metadata. Keys such as optional_skills or runtime_conditional_skills are notes only and are not valid substitutes for staged skills or real platform behavior.plan, build, or explore unless the human explicitly requests replacement.defaultAgent, it must use the staged bundle's agent.name value, not the bundle filename. This matters when bundle filenames are namespaced but agent.name is shorter.general, explore, plan, and build. If not, the staged profile must set "nativeAgentPolicy": "team-only". This suppresses host native agent merges and emits disable: true overrides for default opencode agents that are not supplied by the staged team itself.nativeAgentPolicy is team-only and the staged bundle set does not already provide explore, automatically include the built-in hidden explore subagent so the team retains investigation coverage without another user prompt.agent.mode: "primary" agent that is not hidden. If all sourced candidates are subagent-style, either add/create a primary host agent or keep native agents visible. Never stage an all-subagent team as team-only.promotion_preferences.set_default_profile, preserve it in handoff.json. Do not proactively ask the operator about default-profile preferences during assembly.xhigh, high, or thinking, store it canonically as agent.model: "provider/model" plus agent.variant: "...". For backward compatibility, combined strings like "provider/model xhigh" may still be accepted on read, but staged output should prefer the split form.agenthub promote <package-id>
agenthub hub-import --source <package_root>/agenthub-home
agenthub hr <profile-name>
agenthub start runs can use it.schema_versionpromotion_idworker_idasset_kindagent_classdeployment_roletarget_profileproposed_profilepackage_layout_versionartifactsgenerated_atpromotion_preferencesoperator_instructionshost_requirements when MCP tools or other host-side dependencies existoperator_instructions must include:
test_current_workspaceuse_in_another_workspacepromoteadvanced_importIf MCP tools are referenced, artifacts must also include:
mcp_configsmcp_serversIf MCP tools are referenced, host_requirements must explicitly state whether MCP servers are bundled and what runtime/environment dependencies remain on the host.
When staging a pure-soul agent, the adapted soul must explicitly list:
This prevents vague souls that only describe personality.
Before you present a staged package as ready, run all of the following from the workspace root:
python3 $HR_HOME/bin/vendor_stage_skills.py $HR_HOME/staging/<package-id>
python3 $HR_HOME/bin/vendor_stage_mcps.py $HR_HOME/staging/<package-id>
python3 $HR_HOME/bin/validate_staged_package.py $HR_HOME/staging/<package-id>
If validation fails, the package is not ready.