Logo von Web Research Kb Refresh

Web Research Kb Refresh

Community
d-padmanabhan
web-research-kb-refresh

Refresh a project knowledge base from web research with strict tool-call budgets, cross-referenced sources, atomic file swaps, and rollback-on-failure. Use when refreshing a KB-backed analysis (vendor facts, compliance posture, market data, security advisories), running long web-research workflows that must be predictable in cost and time, or designing any "regenerate-from-the-web" command. Generalizes the /facts-update pattern of capping web-tool calls per unit of work, keeping research separate from analyst judgment, and writing back atomically with a timestamped archive.

Übersicht

Herausgeberd-padmanabhan
Repositoryagent-engineering-handbook
Skill-Nameweb-research-kb-refresh
Sterne
20
Forks
3
Mitgelieferte Dateien
2
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.

  • Mitgelieferte Dateien: 2

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von d-padmanabhan auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Web Research Kb Refresh 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. Dabei liest die App 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/d-padmanabhan/agent-engineering-handbook/tree/main/skills/web-research-kb-refresh
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Ü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 unterstützt, 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/d-padmanabhan/agent-engineering-handbook.git /tmp/agent-engineering-handbook
mkdir -p .claude/skills
cp -r /tmp/agent-engineering-handbook/skills/web-research-kb-refresh .claude/skills/web-research-kb-refresh
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Web Research Kb Refresh 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 Web Research Kb Refresh 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 Web Research Kb Refresh 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-Schlüsseln.

  • 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.

Web-Research KB Refresh

Operational pattern for refreshing a knowledge base from the web with predictable cost, time, and provenance. Generalizes the consulting-toolkit /facts-update pattern so it applies to any KB-backed analysis (vendor facts, compliance posture, market data, security advisories, library/API references, etc.).

Companion rules:

  • 015-context-engineering.mdc - prompt packing, retrieval, compaction
  • 120-utilities.mdc - the underlying tools (lynx, curl, jq, ripgrep)
  • 316-zero-trust.mdc - audit and observability principles

When to invoke

Use when the user asks to:

  • "Refresh the KB" / "update the facts" / "regenerate from the web"
  • "Pull current pricing / docs / advisories" for a list of items
  • "Re-research vendor X across the catalog"
  • Build a new long-running command that calls web tools at scale

Do not use for:

  • One-off queries (just call WebSearch / WebFetch directly)
  • Real-time streams (this pattern is batch-style)
  • Anything where the answers are not stored in a structured KB

The Five Golden Rules

  1. Hard cap per unit of work - state it up front; refuse to exceed it.
  2. Cross-reference threshold - claims need >=2 independent sources or 1 vendor-primary + 1 analyst.
  3. Up-front warning + explicit confirmation before any potentially-long operation.
  4. Atomic write + rollback - archive the old file before writing; verify the new file imports / parses; restore on failure.
  5. REVIEW placeholders, never fabrication - if coverage is thin, mark the gap explicitly with reason; never silently invent.

The pattern, end to end


Workflow 1 - Set the budget and announce it

Before any web tool call:

  1. State the cap aloud. "This refresh will run up to N web-tool calls per item, capped hard. For M items, that is roughly T minutes elapsed."
  2. AskQuestion to confirm. Do not bury the cost; do not assume.
  3. AskQuestion to scope. All items / gaps only / refresh existing only / specific list.
  4. Record the budget for the report. It goes into the final summary.

Defaults that work for most KBs:

  • 9 calls per item (covers initial pass + deep reads + gap-fills with 1 to spare)
  • 3 sources per claim maximum (more is noise, not confidence)
  • 2 sources per claim minimum, OR 1 vendor-primary corroborated by 1 analyst
  • REVIEW threshold at the cap: if coverage is still thin at call 9, mark the gap and move on

Tune per domain - security advisories may need fewer calls (CVE feeds are authoritative); market data may need more (more triangulation needed).


Workflow 2 - Multi-intent queries (economize calls)

The single biggest lever on cost. One query, several intents.

Bad (6 calls for one item):

"Confluent Kafka overview"
"Confluent Kafka pricing"
"Confluent Kafka competitors"
"Confluent Kafka company stability"
"Confluent Kafka anti-patterns"
"Confluent Kafka biggest competitor"

Good (3 calls for the same coverage):

"Confluent Kafka 2026 overview competitors pricing"
"Confluent Kafka company stability ownership 2026"
"Confluent Kafka vs <likely_competitor> comparison"

The first query covers four research columns; the second covers two; the third triangulates the comparison column. Shapes the sources to corroborate each other, not duplicate.


