Skip to content

docs(skill): reconcile skill.md drift + add CI drift guard - #153

Open
iret77 wants to merge 1 commit into
mainfrom
docs/reconcile-skill-md-drift
Open

docs(skill): reconcile skill.md drift + add CI drift guard#153
iret77 wants to merge 1 commit into
mainfrom
docs/reconcile-skill-md-drift

Conversation

@iret77

@iret77 iret77 commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Reconciled die über frühere PRs entstandene Drift zwischen den beiden skill.md-Dateien und baut einen CI-Guard ein, damit sie nicht wiederkehrt.

Ausgangslage: docs/skill.md (kanonisch, via include_str! in den nativen Rust-MCP-Server eingebettet) und python/src/aiui_mcp/skill.md (mitgelieferte Kopie für die Python-Bridge aiui-mcp auf remote SSH-Hosts) waren auseinandergelaufen — der Python-Kopie fehlten ganze Abschnitte, obwohl die Python-Bridge (verifiziert gegen server.py) dieselbe Tool-/Feld-Fläche registriert.

Geschlossene Lücken (in die Python-Kopie portiert, host-gerecht formuliert):

  • compare-Tool-Abschnitt + Tool-Choice-Zeile + Fenstergrößen-Hinweis
  • annotated_image-Formularfeld
  • Image sources (src/thumbnail) + Anti-Pattern „shell-encoding data: URLs"
  • Tool-Choice-Tabelle auf Parität gebracht (fehlende Zeilen ergänzt)

Bewusst erhaltenes Per-Bridge-Tailoring: Frontmatter-Description, Intro-Wording („user's machine"), der upload-Abschnitt (Bridges unterscheiden sich real), width/height-Overrides (per Allowlist).

Drift-Guard: scripts/check-skill-drift.sh vergleicht die Feld-/Tool-Abschnitts-Marker beider Dateien und schlägt fehl, wenn eine Datei ein Tool/Feld dokumentiert, das der anderen fehlt (kleine Allowlist für gewollte Abweichungen, im Skript dokumentiert). Als leichter skill-drift-Job in ci.yml verdrahtet.

Kein Versions-Bump (bleibt 0.8.3), CHANGELOG [Unreleased]### Fixed. Nachlauf zum Feature-Batch (#146/#23/#24/#25/#17).


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

… guard

The Python bridge copy (python/src/aiui_mcp/skill.md) had drifted from the
canonical docs/skill.md and was missing whole sections for capabilities
that BOTH bridges expose: the compare tool, the annotated_image form
field, and the Image sources (src/thumbnail) resolution rules plus the
data:-URL shell-encoding anti-pattern. Port those into the Python copy
(worded for the bridge host), and reflect compare in the intro list,
tool-choice table, and window-size section. Deliberate per-bridge
tailoring (frontmatter, intro wording, terser prose, width/height size
overrides) is preserved.

Add scripts/check-skill-drift.sh, which compares the field/tool section
headers of the two copies and fails if either documents a field/tool the
other doesn't (with a small commented allowlist for intentional
divergences), wired in as the lightweight skill-drift CI job.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant