cognitive-surrogate
cognitive-surrogate skill
от plurigrid★ 73 звезды на GitHub
Установить cognitive-surrogate в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Cognitive Surrogate
name: cognitive-surrogate
description: Layer 6 Barton Cognitive Surrogate System - build, train, and validate psychological models that predict and generate authentic responses matching a subject's cognitive patterns
version: 1.0.0
trit: 0 # Ergodic/coordinator role in GF(3) triadic system
bmorphism Contributions
"We are building cognitive infrastructure for the next trillion minds" — Plurigrid: the story thus far
Active Inference Foundation: Cognitive surrogates implement the core Active Inference in String Diagrams pattern where an agent maintains a generative model of itself and others. The surrogate IS the generative model — it predicts responses by minimizing free energy between expected and observed behavior.
Self-Model as Markov Blanket: The surrogate defines the statistical boundary (Markov blanket) between self and world. The model's internal states predict the subject's behavior while remaining conditionally independent of external states given sensory input.
Reafference in Surrogates: When the surrogate predicts a response that matches actual behavior, this is reafference — self-caused sensation that confirms identity. Mismatches are exafference — signals that the model needs updating.
Autopoietic Surrogates: Following Maturana & Varela's autopoiesis concept, the surrogate is a self-maintaining system that reproduces its own patterns. It embodies bmorphism's autopoietic ergodicity — self-sustaining systems that explore all accessible cognitive states.
Overview
The Cognitive Surrogate skill enables construction of high-fidelity psychological models from interaction patterns. It extracts values, predicts intellectual trajectories, and generates authentic responses that preserve the subject's voice with >90% fidelity.
Core Principle: A surrogate is not an imitation but a derivational continuation - the model learns the generative grammar of cognition, not surface patterns.
NEW (Langevin/Gibbs Integration): Predictions now use Gibbs distribution from Langevin analysis. Confidence scores reflect mixing time and temperature parameters.
Key Capabilities
1. build-psychological-profile
Extract structured psychological profile from interaction corpus:
profile = build_psychological_profile(
corpus=[threads, emails, writings],
dimensions=[
"values", # Core beliefs, ethical framework
"interests", # Topic affinities, curiosity patterns
"communication", # Tone, formality, humor markers
"reasoning", # Deductive vs intuitive, uncertainty handling
"social", # Collaboration style, conflict patterns
],
seed=gay_seed # Deterministic via gay-mcp
)
Output ACSets Schema:
@present SchProfile(FreeSchema) begin
Value::Ob; Interest::Ob; Pattern::Ob
name::Attr(Value, String)
weight::Attr(Value, Float64)
topic::Attr(Interest, String)
frequency::Attr(Interest, Int)
exemplar::Attr(Pattern, String)
end
2. train-predictor
Train next-topic and next-response predictors:
predictor = train_predictor(
profile=profile,
corpus=corpus,
model_type="markov_transformer", # or "hmm", "lstm", "gpt_finetune"
context_window=8, # conversation turns
validation_split=0.15
)
# Predict likely next topics given conversation state
next_topics = predictor.predict_topics(
context=current_thread,
top_k=5,
temperature=0.7
)
3. validate-fidelity
Measure surrogate fidelity against held-out data:
fidelity = validate_fidelity(
surrogate=predictor,
test_corpus=held_out_threads,
metrics=[
"topic_prediction_accuracy", # Target: >0.85
"response_semantic_sim", # Target: >0.90
"style_consistency", # Target: >0.88
"value_alignment", # Target: >0.92
],
threshold=0.90 # Overall fidelity threshold
)
assert fidelity.overall >= 0.90, f"Fidelity {fidelity.overall} below threshold"
Fidelity Report:
┌─────────────────────────┬────────┬────────┐
│ Metric │ Score │ Target │
├─────────────────────────┼────────┼────────┤
│ topic_prediction │ 0.87 │ 0.85 │
│ semantic_similarity │ 0.91 │ 0.90 │
│ style_consistency │ 0.89 │ 0.88 │
│ value_alignment │ 0.94 │ 0.92 │
├─────────────────────────┼────────┼────────┤
│ OVERALL │ 0.9025 │ 0.90 │
└─────────────────────────┴────────┴────────┘
4. generate-authentic-reply
Generate text matching subject's voice:
reply = generate_authentic_reply(
surrogate=predictor,
context=conversation_history,
prompt=incoming_message,
constraints={
"max_tokens": 500,
"preserve_uncertai
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл cognitive-surrogate?
cognitive-surrogate skill
Как установить скилл cognitive-surrogate?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл cognitive-surrogate запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…