Λογότυπο Knowledge Bootstrap

Knowledge Bootstrap

Οργανισμός
ai-analyst-lab
knowledge-bootstrap

Initialize all knowledge subsystems at session start: active dataset context, user profile, corrections, learnings, query archaeology, analysis history. Run automatically at the start of EVERY new session before responding to any analytical request, and after "/connect-data" or "/switch-dataset" to reload context. Handles missing files gracefully; if unsure whether a session just started, run it.

Επισκόπηση

Εκδότηςai-analyst-lab
Αποθετήριοai-analyst-plugin
Όνομα δεξιότηταςknowledge-bootstrap
Αστέρια
34
Forks
13
Συνοδευτικά αρχεία
Μόνο οδηγίες
Άδεια χρήσηςMIT
Σύνδεσμοι
  • Οδηγίες σε Markdown

    Ένα αρχείο SKILL.md που το μοντέλο φορτώνει όταν χρειάζεται, ώστε να καταναλώνει token μόνο όταν ένα αίτημα είναι πράγματι σχετικό.

  • Λειτουργεί με οποιοδήποτε LLM

    Οι δεξιότητες AI είναι απλό Markdown, όχι κώδικας για συγκεκριμένο πάροχο, επομένως αυτή η δεξιότητα λειτουργεί με GPT, Claude, Gemini, Grok ή ένα τοπικό μοντέλο.

  • Αυτοτελής

    Όλα όσα χρειάζεται το μοντέλο περιλαμβάνονται στις οδηγίες — χωρίς επιπλέον αρχεία για συγχρονισμό.

  • Ανοιχτού κώδικα

    Δημοσιεύτηκε από ai-analyst-lab στο GitHub. Διαβάστε το πηγαίο περιεχόμενο πριν εγκαταστήσετε τη δεξιότητα.

Εγκατάσταση

Εγκαταστήστε τη δεξιότητα AI Knowledge Bootstrap στο TypingMind για να τη χρησιμοποιείτε με οποιοδήποτε LLM ή προσθέστε τη σε άλλον πράκτορα AI που διαβάζει αρχεία SKILL.md.

1

Εγκατάσταση στο TypingMind

Το TypingMind εγκαθιστά μια δεξιότητα απευθείας από τον φάκελό της στο GitHub — διαβάζει το SKILL.md, συγκεντρώνει τα συνοδευτικά αρχεία σε πακέτο και αποθηκεύει το αποτέλεσμα τοπικά.

  1. Ανοίξτε την εφαρμογή και μεταβείτε στα Πρόσθετα → Δεξιότητες.
  2. Επιλέξτε «Εγκατάσταση από GitHub».
  3. Επικολλήστε το παρακάτω URL του φακέλου της δεξιότητας και επιβεβαιώστε.
    https://github.com/ai-analyst-lab/ai-analyst-plugin/tree/main/ai-analyst-plus/skills/knowledge-bootstrap
  4. Ενεργοποιήστε τη δεξιότητα σε κάθε συνομιλία όπου θέλετε να είναι διαθέσιμη.
Πρόσθετα → Δεξιότητες → Νέα δεξιότητα → Από URL του GitHub, έπειτα επικολλήστε το URL του φακέλου και πατήστε «Συνέχεια».
2

Εγκατάσταση σε άλλον πράκτορα AI

Κάθε πράκτορας AI που διαβάζει τη μορφή Agent Skills μπορεί να χρησιμοποιήσει αυτή τη δεξιότητα — αντιγράψτε τον φάκελο στον κατάλογο δεξιοτήτων του.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ai-analyst-lab/ai-analyst-plugin.git /tmp/ai-analyst-plugin
mkdir -p .claude/skills
cp -r /tmp/ai-analyst-plugin/ai-analyst-plus/skills/knowledge-bootstrap .claude/skills/knowledge-bootstrap
Επανεκκινήστε το Claude Code μετά την αντιγραφή, ώστε να εντοπίσει τη νέα δεξιότητα.

Χρησιμοποιήστε τη στο TypingMind

Ενεργοποιήστε τη δεξιότητα Knowledge Bootstrap σε οποιαδήποτε συνομιλία στο TypingMind και το μοντέλο αναλαμβάνει τα υπόλοιπα. Το όνομα και η περιγραφή της περιλαμβάνονται στην προτροπή συστήματος και, μόλις προκύψει ένα σχετικό αίτημα, το μοντέλο φορτώνει μόνο του τις πλήρεις οδηγίες — δεν χρειάζεται ποτέ να την καλείτε χειροκίνητα και δεν καταναλώνει token μέχρι να χρησιμοποιηθεί πραγματικά.

