Skip to content

fix-project-metadata-mismatches

An agent skill for Codex and Claude Code that finds project metadata drift across local files and aligns those files only when asked.

Role
Agent workflow design and automation engineering
Scope
Agent workflow, validation automation, and packaging
Status
Published npm package v0.1.0
Several metadata files compared field by field with one version mismatch reported

Problem

A project's name, version, links, and compatibility claims are repeated across manifests, lockfiles, documentation, deployment configuration, and catalogs, and those copies drift apart. Users then follow broken links, run the wrong install command, or read conflicting compatibility claims. Finding and reconciling every copy by hand is slow and easy to get wrong.

Constraints

  1. C1

    Each metadata field has its own authoritative source, so no single file can be treated as the truth for everything.

  2. C2

    A human-facing description must match what the project actually does, not just what the manifest says.

  3. C3

    Permission to synchronize local files does not extend to publishing or changing remote metadata.

Architecture

A source precedence model names the authoritative file for each field, and a deterministic auditor compares every copy against that authority. After any reconciliation, the repository's own validation runs, and the skill itself is distributed through npm.

01

Skill workflow

An evidence and source precedence model decides which file is authoritative for each metadata field.

02

Automation

A deterministic auditor detects drift between copies and drives a scoped reconciliation workflow.

03

Verification

Repository-native validation checks downstream consumers after edits, and npm distribution packages the skill for installation.

Decisions

D1

Define source authority field by field

Names, versions, and URLs each have a different natural owner, so one universal source of truth would overwrite correct values with wrong ones. The cost is a more detailed rule set.

D2

Report ambiguity instead of guessing

When sources disagree and none is clearly authoritative, overwriting would hide the conflict. Leaving the value for manual resolution is slower but keeps the repository honest.

D3

Validate every downstream consumer after edits

A metadata change can break anything that reads the field, so the repository's own checks run after each reconciliation before the change is trusted.

Contribution

  • Encoded the canonical-source rules for each metadata field.
  • Built metadata drift detection.
  • Designed scoped local synchronization and validation reporting.
  • Added safe installation and package tests.

Outcomes

  • Agents can identify conflicting names, versions, and URLs across a project.
  • Agents repair only the local copies they are authorized to change.
  • Unknown values are preserved for manual resolution instead of being overwritten.
  • Remaining remote actions are reported separately from completed local work.

Verified stack

  • Agent Skills
  • JavaScript
  • Node.js
  • npm
  • GitHub Actions
  • CI/CD

Working through something similar?

Share your challenge, scope, and timeline to start a focused conversation.