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.zipInstalls 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 keepKey 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
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)
| File | Purpose | Audience |
|---|---|---|
.github/copilot-instructions.md | Project overview, commands, coding conventions, testing, CI | GitHub Copilot (all interactions) |
AGENTS.md | Build/validate sequence, project structure, coding patterns, pitfalls | Claude Code, Copilot agents |
Tier 2: Scoped Instructions (loaded when editing matching files)
| File | applyTo Glob | Purpose |
|---|---|---|
.github/instructions/elements.instructions.md | elements/**/*.js,elements/**/*.html | Polymer element patterns, naming, i18n, style |
.github/instructions/addons.instructions.md | addons/** | Addon structure, loading, conventions |
.github/instructions/unit-tests.instructions.md | test/**/*.test.js,test/**/*.js | Unit test framework, structure, rules |
.github/instructions/functional-tests.instructions.md | ftest/**,packages/nuxeo-web-ui-ftest/** | Functional test framework, conventions |
.github/instructions/i18n.instructions.md | i18n/** | i18n file structure, key conventions, merge build |
.github/instructions/themes.instructions.md | themes/** | Theme structure, CSS custom properties, base styles |
.github/instructions/document-layouts.instructions.md | elements/document/** | Document type layout naming, LayoutBehavior, modes |
.github/instructions/search-layouts.instructions.md | elements/search/** | Search form/results naming, aggregations, page providers |
.github/instructions/build-config.instructions.md | webpack.config.js,eslint.config.mjs,web-test-runner.config.mjs,prettier.config.js | Build toolchain conventions |
Tier 3: Skills (invoked on demand for specific tasks)
| File | Trigger |
|---|---|
.github/skills/add-i18n-keys/SKILL.md | Add/update i18n message keys |
.github/skills/create-document-layout/SKILL.md | Generate document type layouts |
.github/skills/link-nuxeo-elements/SKILL.md | Link local nuxeo-elements for co-development |
.github/skills/update-ai-context/SKILL.md | Audit and update all AI context files |
.github/skills/write-functional-test/SKILL.md | Generate functional tests |
.github/skills/write-unit-test/SKILL.md | Generate unit tests |
Tier 4: Human-Facing Docs (also read by AI for context)
| File | Purpose |
|---|---|
README.md | Project overview, prerequisites, quick start, links |
ARCHITECTURE.md | System architecture, component hierarchy, data flow, extension points |
PRODUCT.md | Product capabilities, user workflows, feature descriptions |
CONTRIBUTING.md | Setup, 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.jsonengines field - Directory structure — new or removed folders under
elements/,addons/,test/,ftest/ - Commands —
npmscripts inpackage.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
npmscript 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
applyToglob 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.jsonengines) - 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
npmscripts 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
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.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| update-ai-context (this skill) | 0 | 1mo | Review | Intermediate |
| mspec-delta | 0 | 2mo | No flags | Intermediate |
| writing-plans | 0 | 2mo | Review | Intermediate |
| korean-skill-creator | 8 | 9mo | Review | Beginner |
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
writing-plans
AntonyKervazoCanut
Convert a spec or requirement into a numbered, executable implementation plan
korean-skill-creator
clwmfksek
한글 기반 클로드 스킬 자동 생성 도구. 사용자가 "클로드 스킬을 만들어줘" 또는 "[요구사항] 스킬 만들어줘"라고 요청할 때 사용. Progressive disclosure 원칙을 따르는 한글 문서 구조(SKILL.md + references/)를 자동으로 생성하고, 실전 예시를 포함한 일관성 있는 스킬 템플릿을 제공.
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.
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.
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.