Το μοντέλο φορτώνει αυτόματα τη δεξιότητα Knowledge Bootstrap μόλις λάβει ένα σχετικό αίτημα.

Λειτουργεί με οποιοδήποτε μοντέλο AI

Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας για συγκεκριμένο πάροχο, οπότε η δεξιότητα Knowledge Bootstrap δεν περιορίζεται στο μοντέλο για το οποίο γράφτηκε. Εγκαταστήστε τη μία φορά στο TypingMind και χρησιμοποιήστε τη με GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama ή ένα τοπικό μοντέλο που εκτελείτε εσείς — πάντα με τα δικά σας κλειδιά API.

  • Φόρτωση μόνο όταν χρειάζεται

    Η προτροπή συστήματος περιλαμβάνει μόνο το όνομα και την περιγραφή. Οι οδηγίες ανακτώνται με το πρώτο σχετικό αίτημα, οπότε μια δεξιότητα που δεν χρησιμοποιείται δεν έχει κόστος.

  • Αλλάξτε μοντέλα κατά τη συνομιλία

    Επειδή η δεξιότητα αποτελείται από οδηγίες και όχι από κώδικα, η αλλαγή μοντέλου δεν επηρεάζει τη λειτουργία της — το επόμενο μοντέλο διαβάζει το ίδιο αρχείο SKILL.md.

Οδηγίες δεξιότητας

Αυτό είναι το περιεχόμενο του αρχείου SKILL.md που φορτώνει το μοντέλο. Διαβάστε το πριν από την εγκατάσταση — μια δεξιότητα αποτελείται από οδηγίες που θα ακολουθήσει το μοντέλο σας.

The full tree this skill creates is defined in docs/KNOWLEDGE.md (the .knowledge contract). Create exactly that layout.

Skill: Knowledge Bootstrap

Purpose

Initialize all 7 knowledge subsystems for a new session. Loads setup state, dataset, user profile, integrations, org context, corrections, learnings, query archaeology, and analysis archive into working memory.

When to Use

  • At the start of any session
  • After /connect-data or /switch-dataset
  • When the system detects missing or stale knowledge files

Instructions

Load each subsystem in order. Every file read MUST gracefully degrade: if the file does not exist, skip silently and note "not yet populated" in the summary. Never block the session on a missing subsystem.

Step 1: Setup State

Read .knowledge/setup-state.yaml.

  • Parse setup_complete and count phases with status: "complete".
  • If setup_complete: false, note the incomplete phases; offer /connect-data for data connections and a rerun of this skill for the memory tree.
  • If missing: Note "Setup: not initialized" and continue (this file is optional; connect-data and this skill do the actual setup).

Step 2: Active Dataset

Read .knowledge/active.yaml.

  • If active_dataset is null or missing, note "No active dataset" and continue.
  • Resolve the context source first. Read .knowledge/context-source.yaml. If it exists and says source: git, sync the team's communal context repo: clone the repo it names into the cache dir (its cache value, default .knowledge/.context-cache) if not already cloned, otherwise fetch + checkout + pull the ref (default main); then ctx_dir is {cache}/{dataset_path} (default datasets/{active}) and the source is "git". If the file is missing or says source: local, ctx_dir is the in-folder .knowledge/datasets/{active}/ and the source is "local". Load the dataset knowledge (semantic/, metrics/, schema.md, quirks.md) from ctx_dir either way - the same loader, the source just differs. Report the source ("context: local" or "context: team repo @ {ref}") in the readiness summary.
  • Load from ctx_dir:
FileRequiredIf Missing
manifest.yamlYesNote "manifest missing -- not usable"
schema.mdYesGenerate via the schema-generation sequence below
quirks.mdNoCreate empty template
metrics/index.yamlNoCount as 0
custom_instructions.md (root) else semantic/custom_instructions.mdNoSkip
verified_queries.yaml (root) else semantic/verified_queries.yamlNoSkip
corrections.md (root)NoSkip
semantic/entities.yamlNoNote "no semantic layer"
semantic/relationships.yamlNoSkip
semantic/dimensions.yamlNoSkip
semantic/measures.yamlNoSkip
semantic/filters.yamlNoSkip

Store layout — root or semantic/ (backward-compatible). Three of these files can live at EITHER the dataset root ({ctx_dir}/) OR under semantic/ ({ctx_dir}/semantic/), depending on the store's layout: custom_instructions.md, verified_queries.yaml, and corrections.md. Reconciled stores keep them at the dataset root; older stores keep the first two under semantic/. For each of the three, check the dataset root first; if present, load it from there, ELSE fall back to semantic/. Do not require one layout over the other, and do not skip the file just because it is absent from semantic/ — it may be at the root, and vice versa. The five pure-semantic YAMLs (entities, relationships, dimensions, measures, filters) always live under semantic/ and are not root-or-semantic.

corrections.md is the store-level communal corrections home — a human-curated, cross-session list of standing corrections that ship WITH the dataset context (root-or-nothing; there is no semantic/ fallback for it). It is DISTINCT from the per-session correction log at .knowledge/corrections/index.yaml loaded in Step 6 — that one is the local session log, this one is the communal store file. Load both; they are different subsystems.

Semantic layer (load before writing any SQL). The semantic/ files are the agent's map of the data, and the metric definitions are defined by MEANING, not by a stored number. Always load entities.yaml (authoritative source table + keys + grain + caveats per concept), relationships.yaml (verified joins + cardinality), and custom_instructions.md (cross-cutting business rules and gotchas — resolved root-first then semantic/ per the layout rule above), they are small and always relevant. Consult dimensions.yaml (synonyms + real sample values), measures.yaml, filters.yaml (named filters), and verified_queries.yaml (blessed question -> SQL exemplars, likewise root-first then semantic/) when writing a query. Before writing SQL: resolve the question's metric against metrics/index.yaml, pick the authoritative table(s) and join(s) from entities/relationships, use real sample_values for filter literals (never invent them), reuse a named filter or a verified query when one matches, and apply the custom instructions and any standing corrections from corrections.md.

Schema generation if schema.md is missing (REQUIRED):

The schema is critical for SQL queries and analysis — never proceed without it. Follow this sequence:

  1. Check data/schemas/{active}.yaml — if found, render it to Markdown yourself: an H1 # Schema: {dataset}, then for each table an H2 with the table name, the description in italics, **Rows:** {row_count}, and a | Column | Type | Nullable | Description | table with one row per column
  2. If no YAML schema file exists, query the live data source directly and generate schema.md from introspection (information_schema or DESCRIBE for a warehouse; SHOW TABLES plus per-table column types for DuckDB)
  3. For CSV datasets, read the first 1000 rows of each file with pandas, infer dtypes, and write schema.md with table/column/type info
  4. Staleness check: if last_profile.md exists and is newer than schema.md, regenerate

After generation, write schema.md to .knowledge/datasets/{active}/schema.md so future sessions can load it directly.

System variables from manifest:

Extract these variables for use in SQL queries and agent prompts:

  • {{SCHEMA}} — Schema prefix for external warehouses (e.g., "analytics", "prod")
  • {{DISPLAY_NAME}} — User-friendly dataset name for status messages
  • {{DATE_RANGE}} — Available date range (e.g., "2024-01-01 to 2026-03-31")
  • {{DATABASE}} — Database name or connection string

Use {{SCHEMA}} as a prefix in SQL queries when querying external warehouses (BigQuery, Snowflake, Postgres). For local DuckDB/CSV, it's typically null.

Step 3: User Profile

Read .knowledge/user/profile.md.

  • If exists: Apply Detail level, Chart preference, Narrative style.
  • If missing: Create from template (see below), note "Profile: new".

On explicit user corrections during session, update the profile: append YYYY-MM-DD | Assumed [X] | User prefers [Y] to the Corrections Log section. Never infer from silence.

Step 4: User Integrations

Read .knowledge/user/integrations.yaml.

  • Extract preferred_export_format, communication.detail_level.
  • Count configured channels (configured: true).
  • If missing: Note "Integrations: not configured -- defaults apply".

Step 5: Organization Context

Check for org ID in setup-state.yaml (phases.phase_3_business.data.organization_id) or in the active dataset manifest's organization field.

If an org ID exists and is not _example:

  • Read .knowledge/organizations/{org_id}/manifest.yaml for name, industry.
  • Read .knowledge/organizations/{org_id}/business/index.yaml for section counts (glossary terms, products, metrics, objectives, teams).
  • If org dir missing: Note "Org: linked but not found".

If no org linked: Note "Org: not configured".

Step 6: Corrections

Read .knowledge/corrections/index.yaml.

  • Extract total_corrections and by_severity counts.
  • If total_corrections > 0, highlight critical/high counts so agents check the full log before writing SQL.
  • If missing: Note "Corrections: not yet populated".

Step 7: Learnings

