agentleFS
Foxfire1stFoxfire1st/agents-remember/skills/c-13-install-and-onboard/SKILL.md

c-13-install-and-onboard

Skill27 starsChanged 6 months agoMITView on GitHub

After the harness starter package and MCP server are wired and the harness has restarted, run/verify runtime_install, set up the memory repo, bootstrap onboarding when scaffolding new, and configure providers to index the code and memory.

The file

Show its rules and text

We split this skill into the rules it gives an agent

23 rules. About 0 are common, 13 are distinctive, and 10 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈13

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 10

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill after these prerequisites are in place:

    line 27
  2. Very specific:

    If any prerequisite is missing, do not improvise a harness installer.

    line 44
  3. Distinctive:

    Run this sequence in order:

    line 50
  4. Distinctive:

    Before runtime or memory work, report a short pass/fail checklist.

    line 71
  5. Very specific:

    Runtime state: Check whether the coordinator scaffold already exists under coordinationRoot (AGENTS.md, skills/, tasks/, memory-repos/, …

    line 89
  6. Distinctive:

    Topology consistency: If MCP settings point at an external coordination root, memory setup must remain consistent with that topology.

    line 97
  7. Very specific:

    Do not check for legacy hook prerequisites such as jq.

    line 106
  8. Very specific:

    Use runtime_install(dry_run=true) only when the developer asks for a preview or when local workflow policy requires one.

    line 118
  9. Distinctive:

    After it runs, verify the coordinator root exists and contains the expected package-owned runtime files.

    line 122
  10. Very specific:

    Do not run skills_install() as part of first-run setup.

    line 127
  11. Distinctive:

    Verify the installed instructions teach one public spawn transaction and its two disjoint caller kinds:

    line 184
  12. Distinctive:

    If the developer wants to skip the interview, confirm the seeded defaults apply and continue.

    line 197
  13. Distinctive:

    Run this stage only when the developer explicitly requests a repository certification or full quality operation.

    line 208
  14. Very specific:

    Read the repository's documented build, lint/type/format/structural checks, ordinary suite, suite-dependent quality, integration/E2E …

    line 213
  15. Very specific:

    If repositories.<repo-id>.certificationProfile is absent, select and record one explicit repository-relative path consistent with that …

    line 217
  16. Distinctive:

    Run the smallest focused repository verification that proves its declared adapter and decoder implement the exact profile execution and …

    line 228
  17. Distinctive:

    If the authority settings changed, tell the developer that the MCP/harness must restart before the new boot-time repository authority is …

    line 231
  18. Distinctive:

    Do not assume the developer wants a fresh memory repo.

    line 246
  19. Distinctive:

    Run this stage only when Stage 4 scaffolded a new memory repo.

    line 265
  20. Distinctive:

    If providers are enabled, make them index the configured code and memory:

    line 275
  21. Very specific:

    Use provider_watchers(action="start", dry_run=true) only when a preview is requested or workflow policy requires one.

    line 284
  22. Very specific:

    Verify with provider_status or context_packet(repo_id=..., include_providers=true) that providers are ready, watchers are up, and the …

    line 290
  23. Very specific:

    Use provider_diagnostics when a provider reports stopped or degraded.

    line 293

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

c-13-install-and-onboard Install And Onboard

Take over setup after the developer has copied the harness starter package, wired the Agents Remember MCP server, and restarted the harness once.

The harness package owns harness-native files: skills, hooks, rules, instructions, MCP registration templates, and settings templates. This skill does not install or repair those files during first-run setup. If they are missing, stop and tell the developer to copy the correct starter package from this repo, render the copied package with its render-starter script or by hand, restart the harness, and invoke this skill again.

The MCP layer still exposes deterministic maintenance tools such as runtime_install() and skills_install(). In the normal first-run path, skills_install() is not used because the starter package already placed the skills where the harness can discover them. runtime_install() remains the first runtime action this skill performs because it creates or refreshes the coordinator scaffold under ar-coordination/.

When To Use

Use this skill after these prerequisites are in place:

  1. The developer copied the harness-native starter package for the active harness into the workspace and ran that package's render-starter script with an explicit --repo list, or manually replaced every path, repository, and hook-command placeholder. The renderer infers the workspace root from the copied harness folder.
  2. The Agents Remember MCP server is registered with the harness, typically with a command like:

    uvx agents-remember-mcp@latest --config <absolute path to agents-remember-settings.json>
  3. The harness was restarted once so it can load the MCP server, native skills, hooks, rules, and instruction files from the copied package.

If any prerequisite is missing, do not improvise a harness installer. Point the developer at the appropriate docs/install/<harness>.md page, have them copy the starter package, and resume after the restart.

What This Skill Owns

Run this sequence in order:

  1. Preflight: verify the copied package and MCP setup are usable enough to continue.
  2. Runtime scaffold: run or verify runtime_install().
  3. Agentic settings: walk the developer through the orchestration defaults in the seeded global settings file.
  4. Optional repository certification: only on an explicit developer request, author, validate, and register one repository-owned Gate 1-4 profile for the requested repository.
  5. Memory repo: ask scaffold-new vs use-existing, unless memory already exists.
  6. Bootstrap: when a new memory repo was scaffolded, hand off to c-03-repo-bootstrap.
  7. Providers: when providers are enabled, start/refresh indexing and verify readiness.

This skill orchestrates and delegates. It does not reimplement c-00-initialize-memory-repo, c-03-repo-bootstrap, c-10-adopt-memory-baseline, context resolution, or provider lifecycle tools.

Stage 0 - Preflight

Before runtime or memory work, report a short pass/fail checklist. For each failed check, give the exact fix and stop when the developer must act.

Check, in order:

  1. MCP reachable. Confirm the MCP responds (ping, server_info, or the equivalent available tool). If not, the harness did not load the server; tell the developer to verify the MCP registration path and restart the harness.
  2. Harness package present. Confirm this skill is running from a harness-discoverable skill root and that the active harness package includes its native settings/instruction files. Do not create missing harness files here; ask the developer to recopy the package and restart.
  3. Settings sane. Confirm server_info reports the expected coordinationRoot, workspaceRoot, allowed repositories, and providers. Surface the resolved absolute paths because wrong paths are the common cause of resolver failures. Also report whether the global agentic settings file (<coordinationRoot>/system/settings.json) exists yet; Stage 1 seeds it when missing and Stage 2 configures it.
  4. Runtime state. Check whether the coordinator scaffold already exists under coordinationRoot (AGENTS.md, skills/, tasks/, memory-repos/, system/ as applicable). If it is missing or stale, Stage 1 will run runtime_install().
  5. Provider prerequisites, only when providers are enabled. Providers run in Docker. If provider diagnostics report Docker/Ollama/image problems, explain the gap. A developer may explicitly defer providers and continue with core memory setup.
  6. Topology consistency. If MCP settings point at an external coordination root, memory setup must remain consistent with that topology. Do not let memory initialization silently choose internal memory when settings clearly describe an external-memory layout.
  7. Certification authority, when explicitly requested. For a developer-requested certification operation, report the exact repositories.<repo-id>.certificationProfile value and whether that candidate file exists inside the repository. Routine code closeout/integration is a Git transaction and does not require discovering or running a certification profile.

Do not check for legacy hook prerequisites such as jq. Hook and instruction files are part of the copied, rendered harness package; this skill no longer installs them.

Stage 1 - Runtime Scaffold

Run or verify:

runtime_install()

Use runtime_install(dry_run=true) only when the developer asks for a preview or when local workflow policy requires one. Otherwise apply the runtime scaffold so setup can proceed.

After it runs, verify the coordinator root exists and contains the expected package-owned runtime files. runtime_install() may also prepare provider runtime assets when providers are enabled, but it does not create memory repos, bootstrap onboarding, or start provider indexing.

Do not run skills_install() as part of first-run setup. The harness starter package already carries the skills. skills_install() remains available for manual maintenance or non-package setups, but it is not the default path.

Stage 2 - Agentic Settings: Interview The Developer

runtime_install() seeds the GLOBAL agentic settings file at <coordinationRoot>/system/settings.json copy-if-missing, with every knob at its documented default: all-human gate delegation, the standard three-party-loop defaults, no concurrency caps, no spawn harness preference. This stage turns those defaults into the developer's actual posture so the intended workflows run on ANY harness. The schema reference is docs/reference/settings-json.md (Agentic Settings); unknown orchestration.* keys fail loud, so write only documented keys.

Walk the developer through the four knob families and edit the global file with their answers (leave a family at its seeded default when they have no preference):

  1. Gate delegation posture (orchestration.gateDelegation; GLOBAL file only - the loader refuses it repo-locally and the boot snapshot reads the coordinator file) - keep every gate human (all-human, the default), or delegate leaf gates with the manager-decides-leaf-gates policy, optional per-kind kinds overrides, and requireReviewerVerdictAtSeams. Say explicitly that this one key is boot-snapshot: a change needs an MCP/harness restart.
  2. Loop defaults (orchestration.loops) - the review-round cap (defaults.maxRounds), reviewer reuse (defaults.reviewerReuse), complexity thresholds (defaults.complexity), and per-level loop postures (perLevel). Read per-use; edits apply on the next use, no restart.
  3. Concurrency caps (orchestration.concurrency) - maxParallelMasters, maxParallelLeaves, maxSubAgents. Default: uncapped.
  4. Harness preference + role knobs (orchestration.spawn.harness, per-role orchestration.roles.<role>, per-level orchestration.rolesPerLevel.<level>.<role>) - which installed harness the public dispatch_agent transaction selects when no role/level knob supplies one, per-role harness/model/effort settings, and per-LEVEL settings (leaf|master|portfolio) for tiered economics (e.g. a cheap leaf reviewer, a smarter master-seam reviewer). Harness values must be known ids: the builtin registry (claude, codex, pi) or an orchestration.harnesses entry the developer defines (new TUIs, or a pre-customized launch argv for a builtin). A configured native role supplies the complete harness/model/effort selection. Do not teach a static builtin model or effort vocabulary: the native adapter advertises the token-free per-install/account model catalog, with effort nested under each model, and validates it before the configured vendor session starts. Use the exact advertised model key (Pi keys are provider-qualified) and one launch-settable effort advertised for that model. The adapter applies the selection through native launch configuration; normalized model/effort is never converted into composer paste or a generated session command. Mention the FREE-FORM escape hatch - launchArgs (verbatim argv), sessionCommands (explicit user-authored lines applied before the brief), promptKeywords (prepended to the brief) - which is never validated or synthesized and is recorded in spawn provenance. Ordinary spawning seats cannot pass harness/model/effort, launch/session spend controls, or harness-native spend/endpoint env keys directly; settings are the spend surface. Default: detection-gated (the first detected harness). The full spawn-surface manual is docs/reference/harnesses.md.

Verify the installed instructions teach one public spawn transaction and its two disjoint caller kinds:

Caller kindRecognitionAuthorityRequired behavior
Plane-hosted seatPlane-injected hosted identity is presentCurrent role seat plus direct-child scopeCall dispatch_agent with the canonical child document, target role, and complete brief
Ambient launcherPlane-injected hosted identity is absentCanonical target-document resolution plus target role-altitude validationOrdinary bootstrap: compile the canonical architect brief and call dispatch_agent once on the sprint document. Explicit task-seat takeover: compile the claimed role's complete brief and call the same tool once on that role's canonical task document.

The request never supplies caller identity or selects a mode. Both rows consume the same settings-owned harness/model/effort, internal readiness, exact brief pinning, rollback, and canonical seat publication. A plane refusal remains a refusal and never falls back to ambient. The internal session-creation primitive is not installed caller guidance.

If the developer wants to skip the interview, confirm the seeded defaults apply and continue; tell them the file can be edited any time (picked up per-use, except the gateDelegation restart note above).

Per-repo overrides: a code repo may carry its own <repo>/system/settings.json with the same orchestration.* shape; repo-local leaf values override the global file (arrays replace). Offer this only when the developer asks for repo-specific behavior; do not create the file unprompted.

Stage 3 - Repository Certification Profile (explicit operation only)

Run this stage only when the developer explicitly requests a repository certification or full quality operation. Routine closeout and master integration do not enter this stage. The normative field and authoring procedure are documented in docs/reference/repository-certification-profile.md.

  1. Read the repository's documented build, lint/type/format/structural checks, ordinary suite, suite-dependent quality, integration/E2E scenarios, runtime locks, and existing ownership manifests. Inspect source only to confirm those repository-owned contracts. Do not derive authority from a filename, executable being present, or historical success.
  2. If repositories.<repo-id>.certificationProfile is absent, select and record one explicit repository-relative path consistent with that repository's configuration layout. This is not a conventional filename or built-in default. Add the exact path to the MCP authority settings.
  3. Author the versioned profile at that path from the repository's own contract. Include explicit targeted local/closeout and full closeout selections over one rail catalog; declare all four gates, including typed not-applicable gates; and declare the exact sandbox adapter, decoder, artifacts, selectors, runtimes, secret policy, resource bounds, and Gate-4 teardown.
  4. Compute the canonical profile digest and compile every required selection through the installed repository-profile loader. Repair every schema, authority, classification, graph, selection, artifact, adapter, or decoder finding before continuing. A missing or invalid profile is certification-profile-invalid; no Gate-1 command may start.
  5. Run the smallest focused repository verification that proves its declared adapter and decoder implement the exact profile execution and terminal-artifact contract. Do not launch the full suite or clean-room scenarios merely as install diagnostics.
  6. If the authority settings changed, tell the developer that the MCP/harness must restart before the new boot-time repository authority is live. This affects the requested certification operation only; it is not a routine closeout/integration prerequisite.

Make progress autonomously from durable repository contracts. Ask the developer only when the repository's intended rail, posture, or clean-room boundary is genuinely ambiguous. Never copy the Agents Remember reference profile into another repository, create a default profile, install a host executor, or add a compatibility/fallback route.

An older configured repository with no profile remains valid for reading, task recovery, onboarding, and routine code/memory/ledger closeout. A developer-requested certification operation must fail closed until this stage is completed.

Stage 4 - Memory Repo: Ask Scaffold Vs Existing

Do not assume the developer wants a fresh memory repo. Ask which case applies, unless a memory repo is already present and resolvable:

  1. Scaffold a new memory repo - they have no existing memory for this code repo. Run c-00-initialize-memory-repo (internal by default; external only if the developer asks or the configured topology requires it). Continue to Stage 5.
  2. Use an existing memory repo - they already have one. Clone or checkout it to the resolved memory location, then adopt it as the Git-attributed baseline with c-10-adopt-memory-baseline. Skip Stage 5 because its onboarding already exists.

Internal-memory note: pre-existing internal memory lives inside the code repo (<repo>/ar-memory/), so it is already present on checkout. Detect that through c-08-ar-coordination-context-resolver and skip the question when the memory layer is already there.

Stage 5 - Bootstrap

Run this stage only when Stage 4 scaffolded a new memory repo.

Hand off to c-03-repo-bootstrap to generate initial onboarding. A thin overview.md is enough to start; deeper route-local overviews and file-level onboarding should grow as work touches new areas.

Skip this stage when an existing memory repo was adopted.

Stage 6 - Configure Providers To Index

If providers are enabled, make them index the configured code and memory:

  1. Confirm the target repo is in MCP provider scope.
  2. Start watchers:

    provider_watchers(action="start")

    Use provider_watchers(action="start", dry_run=true) only when a preview is requested or workflow policy requires one. action="refresh" no longer exists -- it force-rebuilt every index while reading like a harmless restart, so it was split in two. Use action="restart" to stop and start the watchers without touching their indexes, or action="invalidate-indexes" to delete and rebuild every index from scratch (a slow full re-embed and re-graph).

  3. Verify with provider_status or context_packet(repo_id=..., include_providers=true) that providers are ready, watchers are up, and the target repo is covered.
  4. Use provider_diagnostics when a provider reports stopped or degraded.

Providers are accelerators. If they are deferred, say that core by-path memory still works and list the provider recovery action separately.

Report Result

Summarize:

  1. harness package: detected and left untouched, or missing with the exact copy step the developer must perform;
  2. runtime scaffold: runtime_install() run or already current, with the resolved coordination root;
  3. agentic settings: interviewed and written, or left at the seeded defaults, with the global file path;
  4. repository certification: exact profile path and digest for each explicitly requested code repository, validation result, and whether an authority-settings restart remains; routine closeout/integration needs no profile;
  5. memory repo: scaffolded, existing-adopted, or already present, with the resolved memory root;
  6. bootstrap: run via c-03-repo-bootstrap or skipped;
  7. providers: indexing status and any deferred/degraded state.

End by telling the developer whether the project is ready for normal work. Do not tell them to restart for hooks installed by this skill, because this skill no longer installs hooks.

Boundaries

  1. This skill is guidance for the model; it adds no MCP tool and no hardcoded per-harness installer.
  2. It must not install, overwrite, or invent harness hooks, rules, instruction files, skills, or MCP registration files during first-run setup.
  3. It must not call skills_install() as part of the package-based first-run path. Mention it only as a maintenance/manual option.
  4. It must not scaffold a memory repo without asking unless memory already exists and resolves cleanly.
  5. It delegates memory init to c-00-initialize-memory-repo, bootstrap to c-03-repo-bootstrap, baseline adoption to c-10-adopt-memory-baseline, and context resolution to c-08-ar-coordination-context-resolver.
  6. It must not invent a certification profile, discover one by convention, or copy another repository's commands. A missing/invalid profile blocks only the explicitly requested certification operation; routine code/memory/ledger closeout remains a Git transaction.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.