Logo von Skill Staleness Check

Skill Staleness Check

Organisation
TanStack
skill-staleness-check

Use when reviewing an upstream TanStack webhook payload containing the package, commit SHA, and changed files for stale skill guidance. For ordinary library changes or Intent review reports, use generate-skill instead.

Übersicht

HerausgeberTanStack
Repositoryintent
Skill-Nameskill-staleness-check
Sterne
355
Forks
26
Mitgelieferte Dateien
Nur Anweisungen
LizenzMIT
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • In sich abgeschlossen

    Alles, was das Modell braucht, steht in den Anweisungen — keine zusätzlichen Dateien zum Synchronisieren.

  • Open Source

    Von TanStack auf GitHub veröffentlicht. Prüfen Sie den Quellinhalt vor der Installation.

Installation

Installieren Sie den KI-Skill Skill Staleness Check in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner — liest SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/TanStack/intent/tree/main/packages/intent/meta/skill-staleness-check
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill anlegen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format lesen kann, kann diesen Skill nutzen — kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/TanStack/intent.git /tmp/intent
mkdir -p .claude/skills
cp -r /tmp/intent/packages/intent/meta/skill-staleness-check .claude/skills/skill-staleness-check
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Skill Staleness Check in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Skill Staleness Check automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Skill Staleness Check nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Keys.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Skill Staleness Check

You are a coding agent. Your job is to evaluate whether intent skills are stale after upstream source changes, and if so, update them and open PRs. You act autonomously end-to-end. PRs contain already-updated skill content, not suggestions.

If nothing needs updating, exit silently. No PR, no notification.


Inputs

Webhook payload from an upstream package repo merge to main:

json
{
  "package": "@tanstack/query",
  "sha": "abc123",
  "changed_files": ["docs/framework/react/guides/queries.md", "src/query.ts"]
}

Step 1 — Match changed files to skills

Read all SKILL.md files under packages/intent/skills/. For each skill, extract sources from the frontmatter.

Match changed_files from the webhook against sources entries across all skills. Source references use the format Owner/repo:relative-path and support glob patterns.

A skill is a candidate if any of its sources entries match a changed file.

If no skills match, exit silently.

Using intent stale

There is no separate sync script — intent stale [dir] [--json] is the real, existing staleness signal (see docs/cli/intent-stale.md). It is read-only: it reports drift, it does not write anything. For a given library:

bash
intent stale packages/query --json

This reports:

  • Library version drift (library_version in a skill's frontmatter vs the currently published version), classified major/minor/patch.
  • Missing source SHAs recorded in that package's skills/sync-state.json (a conservative signal — it flags gaps in the stored SHA record, not actual remote content differences; see the doc's Notes section).

intent stale does not classify "needs regeneration" vs "version bump only" the way a dedicated sync tool might — that classification is this skill's own job, done in Step 2 below using the actual source diff, not intent stale's output alone.


Step 2 — Evaluate each candidate

For each matched skill:

  1. Read the current SKILL.md content
  2. Fetch the file diff from the triggering commit in the source repo
  3. Classify the change:
ClassificationCriteriaAction
No impactDiff is typo fix, comment change, test-only, or internal refactor with no API/behavior changeSkip — no update needed
Version bump onlyDiff changes version numbers, dependency ranges, or metadata but no documented behaviorBump library_version in frontmatter
Content updateDiff changes API shape, behavior, defaults, types, or patterns that the skill documentsRewrite affected sections
Breaking changeDiff removes, renames, or fundamentally changes an API the skill documentsRewrite + add old pattern as Common Mistake

Two-pass classification

Pass 1 — Quick scan: Read the diff summary (files changed, insertions, deletions). Identify which skill sections could be affected.

Pass 2 — Detail evaluation: For each potentially affected section, read the full diff hunks and compare against the skill content. Determine if the change actually affects what the skill documents.

This prevents over-updating. A 200-line diff to a source file may only affect one line of one skill, or none at all.


Step 3 — Update stale skills

For skills classified as needing content updates:

  1. Load the generate-skill meta skill
  2. Provide it with:
    • The existing SKILL.md content
    • The source diff
    • The current source documentation (fetch the updated file)
  3. Use regeneration mode (surgical update, not full rewrite)
  4. Validate the updated skill against all checks

For version bump only:

There is no write-capable script for this. Edit library_version directly in each affected skill's frontmatter, then update the recorded SHA(s) for that library in its skills/sync-state.json (see Step 5) to reflect the new synced state.


Step 4 — Check cross-skill references

