UP

update-ai-context

Sync Nuxeo project AI-facing documentation with the current codebase status.

Install

mkdir -p .claude/skills/update-ai-context && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/10685" && unzip -o skill.zip -d .claude/skills/update-ai-context && rm skill.zip

Installs to .claude/skills/update-ai-context

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Update all AI context markdown files in the Nuxeo Web UI project to keep
72 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Audit AI context files
  • Sync documentation with code
  • Verify command accuracy
  • Update dependency references
  • Refresh architectural diagrams

How it works

It scans the codebase for structural changes and updates AI-facing markdown files to ensure they remain accurate for LLM context.

Inputs & outputs

You give it
Project codebase
You get back
Updated markdown documentation

When to use update-ai-context

  • Refresh AI context files
  • Audit project documentation
  • Sync instruction files with new code structure

About this skill

Update AI Context Files

Systematically audit and update all AI-facing markdown files in the project to keep them accurate and in sync with the actual codebase.

Why This Matters

AI coding assistants (Copilot, Claude, etc.) rely on these files for context. Stale or inaccurate instructions lead to wrong code generation, outdated patterns, and wasted developer time. These files should be treated as living documentation that evolves with the codebase.

Inventory of AI Context Files

Tier 1: Global Context (loaded for every interaction)

FilePurposeAudience
.github/copilot-instructions.mdProject overview, commands, coding conventions, testing, CIGitHub Copilot (all interactions)
AGENTS.mdBuild/validate sequence, project structure, coding patterns, pitfallsClaude Code, Copilot agents

Tier 2: Scoped Instructions (loaded when editing matching files)

FileapplyTo GlobPurpose
.github/instructions/elements.instructions.mdelements/**/*.js,elements/**/*.htmlPolymer element patterns, naming, i18n, style
.github/instructions/addons.instructions.mdaddons/**Addon structure, loading, conventions
.github/instructions/unit-tests.instructions.mdtest/**/*.test.js,test/**/*.jsUnit test framework, structure, rules
.github/instructions/functional-tests.instructions.mdftest/**,packages/nuxeo-web-ui-ftest/**Functional test framework, conventions
.github/instructions/i18n.instructions.mdi18n/**i18n file structure, key conventions, merge build
.github/instructions/themes.instructions.mdthemes/**Theme structure, CSS custom properties, base styles
.github/instructions/document-layouts.instructions.mdelements/document/**Document type layout naming, LayoutBehavior, modes
.github/instructions/search-layouts.instructions.mdelements/search/**Search form/results naming, aggregations, page providers
.github/instructions/build-config.instructions.mdwebpack.config.js,eslint.config.mjs,web-test-runner.config.mjs,prettier.config.jsBuild toolchain conventions

Tier 3: Skills (invoked on demand for specific tasks)

FileTrigger
.github/skills/add-i18n-keys/SKILL.mdAdd/update i18n message keys
.github/skills/create-document-layout/SKILL.mdGenerate document type layouts
.github/skills/link-nuxeo-elements/SKILL.mdLink local nuxeo-elements for co-development
.github/skills/update-ai-context/SKILL.mdAudit and update all AI context files
.github/skills/write-functional-test/SKILL.mdGenerate functional tests
.github/skills/write-unit-test/SKILL.mdGenerate unit tests

Tier 4: Human-Facing Docs (also read by AI for context)

FilePurpose
README.mdProject overview, prerequisites, quick start, links
ARCHITECTURE.mdSystem architecture, component hierarchy, data flow, extension points
PRODUCT.mdProduct capabilities, user workflows, feature descriptions
CONTRIBUTING.mdSetup, development workflow, PR process, coding standards

Update Workflow

Step 1: Detect What Changed

Scan the codebase to identify what has changed since the context files were last updated:

- Check git log for recent changes: structural moves, new elements, deleted files
- Compare directory listings against what's documented
- Check package.json for dependency changes (versions, new deps, removed deps)
- Check webpack.config.js, eslint.config.mjs, web-test-runner.config.mjs for config changes
- Check for new addons, elements, test files, feature files
- Check for renamed or moved files/directories

Key things to verify against reality:

  • Node version in package.json engines field
  • Directory structure — new or removed folders under elements/, addons/, test/, ftest/
  • Commandsnpm scripts in package.json
  • Dependencies@nuxeo/* package versions, Polymer version
  • Element list — new elements added, old ones removed
  • Addon list — new addons, removed addons
  • Test patterns — any framework changes (WDIO version, Web Test Runner config)
  • CI workflows in .github/workflows/
  • Environment variables referenced in code

Step 2: Update Each File

For each file, follow the specific guidelines below.

.github/copilot-instructions.md

This is the most important file — it's the first thing Copilot reads.

Sections to audit:

  • Project Overview — runtime, Node version, build tool, package manager
  • Repository Layout — directory tree accuracy
  • Commands table — verify every npm script still exists and works
  • Coding Conventions — Polymer patterns, style rules, naming
  • Testing — frameworks, helper packages, run commands
  • CI / GitHub Actions — workflow names and sequence
  • Environment Variables — new or removed vars

Rules:

  • Keep under 200 lines (Copilot context window limit)
  • Focus on what AI needs to generate correct code, not human onboarding
  • Commands must be copy-pasteable and correct
  • Don't duplicate what's in scoped instructions — reference them instead

AGENTS.md

Similar to copilot-instructions but for Claude Code and autonomous agents.

Sections to audit:

  • Build & Validate sequence
  • Project Structure tree
  • Coding Patterns with examples
  • Common Pitfalls — are these still valid?

Rules:

  • Can be more concise than copilot-instructions (agents read both)
  • Emphasize the build/validate loop — agents must know how to check their work
  • Include exact commands, not descriptions of commands

.github/instructions/*.instructions.md

Each file is scoped to specific file patterns via applyTo frontmatter.

Audit:

  • Verify the applyTo glob still matches the right files
  • Check that patterns and examples reflect current code
  • Check that referenced imports, behaviors, APIs still exist
  • Verify test framework versions and helper APIs

Rules:

  • Keep each file focused and short (under 50 lines)
  • Only include information relevant to the scoped file pattern
  • Don't repeat global context — that's in copilot-instructions.md

.github/skills/*/SKILL.md

