Catalog
fauziyasin-s2m4qw/refresh-agent-context

fauziyasin-s2m4qw

refresh-agent-context

Audit this Turborepo for stale or missing agent-reference docs, then refresh repo and app-level `AGENTS.md` and related onboarding docs using the bundled workspace inventory script. Use when apps, packages, routes, ports, or shared tooling changed and the repo needs a fresh agent-oriented context pass.

v1.0LATEST
NewUpdated Nov 18, 2026

Refresh Agent Context

Use this skill to keep the repo understandable for coding agents as the Turborepo evolves.

Goal

Detect drift between the actual workspace structure and the agent-facing docs, then update the smallest set of docs that restore a fast path into the correct app or package.

Prefer updating these files, in this order:

  1. root AGENTS.md
  2. root README.md
  3. root or app-level CLAUDE.md
  4. app-level apps/*/AGENTS.md
  5. package docs only when they materially help route ownership or shared-code discovery

Quick Start

From the repo root, run:

node skills/refresh-agent-context/scripts/workspace_inventory.mjs

This prints a current inventory of:

  • app and package workspaces
  • package names
  • dev ports inferred from package.json
  • asset prefixes and NEXT_PUBLIC_APP_NAME inferred from next.config.ts
  • whether AGENTS.md, README.md, and CLAUDE.md exist per app

Workflow

1. Build the current repo inventory

Run the inventory script first. Treat its output as the baseline snapshot of the current monorepo shape.

2. Audit doc coverage

Check for:

  • missing root AGENTS.md
  • apps missing AGENTS.md
  • stale or missing CLAUDE.md files when Claude-specific onboarding exists
  • empty or stub-only AGENTS.md
  • stale README or CLAUDE.md entries for app names, ports, package names, or CMS/framework ownership
  • missing references to important shared packages such as packages/i18n, packages/ui-chrome, or packages/ecosystem-data
  • route ownership that is not obvious from the current docs

3. Patch the minimal doc set

Prefer concise guides that answer these questions quickly:

  • which workspace owns the requested feature
  • which commands validate only that workspace
  • which config files define routing, asset prefixes, or cross-app navigation
  • which shared packages are likely involved
  • which CLAUDE.md files need the same operational updates as agent docs

Do not turn the docs into a full architecture book. Keep them as jump-start guides.

4. Verify against source files

Before finalizing:

  • verify package names from package.json
  • verify ports from workspace scripts
  • verify asset prefixes, rewrites, and NEXT_PUBLIC_APP_NAME from next.config.ts
  • verify content ownership from the actual content/, src/, or package layout

5. Report the audit

Summarize:

  • what was stale or missing
  • what docs were updated
  • what could not be verified automatically

Output Standards

  • keep docs short and operational
  • prefer tables for workspace maps and bullets for gotchas
  • keep AGENTS.md, CLAUDE.md, and root onboarding docs aligned when they describe the same workspace facts
  • do not duplicate long app docs when a short pointer is enough
  • if no changes are needed, say so and include the audit findings

Example Requests

  • "Refresh the repo's agent docs after adding a new app"
  • "Audit the Turborepo and update AGENTS.md files"
  • "Rebuild agent context after changing ports and route ownership"
  • "Run the periodic agent-reference refresh"
Files1
1 files · 3.9 KB

Select a file to preview

Overall Score

78/100

Grade

B

Good

Grades are signals, not a certification. Always review a skill yourself before use.

Safety

82

Quality

76

Clarity

82

Completeness

70

Summary

This skill guides agents to audit and refresh agent-reference documentation (AGENTS.md, README.md, CLAUDE.md) in a Turborepo monorepo as the workspace evolves. It provides a bundled inventory script to snapshot the current workspace structure and guidance for identifying and fixing documentation drift, with an emphasis on keeping docs concise and operational for agent navigation.

Detected Capabilities

file read (workspace structure, package.json, next.config.ts)script execution (workspace_inventory.mjs)documentation generation and updates (markdown file writes)source verification (checking package names, ports, asset prefixes)

Trigger Keywords

Phrases that agents use to match this skill to user intent.

refresh agent docsaudit turborepo docsupdate AGENTS.mdsynchronize workspace contextagent documentation drift

Risk Signals

INFO

Execution of bundled Node.js script (workspace_inventory.mjs) for workspace analysis

Quick Start section, scripts/workspace_inventory.mjs
INFO

File writes to documentation files (AGENTS.md, README.md, CLAUDE.md) in root and app directories

Workflow section 3, Output Standards
INFO

Project-scoped file reads (package.json, next.config.ts, content/, src/)

Verification section

Use Cases

  • Synchronize agent-facing docs after adding a new app to Turborepo
  • Audit documentation for missing or stale AGENTS.md files across workspaces
  • Update agent context docs after changing app ports or route ownership
  • Refresh README and CLAUDE.md entries when package names or asset prefixes change
  • Periodic agent-reference documentation maintenance in evolving monorepos

Quality Notes

  • Clear workflow structure with 5 actionable steps that guide the agent through audit and refresh phases
  • Concrete file reading targets and verification points (package.json, next.config.ts, asset prefixes) help the agent validate data
  • Output standards (keep docs short, prefer tables) provide formatting guardrails to prevent bloated documentation
  • Example requests at the end help users understand when to trigger the skill
  • Audit criteria in section 2 are specific and testable (missing AGENTS.md, stale port entries, missing shared package references)
  • Limitation: skill does not provide templates or examples of what good AGENTS.md or CLAUDE.md content looks like, only principles (concise, operational, jump-start guides)
  • No error handling documented for edge cases (broken next.config.ts, missing package.json, unreadable files)
Model: claude-haiku-4-5-20251001Analyzed: Nov 18, 2026

Reviews

Add this skill to your library to leave a review.

No reviews yet

Be the first to share your experience.

Use fauziyasin-s2m4qw/refresh-agent-context in your dev environment

Command Palette

Search for a command to run...