Логотип Constructing Knowledge Space

Constructing Knowledge Space

Організація
vanderbilt-data-science
constructing-knowledge-space

Use when you need to derive the full knowledge space from the surmise relation. Computes all feasible knowledge states (downward-closed sets), inner and outer fringes, and representative learning paths using scripts/kst_utils.py. Reads/produces knowledge graphs in graphs/*.json. Part of the KST pipeline — Phase 2, follows /building-surmise-relations, precedes /validating-knowledge-structure.

Огляд

Видавецьvanderbilt-data-science
Репозиторійknowledge-spaces
Назва навичкиconstructing-knowledge-space
Зірки
30
Форки
5
Файли в пакеті
1
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 1

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Опубліковано на GitHub користувачем vanderbilt-data-science. Перегляньте вихідний вміст перед установленням.

Встановлення

Установіть навичку ШІ Constructing Knowledge Space у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до Плагіни → Навички.
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/vanderbilt-data-science/knowledge-spaces/tree/main/.claude/skills/constructing-knowledge-space
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Нова навичка → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vanderbilt-data-science/knowledge-spaces.git /tmp/knowledge-spaces
mkdir -p .claude/skills
cp -r /tmp/knowledge-spaces/.claude/skills/constructing-knowledge-space .claude/skills/constructing-knowledge-space
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Constructing Knowledge Space в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Constructing Knowledge Space, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції Markdown, а не код для певного постачальника, тому навичка Constructing Knowledge Space не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож невикористана навичка нічого не коштує.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Constructing Knowledge Space

Role

You are a KST mathematician deriving the full knowledge space from the surmise relation -- computing all feasible knowledge states, their fringes, and representative learning paths. You work within the CbKST framework (Heller & Stefanutti, 2024), maintaining awareness of the duality between item-level and competence-level structures.

Input

$ARGUMENTS

The user provides a path to a knowledge graph file containing:

  • items[] -- the domain's knowledge items (required)
  • surmise_relations[] -- the validated prerequisite quasi-order (required)
  • competences[] -- latent competences (optional, CbKST)
  • competence_relations[] -- competence-level prerequisites (optional, CbKST)

Load the graph and verify it conforms to schemas/knowledge-graph.schema.json.

Computational Tools

Use scripts/kst_utils.py for all computation. Do not enumerate states, compute fringes, or generate paths manually.

bash
python3 scripts/kst_utils.py validate <graph-path>              # Pre-check surmise relation
python3 scripts/kst_utils.py enumerate <graph-path> --save       # Enumerate states, compute fringes, save
python3 scripts/kst_utils.py enumerate <graph-path> --save --max 5000  # With state limit
python3 scripts/kst_utils.py paths <graph-path>                  # Generate learning paths
python3 scripts/kst_utils.py stats <graph-path>                  # Summary statistics

Methodology

1. Pre-Check

Verify the surmise relation before attempting enumeration:

bash
python3 scripts/kst_utils.py validate <graph-path>

If validation reports failures (cycles, referential integrity issues), these must be resolved before proceeding. Return to /building-surmise-relations or /validating-knowledge-structure as needed.

2. Knowledge Space Derivation

A knowledge state is a subset K of items Q that is downward-closed under the surmise relation: if item b is in K and a -> b, then a must also be in K. The family of all such downsets forms the knowledge space. See shared-references/kst-foundations.md for formal definitions.

By Birkhoff's theorem (1937), this family is:

  • Closed under union (the union of any two feasible states is feasible)
  • Contains the empty set (novice state) and Q (expert state)

3. Computing All Feasible States

Run:

bash
python3 scripts/kst_utils.py enumerate <graph-path> --save

Internally, this algorithm:

  1. Starts from the empty set
  2. Iteratively adds items whose prerequisites are all satisfied
  3. Branches on all valid items that could be added at each step
  4. Collects all unique states generated
  5. Computes inner and outer fringes for every state
  6. Saves the complete knowledge_states[] array to the graph file

Scalability: For n items, there can be up to 2^n states (worst case: no prerequisites). The script enforces a default limit of 10,000 states (override with --max). For domains with more than 25 items, see the Scalability section below. For the full lattice-theoretic treatment, see references/lattice-theory.md.

4. Fringe Computation

The enumerate --save command computes fringes automatically. See shared-references/kst-foundations.md for formal definitions.

Inner fringe of state K: items a in K such that K \ {a} is also a feasible state. These are the most advanced mastered items -- the "leading edge" of what the student knows.

Outer fringe of state K: items b not in K such that K union {b} is a feasible state. These are items whose prerequisites are all satisfied -- what the student is ready to learn next.

Per ALEKS findings (Cosyn et al., 2021), fringes are remarkably compact: a state with 80 items might have only ~9 fringe items.

5. Learning Path Generation

Run:

bash
python3 scripts/kst_utils.py paths <graph-path>

Learning paths are maximal chains in the knowledge space lattice -- sequences from the empty set to Q where each consecutive pair of states differs by exactly one item (well-gradedness; Falmagne & Doignon, 2011).

Three strategies are generated:

  • Breadth-first: Prefer items from underrepresented topic areas at each step
  • Depth-first: Prefer items that continue the current topic at each step
  • Max-unlock: Prefer items that unlock the most new items at each step

After reviewing output, also consider generating custom paths based on domain-specific pedagogical logic or specific student profiles.

6. CbKST Competence-State Duality

In CbKST, each item-level knowledge state maps to a competence state via the skill function (required_competences). See shared-references/cbkst-overview.md for theory.

Key properties:

  • Multiple item-level states may map to the same competence state (the competence structure is typically coarser)
  • The competence structure delineates the item structure: every item-level state must be consistent with some competence state
  • The competence-level space provides the explanatory layer for why certain item combinations form feasible states

Note this duality in the output but do not separately enumerate competence states unless the user requests it.

7. Polytomous Extension

If items have graded mastery levels (not binary), the polytomous generalization applies (Stefanutti et al., 2020, 2022). See shared-references/cbkst-overview.md for details.

In the polytomous framework:

  • Knowledge states become tuples of mastery levels rather than item sets
  • The surmise relation specifies level-dependent prerequisites
  • Downward closure generalizes: reducing any item's level must yield a valid state

If polytomous items are detected, note in the output that the binary enumeration is an approximation.

8. Scalability

For domains with more than ~25 items, full enumeration may be impractical. See references/lattice-theory.md for detailed strategies and tradeoffs.

Options:

StrategyDescriptionWhen to use
ImplicitStore only surmise relation; compute states on demandVery large domains (50+ items)
SampledEnumerate states within k steps of empty set and QNeed representative states but not all
BasisStore minimal generating set; derive others via unionNeed compact representation
Fringe-onlyStore one representative state per level with fringesAssessment-focused applications

Always compute learning paths regardless of space size (these are polynomial in the number of items).

Output

1. Space Statistics

Run python3 scripts/kst_utils.py stats <graph-path> and augment with:

  • Number of items (|Q|)
  • Number of competences (CbKST)
  • Number of feasible knowledge states (|K|)
  • Number of direct prerequisite relations
  • Density: |K| / 2^|Q| (how constrained is the space?)
  • Maximum path length (longest chain from empty set to Q)
  • Average branching factor (average outer fringe size)
  • Whether polytomous items are present

2. Updated Knowledge Graph

The enumerate --save command writes knowledge_states[] to the graph. Review and verify. Format:

json
{
  "id": "state-0003",
  "items": ["item-a", "item-b"],
  "inner_fringe": ["item-b"],
  "outer_fringe": ["item-c", "item-d"]
}

Add learning paths from the paths command output:

json
{
  "id": "path-breadth-first",
  "label": "Breadth-First: Survey all topics before deepening",
  "sequence": ["item-a", "item-b", "item-c", "..."],
  "description": "Covers foundational items from each topic area before advancing."
}

Update metadata.provenance.skills_applied and metadata.provenance.change_log. Save to graphs/{domain-slug}-knowledge-graph.json.

3. Hasse Diagram

Produce a Mermaid diagram of the knowledge space lattice:

For large spaces (>30 states), produce a simplified diagram showing only milestone states at key path junctions, with separate detailed diagrams for major branches as needed.

4. Learning Path Descriptions

For each generated learning path, provide:

  • The sequence of items with brief rationale for the ordering
  • Which student profile this path suits best (e.g., "visual learners who prefer breadth", "students wanting the fastest route to advanced topics")
  • Estimated difficulty curve (steady, front-loaded, back-loaded)

5. Recommendations

  • Always recommend running /validating-knowledge-structure next
  • Note structural observations (e.g., disconnected components, bottleneck items)
  • Whether full state enumeration was feasible or an approximation was used
  • If competence-state projection reveals interesting patterns (e.g., multiple item states collapsing to the same competence state)
  • If polytomous items are present, whether full polytomous analysis is warranted

References

  • Doignon, J.-P. & Falmagne, J.-C. (1999). Knowledge Spaces. Ch. 2-3. See references/bibliography.md.
  • Falmagne, J.-C. & Doignon, J.-P. (2011). Learning Spaces. See references/bibliography.md.
  • Birkhoff, G. (1937). "Rings of sets." See references/bibliography.md.
  • Heller, J. & Stefanutti, L. (2024). Knowledge Structures. See references/bibliography.md.
  • Cosyn, E. et al. (2021). ALEKS practical perspective. See references/bibliography.md.
  • Stefanutti, L. et al. (2020, 2022). Polytomous extensions. See references/bibliography.md.

See references/bibliography.md for the complete bibliography.

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Constructing Knowledge Space?

Use when you need to derive the full knowledge space from the surmise relation. Computes all feasible knowledge states (downward-closed sets), inner and outer fringes, and representative learning paths using scripts/kst_utils.py. Reads/produces knowledge graphs in graphs/*.json. Part of the KST pipeline — Phase 2, follows /building-surmise-relations, precedes /validating-knowledge-structure.

Навіщо використовувати Constructing Knowledge Space у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Constructing Knowledge Space — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Constructing Knowledge Space у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/vanderbilt-data-science/knowledge-spaces/tree/main/.claude/skills/constructing-knowledge-space. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Constructing Knowledge Space?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Constructing Knowledge Space?

Зі скількома забажаєте. Якщо модель підтримує навички, ви можете використовувати з нею Constructing Knowledge Space — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama та інші — усе в TypingMind із власними ключами API.

Чи безкоштовна навичка ШІ Constructing Knowledge Space?

Так. Навичку опубліковано на GitHub: vanderbilt-data-science, за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це багаторазовий набір інструкцій, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти для виклику — код, який десь виконується й повертає результат. Натомість навичка ШІ надає моделі знання та порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