Each skill teaches AI how to perform a specific task.

Audit:

  • Templates — do the code templates match current codebase patterns?
  • License header — is the year and company name current?
  • Imports — do import paths still resolve?
  • File paths — are the conventional paths still correct?
  • API patterns — do behaviors, widgets, methods still exist?
  • Name/description frontmatter — still accurate trigger descriptions?

Rules:

  • Templates must produce code that passes npm run lint
  • Import paths must resolve against current node_modules
  • License header must match what's in current source files
  • Keep SKILL.md under 500 lines (progressive disclosure — use references/ for overflow)

ARCHITECTURE.md

Audit:

  • System diagram accuracy
  • Component hierarchy
  • Data flow descriptions
  • Extension point documentation
  • Build pipeline description

Rules:

  • Use ASCII diagrams (not images) so AI can parse them
  • Focus on structural relationships, not implementation details
  • Include dependency graph if it has changed

README.md

Audit:

  • Prerequisites (Node version matches package.json engines)
  • Quick start commands still work
  • Links to external resources (Nuxeo Platform, nuxeo-elements) are not broken
  • Badge URLs and CI status links are current

Rules:

  • Keep concise — this is the first thing a new contributor sees
  • Commands must be copy-pasteable and correct
  • Don't duplicate detailed info from CONTRIBUTING.md or ARCHITECTURE.md

PRODUCT.md

Audit:

  • Feature list accuracy — new features added? Old ones deprecated?
  • User workflow descriptions
  • Capability sections

Rules:

  • Write from the user's perspective, not the developer's
  • AI reads this to understand what the product does, not how it's built

CONTRIBUTING.md

Audit:

  • Prerequisites (Node version, Java version, etc.)
  • Setup commands
  • Development workflow
  • PR process
  • Code review checklist

Rules:

  • All commands must be verified working
  • Prerequisites must match actual requirements

Step 3: Cross-Reference Consistency

After updating individual files, verify consistency across all of them:

  • Node version — same in copilot-instructions, AGENTS, CONTRIBUTING
  • Commands — same npm scripts referenced everywhere
  • Directory structure — same paths in all files
  • Coding conventions — same Prettier/ESLint config described
  • Test commands — same framework and run commands
  • License header — same year and company across all templates

Step 4: Validate

After making changes:

# Verify the documented commands actually work
npm install
npm run lint
npm test

# Check for broken references in markdown
# (file paths, element names, import paths mentioned in docs)

When to Run This Skill

  • After a major refactor (file moves, renames, new directory structure)
  • After a dependency upgrade (Polymer, WDIO, @web/test-runner, Node version bump)
  • After adding new elements, addons, or features
  • After changing build configuration (webpack, eslint, CI workflows)
  • Quarterly as a maintenance task to catch drift
  • When an AI assistant generates incorrect code that suggests stale context

When not to use it

  • Non-Nuxeo projects
  • Manual documentation updates

Prerequisites

package.jsonwebpack.config.js

Limitations

  • Requires manual validation of updated files
  • Limited to Nuxeo Web UI project

How it compares

It treats documentation as living code, ensuring AI assistants have up-to-date context after major refactors.

Compared to similar skills

update-ai-context side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
update-ai-context (this skill)01moReviewIntermediate
mspec-delta02moNo flagsIntermediate
writing-plans02moReviewIntermediate
korean-skill-creator89moReviewBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

mspec-delta

tubone24

delta step of mspec workflow — generate Delta Spec with auto-numbered FR-NNN

00

writing-plans

AntonyKervazoCanut

Convert a spec or requirement into a numbered, executable implementation plan

00

korean-skill-creator

clwmfksek

한글 기반 클로드 스킬 자동 생성 도구. 사용자가 "클로드 스킬을 만들어줘" 또는 "[요구사항] 스킬 만들어줘"라고 요청할 때 사용. Progressive disclosure 원칙을 따르는 한글 문서 구조(SKILL.md + references/)를 자동으로 생성하고, 실전 예시를 포함한 일관성 있는 스킬 템플릿을 제공.

8132

skill-forge

WilliamSaysX

Automated skill creation workshop with intelligent source detection, smart path management, and end-to-end workflow automation. This skill should be used when users want to create a new skill or convert external resources (GitHub repositories, online documentation, or local directories) into a skill. Automatically fetches, organizes, and packages skills with proactive cleanup management.

11115

svelte-expert

Raudbjorn

Expert Svelte/SvelteKit development assistant for building components, utilities, and applications. Use when creating Svelte components, SvelteKit applications, implementing reactive patterns, handling state management, working with stores, transitions, animations, or any Svelte/SvelteKit development task. Includes comprehensive documentation access, code validation with svelte-autofixer, and playground link generation.

11107

readme-generator

aws-samples

This skill should be used when users want to create or improve README.md files for their projects. It generates professional documentation following the Deep Insight/Strands SDK style - comprehensive yet focused, with clear structure and practical examples.

339

Search skills

Search the agent skills registry