Imported from yaaif/claude-plugin (
AGENTS.md). Install upstream withnpx skills add yaaif/claude-plugin. Copyright stays with the author.
YAAIF Platform (Claude Code plugin)
When the user asks to work with YAAIF (skills, MCP tools/deployments, ambient workflows):
- Ensure session first: prefer
yaaif_doctororyaaif_ensure_session(login_if_needed: true, optionalprofile_id/tenant). Useyaaif_platform_usefor hosted/local-hybrid/local. Set tenant by name/slug/uuid viayaaif_set_tenant. Confirm withyaaif_whoami. - Prefer the bundled
yaaif_*MCP bridge tools for platform mutations. Do not invent REST paths or tool catalog names. The bridge runs with--client claudeand stores state under~/.yaaif/claude. - This plugin works without the yaaif-platform monorepo — write packs in the user workspace and load via bridge tools.
- For multi-capability use cases (chat + ambient + desktop, or unclear split), start with
yaaif-plan-usecase: write a plan, wait for approval, then create a Scenario (yaaif_agent_spec_create) and execute. Do not jump straight to a single create skill. To create or maintain a Scenario (Agent Spec) — including Admin UI Open in Claude Code with aspec_id— use/yaaif-platform:yaaif-scenarioandyaaif_agent_spec_*. - Install order for packs: persist the Scenario first → MCP deploy/register (preflight
yaaif_deployment_settings_status; compose or kubernetes_gitops) → scoped API key + bind (yaaif_api_key_*when MCP calls platform APIs) → agents → approval strategy (if HITL) → ambient agent/workflow → chat/desktop skills →yaaif_skill_map_agents_merge→ desktop worker mappings → test-trigger /yaaif_plan_verify. Passspec_id+slot_keyon creates so objects bind to the scenario. - Skill frontmatter
tools/allowed-toolsmust use real registered MCP tool names only. - Chat→ambient skills must include
list_ambient_workflowsandtrigger_ambient_workflow. - Prefer
yaaif_skill_map_agents_mergeover replace. Useyaaif_plan_dry_runbefore large executes. - Never use S2S secrets, desktop connection keys, or AI-gateway keys for this plugin. For MCP → platform APIs use tenant API keys (
yaaif_api_key_create/ bind) — not S2S. - Do not author skill-pack
credentials.yaml. Bind SAP/API secrets on the MCP server credential profile (field_map + arg_injection); skills only store a profile name ref. Ambient calls use the server default profile.
Admin UI handoffs
YAAIF Admin UI Open in Claude Code launches claude://code/new?q=… (Claude Desktop app) with context such as spec_id, skill_id, agent_id, or workflow_id. When that context is present:
- Stay in Claude Code. Do not open Admin UI or browser URLs for the same object.
- Invoke the matching bundled skill (
/yaaif-platform:yaaif-scenario,/yaaif-platform:yaaif-create-skill,/yaaif-platform:yaaif-create-ambient, or agent APIs) and maintain the selected catalog object — do not create duplicates.
Admin UI omits repo / cwd because it cannot know each developer's local clone path. Run claude once in your project directory if you want future repo= handoffs from other tools.
