Official agent skill

Change Tracking

by dotnet in dotnet/efcore

Implementation details for EF Core change tracking. An agent skill from dotnet/efcore.

OfficialMITAuto-check passed

Install Change Tracking

skills CLI
$ npx skills add dotnet/efcore --skill change-tracking -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install dotnet/efcore change-tracking --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/dotnet/efcore.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/change-tracking .claude/skills/change-tracking && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
change-tracking
GitHub stars
15k
Token cost
~492 tokens
SKILL.md length
184 words
Files
1
Skills in repo
17
Repo updated
First seen
Licence
MIT

At a glance

Implementation details for EF Core change tracking. An agent skill from dotnet/efcore.

  • Changing InternalEntityEntry
  • SKILL.md covers Core Components, Change Detection, Testing and Common Pitfalls, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • SnapshotFactoryFactory

What it does

Change Tracking is an agent skill from dotnet/efcore, published by the product's own GitHub organization. Implementation details for EF Core change tracking. Use when changing InternalEntityEntry, ChangeDetector, SnapshotFactoryFactory, or related entity state, snapshot, or property accessor code.

Its SKILL.md is about 490 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: EF Core is a modern object-database mapper for .NET. It supports LINQ queries, change tracking, updates, and schema migrations. The licence is MIT.

When your agent uses it

  • Changing InternalEntityEntry
  • SnapshotFactoryFactory
  • Related entity state
  • Property accessor code

Example prompts

  • “/change-tracking”

What it can do on your machine

Read from SKILL.md and the folder at commit 7adff35. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Change Tracking loads about 492 tokens when it runs. Until then it costs about 52 tokens; SKILL.md has 184 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~52
When it runs · the whole SKILL.md, loaded when a task matches
~492

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from dotnet/efcore at commit 7adff35, republished under its MIT licence (© dotnet). 184 words, ~492 tokens.