Workflow 3 - Cross-referencing rule

A claim is sound when:

  • Two independent sources agree, OR
  • One vendor-primary source is corroborated by one analyst/market source

Never:

  • One source for a non-obvious claim (mark REVIEW)
  • Four or more sources for the same claim (noise; cap at 3)
  • All vendor sources for a competitor comparison (use analyst sources for those)

Source taxonomy (carry into the evidence tuples):

TagUse
sourceThe original input file / brief / spec
vendor-docsVendor's own product, docs, pricing, SDK pages
analystGartner, Forrester, IDC, 451, GigaOm, etc.
marketRate cards, salary surveys, public benchmarks
case-studyPublic migration / customer story
judgementAnalyst judgment carried over (use sparingly)
regulatorFDA / FCC / SEC / etc. official text (compliance KBs)
cveNVD / GitHub Advisory / vendor security bulletin (security KBs)

Workflow 4 - Atomic write with rollback

The point: downstream consumers (generators, dashboards, slash commands) import a canonical filename. The refresh must be transparent to them - they should not need to learn a new filename. So:

  1. Archive the old file to <canonical>_<YYYYMMDD-HHMMSS>.<ext> where the timestamp is now - 1 second (the moment before the new file is written). The archive sits next to the canonical file.
  2. Write the new canonical file from the assembled entries.
  3. Verify by importing / parsing it. For Python KBs, python -c 'import <module>'. For JSON / YAML, parse and validate against a schema.
  4. Rollback automatically if verification fails - restore the archived file to canonical, surface the error.

Reference Python helper sketch:

python
import shutil
import time
import importlib
from pathlib import Path

def atomic_swap_kb(canonical: Path, new_content: str, importable_module: str) -> Path:
    archive_ts = time.strftime("%Y%m%d-%H%M%S", time.gmtime(time.time() - 1))
    archive = canonical.with_name(f"{canonical.stem}_{archive_ts}{canonical.suffix}")
    if canonical.exists():
        shutil.copy2(canonical, archive)
    canonical.write_text(new_content)
    try:
        importlib.invalidate_caches()
        importlib.import_module(importable_module)
    except Exception as exc:
        if archive.exists():
            shutil.copy2(archive, canonical)
        raise RuntimeError(f"Refresh aborted; canonical restored from {archive}") from exc
    return archive

For non-Python KBs the verification step is whatever proves the file is valid (JSON parse, YAML parse + schema check, SQL load + select).

Why archive-then-write-then-verify (not write-then-archive)?

If the write succeeds but verification fails, you still have the old file at the archive path - you can roll forward (keep the broken new file for diagnosis) or roll back (restore the archive). Either way, the canonical filename is never left in an unknown state.


Workflow 5 - Separate research columns from analyst-judgment columns

The most-overlooked part of this pattern. Two classes of fields live in the same KB:

ClassExamplesRefreshable from web?Refresh rule
Researchcategory, pricing, company_stability, market_position, competitor, release_cadence, cve_statusYesRegenerate every refresh
Judgmentdefault_decision, recommended_target, migration_strategy, decision_rationaleNo - depends on portfolio + intentCarry over from existing KB; for new items, use REVIEW - set after first run

Refresh only the research columns. Never overwrite analyst-judgment columns unless the user explicitly requests an analyst-judgment refresh (a separate, distinct operation). State this explicitly in the up-front warning.


Workflow 6 - REVIEW placeholders (never fabrication)

When coverage is thin (cap hit, sources disagree, vendor went quiet), do not invent. Mark the field with a placeholder:

"company_stability": "REVIEW - insufficient online coverage; last public funding 2024-Q3, no 2025/2026 disclosures found"

Add a judgement evidence tuple explaining the gap:

("judgement", "REVIEW placeholder: cap reached at 9 calls; vendor materials current to 2024-Q3 only.")

Surface every REVIEW prominently in the final summary so the analyst knows what to spot-check.


Workflow 7 - Per-item summary in the final report

The user needs to know what changed and what didn't. For each refreshed item, list the 2-3 most load-bearing sources (not all evidence - just the spine):

- Confluent Kafka - Confluent Cloud pricing (vendor-docs) + Gartner Magic
  Quadrant 2025 (analyst) + AWS MSK comparison (vendor-docs)
  -> 7 research columns refreshed; judgment fields carried over
- Apache Airflow - apache.org docs (vendor-docs) + Astronomer State of
  Airflow 2025 (analyst)
  -> 6 research columns refreshed; 1 REVIEW (cost_structure - vendor lists
     no fixed price, MWAA/Composer comparisons available)

