updateagents
Skill1 starsChanged 17 days agoMITView on GitHub
Universal agent context synchronization and repository AI-readiness engine. Audits 13 tracked assets across AI Context, Dev Workflow, and Governance with a 4-tier grading matrix and sub-100ms Stage-0 Fast-Skip Gate. Houses master Agent Engine DOX templates, sanitizes synthetic ADE artifacts, retrofits legacy instructions, preserves human-authored rules, and continuously synchronizes modular standards.
- Reads credentials
We split this skill into the rules it gives an agent
43 rules. About 0 are common, 23 are distinctive, and 20 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈23
Distinctive · estimate
This author's own choices. Worth a look.
20
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 60
Do not run merely because files changed.
- Distinctive: line 62
Run when the change has a reasonable chance of affecting what future agents need to know.
- Distinctive: line 117
Never traverse above the current workspace.
- Distinctive: line 118
Never modify files outside the workspace.
- Distinctive: line 119
Never search parent directories for missing agent files.
- Distinctive: line 120
Never silently switch to another repository.
- Distinctive: line 121
Do not assume the Git root is the workspace root unless it is the current working directory.
- Very specific: line 163
Before performing deep inspection or delta generation, run the updateagents fast-skip verification:
- Very specific: line 164
Verify AGENTS.md exists and is <50 lines.
- Very specific: line 165
Verify .agents/standards and .agents/context exist and are populated.
- Distinctive: line 166
If instructions are already aligned with project reality:
- Very specific: line 182
Use available tools (codegraph, rtk, ponytail) when present to understand relationships, patterns, and recent activity.
- Distinctive: line 185
Before editing, construct an internal delta classifying findings:
- Distinctive: line 194
Update the smallest correct scope (root instructions vs package instructions).
- Very specific: line 204
Check if any agent engine files exist (AGENTS.md, CLAUDE.md, .cursorrules, .agents/, etc.).
- Very specific: line 208
Create root CLAUDE.md from templates/CLAUDE.md.
- Very specific: line 209
Create .agents/dump/<category>/ for user-provided URLs, data, logs, exports, or other content submitted for extraction.
- Distinctive: line 210
Use the agent name configured by the user in their own agent system.
- Very specific: line 213
Before changing an instruction file, snapshot its exact bytes under .agents/archive/agent-instructions/.
- Very specific: line 214
Import complete source contents, including rules, workflows, configuration notes, definitions and scope metadata, into …
- Distinctive: line 216
Read imported instructions before every task, apply each within its recorded source scope, and report conflicting rules with both source …
- Distinctive: line 218
When refreshing a generated AGENTS.md, reconcile conditional-standard links with project evidence.
- Very specific: line 224
Document commands only when verified in package.json or project tooling (Install, Dev, Build, Test, Typecheck, Lint).
- Distinctive: line 227
Document relationships, data flows, and module boundaries rather than simple directory dumps.
- Very specific: line 242
Verify that the 6 canonical workspace terrain maps in .agents/terrain/ (stack.md, habits.md, ownership.md, packages.md, repo.md, logs.md) …
- Very specific: line 245
When scaffolding or synchronizing a confirmed GitHub project, render community files and CHANGELOG.md from the shared templates using …
- Very specific: line 247
Intelligent Pruning (
auditProjectArchetypePruning): When auditing or learning a project's archetype, proactively advise on asset hygiene: - Distinctive: line 260
Remove duplication and move verbose reference material to dedicated documentation.
- Distinctive: line 263
Keep-all commands: keep every verified command.
- Very specific: line 269
Run validate-memory-file.sh to confirm size, structure, command accuracy, and verify .memory/ was untouched.
- Very specific: line 275
When an agent or harness attempts to write or update a prohibited legacy instruction target (CLAUDE.md, GEMINI.md, CODEX.md, .cursorrules, …
- Very specific: line 279
Classify: Check for imperatives (never, always, must, require) and policy vocabulary (rule, standard, policy).
- Very specific: line 291
Never expose secrets, API keys, or .env contents.
- Distinctive: line 292
Never fabricate commands or architecture.
- Distinctive: line 293
Never perform wholesale replacement of guidance files.
- Very specific: line 294
Never clobber application source code (src/, app/) or package dependencies.
- Distinctive: line 295
Never claim validation succeeded when it did not run.
- Distinctive: line 298
Do not add entire package manifests, full dependency lists, complete directory trees, full source snippets, logs, stack traces, session …
- Distinctive: line 308
No Agent File Found: Create canonical DOX files only when the repository clearly benefits.
- Distinctive: line 319
After synchronization, execute and verify:
- Very specific: line 325
DOX Integrity: If retrofitted, verify all 9 folders exist in .agents/ and .agents/context/current.md lists verified live deliverables.
- Very specific: line 326
Verify root CLAUDE.md is present and contains only @AGENTS.md.
- Distinctive: line 327
Size Check: Verify all instruction files remain under 5KB (hard ceiling 10KB).
≈ “Common” is an estimate: at least 1 in 5 of the 308,232 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
🧠 updateagents — Project Agent Context Synchronization
Synchronize AI-agent instructions and project context with the actual current state of the workspace.
This skill is not merely an AGENTS.md updater.
It determines what project information has changed, identifies which agent-facing instruction files are authoritative, updates only the necessary content, preserves intentional human-authored material, and validates the resulting context.
The goal is to keep future agents aligned with the repository as it evolves.
Understand project state → identify durable agent-relevant knowledge → synchronize the correct instruction scope → validate.
When to Use
Use updateagents when:
- The user explicitly asks to update, refresh, sync, rebuild, or audit agent instructions.
- A significant feature, refactor, architecture change, migration, or dependency change has occurred.
- New development workflows, scripts, tooling, frameworks, or infrastructure are introduced.
- Existing commands, paths, conventions, or architecture have become stale.
- A project is being handed to another agent or developer.
- An agent repeatedly makes mistakes because required project context is missing or outdated.
- A repository gains or changes agent instruction files.
- An agent or tool attempts to create or update a foreign-harness instruction file (
CLAUDE.md,GEMINI.md,.cursorrules, etc.). - A sprint, feature, major PR, release, or migration changes project behavior.
- Periodic project-context hygiene is being performed.
- Upgrading a legacy project to the Progressive Disclosure DOX architecture.
Do not run merely because files changed.
Run when the change has a reasonable chance of affecting what future agents need to know.
Modes
| Mode | Focus | Key Output | Reference Document |
sync (Default) | Synchronize instructions with codebase reality, preserve human rules, sync 21 standards | Updated .agents/context/*, lean AGENTS.md router, standards sync | references/memory-file-priorities.md |
scorecard | 13-asset AI readiness scorecard, Stage-0 Fast-Skip, and --fail-under CI gating | Readiness report & maturity medal (🏆 AI-Ready to 🥉 Getting Started) | references/twelve-asset-matrix.md |
sanitize | Strip synthetic ADE/IDE markers (ORCA_RICH_MD, Cursor, Windsurf) | Sanitized clean codebase without proprietary token wrappers | references/pr-review-mining.md |
scaffold | Direct Day-0 provisioning of agent context, AGENTS.md, .github templates, .env.example | Workspace instruction & governance templates | references/fast-skip-protocol.md |
promote | Intercept & promote foreign-harness instruction writes to DOX standards/context | Promoted standards/context, preserved archive, resynced router | references/legacy-promotion.md |
onboard | Run the interactive identity onboarding interview (--onboard with --global or --project) | Identity profiles (user.md, assistant.md, vision.md, rules.md) | references/onboard.md |
audit | "repo AI-readiness audit", "audit the 13 assets", "grade agent context" | Grade the 13 tracked assets on the 4-tier matrix with evidence paths; emit the remediation plan. Read-only — an audit never writes. | references/audit.md |
Support references (load on topic)
Loadable by topic; also routable as /updateagents-<file> commands (not separate routed modes):
- discovery-commands.md
- skill-authoring.md
- global-atoms.md
- advanced-audit-passes.md
Quick Reference
Core Principle
Maintain agent-relevant project knowledge, not a generic repository summary.
| Prefer (Durable Knowledge) | Avoid (Temporary Noise) |
| Important commands & package scripts | Full source-file dumps |
| Architecture boundaries & data flows | Temporary debugging output |
| Sources of truth & canonical files | Large logs & stack traces |
| Testing requirements & suites | Redundant explanations |
| Security boundaries & Vibeguard rules | Session transcripts & raw memory dumps |
| Conventions & operational gotchas | Credentials, tokens, or .env secrets |
| Durable project decisions (ADRs) | Easily derivable information |
The resulting context should be compact, accurate, actionable, and maintainable.
HARD BOUNDARY — MuseMemory (.memory/**)
The .memory/ directory is exclusively owned and managed by MuseMemory.
updateagents must never operate on .memory/**. This is an absolute rule.
Forbidden Operations: Never read, write, modify, create, delete, rename, move, reorganize, clean up, summarize, or validate .memory/**. Never copy raw .memory/ contents into agent instruction files, treat .memory/ as a source of truth, or use .memory/ as a justification for changing agent instructions. The path .memory/** is always excluded.
MuseMemory Context Rule: External memory tools (cavemem, memoryagent, etc.) provide context, not authoritative project state. A memory-derived fact may be recorded only when it is durable and verifiable from current project code, configs, or documentation.
Workspace Boundary
The workspace boundary is the current working directory:
- Never traverse above the current workspace.
- Never modify files outside the workspace.
- Never search parent directories for missing agent files.
- Never silently switch to another repository.
- Do not assume the Git root is the workspace root unless it is the current working directory.
- Nested repositories should be treated as separate scopes unless explicitly requested otherwise.
.memory/**remains excluded even though it may physically exist inside the workspace.
Authority & Priority Heuristic
Explicit user instruction → nearest-scope project instruction → root AGENTS.md → imported source rules → runtime adapterAGENTS.md is the shared engine. Runtime-specific files are adapters; imported user rules stay active through .agents/context/imported-agent-instructions.md.
Canonical Source Detection
Identify the project's source of truth before documenting behavior:
- Package scripts →
package.json - Build & test behavior → build configs, package scripts, test configs
- API contracts → schemas, OpenAPI, route definitions
- Database structure → migrations, schema definitions
- Design tokens → token definitions in
.agents/brand/tokens/ - Agent instructions → canonical project instruction files
Change Impact Classification
| Change Class | Examples | Default Treatment |
| Context | New directory, command, dependency | Update when agent-relevant |
| Behavioral | Feature, API, UI behavior | Update affected guidance |
| Architectural | Module boundaries, framework migration | Update architecture guidance |
| Operational | Build, CI, deploy, environment | Update workflow guidance |
| Data | Schema, migrations, seed strategy | Update source-of-truth guidance |
| Security | Auth, permissions, security policy | Review carefully |
| High Risk | Production data, infrastructure, destructive ops | Human review |
Procedure
Execute the synchronization workflow via the automation CLI:
bun path/to/updateagents/scripts/updateagents.ts [options]Step 0 — Stage-0 Fast-Skip Gate (Pre-Flight)
Before performing deep inspection or delta generation, run the updateagents fast-skip verification:
- Verify
AGENTS.mdexists and is<50 lines. - Verify
.agents/standardsand.agents/contextexist and are populated. - If instructions are already aligned with project reality:
Exit immediately with 0 changes and zero token waste. Proceed only when structural drift or new project requirements are detected.[updateagents] Agent instructions and DOX container verified. Skipping pass.
Step 1 — Establish Workspace Context
Determine current directory, repository status, project type, language/runtime, package manager, and application boundaries. Exclude parent directories and .memory/**.
Step 2 — Discover Agent Context
Recursively discover supported instruction files inside the workspace, including nested AGENTS.md; Claude, Gemini, Codex and OpenCode instruction files; Cursor, Windsurf, Cline, Roo, Copilot and Continue rules; *.instructions.md / CONVENTIONS.md; and Markdown/text files inside directories named agent(s), rule(s), instruction(s) or prompt(s) for other runtimes. Skip .git, .agents, .memory, dependency/build outputs, and symlinks. Read each candidate and retain its relative path and scope metadata. Never search above the workspace.
Step 3 — Inspect Project State
Inspect only authoritative sources (package.json, tsconfig.json, README, CI configs, source structure). Explicitly exclude .memory/**.
Step 4 — Use Optional Context Integrations
Use available tools (codegraph, rtk, ponytail) when present to understand relationships, patterns, and recent activity. Missing tools are not an error.
Step 5 — Build the Context Delta
Before editing, construct an internal delta classifying findings:
NEW: Previously undocumented durable knowledge.CHANGED: Existing knowledge that is now different.OBSOLETE: Existing knowledge that no longer applies.CONFLICTING: Different sources disagree (report conflict, do not guess).LOCAL: Specific to a sub-package.TEMPORARY: Do not persist temporary debugging state.
Step 6 — Determine Synchronization Targets
Update the smallest correct scope (root instructions vs package instructions). Do not duplicate identical guidance across multiple scopes.
Step 7 — Preserve Existing Knowledge
Preserve valid human-authored content, architectural decisions, project-specific constraints, and meaningful warnings. Remove obsolete guidance only when obsolescence is confirmed.
Glossary sparring (source: lane D #5 — pocock grill-with-docs/domain-modeling): challenge fuzzy terms inline while syncing — sharpen vague language, cross-reference each term to code, update CONTEXT.md as-you-go. ADR offer filter — propose an ADR only when all three hold (hard-to-reverse + surprising + real-tradeoff), else skip. Lazy file creation: never scaffold context files speculatively; create only on confirmed agent need.
Step 8 — Check Existing Agent Files & Scaffolding Gate
- Check if any agent engine files exist (
AGENTS.md,CLAUDE.md,.cursorrules,.agents/, etc.). - If NONE Found:
- Scaffold the entire fresh Agent Engine DOX architecture directly from
updateagents/templates/. - Render compact
AGENTS.mdfrom the template with detected project purpose, repository, governance, toolchain, and installed modern CLI tools. Core standards are required; detected or selected standards become required and link to their full files. - Create root
CLAUDE.mdfromtemplates/CLAUDE.md; it must contain only@AGENTS.mdso Claude agents read the same project instructions. - Create
.agents/dump/<category>/for user-provided URLs, data, logs, exports, or other content submitted for extraction. Keep working material under.agents/artifacts/or.agents/dump/, not the repo root or.memory/; never store secrets in dumps. - Use the agent name configured by the user in their own agent system; ask if unavailable rather than inventing a persona. Keep personal identity in the global identity directory; never copy it into the project.
- Secretary dispatch is invoked by instructions on the first prompt and each new task; it is not a background process. Close out every completed task even if the session continues.
- Scaffold the entire fresh Agent Engine DOX architecture directly from
- If ANY Found (custom content present):
- Before changing an instruction file, snapshot its exact bytes under
.agents/archive/agent-instructions/; record source path and SHA-256 inmanifest.json. - Import complete source contents, including rules, workflows, configuration notes, definitions and scope metadata, into
.agents/context/imported-agent-instructions.md. Do not section-guess, truncate or silently drop content. Preserve each source’s path and keep changed versions as additional snapshots. - Make
AGENTS.mdthe compact shared router. Replace supported runtime-specific files with small adapters only after snapshot + import succeeds; keep relevant frontmatter/scope metadata. Adapt runtime instruction files only — never files underreferences/ortemplates/, which are content, not instructions. Claude’s rootCLAUDE.mdremains exactly@AGENTS.md. Preserve non-instruction configuration files untouched. - Read imported instructions before every task, apply each within its recorded source scope, and report conflicting rules with both source paths; ask the user instead of silently choosing.
- Report every source → archive snapshot → canonical context mapping so users can find both their active rules and exact originals. Never delete an original snapshot.
- When refreshing a generated
AGENTS.md, reconcile conditional-standard links with project evidence. Ask about ambiguous applicability; only unlink standards the user confirms are inapplicable, retaining their files.
- Before changing an instruction file, snapshot its exact bytes under
Step 9 — Synchronize Standards from Single Canon
Never regenerate an existing root AGENTS.md: preserve its content verbatim and merge only the shared routers into it, because a curated file always outranks the template and its loss is unrecoverable. Synchronize standards and baseline brand tokens from updateagents/templates/ without overwriting project context or source. Core standards are always required. Detected or selected standards are required for that project. During later runs, ask about ambiguous conditional standards; unlink only standards the user confirms are inapplicable, while retaining their files.
Step 10 — Capture Commands Precisely
Document commands only when verified in package.json or project tooling (Install, Dev, Build, Test, Typecheck, Lint). Never invent commands.
Step 11 — Capture Architecture & Boundaries
Document relationships, data flows, and module boundaries rather than simple directory dumps.
Step 12 — Capture Conventions & Sources of Truth
Explicitly document authority relationships (package scripts authoritative for commands, migrations authoritative for DB).
Step 13 — Capture Agent-Specific Rules
Record operational rules supported by project policy. Imported rules remain verbatim and source-scoped in .agents/context/imported-agent-instructions.md; do not paraphrase them into oblivion or resolve conflicts without the user.
Step 13b — Skill Authoring & Instruction Engineering (TDD Protocol)
When authoring, scaffolding, or updating agent skills or behavioral guidance, enforce the TDD Skill Engineering Protocol: Red-Green-Refactor for agent instructions, baseline adversarial pressure testing, and anti-rationalization loophole closures (see references/skill-authoring.md). When extracting recurring patterns into reusable skills via bun scripts/extract-skill.ts, all 4 Extraction Gates (Recurrence, Verification, Generalization, and TDD Engineering) must pass.
Step 13c — Keep Secretary Dispatch Explicit
Generated AGENTS.md instructs agents to invoke secretary:dispatch on the first prompt and each new task, triage the request, and read the selected skill and mode. This is prompt-driven routing, not a background process. Route Coach only when relevant; it does not replace task closeout.
Step 13d — Wave 23 Workspace Terrain Verification
Verify that the 6 canonical workspace terrain maps in .agents/terrain/ (stack.md, habits.md, ownership.md, packages.md, repo.md, logs.md) exist, are up-to-date with current toolchain reality, and contain zero credential leaks or hardcoded machine paths. Run updateagents --audit to audit terrain health.
GitHub project assets & Intelligent Archetype Pruning
When scaffolding or synchronizing a confirmed GitHub project, render community files and CHANGELOG.md from the shared templates using verified project/repository metadata.
- Universal Workflows: Includes
landing-gate.yml,codeql.yml(SAST),trivy.yml(Vibeguard secret/vuln scan),docs-sync.yml(Markdown relative link check), andai-slop.yml(synthetic placeholder and AI chat residue scanner). - Intelligent Pruning (
auditProjectArchetypePruning): When auditing or learning a project's archetype, proactively advise on asset hygiene:- Agency Client (
agency-client): Prune.github/FUNDING.yml,.github/CODE_OF_CONDUCT.md, and public issue templates; route contributor rules to internal delivery standards (.agents/standards/workflows.md); retainSECURITY.mdfor confidential vulnerability disclosure. - Open Source (
oss-library): Retain and configure.github/FUNDING.yml(GitHub Sponsors, Ko-fi, Open Collective), publicCONTRIBUTING.md,CODE_OF_CONDUCT.md, and enforceai-slop.ymlto filter spam pull requests. - Internal Tool (
internal-tool): Prune community donation/contribution files; retain minimal CI and landing gates. Workflow templates currently cover Node/Bun scripts, Python manifests, and Composer/PHP; preserve user-edited files and do not invent workflows for other stacks. Iforiginis not GitHub and.github/workflows/exists, ask before removing anything; removal is limited to files in that directory and requires explicit confirmation (--confirm-remove-github-workflows). If the host, contact, contributor identity, or workflow choice is unknown, ask the user, record their answer, and continue without guessing. With no repository evidence, interactive scaffolding asks; non-interactive runs defer GitHub assets until confirmed with--githubor--no-github. Never copy this source repository's username, slug, or credentials into the target.
- Agency Client (
Step 14 — Synchronize Related Knowledge
Propagate downstream effects (e.g. API changes affecting types and tests) when future agent behavior should change.
Step 15 — Size & Noise Control
- Target:
< 5KB - Warning:
≥ 5KB - Hard Limit:
≥ 10KBRemove duplication and move verbose reference material to dedicated documentation. - Conditional-block writing (source: humanlayer improve-claude-md, mechanism-only — buyer archives CLAUDE.md, applies to workspace instruction sections only): wrap domain guidance in
<important if="narrow-trigger">…</important>scoped to one workspace section (.agents/context/*or router); one narrow trigger per rule, never group unrelated triggers. - Bare-vs-wrap test: bare (no wrapper) when rule applies to 90%+ tasks (identity, map, stack); wrap only domain guidance (testing, API, state, i18n).
- Keep-all commands: keep every verified command; present as a single commands table/block (Step 10 verified-only still holds — never invent).
- Cut rules: cut linter-enforceable patterns, code-discoverable patterns, and vague instructions; replace code snippets with path refs unless the snippet itself is the durable gotcha.
- Apply proc (compressed): identity → map → stack → commands table → split rules → wrap domains → cut linter/snippets/vague → size-check → validate.
- Note (validator-later): narrow-condition lint (one trigger per block, no grouped triggers) proposed for
scripts/validate-memory-file.sh; not implemented here.
Step 16 — Validate
Run validate-memory-file.sh to confirm size, structure, command accuracy, and verify .memory/** was untouched.
Step 17 — Report the Change
Output a concise change report detailing files discovered, updated, new/obsolete knowledge, and validation receipts.
Step 18 — Intercept & Promote Foreign-Harness Writes (promote Mode)
When an agent or harness attempts to write or update a prohibited legacy instruction target (CLAUDE.md, GEMINI.md, CODEX.md, .cursorrules, .windsurfrules, .github/copilot-instructions.md, etc.):
- Detect: Intercept the target path. If it matches compiled IDE artifacts (
.cursor/rules/*.mdc,.github/copilot-instructions.md), refuse and direct toupdateagents --sync-ide. - Safety Gates: Refuse content exceeding 8KB or containing shell/bash script mutations.
- Route: Ascend to find the nearest ancestor Agent Engine container (
.agents/orAGENTS.md). If the target is outside$HOMEwith no container, refuse loudly and escalate to the user without guessing. If at$HOMElevel with no container, route to~/.agents/AGENTS.md. - Classify: Check for imperatives (
never,always,must,require) and policy vocabulary (rule,standard,policy). Route rule-like material to<container>/.agents/standards/<name>.md; route project facts to<container>/.agents/context/<bucket>.md. - Deduplicate: Normalize whitespace. If identical content exists in destination, exit cleanly with zero mutation.
- Archive & Envelope: Snapshot original bytes to
.agents/archive/agent-instructions/, render clean adapter at source, and append provenance envelope to destination. - Resync Router: Resync
AGENTS.mdand report canonical destination.
Pitfalls
Mandatory Safety Rules
- Never modify outside the workspace or traverse above root.
- Never read, write, create, delete, move, rename, summarize, reorganize, synchronize, or validate
.memory/**. - Never expose secrets, API keys, or
.envcontents. - Never fabricate commands or architecture.
- Never perform wholesale replacement of guidance files.
- Never clobber application source code (
src/,app/) or package dependencies. - Never claim validation succeeded when it did not run.
Anti-Bloat Rules
Do not add entire package manifests, full dependency lists, complete directory trees, full source snippets, logs, stack traces, session transcripts, or generic tutorials. Document only what agents repeatedly need.
Canon Refresh (new capability)
--check-canondistinguishes localization from drift automatically. A file is classifiedlocalized(notdiverged) when its only difference from canon is{{...}}→ concrete substitution, detected by replacing each placeholder with a line-bounded wildcard ([^\\n]*?) and regex-matching the local file byte-for-byte (line counts must match). Localized files do not fail the gate (exit 0). Inspect the diff only for genuinelydivergedfiles.--jsonmode must be machine-clean. Suppress all human-facing banners (headers, "✅ Canon in sync", warnings) when--jsonis set; emit only the JSON object. Any stray text breaks downstreamJSON.parse.- CI tests must not depend on gitignored local state. A test that reads
.agents/standards/passes locally (the dir exists from a prior dogfood run) but fails in CI (the dir is gitignored and absent). Scaffold the fixture in the test itself (copy canon into a temp dir) so the test is deterministic across environments. - Established standards are curated, not overwritten. The sync engine never refreshes an existing
.agents/standards/file — it only provisions missing ones. Canon updates require an explicit--refresh <name>(or--force); a normal sync run will silently leave stale standards in place. Run--check-canonfirst to see what is out of date. - Tightening
any→Record<string, unknown>cascades. Replacinganywith a record type turns every downstream property access intounknown, breaking compilation. Either define a proper interface with the fields you access, or keepanywith a biome-ignore comment. Do not half-migrate.
Failure Handling
- No Agent File Found: Create canonical DOX files only when the repository clearly benefits.
- Multiple Files Found: Determine scopes and relationships; do not automatically consolidate.
.memory/Found: Ignore completely. Do not read, modify, or validate.- Conflicting Instructions: Preserve conflict, identify likely source of truth, and report for human review.
- File Too Large: Trim duplication and offload verbose reference material to
./.agents/context/. - Foreign-Harness Legacy Write: Intercept via
updateagents --promote <path>. Refuse and redirect compiled IDE artifacts (--sync-ide). Refuse and escalate unknown scopes outside $HOME with no container, shell/bash mutations, or content >8KB.
Verification
After synchronization, execute and verify:
- Validation Script:
bash path/to/updateagents/scripts/validate-memory-file.sh AGENTS.md - Boundary Audit: Confirm
git statusshows zero modifications in.memory/**and zero changes to application source code. - DOX Integrity: If retrofitted, verify all 9 folders exist in
.agents/and.agents/context/current.mdlists verified live deliverables.- Verify root
CLAUDE.mdis present and contains only@AGENTS.md; it must not become a second rules source.
- Verify root
- Size Check: Verify all instruction files remain under 5KB (hard ceiling 10KB).
- Completion Criteria Checklist:
- Relevant agent files discovered
- Project state inspected from canonical sources
- Durable knowledge identified and delta built
- Valid existing content preserved
.memory/**untouched- Standards synced from single template canon
- Structured change report generated
In this repository49 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- llms.txtllms.txt
- accountsSkill
- analyticsSkill
- automationSkill
- brandSkill
- client-commsSkill
- contentSkill
- crmSkill
- databaseSkill
- designSkill
- devopsSkill
- growthSkill
- gtmSkill
- incident-responseSkill
- mobileSkill
- opsSkill
- paidadsSkill
- qa-launchSkill
- researchSkill
- retainSkill
- sales-enablementSkill
- seoSkill
- smmSkill
- telegramSkill
- webdevSkill
- context-anchorSkill
- coupling-routerSkill
- evidence-ledgerSkill
- relaySkill
- secretarySkill
- gitSkill
- new-projectSkill
- updatedocsSkill
- animateSkill
- designscopeSkill
- refactorSkill
- auditSkill
- code-reviewSkill
- dead-letterSkill
- gauntlet-loopSkill
- humanizeSkill
- muse-securitySkill
- puaSkill
- clean-system-cacheSkill
- coachSkill
- periodic-retreatSkill
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.

