add-component
Checklists for adding a new MCP tool, select or op, a new Flyway database migration, or a new Gradle dependency to the Task…
Migrates an already-populated, unscoped Task Orchestrator database in place to the project-scoping convention — creates a project anchor root, re-parents existing work trees under it, and writes rootId back to config.yaml. Use when a user says: adopt project scope, migrate this
Claude Code
$ npx -y skills add jpicklyk/task-orchestrator --skill adopt-project-scope --agent claude-code
Codex
$ npx skills add jpicklyk/task-orchestrator --skill adopt-project-scope -a codex -y
Cursor
$ npx skills add jpicklyk/task-orchestrator --skill adopt-project-scope -a cursor -y
Gemini CLI
$ npx skills add jpicklyk/task-orchestrator --skill adopt-project-scope -a gemini-cli -y
GitHub Copilot
$ npx skills add jpicklyk/task-orchestrator --skill adopt-project-scope -a github-copilot -y
OpenCode
$ npx skills add jpicklyk/task-orchestrator --skill adopt-project-scope -a opencode -y
Windsurf
$ npx skills add jpicklyk/task-orchestrator --skill adopt-project-scope -a windsurf -y
name: adopt-project-scope description: "Migrates an already-populated, unscoped Task Orchestrator database in place to the project-scoping convention — creates a project anchor root, re-parents existing work trees under it, and writes rootId back to config.yaml. Use when a user says: adopt project scope, migrate this database to project scoping, make this DB multi-project, project-scope this workspace, adopt existing database, or set up project scoping for an existing DB." argument-hint: "[project name] [--dry-run]"
Take an existing, unscoped database (many depth-0 roots, no project anchor) and migrate it in place to the project-scoping convention: one `type=project` root that owns the workspace's work trees, with its UUID written back to `.taskorchestrator/config.yaml` under a `project:` block. Global containers (retrospectives, observations) stay at depth 0; test artifacts are flagged for cleanup, never moved or deleted.
This is a **destructive-by-execution** skill: the EXECUTE step re-parents real items. It defaults to a dry run and never mutates anything without an explicit confirmation. It deletes nothing.
For a fresh workspace with no existing unscoped work, use `/task-orchestrator:init` instead; this skill is for databases that already hold unscoped work trees.
Not a director-mode skill: run it outside director mode (`/task-orchestrator:director off`); director-guard denies its file, shell and config steps partway through. Step 0 refuses to start when the session context says director mode is on, because a guard denial between the anchor create and the config write would leave a partial anchor.
Every tool call below is a `to-call` block, `{tool, select|op, args}`, in the shapes of [call-shapes.md](../_generated/call-shapes.md). The `config` tool is orchestration-profile only.
**Non-goals:** cross-DB consolidation (merging items from a second database); merging multiple existing project anchors into one; any server-side enforcement of scope. This skill adopts a single workspace's single database.
---
---
Run these checks in order. Each abort prints a clear, user-facing reason and stops.
Read `<main>/.taskorchestrator/config.yaml`, where `<main>` is the parent of `git rev-parse --path-format=absolute --git-common-dir` (the same file Step 4(b) writes, correct from a linked worktree). If it contains a `project:` block with a non-empty `rootId:`, the workspace is already scoped:
◆ Workspace already adopted — config.yaml already points at project root <rootId>. Nothing to do. Use /work-summary to inspect the existing project tree.
Stop. (If the file is missing entirely, that is fine — a fresh unscoped DB has no config `project:` block. Continue.)
{"tool": "items_read", "select": "list", "args": {"type": "project", "depth": 0}}Drop any result tagged `personal-root`: a personal root is not a project anchor and must never be adopted as one.
1. **Attach to existing** — write the existing anchor's UUID into `config.yaml` (skip anchor creation in EXECUTE; still re-parent MOVE roots under it) and continue. 2. **Abort** — stop and let the user resolve the ambiguity manually.
If the user picks "attach", record the existing anchor UUID as `ANCHOR_ID` and note that EXECUTE step (a) is skipped.
The `config` tool (orchestration profile) pushes the config in EXECUTE step (c). Do not probe it destructively here — just remember to attempt the push there and, if the tool is not served (a knowledge-profile connection) or fails with `data.results[0].error.code` `forbidden` (the credential lacks `write-config`), skip it with a note rather than failing the whole adoption. The local `config.yaml` write (step b) is the source of truth; the server push is a convenience sync.
---
Full depth-0 census:
{"tool": "items_read", "select": "overview", "args": {"excludeTerminal": false, "includeChildren": true, "limit": 200}}If the response carries `page.next`, continue with that `cursor` until every root is listed so none is missed.
Read which types the **server layer** declares, so process items can be told apart from project work. `config` `effective` with no `rootId` returns the server config alone:
{"tool": "config", "op": "effective", "args": {}}If `data.results[0].types` is empty, the server declares no types: an undeclared type is rejected only when the declared set is non-empty, so the `project` anchor create in Step 4 would succeed schema-free and the anchor would carry no schema. Point the user to `/task-orchestrator:configure-server` to mount the process-schema floor now, before the plan is confirmed; continue only if they choose to adopt without it.
Classify **every depth-0 root** into exactly one bucket:
| Bucket | Rule | Action | |--------|------|--------| | **KEEP-GLOBAL** | The root's `type` is declared by the server layer (from the `effective` call above) and is not `container` or `proj
Server-enforced workflow discipline for AI agents. Prompt-based frameworks hope the LLM follows instructions. This one blocks the call if it doesn't.
Checklists for adding a new MCP tool, select or op, a new Flyway database migration, or a new Gradle dependency to the Task…
Compatibility assessment for items with the needs-api-compat-review trait. Evaluates the tool surface (served over both MCP and…
End-to-end workflow for taking MCP work items from backlog to merged PR. Handles git branching, schema-driven planning,…
SQLite migration assessment for items with the needs-migration-review trait. Evaluates schema changes, table recreation patterns,…
Performance impact assessment for items with the needs-perf-review trait. Evaluates hot paths, query patterns, and measurement…
Assessment of plugin skill and hook changes needed after MCP or config changes. Evaluates skill references, hook context,…
Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…
Create a new Architecture Decision Record with sequential numbering and AgentDB registration