context-updater

Updates distilled context files to match approved ADRs and codebase patterns.

Updated Nov 19, 2020
One-click install
npx skills add https://github.com/kwojtasinski-repo/ECommerceApp --skill context-updater-kwojtasinski-repo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: context-updater
Source: https://github.com/kwojtasinski-repo/ECommerceApp/tree/main/.github/skills/context-updater
Command: npx skills add https://github.com/kwojtasinski-repo/ECommerceApp --skill context-updater-kwojtasinski-repo

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Distilled context files in .github/context drift out of sync with the actual codebase and approved ADRs over time, causing AI agents and developers to follow outdated patterns, removed base classes, or stale anti-pattern rules. ## Core Features & Use Cases - Targeted or full updates: Update a single named context file or audit all files in .github/context/ when no argument is given. - Source-of-truth mapping: Each context file is regenerated from defined authoritative sources such as instruction files, ADRs, and current bounded-context folders. - RAG-assisted verification: Uses query_docs to check the most recent ADR covering an area before editing, then spot-checks examples against real code. - Use Case: After merging a new ADR that changes a DI convention, run this Skill to refresh anti-patterns-critical.context.md and project-state.md so agent guidance reflects the new standard. ## Quick Start Ask the agent to run the context-updater skill with 'all' to synchronize every context file with the latest ADRs and codebase patterns.

Frequently Asked Questions about context-updater

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I update GitHub Copilot context files after an ADR changes?

Run the context-updater skill with the context file name or 'all'. It reads the authoritative sources mapped to each file, checks the latest ADR via query_docs, and rewrites only what actually changed while keeping files under 120 lines.

How to keep AI agent instructions in sync with codebase patterns?

Use this skill after any core pattern change such as a new base class or DI convention. It cross-references instruction files, ADRs, and current bounded-context folders, then spot-checks examples against real code to remove outdated guidance.

When should I run the context-updater skill?

Run it after a new ADR is approved and merged, after a significant pattern change like a new bounded-context convention, or whenever a context file is observed to diverge from the actual codebase.

What is the difference between anti-patterns-critical and anti-patterns-advisory context files?

anti-patterns-critical.context.md contains only BLOCKS MERGE rules sourced from safety and dotnet instruction files. anti-patterns-advisory.context.md contains only P2/P3 non-blocking rules, and the skill enforces this separation during updates.

Does context-updater modify ADRs or source code?

No, it only edits files under .github/context/. It may suggest follow-up actions such as running copilot-setup-maintainer or updating an ADR status table, but it never changes ADRs or application code itself.