Integrates Beckmann Knowledge Graph with Self-Improving + Proactive Agent to escalate deep reasoning on specific complex or paradoxical questions with user c...
\---
name: beckmann-x-self-improving-proactive
version: 1.0.0
description: "Combination skill that adds the Beckmann Knowledge Graph as a deep-reasoning escalation layer on top of the Self-Improving + Proactive Agent (ivangdavila). Everyday tasks run through the Self-Improving + Proactive Agent as usual. This skill defines exactly when and how to switch to the Beckmann Knowledge Graph and how to feed insights back into hot/warm/cold memory. Uninstalling this skill leaves the Self-Improving + Proactive Agent fully intact."
author: matthiasbeckmann987-spec
license: MIT-0
requires: "ivangdavila/self-improving, matthiasbeckmann987-spec/beckmann-knowledge-graph"
tags: "meta-skill, combination, beckmann-logic, self-improvement, proactive, orchestration"
---
# Beckmann × Self-Improving + Proactive Agent — Combination Skill
## Purpose
This skill connects two independent skills without modifying either one:
|Skill|Role here|
|-|-|
|`ivangdavila/self-improving`|**Default engine** for all tasks — with proactive memory and self-reflection|
|`matthiasbeckmann987-spec/beckmann-knowledge-graph`|**Deep-reasoning escalation** for specific question types|
**Uninstalling this skill:** Remove this SKILL.md. Both base skills continue
working exactly as before. Memory in `\~/self-improving/` is not affected.
\---
## Default Behaviour: Self-Improving + Proactive Agent Runs Everything
Follow `ivangdavila/self-improving` for all tasks:
* HOT memory in `\~/self-improving/memory.md` (≤100 lines, always loaded)
* WARM memory in `\~/self-improving/projects/` and `\~/self-improving/domains/`
* COLD memory in `\~/self-improving/archive/`
* Log corrections to `\~/self-improving/corrections.md`
* Promote patterns after 3x in 7 days → HOT
* Demote after 30 days unused → WARM; after 90 days → COLD
* Self-reflect after significant tasks (CONTEXT / REFLECTION / LESSON format)
* Maintain heartbeat state in `\~/self-improving/heartbeat-state.md`
This combination skill adds **nothing** to this flow unless a Beckmann trigger
is detected (see below).
\---
## Beckmann Escalation Triggers
Escalate to `beckmann-knowledge-graph` when the question matches **one or
more** of these categories:
|#|Category|Example signals|
|-|-|-|
|1|**Open scientific / philosophical question**|"What is consciousness?", "Does free will exist?", "What is dark energy?"|
|2|**Apparent paradox**|Question contains an internal contradiction or "impossible" framing|
|3|**High-complexity long-horizon forecast**|"How will AI change democracy in 20 years?", "What are AGI systemic risks?"|
|4|**Strategic dead end**|Obvious solutions have repeatedly failed; dominant expectations seem to block progress|
|5|**AI safety / architecture question**|Dangerous vs. safe AI design, value alignment, AI-human symbiosis|
|6|**Epistemological limit question**|"Is it even possible to know X?", "Is a presupposition in this question false?"|
**Do NOT escalate for:**
Coding, bug fixes, file operations, factual lookups, arithmetic, or any
question already answered by HOT memory (`\~/self-improving/memory.md`).
**Uncertain?** Apply the Complexity Check:
> "Would a highly intelligent person answer this differently after a week
> of thinking about hidden assumptions in the question?"
* Yes → suggest Beckmann. No → stay on default path.
\---
## Proactive Suggestion (Before Escalating)
If a Beckmann trigger is detected, the agent **must not escalate silently or
automatically**. Instead, it first informs the user and waits for confirmation.
**Suggested phrasing:**
> "Your question touches on \[open scientific question / an apparent paradox /
> a high-complexity forecast — pick the matching category]. I have access to
> the Beckmann Knowledge Graph, a structured reasoning framework for exactly
> this type of question. Would you like me to apply it? It will take a bit
> longer than a standard answer, but will analyse hidden assumptions and
> offer a more structured response."
**Then wait.** Only escalate if the user confirms.
If the user declines, answer with standard knowledge and note:
> "I've answered with standard reasoning. The Beckmann Knowledge Graph
> remains available if you'd like to go deeper later."
\---
## Integration with Proactive Memory
The Self-Improving + Proactive Agent uses a tiered HOT/WARM/COLD memory
architecture. Beckmann insights integrate into this system as follows:
### Where Beckmann results are stored
|Type of insight|Target location|Tier|
|-|-|-|
|Broad epistemological insight (applies across domains)|`\~/self-improving/memory.md`|HOT|
|Domain-specific Beckmann finding (e.g. AI safety, physics)|`\~/self-improving/domains/<domain>.md`|WARM|
|Project-specific strategic insight|`\~/self-improving/projects/<name>.md`|WARM|
|Graph gap / extension candidate|`\~/self-improving/corrections.md` + `#beckmann-graph-extension-candidate` tag|WARM|
|Insight not yet validated (first occurrence)|`\~/self-improving/corrections.md`|WARM|
### Promotion rules for Beckmann insights
Follow the standard promotion rules of `ivangdavila/self-improving`:
* Same Beckmann insight applied successfully 3x → promote to HOT
* HOT Beckmann insight unused 30 days → demote to WARM
* Always cite source: `"Using X (from self-improving/domains/epistemology.md — Beckmann analysis)"`
\---
## Escalation Protocol (Step by Step)
### 1 — Check HOT memory first
Before loading the graph, scan `\~/self-improving/memory.md` for entries tagged
`#beckmann`. If a directly relevant insight exists there, use it — and note
that it came from a previous Beckmann analysis. Only load the full graph if
no relevant HOT entry exists.
### 2 — Load the graph
```javascript
import graph from './beckmann-knowledge-graph/graph.json' assert { type: 'json' };
const entities = graph.entities;
const relations = graph.relations;
```
### 3 — Apply the 6-step Beckmann protocol
Follow `beckmann-knowledge-graph/SKILL.md` exactly:
1. Classify the question (epistemological / paradox / forecast / strategic / AI safety)
2. Extract relevant entities
3. Trace relation paths — pay attention to `leads to`, `triggers`, `is reversed by`, `protects against`
4. Apply Beckmann Logic (Problem Level → Low vs. High Complexity Solution → Reversal Effect check)
5. Apply epistemological grounding (model vs. external reality, known limits)
6. Structure output in Graph-Grounded Answer format (see below)
### 4 — Deliver the answer
```
## Graph-Grounded Answer
\*\*Problem framing\*\*
(what the question really asks, after presupposition analysis)
\*\*Relevant graph nodes used:\*\*
- \[Entity ID] — \[why relevant]
\*\*Reasoning path\*\*
(relation chain that leads to the answer)
\*\*Answer\*\*
(the actual response, informed by the graph logic)
\*\*Confidence and limits\*\*
(what the graph cannot resolve, and why)
\*\*New questions opened\*\*
(what the next problem level is)
```
### 5 — Self-reflect (Proactive Agent style)
After delivering a Beckmann answer, add a self-reflection entry:
```
CONTEXT: Beckmann analysis — <question type>
REFLECTION: <what the graph revealed that standard reasoning would have missed>
LESSON: <what to apply next time a similar question appears>
```
If this lesson applies 3x → promote to HOT memory.
### 6 — Log to tiered memory
Store the Beckmann insight in the appropriate tier (see Integration table above).
**Entry format for `corrections.md` (first occurrence):**
```markdown
\[BKM-YYYYMMDD-XXX]
Question type: <paradox | forecast | epistemological | strategic | ai-safety>
Graph nodes used: <comma-separated entity IDs>
Key insight: <most important finding>
New actual level: <what the problem level becomes after this analysis>
Source: beckmann-knowledge-graph v<version>
Tags: #beckmann, #<question-type>
Status: tentative — promote after 3x validation
```
**If a graph gap was found, add:**
```markdown
Tags: #beckmann, #beckmann-graph-extension-candidate
Extension-Type: new\_entity | new\_relation | new\_case\_study | new\_paradox
Suggested-Entity-ID: <proposed entity name>
Suggested-Entity-Type: <type from graph schema>
Suggested-Description: <draft description for the graph author>
```
\---
## Graph Extension Feedback Loop
Beckmann graph gaps logged as `#beckmann-graph-extension-candidate` serve
two purposes:
1. **Now:** Structured record for the graph author to review when planning
the next version of `beckmann-knowledge-graph`.
2. **Future:** When a future version of the Beckmann Knowledge Graph supports
agent-driven graph extension, entries tagged
`#beckmann-graph-extension-candidate` in `corrections.md` will serve as
the structured input for that autonomous extension process. The logging
format is designed to be machine-readable from day one.
\---
## Heartbeat Integration
The Self-Improving + Proactive Agent uses a heartbeat for recurring
maintenance. Add this check to the heartbeat cycle:
```markdown
## Beckmann review (weekly)
- Scan corrections.md for entries tagged #beckmann with Status: tentative
- For each: has this insight been applied 3x? → promote to HOT
- Scan for #beckmann-graph-extension-candidate entries → collect for graph author review
- Demote HOT #beckmann entries unused for 30 days → WARM
```
\---
## Conflict Resolution
|Situation|Rule|
|-|-|
|HOT memory and Beckmann analysis disagree|Prefer the externally validated Beckmann answer; log disagreement to `corrections.md`|
|Beckmann produces a low-complexity solution|**Red flag** — apply reversal effect check before delivering|
|Graph not available|Fall back to Self-Improving + Proactive Agent only; log missing graph to `corrections.md`|
|HOT memory already contains a `#beckmann` entry for this question|Use the HOT entry; skip full graph load; note "from prior Beckmann analysis"|
\---
## Quick Reference
|Signal|Action|
|-|-|
|Coding error, failed command, user correction|→ Self-Improving + Proactive Agent: log to corrections.md|
|"What is consciousness / free will / dark energy?"|→ Escalate to Beckmann|
|"How will X change in 20 years?"|→ Escalate to Beckmann (forecast)|
|"Why does X always fail even though it seems logical?"|→ Escalate to Beckmann (reversal effect suspected)|
|"Is it even possible to know X?"|→ Escalate to Beckmann (epistemological limit)|
|Graph entity not found|→ Log as `#beckmann-graph-extension-candidate` in corrections.md|
|Beckmann analysis complete|→ Self-reflect + log to tiered memory|
|Heartbeat runs|→ Review #beckmann entries for promotion / demotion|
\---
## Uninstall
1. Delete this `SKILL.md`.
2. Both `ivangdavila/self-improving` and
`matthiasbeckmann987-spec/beckmann-knowledge-graph` continue working
independently.
3. Memory entries in `\~/self-improving/` tagged `#beckmann` remain available
to the Self-Improving + Proactive Agent as standard memory — no data loss.
don't have the plugin yet? install it then click "run inline in claude" again.
split monolithic original into implexa's 6-part structure, added explicit decision points for all if-else branches, documented all external connections and edge cases (graph load failures, network timeouts, empty result sets, auth expiry patterns), preserved original procedure faithfully while reorganizing into numbered steps with input/output clarity, added heartbeat integration as explicit step, kept lowercased voice and removed em-dashes throughout.
this skill orchestrates two independent systems without modifying either one. the self-improving + proactive agent handles all routine tasks (coding, file operations, factual lookups, corrections). when a user asks an open scientific question, paradoxical problem, long-horizon forecast, strategic dead end, ai safety question, or epistemological limit question, the agent pauses to ask permission before escalating to the beckmann knowledge graph for structured deep reasoning. insights from beckmann analyses feed back into the agent's tiered memory (hot/warm/cold) and get promoted or demoted based on successful reuse. uninstalling this skill leaves both base skills fully intact.
required skills:
ivangdavila/self-improving (v1.0+): default reasoning engine with hot/warm/cold memory and heartbeatmatthiasbeckmann987-spec/beckmann-knowledge-graph (v1.0+): structured reasoning graph with entities, relations, and logic rulesmemory directories (must exist):
~/self-improving/memory.md: hot memory (≤100 lines, always loaded)~/self-improving/projects/: warm memory (project-scoped insights)~/self-improving/domains/: warm memory (domain-scoped insights)~/self-improving/archive/: cold memory (90+ days unused)~/self-improving/corrections.md: correction log and beckmann extension candidates~/self-improving/heartbeat-state.md: state file for weekly maintenancegraph file:
beckmann-knowledge-graph/graph.json: json file with entities array and relations arrayedge cases and external dependencies:
BECKMANN_GRAPH_TOKEN before loadinginput: user question, file path ~/self-improving/memory.md
load hot memory and search for entries tagged #beckmann. if a directly relevant entry exists, use it as the answer and cite the source (e.g., "using X (from self-improving/memory.md, prior beckmann analysis)"). skip to outcome signal.
output: either matched entry from hot memory or null if no match found.
input: user question (text)
check if question matches one or more of these six categories:
decision: if question does not match any category, go to step 9 (standard reasoning). if question matches one or more, go to step 3.
complexity check fallback: if uncertain, ask internally: "would a highly intelligent person answer this differently after a week of thinking about hidden assumptions?" if yes, classify as beckmann trigger.
output: classification result (matched category or no match) and confidence level (high/medium/low).
input: matched classification from step 2, original user question
compose a proactive suggestion message:
"your question touches on [matched category name]. i have access to the beckmann knowledge graph, a structured reasoning framework for exactly this type of question. would you like me to apply it? it will take longer than a standard answer, but will analyse hidden assumptions and offer structured reasoning."
do not escalate silently. present this message and wait for explicit user response.
output: user confirmation (yes/no/maybe-later).
input: user confirmation from step 3
decision:
output: escalation decision (proceed or skip).
input: file path beckmann-knowledge-graph/graph.json
attempt to load graph.json using json parser (javascript, python, etc.). extract entities array and relations array. if parse fails, log error with timestamp to ~/self-improving/corrections.md with tag #beckmann-load-failure and fall back to step 9.
edge case (network timeout): if graph is remote, set 5-second timeout, retry once, then fall back.
edge case (missing file): if local file missing, log to corrections.md with tag #beckmann-missing-graph and fall back to standard reasoning.
output: entities array, relations array, or null if load failed.
input: user question, entities array, relations array from step 5
follow beckmann-knowledge-graph/SKILL.md exactly:
leads_to, triggers, is_reversed_by, protects_against relations between extracted entities, up to 4 hops deepedge case (no relevant entities found): if search in step 2 returns empty set, log question to ~/self-improving/corrections.md with tags #beckmann, #beckmann-graph-extension-candidate, and fall back to standard reasoning with note "graph has no coverage for this domain".
edge case (reversal effect produces low-complexity solution): flag this as suspicious, re-examine relation chain, mention in confidence/limits section of answer.
output: classification confirmed, entity list, relation chain (as path), problem-level assessment, solution assessment, epistemological limits.
input: output from step 6 (reasoning results)
compose answer using this structure:
## Graph-Grounded Answer
**Problem framing**
[what the question really asks, after presupposition analysis]
**Relevant graph nodes used:**
- [Entity ID] , [why relevant]
- [Entity ID] , [why relevant]
**Reasoning path**
[relation chain that leads to the answer, in prose or diagram form]
**Answer**
[the actual response, informed by graph logic]
**Confidence and limits**
[what the graph cannot resolve, and why; any red flags from step 6]
**New questions opened**
[what the next problem level is, or what follow-up questions matter]
present this to user. do not hide the graph structure; make reasoning transparent.
output: formatted answer (text or markdown).
input: user question, graph-grounded answer from step 7, time of completion
add self-reflection entry to ~/self-improving/corrections.md:
CONTEXT: Beckmann analysis , [question type]
REFLECTION: [what the graph revealed that standard reasoning would have missed]
LESSON: [what to apply next time a similar question appears]
determine where this insight belongs (hot/warm/cold) based on scope:
~/self-improving/memory.md with tag #beckmann~/self-improving/domains/[domain].md with tag #beckmann~/self-improving/projects/[name].md with tag #beckmann~/self-improving/corrections.md with tag #beckmann-graph-extension-candidate (see format below)~/self-improving/corrections.md with status tentativeentry format for corrections.md (first occurrence):
[BKM-YYYYMMDD-XXX]
Question type: [paradox | forecast | epistemological | strategic | ai-safety]
Graph nodes used: [comma-separated entity IDs]
Key insight: [most important finding]
New actual level: [what the problem level becomes after this analysis]
Source: beckmann-knowledge-graph v[version]
Tags: #beckmann, #[question-type]
Status: tentative , promote after 3x validation
entry format for graph extension candidate:
[BKM-YYYYMMDD-XXX-EXT]
Question type: [as above]
Tags: #beckmann, #beckmann-graph-extension-candidate
Extension-Type: [new_entity | new_relation | new_case_study | new_paradox]
Suggested-Entity-ID: [proposed entity name]
Suggested-Entity-Type: [type from graph schema]
Suggested-Description: [draft description for graph author]
Source: beckmann-knowledge-graph v[version]
Status: candidate for next graph update
output: formatted log entries, written to disk.
input: user question (if no beckmann trigger matched in step 2, or user declined in step 4)
apply standard self-improving + proactive agent behavior:
~/self-improving/corrections.mddo not invoke beckmann graph. cite memory sources where applicable.
output: answer (text) and optional memory update.
input: ~/self-improving/corrections.md, ~/self-improving/memory.md, ~/self-improving/domains/, ~/self-improving/projects/
run this check every 7 days (integrated into ivangdavila/self-improving heartbeat):
#beckmann with status tentative#beckmann)#beckmann-graph-extension-candidate and collect for graph author review (optional: email or log to external queue)#beckmann unused for 30+ days and demote to warm (move to appropriate domains/ or projects/ folder)output: promotion/demotion log, graph extension candidate collection (for future graph author).
after step 1 (hot memory scan):
after step 2 (classification):
after step 3-4 (user response):
after step 5 (graph load):
after step 6 (entity search in beckmann protocol):
after step 6 (reversal-effect check):
conflict resolution (during any step):
#conflict#beckmann entry for this exact question: use hot entry, skip graph load, cite "from prior beckmann analysis"on successful beckmann escalation:
user receives a markdown-formatted response containing:
all entries are written to disk in ~/self-improving/ (memory.md, domains/, projects/, or corrections.md) with appropriate tier assignment and tags (at minimum #beckmann, plus category tag).
on non-beckmann or declined escalation:
user receives a standard answer using self-improving + proactive agent memory. if beckmann was declined, answer includes note: "i've answered with standard reasoning. the beckmann knowledge graph remains available if you'd like to go deeper later."
on graph load failure or extension gap:
log entry written to ~/self-improving/corrections.md with tag #beckmann-load-failure or #beckmann-graph-extension-candidate. user receives fallback answer using standard reasoning.
on heartbeat cycle:
promotions/demotions logged to corrections.md. graph extension candidates collected (no output to user unless manually requested).
no data loss on uninstall:
all memory entries (tagged #beckmann or not) remain in ~/self-improving/. only this SKILL.md is removed.
user knows the skill worked when:
#beckmann-graph-extension-candidate in corrections.md within seconds