Auto-import roles from agent_roles_list in skills registry #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
The Hero skills registry (
~/hero/code/hero_skills/skills/roles/agent_roles_list.md) defines 12 canonical agent roles with their skill assignments. These are never automatically seeded into thehero_teamdatabase — a user has to create each role manually through the admin UI.The current
skill_synconly operates on roles that already exist in the OSIS store. Nothing reads the role definitions from the registry and creates them.Proposed solution
Create
skills/roles/roles.toml— machine-readable version of the role definitions (name, default_model, skills list per role), alongside the existingagent_roles_list.md.Add
role_import() -> ImportResultto the OSchema — reads that TOML, upserts each role (create if missing, update skills if present), returns created/updated counts.Wire an "Import from registry" button into the admin Roles tab that calls
role_importand refreshes the list.Expected behaviour
After clicking Import from registry, the 12 canonical roles (
mos_expert,hero_core_architect,hero_backend_engineer, etc.) appear in the Roles tab pre-populated with their skill whitelists, ready to sync and write config.Roles to import
mos_expertmycelium_sdkhero_core_architecthero_router,hero_context,hero_sockets,hero_macro_openrpc,hero_proxy_admin_api,herolib_openrpc_authorizehero_backend_engineerhero_code_sdk,hero_db,hero_log,hero_libs,hero_tests_create,herolib_base,herolib_import,herolib_git,herolib_os,herolib_texthero_backend_reviewerhero_tests_run,hero_tests_fix_errors,rhai_bindings_checkhero_ui_engineerhero_browser,hero_web,hero_website,web_embedhero_security_engineerhero_claim_format,hero_context,herolib_openrpc_authorize,hero_proxy_admin_apihero_devops_engineerlab,lab_lib,rust_hero_repo_create,rust_versions,rust_shutdownsignals,herolib_basehero_git_forge_engineerforge_api,forge_issue_mgmt,hero_branching,code_sync,hs_forgehero_scripting_engineerhs_herodo,hs_proc,rhai_bindings_reference,rhai_bindings_troubleshooting,rhai_bindings_checkhero_data_engineeroschema,oschema_code_generation,naming_convention,hero_dbhero_ai_engineerherolib_ai,herolib_ai_agenthero_ops_integratorlab,hero_libs,code_sync