Source Index logo

Source Index

Community
llopresto87
source-index

Answers impact, affected-tests, anchors and symbols queries on a plant's code via docs/graph/source-index.py, without a model.

Overview

Publisherllopresto87
RepositoryCypress
Skill namesource-index
Stars
113
Forks
6
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 llopresto87 on GitHub. Read the source before you install it.

Installation

Install the Source Index 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/llopresto87/Cypress/tree/main/skills/source-index
  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/llopresto87/Cypress.git /tmp/Cypress
mkdir -p .claude/skills
cp -r /tmp/Cypress/skills/source-index .claude/skills/source-index
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Source Index 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 Source Index 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 Source Index 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.

source-index - the plant's code questions, answered without a model

docs/graph/source-index.py reads the code of every repository the plant governs and answers four questions from a derived cache. It recommends; verify, the tier and canonize still decide what runs. Its contracts are the seed's SPEC-0007; this page is how a session uses it.

0. Identity

  • Name: source-index
  • Path: docs/graph/source-index.py, placed by the installer with the siblings it loads by file path (source_paths.py, plant_walk.py, frontmatter.py, and code-anchor.py for anchors --moved)
  • Language / runtime: python3 (standard library) and git
  • Owner: the seed; a plant never edits the placed copy, an install or graft replaces it
  • Stability: stable

1. What it does

It inventories the code of the plant root (when it is a Git work tree) and of each nested work tree a node's repo: names, and reads file-to-file links: Python imports and loads by file path (read with ast, never run), python3/bash/sh/source invocations, quoted path literals, and TS/JS import/export from/require()/import() through tsconfig or jsconfig paths. A Markdown mention is not a link. The same pass reads definitions for symbols.

2. Interface & invocation

Run every command from the plant root:

sh
python3 docs/graph/source-index.py --help
python3 docs/graph/source-index.py build [--json]
python3 docs/graph/source-index.py impact         [--depth N] [--history] [--all] [--json] <path>... | -
python3 docs/graph/source-index.py affected-tests [--depth N] [--history] [--all] [--json] <path>... | -
python3 docs/graph/source-index.py anchors                  [--all] [--json] <path>... | - | --moved
python3 docs/graph/source-index.py symbols                  [--all] [--json] <name>... | -
  • Inputs: plant-relative paths (or names for symbols), or - to read them from stdin; --depth 1 to 5 (default 3); --history adds files that changed together in past commits; --moved takes the inputs from code-anchor.py's moved list.
  • Outputs: a text view (--all prints every row) or --json. Rows are certain or maybe; what the tool could not answer is listed as incomplete, and the closing line says what to do instead. Every query exits 0 with an answer; a malformed command line exits 2.
  • Writes: only the self-ignored cache under .cypress/source-index/, rebuilt by any query whose key moved (a commit, an uncommitted code edit, the config, TEST_GLOBS, the tool). It is scratch, never committed.

Configuration the plant owns (no tool writes it):

  • TEST_GLOBS in docs/graph/spec-lint.py: the test class.
  • docs/graph/source-index.json, optional: exclude (out of the test class), always_run (tests every change runs), global_inputs (files such as package.json whose change makes every answer incomplete).
  • each node's repo: value: which repository or folder the node owns.

After changing any of the three, rerun build and read its report.

3. Where the code lives

  • Entry point: docs/graph/source-index.py (seed tools/source-index.py)
  • Supporting files: the siblings named in section 0
  • Dependencies: none beyond the standard library and git

4. When to use it (and when not)

  • Use when: before changing a file, run impact to see what depends on it; when choosing tests, run affected-tests and add the always-run set it prints; at canonize, run anchors --moved to find the graph pages that cite code that moved; to find where a name is defined, run symbols.
  • Do not use when: the question is about prose, Markdown or graph structure (the router and graph-lint.py own those), or about callers of a function (the index holds file links, not a call graph).
  • The limit, in one line: an answer is a recommendation over cooperative code, and a file's absence from dependents or tests is never proof that it is unaffected.

5. The build report

The installer runs build as its last step on every install and graft apply, and growth-audit.py prints the same report after its verdicts. The report is advice and never fails either. It holds the cache line, the counts, the time, and one record per setup gap, each followed by its fix: line: no-repository, no-test-declaration, repo-unresolved (a repo: value that names nothing on disk), and the rest. Hints name test files outside TEST_GLOBS, non-test files inside it, and config patterns that match nothing. A session acts on each record by its fix line, through the protocol that owns it, then reruns build.

6. Pitfalls and sharp edges

  • A missing row is not a clean bill: dynamic imports, generated paths and hook commands in host settings files are not read; the floor and the incomplete list say where the answer stops. Two stops name themselves: an input in a language the tool has no reader for (Go, Java, C#, Ruby and the like) is language-not-read, and an end-to-end test that drives a started application over HTTP is reached-over-http, because no link leads from it to the code the server runs.
  • affected-tests is never "only these": run the listed tests, the always-run set, and the full suite whenever the answer is incomplete.
  • A wrong repo: silently narrows anchors: fix every repo-unresolved record before trusting the anchors answer.
  • No Git, no index: a plant root that is not a work tree and names no repository gets the no-repository record and no cache.

7. References & neighbours

  • Protocols that call it: protocol.verify (affected tests, never the whole decision), protocol.canonize (anchors --moved, then correct a repo: value it names), protocol.grow and skill.adopt-existing (build --json gives scouts the file list; grow's delivery records the report of its last growth-audit run), protocol.graft (the apply install prints the report; Phase 6 corrects the repo: values it names, Phase 7 records each line and what was done with it).
  • Related tools: docs/graph/code-anchor.py (the moved list), docs/graph/graph-lint.py (routing; owns no code facts).
  • Decisions: the cache is derived scratch, rebuilt and never canonical; a seed tool is surfaced by a seed skill, not a card in docs/graph/tools/.

8. Changelog

The seed's CHANGELOG records each change to the tool and this page.

Frequently asked questions

What does the Source Index AI skill do?

Answers impact, affected-tests, anchors and symbols queries on a plant's code via docs/graph/source-index.py, without a model.

Why use Source Index on TypingMind?

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

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/llopresto87/Cypress/tree/main/skills/source-index. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Source Index?

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 Source Index?

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

Is the Source Index AI skill free?

Yes. It is published on GitHub by llopresto87 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 👇