Ingest

From MechMath/MechMath-agent-team · View interactive version

Ingest is an AI agent skill from the GitHub repository MechMath/MechMath-agent-team. Use when processing a registered KBManager raw source; dispatches to source-style ingest for external math references or analysis-style ingest for internal problem-solving notes.

How to use this skill

Skill file

Ingest Dispatcher

Use this skill after a file has been registered or fetched into

${DATA_DIR:-data}/raw_sources/<hash12>/.

This skill chooses the right ingest mode. Do not default to creating a

Source_* page until the file type has been classified.

Shared Setup

  1. Locate the source by filename:

```bash

find "${DATA_DIR:-data}/raw_sources" -maxdepth 2 -name "<filename>" | head -1

```

  1. Check sources_manifest.md ## Ingested for this hash or filename. If it is

already ingested, ask before re-ingesting.

  1. Read enough of the file to classify it. For .tex, preserve commands. For

PDFs, read rendered pages rather than trusting plain text extraction.

  1. Read ${DATA_DIR:-data}/wiki/index.md before deciding which pages to update.
  2. Before writing, summarize 3-5 core takeaways and get human acknowledgement.

Mode Selection

Use ingest-source for external mathematical knowledge:

hypotheses, examples, or bibliography

Use ingest-analysis for internal problem-solving memory:

syntheses, solution summaries, TODO/checklist notes

checks, proof patterns, hypothesis audits, reusable warnings

Obstruction_* page and links into existing concepts, not a redundant

Source_* page

For Lean files, return a handoff to the archivist agent.

If a file mixes modes, choose the dominant durable use. If genuinely ambiguous,

ask the human which mode to use before writing.

Shared Completion

Every ingest mode must:

  1. Update sources_manifest.md: move the entry from ## Pending Ingest to

## Ingested, or create an ingested entry if missing.

  1. Set Wiki page to the primary durable page created or updated. For

analysis-style ingest this may be an Analysis_*, PartialProof_*, or

Obstruction_* page.

  1. Remove a matching download_queue.md pending entry for the source itself if

one exists.

  1. Append one entry to wiki/log.md.
  2. Commit changed wiki/manifest/queue files unless the human asks not to.

Shared References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.