PAI
БесплатноБез исполняемых скриптовНе проверенHow to use the pai MCP server (memory, projects, sessions, code graph, workers, queue, plans, config). USE WHEN a task touches past work or decisions, project…
от mnott★ 74 звезды на GitHubОб этом скилле
Using the pai MCP tools
PAI is federated memory, a project registry, session management and a worker engine behind one MCP server. The same text is served as the resource skill://pai/SKILL.md and the prompt pai-skill.
Search first
Before answering about past work, decisions, people or project status, call memory_search. Run project_detect at session start.
- Memory:
memory_search(find),memory_get(read a hit),memory_outline,memory_wakeup,memory_lessons,memory_taxonomy,memory_tunnels,memory_kg_search,memory_feedback. - Projects:
project_detect(which project is this cwd),project_info,project_list,registry_search,project_health,project_setup,project_todo. - Sessions:
session_list,session_profile_get/session_profile_set. - Issues:
issue_claims,issue_stale. - Code graph:
code_explore,code_search,code_callers,code_summary,graph_related. Use these before grep.
Session commands
- go / continue / weiter: read the TODO.md "## Continue" section and resume there.
- pause session: update the "## Continue" section, stop.
- end session: pause procedure, then rename the session note (never leave it as "New Session").
- cpp: the release order is in the project's instructions file (CLAUDE.md or AGENTS.md).
Delegating code changes
In a delegating session, Edit/Write on code files is denied; you choose the size.
- Small change:
queue_add(one sentence plus files),queue_run, thenqueue_reviewand accept / reject /queue_again. - Larger job: write the plan yourself,
plan_save,plan_run, follow withplan_status; at a needs-decision, clarify withplan_amendandplan_runagain.plan_stopends it. - Multi-view discussion ("brainstorm", "round table"):
brainstorm_start, follow withbrainstorm_status; the result arrives as a message. - Single worker:
worker_run. Never use a subagent instead. - Set deliverable
findingsfor jobs whose result is an answer or report,changefor jobs whose result is a commit. - Where it runs: "locally" -> where local; "on the cloud" -> where cloud; a provider name -> where
; "fast" -> model fast; "immediately / now / first" -> now true. Never pick a local provider by name; PAI resolves it. Each result starts with where it runs: tell the user. - Report in plain words; never ask the user to run commands.
Watching and steering workers
worker_status, worker_ps, worker_queue, worker_replay, worker_say (message a running worker), worker_mode, worker_priority, worker_reroute, worker_pause, worker_resume, worker_kill, worker_merge (bring a finished worker's branch back), worker_gc, workers_freeze / workers_thaw, workers_stop / workers_resume, build_queue, pool_status, battery_status, urgency_set / urgency_clear. A worker that needs a decision uses worker_handoff.
Providers and models: worker_providers, worker_fallback, worker_classes, worker_model, worker_capability, models_list, local_status, worker_toggle, model_runtime.
Per-session models: session_profile_get / session_profile_set answer "switch workers to glm", "what happens if kimi runs out" (fallback list), "use opus for this session by default", per named session, without touching the global config. "Run them one after the other" -> session_profile_set max_parallel 1 (local workers wait for each other; cloud workers are not capped unless max_parallel_scope "all"); "in parallel again" -> max_parallel null. "Two local workers" -> worker_providers cap
Tests, release, operations
tests_audit,tests_keep(ledger entry required before a new test file),tests_prune.release,update_check,daemon_service,router_service,memory_run,audit_export.
Configuration
config_list, config_get, config_set, config_unset. Before hand-editing ~/.pai/config.yaml or ~/.pai/workers.yaml run pai config arm (snapshot, 10 min deadline); after the edit run pai config confirm. Without a passing confirm the daemon restores the old file. config_set and the cockpit editor do both by themselves.
Other prompts and resources
Other skills are prompts: fetch with prompts/get { name }. Reference docs are resources: resources/read { uri } (pai://constitution, pai://skill-system, pai://hook-system, pai://worker-setup and others).
Core rules
Git: no AI signatures, commit format "type: description", run git remote -v before pushing, never commit private data. Mark unverified AI claims with "Unverified". Long Bash waits run in the background; never sleep-loop.
Установить PAI в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл PAI?
How to use the pai MCP server (memory, projects, sessions, code graph, workers, queue, plans, config). USE WHEN a task touches past work or decisions, project status, session handover, delegating code changes to workers, or PAI configuration.
Как установить скилл PAI?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл PAI запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic