Code Ingest logo

Code Ingest

Community
shkodnik1917
code-ingest

Adds a code repository to the Obsidian code library with its purpose, usage, and links to research projects. Use when the user hands over a repo URL or path and says 'add to the code library', 'разбери репозиторий', or starts a project that uses a repo missing from Code/.

Overview

Publishershkodnik1917
Repositoryclaude-brainlab
Skill namecode-ingest
Stars
35
Forks
5
Bundled files
Instructions only
LicenseMIT
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 shkodnik1917 on GitHub. Read the source before you install it.

Installation

Install the Code Ingest 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.
    https://github.com/shkodnik1917/claude-brainlab/tree/main/skills/code-ingest
  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/shkodnik1917/claude-brainlab.git /tmp/claude-brainlab
mkdir -p .claude/skills
cp -r /tmp/claude-brainlab/skills/code-ingest .claude/skills/code-ingest
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Code Ingest 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 Code Ingest 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 Code Ingest 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.

code-ingest — add a repository to the Obsidian Code library

Turns a repo into a map you can read in 2 minutes and instantly recall how the code is organized and where to look to change something — without duplicating the source. The code itself stays in git / on the server; these notes are the index.

When to use

  • The user hands you a repo URL or path and says "add to the code library" / "разбери репо".
  • A project starts depending on external code that has no Code/<repo>/ folder yet.
  • Before heavily editing an unfamiliar repo (build the map first).

When NOT to use

  • The repo is already in Code/<repo>/ and unchanged → just read it. Re-run only to refresh after large upstream changes.
  • For per-project edits/diffs → those go in the project hub card ## Код section, not here (see [[code-library]]).

Where it lives

Vault (the lab tree): ${OBSIDIAN_VAULT}/personal/code-library/ One folder per repo: personal/code-library/<repo-slug>/. The slug is the repo name, kebab-case.

Output structure (always)

Code/<repo>/
  <repo>.md          ← CANONICAL OVERVIEW. Always this exact name. Read this first.
  architecture.md    ← entrypoint, control/data flow, how a run executes end-to-end
  <module>.md        ← one note per major module/package (group tiny files)
  ...
  • The overview <repo>.md is mandatory and always named after the folder, so any agent knows which file to open first.
  • Split into module notes when the repo is large; for a tiny repo a single <repo>.md is fine.
  • Update Code/README.md (the library index) with a one-line entry for the new repo.

Procedure

  1. Get the source. Prefer reading a local clone or the server copy if one exists (ask / check the project card). Otherwise fetch file listing + key files from GitHub (raw URLs / gh). Note the canonical git URL and default branch.
  2. Map the layout. List top-level dirs and the role of each. Identify: entrypoint(s), config system, the main loop, the factory/registry or dispatch points (where names map to classes), data path, outputs/checkpoints.
  3. Trace one full run end-to-end (what main does, in order) — this becomes architecture.md.
  4. Write module notes using the template below. For each module: what it's for, key files with GitHub permalinks and line anchors, key classes/functions, and an explicit "where to edit to change X" list. Do not paste code bodies — cite path:line + a one-line description.
  5. Write the overview <repo>.md using its template.
  6. Index it in Code/README.md.
  7. Tell the user what was created and link the overview.

Overview template (<repo>.md)

markdown
---
tags: [code, <repo-slug>]
repo: <git url>
default_branch: <branch>
created: DD-MM-YYYY
---
# <repo> — code map

One-paragraph: what this repo is and what you use it for.

## At a glance
- **Entrypoint:** `path` (`func`)
- **Config:** how runs are parametrized (flags / yaml / hydra)
- **Run a job:** the minimal command
- **Data:** where data lives / how it's loaded
- **Outputs:** where checkpoints / logs / metrics go
- **Dispatch points:** where a name (optimizer/model/dataset) maps to a class

## Directory map
| path | role | note |
|------|------|------|
| ... | ... | [[architecture]] / [[<module>]] |

## Where to look to change X
- change the model arch → [[models]] (`...`)
- add an optimizer → [[optimizers]] (`...`)
- change the schedule → ...
- change data → ...

## Notes
- [[architecture]] · [[optimizers]] · [[models]] · [[data]] · ...

## Used by projects
- [[<направление>/<тема>/<работа>/README|<работа>]] — <fork/branch + what's changed>

Module note template (<module>.md)

markdown
# <module>

What this module is responsible for, in 2-3 sentences.

## Key files
- `path/to/file.py` — role. [GitHub](permalink)
  - `ClassOrFunc` (`file.py:LINE`) — what it does.

## How it fits the run
Where this is called from (link [[architecture]]), inputs/outputs.

## Where to edit to change X
- ... → `file.py:LINE`

Rules

  • Never copy large code blocks. Cite path:line + GitHub permalink + a sentence. The notes are a map, not a mirror.
  • Keep each note focused; 200-400 lines max, split if larger.
  • Pin permalinks to the analyzed commit/branch so line anchors stay valid; note the branch.
  • Use Obsidian wikilinks between the overview and module notes.
  • After ingesting, remind the user to add a ## Код section to the relevant project hub card (see [[code-library]]).

Frequently asked questions

What does the Code Ingest AI skill do?

Adds a code repository to the Obsidian code library with its purpose, usage, and links to research projects. Use when the user hands over a repo URL or path and says 'add to the code library', 'разбери репозиторий', or starts a project that uses a repo missing from Code/.

Why use Code Ingest on TypingMind?

Because you install it once and use it with any model. Code Ingest 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 Code Ingest in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/shkodnik1917/claude-brainlab/tree/main/skills/code-ingest. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Code Ingest?

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 Code Ingest?

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

Is the Code Ingest AI skill free?

Yes. It is published on GitHub by shkodnik1917 under the MIT 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 👇