End the summary with:

  • Archive path of the prior file (so the user can diff or roll back).
  • REVIEW placeholders count + brief reason for each.
  • Suggested next step (typically: re-run the downstream analysis to see new facts reflected).

Reference command structure

A /refresh-<kb-name> slash command implementing this pattern looks like this. Adapt to your KB.

markdown
---
description: Refresh the <KB name> from web research. POTENTIALLY LONG-RUNNING - <N> web-tool calls per item, capped at <CAP>.
---

The user wants to refresh the <KB name>.

Operating rules:

1. Source file: ...
2. Up-front warning: tell the user this is long-running and confirm.
3. Scope prompt: all / gaps / refresh-existing / specific list.
4. Enumerate items.
5. Dump current KB.
6. Per item, run the research protocol with HARD CAP at <CAP> web-tool calls.
7. Cross-reference <=3 sources per claim, >=2 independent or vendor+analyst.
8. Synthesize concise (1-3 sentence) answers per column.
9. Record per-claim evidence tuples with source tags.
10. REVIEW any column not corroborated within the cap; never fabricate.
11. Carry over judgment columns from existing KB; placeholders for new.
12. Apply: archive-then-write-then-verify; rollback on failure.
13. Summarize: per-item load-bearing sources, archive path, REVIEW count, next step.
14. Do NOT touch judgment columns or unrelated KBs.

A reference helper script (references/atomic-swap.py) implements the archive-write-verify-rollback step.


Anti-patterns

  1. No cap. "I'll just keep searching until I have enough." Result: hours of runtime, blown budget, and no signal-to-noise improvement past call 4-5.
  2. Single source per claim. Vendor pages are marketing; analysts can be wrong. Two independent corroborations or vendor-primary + analyst is the floor.
  3. More than 3 sources per claim. Adds noise without adding confidence; doubles the search budget.
  4. Mixing research and judgment. "I'll regenerate the whole row." Analyst-judgment columns depend on portfolio + intent context that the web does not have.
  5. Write before archive. Old file is lost if the write succeeds but verify fails.
  6. Silent fabrication. "I will just guess" - or, worse, "the model is confident" - is how a refresh becomes a liability.
  7. No up-front warning. Long operations without consent feel like an outage.
  8. Renaming the canonical file. Every downstream consumer breaks. Archive instead.
  9. No per-item summary. The user has no idea what changed.

When NOT to use this pattern

  • One-off queries - call WebSearch / WebFetch directly.
  • Streaming / continuous data - use a real ingestion pipeline.
  • Real-time price quotes / market ticks - use an API, not web search.
  • CVE-only refresh on a single library - just pip-audit / osv-scanner / npm audit.

The pattern shines when you have a structured KB, multiple items, periodic refresh, and you need every refresh to be predictable, reviewable, and reversible.


References

Related

  • Rule: 015-context-engineering.mdc - prompt packing, retrieval, compaction
  • Rule: 120-utilities.mdc - the underlying tools (lynx, curl, jq, ripgrep)
  • Rule: 316-zero-trust.mdc - audit and observability principles
  • Skill: core-engineering - general engineering discipline
  • Skill: skills-composition - chaining this with downstream analysis skills

Attribution

Pattern crystallized from a consulting-toolkit /facts-update command that refreshed 13 product KBs from web research with a 9-call cap and atomic-swap rollback. The discipline pays off most when a refresh feeds a downstream analysis: the analyst can trust the new facts because the refresh is bounded, attributable, and reversible.

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill Web Research Kb Refresh?

Refresh a project knowledge base from web research with strict tool-call budgets, cross-referenced sources, atomic file swaps, and rollback-on-failure. Use when refreshing a KB-backed analysis (vendor facts, compliance posture, market data, security advisories), running long web-research workflows that must be predictable in cost and time, or designing any "regenerate-from-the-web" command. Generalizes the /facts-update pattern of capping web-tool calls per unit of work, keeping research separate from analyst judgment, and writing back atomically with a timestamped archive.

Warum Web Research Kb Refresh in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Web Research Kb Refresh 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 Web Research Kb Refresh in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/d-padmanabhan/agent-engineering-handbook/tree/main/skills/web-research-kb-refresh ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Web Research Kb Refresh nutzen?

Jedes Modell, das Sie mit 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 Web Research Kb Refresh verwenden?

So viele Sie möchten. In TypingMind können Sie Web Research Kb Refresh mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Web Research Kb Refresh kostenlos?

Ja. Der Skill wird von d-padmanabhan 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: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. 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 kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

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