After updating skills in Step 3, check for cross-skill staleness:

  1. For each skill that was updated, read its name
  2. Scan all other skills for requires entries or sources that reference the updated skill
  3. For each skill that references an updated skill, evaluate whether the update makes the referencing skill stale or inconsistent
  4. If stale → update using the same process as Step 3
  5. If not → skip

This cascade is bounded to one level. Skills that reference a second-order dependency are not automatically re-checked.


Step 5 — Mark skills as synced

There is no write-capable script for this either. After updating a skill, edit that library's skills/sync-state.json directly: update library_version and the affected skill's skills[skillName].sources_sha map with the new source file SHA(s) from the commit that triggered this run. (That is the real current shape read by intent stale — it has no separate tree-generator SHA or sync-timestamp field, despite what an earlier version of this doc implied.)


Step 6 — Open PRs

For each skill (or group of skills) that was updated:

  1. Create branch: skill-update/<skill-name>-<short-sha>
  2. Commit updated SKILL.md file(s)
  3. Open PR with structured body

PR format

Title: skill: update <skill-name> (<package>@<short-sha>)

Body:

markdown
### Triggered by

Changes to: <list of source files that matched>

### What changed in the source

<summary of the diff — 2–3 sentences max>

### What changed in the skill

<summary of skill edits — which sections were updated and why>

### Cross-skill impact

<list any downstream skills checked; note if PRs were opened for them>

### Review checklist

- [ ] Skill content is accurate
- [ ] Code examples are complete and copy-pasteable
- [ ] No other skills need corresponding updates
- [ ] Under 500 lines

Grouping PRs

  • If multiple skills for the same library are affected by the same commit, group them in a single PR
  • If a cross-skill update is needed (Step 4), open a separate PR for the downstream skill to keep review scopes clean
  • Never mix skills from different libraries in the same PR

No-op behavior

Exit silently (no PR, no notification, no issue) when ANY of these are true:

  • No changed files match any skill's sources
  • All matched diffs are classified as "no impact" in Step 2
  • intent stale reports all skills up-to-date (All skills up-to-date, per docs/cli/intent-stale.md)

Operational notes

GitHub API usage

This skill (not a separate script) uses the gh CLI directly for GitHub API access — fetching source diffs in Step 2 and opening PRs in Step 6. It requires:

  • gh CLI installed and authenticated
  • Read access to upstream TanStack package repos (query, router, db, form, table)
  • Write access to the intent repo for creating branches and PRs

Rate limiting

When checking multiple libraries or many source files, this makes one API call per source file per skill during Step 2's diff fetch. For large batches, the GitHub API rate limit (5000 requests/hour for authenticated users) may apply. There is no batching or response caching in place — if this becomes an issue, add caching around the diff-fetch step.

Manual triggering

Maintainers can run the read-only staleness signal manually, outside the webhook-triggered flow:

bash
# Check a specific library
intent stale packages/db

# JSON output
intent stale packages/db --json

This only reports drift (version drift, missing source SHAs) — it does not update sync-state.json or open PRs; those remain Step 5 and Step 6 of this skill's own workflow, done manually as described above.


Constraints

RuleDetail
Silent when nothing changesNo noise — exit cleanly if no updates needed
Surgical updates over full rewritesOnly change sections affected by the diff
One cascade levelCross-skill checks go one level deep, not recursive
PRs scoped to one libraryNever mix libraries in a single PR
Version bumps are separate from content updatesA version-only bump doesn't require regeneration
Commit messages include co-authorInclude the coding agent's co-author tag

Häufig gestellte Fragen

Was macht der KI-Skill Skill Staleness Check?

Use when reviewing an upstream TanStack webhook payload containing the package, commit SHA, and changed files for stale skill guidance. For ordinary library changes or Intent review reports, use generate-skill instead.

Warum Skill Staleness Check in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Skill Staleness Check besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Skill Staleness Check in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/TanStack/intent/tree/main/packages/intent/meta/skill-staleness-check ein. TypingMind liest die Datei SKILL.md und installiert den Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Skill Staleness Check nutzen?

Jedes Modell, das Sie in TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Skill Staleness Check verwenden?

So viele Sie möchten. Solange ein Modell Skills unterstützt, können Sie Skill Staleness Check damit verwenden – GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama und weitere – alles in TypingMind mit Ihren eigenen API-Schlüsseln.

Ist der KI-Skill Skill Staleness Check kostenlos?

Ja. Der Skill wird von TanStack auf GitHub unter der Lizenz MIT veröffentlicht. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: eine Datei namens SKILL.md mit einem Namen und einer Beschreibung sowie allen Skripten, Vorlagen oder Referenzdateien, die das Modell möglicherweise benötigt. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und benötigen daher weder Server noch API-Schlüssel oder Laufzeitumgebung. Sie funktionieren mit jedem Modell.

Alle

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