c-08-ar-coordination-context-resolver
Skill27 starsChanged 6 months agoMITView on GitHub
Resolve the active Agents Remember context for a target repository, including topology, coordination root, memory root, settings, storage, pathRules, worktree contract facts, ledger path, and branch-gated cross-repo allowances.
In this repository59 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github-vscode/copilot-instructions.mdCopilot instructions
- .cursor/rules/agents-remember.mdcCursor rule
- docs/llms.txtllms.txt
- c-00-initialize-memory-repoSkill
- c-01-findings-captureSkill
- c-02-memory-quality-controlSkill
- c-03-repo-bootstrapSkill
- c-04-retrieval-strategy-routerSkill
- c-05-create-or-update-onboarding-filesSkill
- c-08-ar-coordination-context-resolverSkill
- c-09-git-worktree-managerSkill
- c-10-adopt-memory-baselineSkill
- c-11-memory-carryover-from-branchSkill
- c-12-closeoutSkill
- c-13-install-and-onboardSkill
- l-01-agent-lifecyclesSkill
- w-02-light-task-workflowSkill
- c-00-initialize-memory-repoSkill
- c-01-findings-captureSkill
- c-02-memory-quality-controlSkill
- c-03-repo-bootstrapSkill
- c-04-retrieval-strategy-routerSkill
- c-05-create-or-update-onboarding-filesSkill
- c-08-ar-coordination-context-resolverSkill
- c-09-git-worktree-managerSkill
- c-10-adopt-memory-baselineSkill
- c-11-memory-carryover-from-branchSkill
- c-12-closeoutSkill
- c-13-install-and-onboardSkill
- l-01-agent-lifecyclesSkill
- w-02-light-task-workflowSkill
- c-00-initialize-memory-repoSkill
- c-01-findings-captureSkill
- c-02-memory-quality-controlSkill
- c-03-repo-bootstrapSkill
- c-04-retrieval-strategy-routerSkill
- c-05-create-or-update-onboarding-filesSkill
- c-08-ar-coordination-context-resolverSkill
- c-09-git-worktree-managerSkill
- c-10-adopt-memory-baselineSkill
- c-11-memory-carryover-from-branchSkill
- c-12-closeoutSkill
- c-13-install-and-onboardSkill
- l-01-agent-lifecyclesSkill
- w-02-light-task-workflowSkill
- c-00-initialize-memory-repoSkill
- c-01-findings-captureSkill
- c-02-memory-quality-controlSkill
- c-03-repo-bootstrapSkill
- c-04-retrieval-strategy-routerSkill
- c-05-create-or-update-onboarding-filesSkill
- c-09-git-worktree-managerSkill
- c-10-adopt-memory-baselineSkill
- c-11-memory-carryover-from-branchSkill
- c-12-closeoutSkill
- c-13-install-and-onboardSkill
- l-01-agent-lifecyclesSkill
- w-02-light-task-workflowSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 2 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 8
Use this skill whenever an agent needs the active Agents Remember context for a repository.
- Very specific: line 27
When a sibling settings.json exists beside settings.md, the c-08-ar-coordination-context-resolver skill prefers that JSON file for …
- Very specific: line 59
If onboarding_root is supplied, treat it as an explicit override only when it points under a supported memory location: …
- Very specific: line 60
If a worktree contract path is supplied, use the contract's coordination_root before validating memory so task worktrees resolve against …
- Very specific: line 62
If requested_topology is internal, require <code-repository-root>/ar-memory/ to exist and use it as memory_root.
- Very specific: line 64
If no topology override is supplied, check <code-repository-root>/ar-memory/ first, then …
- Distinctive: line 71
Use the Agents Remember MCP resolver tools as the normal installed runtime entry point:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
c-08-ar-coordination-context-resolver AR Coordination Resolver
Use this skill whenever an agent needs the active Agents Remember context for a repository.
In the normal workflow, pass the code repository name. The c-08-ar-coordination-context-resolver skill decides whether that repository is using repo-local internal memory or selected external memory, then returns the resolved code repository root, coordination, memory, settings, task, worktree, ledger, and cross-repo facts that downstream skills must use.
Inputs
code_repository_name: name of the code repository being worked on. This is the normal input.workspace_root: optional workspace root used to findcode_repository_namewhen the caller is not already in the workspace root.requested_topology: optionalinternalorexternaloverride for repair or explicit external-memory operations.coordination_root: optional coordination-root hint. Normal installed resolution uses MCP settings. Package-local resolver calls use explicit input first, then the installed runtime root when invoked from an installed coordinator, then the built-in source-development default../ar-coordination.settings_path: optional override for repair cases.onboarding_root: optional override when a caller has already resolved the repository onboarding root.code_repository_root: optional root directory of the code repository for callers that already have the path. This does not replacecode_repository_nameas the normal agent-facing contract.contract_path: optionalseries-contract.mdpath for worktree-backed task context.task_name: optional task name used to locate an active task root underar-coordination/tasks/<code-repository-name>/, excluding0_archive/. Root series contracts live at<task>/series-contract.md; leaf worktree contracts live at<task>/enclosures/<leaf-id>/series-contract.md. Withouttask_name,task_rootresolves to the repository task namespacear-coordination/tasks/<code-repository-name>/.leaf_id: optional leaf enclosure id when a task has multiple active leaf worktrees.parent_task: optional parent task name used only to disambiguate nested task roots with the same task name.worktree_name: optional worktree name used to compute the worktree group when no contract exists.
When a sibling settings.json exists beside settings.md, the c-08-ar-coordination-context-resolver skill prefers that JSON file for machine-readable storage, pathRules, and crossRepo data. settings.md remains the human and agent instruction file, and fenced settings in settings.md are accepted when JSON is absent.
Outputs
The resolver returns one coordination context for the target repository:
topology:internalorexternalcode_repository_namecode_repository_rootcoordination_rootmemory_rootmemory_modeonboarding_rootsettings_pathpath_settings_path: sibling machine-readable settings path whensettings.jsonexists, otherwise empty in JSON outputtask_root: repository task namespace when no task name is supplied; task-specific folder whentask_nameor a contract is suppliedtemp_rootdocs_rootsystem_rootsources_pathtools_pathcontract_pathworktree_groupcode_worktreememory_worktreeledger_pathstorage: storage mode, default, and storage rule datapathRules: include/exclude eligibility rules by source path and file typecrossRepo: branch-gated allowed adjacent repositories, with included/excluded state and reasons
Resolution Rules
- If
onboarding_rootis supplied, treat it as an explicit override only when it points under a supported memory location:<code-repository-root>/ar-memory/onboardingor<ar-coordination>/memory-repos/ar-<code-repository-name>/onboarding. - If a worktree contract path is supplied, use the contract's
coordination_rootbefore validating memory so task worktrees resolve against their own coordinator. - Resolve the coordinator from explicit
coordination_root, the installed runtime root when invoked from an installed coordinator, or the built-in source-development default../ar-coordination. - If
requested_topologyisinternal, require<code-repository-root>/ar-memory/to exist and use it asmemory_root. - If
requested_topologyisexternal, require<coordination-root>/memory-repos/ar-<code-repository-name>/to exist and use it asmemory_root. - If no topology override is supplied, check
<code-repository-root>/ar-memory/first, then<coordination-root>/memory-repos/ar-<code-repository-name>/. - If neither supported memory location exists, fail with a missing-memory error that lists both checked paths. The agent should ask the developer whether to initialize memory with
c-00-initialize-memory-repo, explain that thec-00-initialize-memory-reposkill creates the scaffold/settings, and then run thec-03-repo-bootstrapskill only if onboarding content should be generated.
Mixed workspaces are resolved per target repository. One external memory repo does not move neighboring local repositories onto the coordination root, and one local repository does not prevent another repository from using external memory.
MCP Tools
Use the Agents Remember MCP resolver tools as the normal installed runtime entry point:
resolve_context(repo_id="<repo-id>", task_name="<task>", parent_task="<parent-task>", leaf_id="<leaf-id>", contract_path="<series-contract.md>", worktree_name="<worktree>", topology="<internal|external>")For startup context that also needs provider status or drift summary, request:
context_packet(repo_id="<repo-id>", include_providers=true, include_drift=false)The MCP server owns the authority settings for repository IDs, workspace roots, coordination root, and provider configuration. Callers that already know a checkout path should still identify the configured repository through the MCP settings rather than inventing a parallel resolver path.
The skill tree is instruction-only; installed and development workflows use the MCP/package route.
Consumers
AGENTS.mdGate 1 uses this skill to resolve coordination root, memory root, task root, temp root, onboarding root, settings, storage,pathRules, worktree facts, ledger path, and cross-repo allowances.c-02-memory-quality-controlconsumes the resolved context and owns memory quality checks, including task-start drift classification and trust reporting.c-03-repo-bootstrap,c-04-retrieval-strategy-router,c-05-create-or-update-onboarding-files, and task workflows use the resolved roots instead of rebuilding topology rules.c-09-git-worktree-managerconsumes the resolved context and owns Git worktree mutation, task contract updates, and closeout sequencing.
Boundaries
- The
c-08-ar-coordination-context-resolverskill owns topology detection, coordination-root and memory-root resolution, JSON-first settings parsing with Markdown fallback, storage semantics,pathRules, task-contract fact loading, and cross-repo allowance parsing. - Other skills may request MCP
resolve_contextorcontext_packet, but they must not keep parallel resolver implementations. - The top
AGENTS.mdtopology explanation remains orientation guidance for humans and agents, not a replacement runtime path. - The
c-08-ar-coordination-context-resolverskill resolves where context lives; it does not create missing scaffolding or Git worktrees. Use thec-00-initialize-memory-reposkill for memory-root creation and thec-09-git-worktree-managerskill for worktree lifecycle mutation.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

