Knowledge Manager logo

Knowledge Manager

Community
Ibrahim-3d
knowledge-manager

Loads relevant patterns and known errors before track planning. Searches conductor/knowledge/ for solutions we've used before and errors we've encountered. Injects findings into the planner prompt to prevent reinventing solutions and repeating mistakes. Triggered automatically by orchestrator before PLAN step.

Overview

PublisherIbrahim-3d
Repositoryorchestrator-supaconductor
Skill nameknowledge-manager
Stars
378
Forks
38
Bundled files
Instructions only
LicenseAGPL-3.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Ibrahim-3d on GitHub. Read the source before you install it.

Installation

Install the Knowledge Manager AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Ibrahim-3d/orchestrator-supaconductor.git /tmp/orchestrator-supaconductor
mkdir -p .claude/skills
cp -r /tmp/orchestrator-supaconductor/skills/knowledge/knowledge-manager .claude/skills/knowledge-manager
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Knowledge Manager in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Knowledge Manager on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Knowledge Manager is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Knowledge Manager — Pre-Planning Intelligence

Searches the knowledge base for relevant patterns and errors before a track begins, injecting institutional memory into the planning process.

When This Runs

Automatically — The orchestrator calls this agent BEFORE dispatching the loop-planner for any track.

Inputs

  1. Track spec.md — To understand what the track is about
  2. Track type — From metadata.json (feature, UI, integration, etc.)
  3. Keywords — Extracted from spec (e.g., "auth", "Supabase", "form", "state")

Workflow

1. Extract Keywords from Spec

read_file the track's spec.md and extract relevant keywords:

typescript
const keywords = extractKeywords(spec);
// Example: ["authentication", "Supabase", "login", "signup", "OAuth"]

Keywords come from:

  • Section headings
  • Technical terms
  • Integration names (Supabase, Stripe, Gemini)
  • Component types (form, modal, grid, etc.)
  • Pattern names (state management, API routes, etc.)

2. Search Pattern Library

Search conductor/knowledge/patterns.md for matching patterns. Score each entry by keyword overlap and return only the top 3 highest-scoring results (skip zero-score entries):

markdown
## Relevant Patterns Found (top 3 by relevance)

### Pattern: Supabase Client Singleton
**Category**: Integration
**Relevance score**: 3/5 keywords matched
**Summary**: Use singleton pattern with server/client separation
**Key Code**:
```tsx
// lib/supabase/server.ts
export const createClient = async () => { /* ... */ };

Pattern: Server Actions with Error Handling

Category: API Relevance score: 2/5 keywords matched Summary: Wrap all server actions with try/catch and typed responses


### 3. Search Error Registry

Search `conductor/knowledge/errors.json` for errors related to this track type. Score each entry by keyword overlap and **return only the top 3 highest-scoring results**:

```markdown
## Known Errors to Watch For

### Error: Hydration Mismatch (err-003)
**Pattern**: "Hydration failed because the initial UI does not match"
**Context**: Auth state can differ between server and client
**Prevention**: Wrap auth-dependent UI in useEffect or client component

### Error: NEXT_REDIRECT in try/catch (err-004)
**Pattern**: "NEXT_REDIRECT"
**Context**: Server actions with redirect after login
**Prevention**: Re-throw NEXT_REDIRECT errors or move redirect outside try/catch

4. Generate Knowledge Brief

Output a knowledge brief that gets injected into the planner's prompt. Total output must not exceed 500 tokens. If the top-3 patterns + top-3 errors would exceed this budget, truncate lower-scored entries first:

markdown
# Knowledge Brief for [Track ID]

## Relevant Patterns (Apply These)

1. **Supabase Client Singleton** — Use separate server/client clients
2. **Server Actions with Error Handling** — Typed responses with try/catch

## Known Errors (Avoid These)

1. **Hydration Mismatch** — Don't render auth-dependent UI on server
2. **NEXT_REDIRECT** — Handle redirect() specially in try/catch

## Previous Similar Work

- Track `auth-flow_20260115` implemented similar auth flow
- See `conductor/tracks/auth-flow_20260115/plan.md` for reference

## Recommendations

- Consider using the existing auth patterns from previous track
- Watch for SSR/client hydration issues with auth state

Output Format

The Knowledge Manager returns a structured brief:

json
{
  "patterns_found": [
    {
      "name": "Supabase Client Singleton",
      "category": "Integration",
      "relevance": "high",
      "summary": "...",
      "code_snippet": "..."
    }
  ],
  "errors_to_watch": [
    {
      "id": "err-003",
      "pattern": "Hydration mismatch",
      "prevention": "..."
    }
  ],
  "similar_tracks": [
    {
      "track_id": "auth-flow_20260115",
      "relevance": "Implemented OAuth flow"
    }
  ],
  "recommendations": [
    "Reuse auth patterns from previous track",
    "Watch for hydration issues"
  ]
}

Integration with Orchestrator

The orchestrator injects this brief into the planner's dispatch:

typescript
// In conductor-orchestrator
async function dispatchPlanner(trackId: string) {
  // 1. Run Knowledge Manager first
  const knowledgeBrief = await Task({
    subagent_type: "general-purpose",
    description: "Load knowledge for track",
    prompt: `You are the knowledge-manager agent.

      Track: ${trackId}
      Spec: ${specContent}

      Search conductor/knowledge/patterns.md and errors.json.
      Return a knowledge brief with relevant patterns and errors.`
  });

  // 2. Dispatch planner WITH knowledge brief
  await Task({
    subagent_type: "general-purpose",
    description: "Create track plan",
    prompt: `You are the loop-planner agent.

      ${knowledgeBrief.output}

      Create plan.md using the patterns above where applicable.
      Avoid the known errors listed.`
  });
}

Search Strategies

By Category

Match track type to pattern/error categories:

  • UI track → Search "UI", "component", "styling" patterns
  • Integration track → Search "Integration", "API", "Supabase", "Stripe" patterns
  • Feature track → Search "State", "API", "Testing" patterns

By Keyword

Fuzzy match keywords from spec against pattern descriptions and error contexts.

By Recency

Prioritize patterns from recent tracks (more likely to be relevant to current codebase state).

Maintaining the Knowledge Base

The Knowledge Manager is read_file-only. Writing to the knowledge base is done by:

  • Retrospective Agent — After track completion
  • Fixer Agent — When discovering new error patterns

No Matches Found

If no relevant patterns or errors are found, return:

json
{
  "patterns_found": [],
  "errors_to_watch": [],
  "similar_tracks": [],
  "recommendations": ["No prior patterns found. Document solutions discovered in this track."]
}

This is fine — it means we're doing something new. The retrospective will capture learnings after.

Frequently asked questions

What does the Knowledge Manager AI skill do?

Loads relevant patterns and known errors before track planning. Searches conductor/knowledge/ for solutions we've used before and errors we've encountered. Injects findings into the planner prompt to prevent reinventing solutions and repeating mistakes. Triggered automatically by orchestrator before PLAN step.

Why use Knowledge Manager on TypingMind?

Because you install it once and use it with any model. Knowledge Manager is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Knowledge Manager in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Ibrahim-3d/orchestrator-supaconductor/tree/master/skills/knowledge/knowledge-manager. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Knowledge Manager?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Knowledge Manager?

As many as you like. As long as a model supports skills, you can use Knowledge Manager with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Knowledge Manager AI skill free?

Yes. It is published on GitHub by Ibrahim-3d under the AGPL-3.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