Read .knowledge/learnings/index.md.

  • Scan for category headings (### N. Category Name).
  • Note which categories have content entries vs are empty.
  • Do NOT load full content -- just category presence.
  • If missing: Note "Learnings: not yet populated".

Step 8: Query Archaeology

Read .knowledge/query-archaeology/curated/index.yaml.

  • Extract cookbook_entries, table_cheatsheets, join_patterns counts.
  • If missing: Note "Archaeology: not yet populated".

Step 9: Analysis Archive

Read .knowledge/analyses/index.yaml:

  • Extract total_analyses and last 5 entries (title, date, findings count, level).
  • If most recent analysis was <24h ago: Add to user-facing status as "Recent work: [title] from [date]" and suggest "Want to build on your recent analysis?" This helps users pick up where they left off.

Read .knowledge/analyses/_patterns.yaml:

  • Count patterns[] entries and note pattern names if any.
  • If missing: Note "Patterns: not yet populated".

Step 10: Mark Bootstrap Complete

Write a completion signal so agents can check if bootstrap already ran this session:

python
import yaml
from datetime import datetime

timestamp = datetime.now().isoformat()
with open('.knowledge/.bootstrap_timestamp', 'w') as f:
    yaml.dump({'last_bootstrap': timestamp, 'status': 'complete'}, f)

This prevents redundant re-runs mid-session. To check if bootstrap is needed, read this file and compare timestamps — if <5 minutes old, skip re-running.

Step 11: Report Readiness

Compile an internal context summary (held in working memory, not shown raw):

Setup: {complete (N/M phases) | incomplete (list missing) | not initialized}
Dataset: {display_name} ({source_type}, {N} tables, ~{rows} rows, {date_range}) | not configured
Profile: {role}, {detail_level} | new
Integrations: {preferred_format}, {N} channels | not configured
Org: {company} ({industry}), {N} glossary, {N} products, {N} metrics | not configured
Corrections: {N} logged ({N} critical, {N} high) | none
Learnings: {N}/{6} categories populated | not yet populated
Archaeology: {N} cookbook, {N} cheatsheets, {N} join patterns | not yet populated
Archive: {N} analyses, {N} recurring patterns | none

Then output the user-facing status:

Dataset: {display_name} ({source_type})
Tables: {N} tables, ~{row_count} rows
Date range: {date_range}
Metrics: {M} defined
Profile: {loaded | new}
Status: Ready for analysis

If a critical subsystem is missing (no dataset, no manifest), adjust the status and suggest /connect-data (to register data) or rerunning this skill (to rebuild the tree).


User Profile Template

markdown
# User Profile

Auto-created by knowledge bootstrap. Updated as the system learns preferences.

## Role & Expertise
- **Role:** _[auto-detected or user-specified]_
- **Technical level:** _[beginner | intermediate | advanced]_
- **SQL comfort:** _[none | basic | intermediate | advanced]_
- **Statistics comfort:** _[none | basic | intermediate | advanced]_
- **Domain:** _[e-commerce | fintech | saas | marketplace | other]_

## Communication Preferences
- **Detail level:** _[executive-summary | standard | deep-dive]_
- **Chart preference:** _[minimal | standard | chart-heavy]_
- **Narrative style:** _[bullet-points | prose | mixed]_

## Corrections Log
_Records of times the user corrected the system's assumptions._
<!-- Format: YYYY-MM-DD | What was wrong | What was right -->

Edge Cases

  • No .knowledge/ dir: Create full tree and prompt /connect-data.
  • Empty schema.md: Regenerate via profiling.
  • No data files: Suggest checking connection or falling back to CSV.
  • Multiple datasets: Report active, remind about /switch-dataset.
  • Setup incomplete: Note phases, do not block. Suggest /connect-data for the missing data pieces.

Anti-Patterns

  1. Never skip bootstrap. Always read manifest -- details may have changed.
  2. Never hardcode dataset names. Resolve from active.yaml.
  3. Never modify manifest during bootstrap. Bootstrap is read-only.
  4. Never dump raw YAML to the user. Show the brief status, not the load.
  5. Never block on a missing subsystem. Graceful degradation always.

Συχνές ερωτήσεις

Τι κάνει η δεξιότητα AI Knowledge Bootstrap;

Initialize all knowledge subsystems at session start: active dataset context, user profile, corrections, learnings, query archaeology, analysis history. Run automatically at the start of EVERY new session before responding to any analytical request, and after "/connect-data" or "/switch-dataset" to reload context. Handles missing files gracefully; if unsure whether a session just started, run it.

Γιατί να χρησιμοποιήσετε τη δεξιότητα Knowledge Bootstrap στο TypingMind;

Επειδή την εγκαθιστάτε μία φορά και τη χρησιμοποιείτε με οποιοδήποτε μοντέλο. Η Knowledge Bootstrap είναι απλό Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως η ίδια δεξιότητα λειτουργεί με GPT-5, Claude, Gemini, Grok ή ένα τοπικό μοντέλο — και μπορείτε να αλλάξετε μοντέλο κατά τη διάρκεια της συνομιλίας χωρίς να διακοπεί η λειτουργία της. Το TypingMind λειτουργεί με τα δικά σας κλειδιά API, οπότε πληρώνετε απευθείας τους παρόχους αντί για συνδρομή ανά θέση χρήστη, ενώ οι δεξιότητες και οι συνομιλίες σας παραμένουν στον δικό σας χώρο αποθήκευσης.

Πώς εγκαθιστώ τη Knowledge Bootstrap στο TypingMind;

Στο TypingMind, ανοίξτε Πρόσθετα → Δεξιότητες → Εγκατάσταση από το GitHub και επικολλήστε το https://github.com/ai-analyst-lab/ai-analyst-plugin/tree/main/ai-analyst-plus/skills/knowledge-bootstrap. Το TypingMind διαβάζει το αρχείο SKILL.md και εγκαθιστά τη δεξιότητα, την οποία μπορείτε να ενεργοποιείτε ανά συνομιλία.

Ποια μοντέλα AI μπορούν να χρησιμοποιήσουν τη δεξιότητα Knowledge Bootstrap;

Οποιοδήποτε μοντέλο συνδέετε στο TypingMind. Οι δεξιότητες AI είναι απλές οδηγίες Markdown και όχι κώδικας ειδικά για κάποιον πάροχο, επομένως τα GPT, Claude, Gemini, Grok και τα τοπικά μοντέλα μπορούν όλα να φορτώσουν αυτή τη δεξιότητα όταν ένα αίτημα αντιστοιχεί σε αυτή.

Με πόσα μοντέλα AI μπορώ να χρησιμοποιήσω τη Knowledge Bootstrap;

Με όσα θέλετε. Εφόσον ένα μοντέλο υποστηρίζει δεξιότητες, μπορείτε να χρησιμοποιήσετε τη Knowledge Bootstrap με αυτό — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama και άλλα — όλα στο TypingMind με τα δικά σας κλειδιά API.

Είναι δωρεάν η δεξιότητα AI Knowledge Bootstrap;

Ναι. Δημοσιεύεται στο GitHub από τον χρήστη ai-analyst-lab με την άδεια χρήσης MIT. Πληρώνετε μόνο τον δικό σας πάροχο AI για τα token που χρησιμοποιείτε.

Τι είναι οι δεξιότητες AI;

Μια δεξιότητα AI είναι ένα επαναχρησιμοποιήσιμο πακέτο οδηγιών που διδάσκει σε ένα μοντέλο AI πώς να εκτελεί μια συγκεκριμένη εργασία. Ακολουθεί την ανοιχτή μορφή Agent Skills: ένα αρχείο SKILL.md με όνομα και περιγραφή, μαζί με τυχόν σενάρια κώδικα, πρότυπα ή αρχεία αναφοράς που μπορεί να χρειαστεί το μοντέλο. Το μοντέλο διαβάζει τις οδηγίες μόνο όταν το αίτημά σας αντιστοιχεί στη δεξιότητα, οπότε μια εγκατεστημένη δεξιότητα δεν κοστίζει τίποτα μέχρι να χρησιμοποιηθεί.

Σε τι διαφέρουν οι δεξιότητες AI από τα πρόσθετα ή τους συνδέσμους MCP;

Ένα πρόσθετο ή ένας σύνδεσμος MCP παρέχει στο μοντέλο νέα εργαλεία που μπορεί να καλέσει — κώδικα που εκτελείται κάπου και επιστρέφει ένα αποτέλεσμα. Μια δεξιότητα AI παρέχει αντί γι’ αυτό γνώσεις και διαδικασίες στο μοντέλο: πώς να προσεγγίσει μια εργασία, ποια βήματα να ακολουθήσει και ποια χαρακτηριστικά έχει ένα καλό αποτέλεσμα. Οι δεξιότητες είναι απλό Markdown, επομένως δεν χρειάζονται διακομιστή, κλειδί API ή περιβάλλον εκτέλεσης και λειτουργούν με οποιοδήποτε μοντέλο.

Προβολή όλων

Στήστε δικό σας χώρο εργασίας AI τώρα

Εγγραφείτε στο ενημερωτικό μας δελτίο για να ενημερώνεστε για νέες λειτουργίες και μελλοντικές κληρώσεις δώρων 👇