Download SKILL.mdSave it as .claude/skills/change-tracking/SKILL.md (or your agent's skills folder).
name
change-tracking
description
Implementation details for EF Core change tracking. Use when changing InternalEntityEntry, ChangeDetector, SnapshotFactoryFactory, or related entity state, snapshot, or property accessor code.
user-invocable
false

Change Tracking

Manages entity states and detects changes for SaveChanges().

Core Components

  • StateManager — owns tracked entries, identity/reference maps, fixup, cascades, notifications, and changed counts
  • InternalEntryBase and derived classes — own per-entry state, flags, values, snapshots, and ordered state transitions
  • ChangeDetector — compares current values with baselines and reports changes through entry mutation APIs
  • SnapshotFactoryFactory subclasses — create passive original- and relationship-value baselines
  • IdentityMap — permits one active entry per key; shared identity pairs a replacement with the prior Deleted entry
  • PropertyAccessorsFactory, ClrPropertyGetterFactory and ClrPropertySetterFactory compile property accessors for efficient snapshotting and change detection
    • Ordinals in indices parameter specify element at each complex collection depth

Change Detection

  • Snapshot and notification strategies both call SetPropertyModified() to keep property flags and entity state consistent.
  • SetEntityState() validates values, updates flags and complex entries, changes state, then runs manager bookkeeping hooks.

Testing

Unit tests: test/EFCore.Tests/ChangeTracking/. Functional tests: test/EFCore.Specification.Tests/GraphUpdates/.

Common Pitfalls

PitfallSolution
There is a failure when there is shared identity entry (Added and Deleted)Add code that checks SharedIdentityEntry

Validation

  • DetectChanges() identifies modified properties via snapshot comparison
  • Setting original values marks properties as modified or unchanged based on comparison with current values

© dotnet, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/change-tracking of dotnet/efcore.

Open the folder on GitHubat commit 7adff35

Compare with similar skills

Change Tracking next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Change Tracking compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Change Tracking this skilldotnet/efcore15k—~492Automated safety check: PassMIT
DOCX Tracked Changesmohitagw15856/pm-claude-skills1.4k—~1.4kAutomated safety check: PassMIT
Cost Trackingaffaan-m/ECC274k1 repos~1.3kAutomated safety check: PassMIT
Feature Trackingsickn33/agentic-awesome-skills47k1 repos~2.5kAutomated safety check: WarnMIT
Make Changesremix-run/remix33k—~2.4kAutomated safety check: PassMIT
Time Trackingsickn33/agentic-awesome-skills47k1 repos~3.8kAutomated safety check: PassMIT

Similar skills

  • DOCX Tracked Changes

    mohitagw15856/pm-claude-skills

    Produce properly-formatted tracked changes for a Word document.

    1.4k GitHub stars~1.4k tokensUpdated yesterday
    Documents & OfficeAuto-check passed
  • Cost Tracking

    affaan-m/ECC

    Track and report Claude Code token usage, spending, and budgets from the local ECC cost-tracker metrics log.

    274k GitHub starsUsed in 1 repo~1.3k tokens
    AI & LLM EngineeringAuto-check passed
  • Feature Tracking

    sickn33/agentic-awesome-skills

    Maintain durable feature-level memory across AI coding sessions with lightweight Markdown tracks for status, source-of-truth docs, decisions, risks, and changes.

    47k GitHub starsUsed in 1 repo~2.5k tokens
    Auto-check: warnings
  • Make Changes

    remix-run/remix

    Create or update Remix repo change files under packages//.changes.

    33k GitHub stars~2.4k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Time Tracking

    sickn33/agentic-awesome-skills

    Time entry register: employee, project, client, task, hours, billable flag, rate and amount, invoice and approver.

    47k GitHub starsUsed in 1 repo~3.8k tokens
    Productivity & AutomationAuto-check passed
  • Orchestrate altering an existing, working feature to new desired behavior — update its tests to the new spec, change the implementation to match, review, and gated commit.

    274k GitHub starsUsed in 1 repo~420 tokens
    Auto-check passed

More from dotnet/efcore

All 17 skills in this repo
  • Make Skill

    dotnet/efcore

    Official

    Create and evaluate new Agent Skills for GitHub Copilot. An agent skill from dotnet/efcore.

    15k GitHub stars~2k tokensUpdated yesterday
    Auto-check passed
  • Make Custom Agent

    dotnet/efcore

    Official

    Create custom GitHub Copilot agents. An agent skill from dotnet/efcore.

    15k GitHub stars~2.3k tokensUpdated yesterday
    Auto-check passed
  • Official

    Create GitHub Actions workflows for CI, automation, or PR management.

    15k GitHub stars~1.7k tokensUpdated yesterday
    Auto-check passed
  • Make Instructions

    dotnet/efcore

    Official

    Create and evaluate VS Code file-based instructions (.instructions.md files).

    15k GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed
  • Model Building

    dotnet/efcore

    Official

    Implementation details for EF Core model building. An agent skill from dotnet/efcore.

    15k GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed
  • Run Apichief

    dotnet/efcore

    Official

    Run ApiChief in the EF Core repo to emit baselines, summaries, deltas, review files, or breaking-change checks.

    15k GitHub stars~1.3k tokensUpdated yesterday
    Auto-check passed

Questions about Change Tracking

What does Change Tracking do?

Implementation details for EF Core change tracking. An agent skill from dotnet/efcore. Change Tracking is an agent skill from dotnet/efcore, published by the product's own GitHub organization. Implementation details for EF Core change tracking.

When should I use Change Tracking?

Change Tracking fits situations like: changing InternalEntityEntry; snapshotFactoryFactory; related entity state; property accessor code.

How do I install Change Tracking in Claude Code?

Run `npx skills add dotnet/efcore --skill change-tracking -a claude-code`. Or copy the skill folder (.agents/skills/change-tracking in dotnet/efcore) into .claude/skills/change-tracking in your project. Claude Code loads it when a task matches its description.

How do I install Change Tracking in Codex?

Run `npx skills add dotnet/efcore --skill change-tracking -a codex`. Or copy the skill folder (.agents/skills/change-tracking in dotnet/efcore) into .agents/skills/change-tracking in your project. Codex loads it when a task matches its description.

Can I use Change Tracking in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add dotnet/efcore --skill change-tracking -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/change-tracking, .gemini/skills/change-tracking, .github/skills/change-tracking and .opencode/skills/change-tracking in your project.

What does Change Tracking need to run?

SKILL.md names no scripts, command-line tools or credentials: Change Tracking is instructions for the agent only.

Does Change Tracking access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Change Tracking safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Change Tracking use?

Change Tracking is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Change Tracking use?

About 492 tokens (SKILL.md is roughly 2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Change Tracking?

Skills that share tags, products or a category with Change Tracking: DOCX Tracked Changes (mohitagw15856/pm-claude-skills, 1.4k stars), Cost Tracking (affaan-m/ECC, 274k stars), Feature Tracking (sickn33/agentic-awesome-skills, 47k stars) and Make Changes (remix-run/remix, 33k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Change Tracking?

dotnet (a GitHub organization, an official publisher) maintains it in dotnet/efcore, which has 14,800 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on October 7, 2026.

Source: dotnet/efcore on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.