Skip to content
Skills Library
AI & agents · Automation

ingest

/ingest

Bootstraps the memory store from existing material (repos, PDFs, transcripts). Use to seed memory from a project or document.

Repository
mori ↗
Licence
AGPL-3.0
Last repository change
03.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 03.10.2026, without references to retired models or APIs.

Licence

AGPL-3.0, copyleft: przeróbki udostępniane innym muszą mieć tę samą licencję.

What it does and when to use it

Bootstraps the memory store from existing material (repos, PDFs, transcripts). Use to seed memory from a project or document.

Original author description

Bootstraps the memory store from existing material (repos, PDFs, transcripts). Use to seed memory from a project or document.

How it works

  1. Filesystem mode (server-local paths)
  2. Content mode (remote clients — HTTP upload)
  3. Argument mapping
Original SKILL.md headings · 103 lines, 562 words
SKILL.md preview
---
name: ingest
description: Bootstraps the memory store from existing material (repos, PDFs, transcripts). Use to seed memory from a project or document.
---

## Filesystem mode (server-local paths)

1. If the user passes `--status`, call `mori-ingest_status` and present the table.
2. If the user passes `--preview` or `--dry-run` with no source provided, remind them to provide `--source <path>`.
3. For `--preview`: call `mori-ingest_preview` with the `--source` path(s) and any `--type` or `--since` arguments. Present the chunk breakdown and cost estimate. Remind the user this is zero-cost — no LLM was called.
4. For `--dry-run`: call `mori-ingest` with `dry_run=true` and all provided arguments. Report what would be written and the actual cost incurred (the LLM was called, just nothing committed).
5. For a real ingestion run: call `mori-ingest` with all provided arguments. Report: sources processed, chunks sent, memories written, cost estimate, errors.
6. If errors occurred for specific files, report them individually.
7. After successful ingestion, suggest running `/brief` to reload shared memories so the new entries are visible.
8. For large or expensive-looking sources, suggest `/ingest --preview` first to check before committing.

## Content mode (remote clients — HTTP upload)

When the user passes `--content <path>`, upload the file directly to the mori-ingestion pod.
Do NOT use the `mori-ingest_content` MCP tool — it has been removed. Use HTTP multipart upload only.

Requires:
- `MORI_INGEST_URL` env var (set by installer — NOT derived from `MORI_URL`)
- `MORI_API_KEY` env var (same key as MCP auth)

### Linux/macOS

```bash
JOB=$(curl -sf -X POST "${MORI_INGEST_URL}/api/ingest/upload" \
  -H "X-Api-Key: ${MORI_API_KEY}" \
  -F "files=@${path}" \
  -F "focus=${focus}" \
  -F "tier=${tier}" \
  -F "tags=${tags}" \
  -F "dry_run=${dry_run}")
JOB_ID=$(echo "$JOB" | python3 -c "import sys,json; print(json.load(sys.stdin)['job_id'])")
```

### Windows (PowerShell)

```powershell
$r = Invoke-RestMethod -Uri "$env:MORI_INGEST_URL/api/ingest/upload" `
  -Method POST `
  -Headers @{"X-Api-Key" = $env:MORI_API_KEY} `
  -Form @{
    files   = Get-Item $path
    focus   = $focus
    tier    = $tier
    tags    = $tags
    dry_run = $dry_run
  }
$JOB_ID = $r.job_id
```

### Polling (both platforms)

Poll every 5 seconds until `status` is `complete` or `failed`:

```bash
# Linux/macOS
while true; do
  STATUS=$(curl -sf "${MORI_INGEST_URL}/api/ingest/job/${JOB_ID}" \
    -H "X-Api-Key: ${MORI_API_KEY}")
  STATE=$(echo "$STATUS" | python3 -c "import sys,json; print(json.load(sys.stdin)['status'])")
  [ "$STATE" = "complete" ] || [ "$STATE" = "failed" ] && break
  sleep 5
done
echo "$STATUS"
```

```powershell
# Windows
do {
  $status = Invoke-RestMethod -Uri "$env:MORI_INGEST_URL/api/ingest/job/$JOB_ID" `
    -Headers @{"X-Api-Key" = $env:MORI_API_KEY}
  if ($status.status -notin "queued","running") { break }
  Start-Sleep 5
} while ($true)
$status
```

Report: memories written, estimated cost, errors. After success, suggest `/brief` to reload shared memories.

### Error handling

- `MORI_INGEST_URL` not set → tell user to set it (e.g. `http://localhost:8969`) and re-run
- HTTP 413 → file too large (50MB/file, 200MB total)
- HTTP 401 → API key mismatch — check `MORI_API_KEY`
- status `failed` → report `errors` field from job response

## Argument mapping

| User flag | Action |
|-----------|--------|
| `--source <path>` (repeatable) | `mori-ingest` MCP tool → `source` list |
| `--content <path>` | HTTP multipart upload to `MORI_INGEST_URL` |
| `--type <type>` | `type` (auto, transcripts, git, docs, image) |
| `--focus <area>` | `focus` (all, decisions, architecture, conventions, gotchas) |
| `--tier <tier>` | `tier` (working, canonical, ephemeral) |
| `--tags <tags>` | `tags` (comma-separated string) |
| `--since <duration>` | `since` (e.g. "30d", "90d") — filesystem mode only |
| `--dry-run` | `dry_run=true` |
| `--force` | `force=true` |
| `--max-cost <amount>` | `max_cost` (float, USD) — filesystem mode only |
| `--preview` | call `mori-ingest_preview` instead of `mori-ingest` |
| `--status` | call `mori-ingest_status` |

Versions

RepositoryScoreLicence
This page · fjwood69/mori100AGPL-3.0
abatyuk/okf100MIT
kriscard/Skills100MIT
wellwelwel/blue-spec100Apache-2.0
zimoliao/scholaraio100MIT
erayozenn/BigHead-2ndBrain100MIT
zanderadam/engy100MIT
ARCASSystems/FounderOS100MIT
coreyhaines31/makerskills100MIT

Identical content appears in 1 other GitHub folders. We show one copy with the highest score.

Database snapshot: 13.11.2026 · package version 77bb61ad23e2 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 81memory-ingest
    Capture durable session knowledge in the Codex project memory bundle when the user asks to remember it or a durable finding emerges.
  • 90brain:init
    Use when setting up project memory in a new folder or on the first brain:init in a project. Creates project_brain.db, registers the project, and bootstraps it from CLAUDE.local.md, memory files, docs, and emails; safe to re-run.
  • 100engram-digest
    Seed or top up this project's Engram graph from the existing codebase — an explicit, user-invoked digestion of the current working tree into typed memory nodes (decisions, principles, cautions, problems, insights, intents). Use when the user says "digest this project", "ingest…
  • 100memory-setup
    Use when installing, repairing, or verifying the two-store agent-memory architecture on a machine — a code-graph store (codebase-memory-mcp) for structural truth plus an experience store (Hindsight) for decisions and outcomes. Triggers on "set up two-store memory", "install…
  • 100memory-review
    Review the file-based memory store via the Agent Monitor Config Explorer API: the user and project CLAUDE.md plus per-project auto-memory files under ~/.claude/projects/<slug>/memory/*.md. Groups by project, shows the index (MEMORY.md) vs per-fact files, and flags stale or…
  • 100setup-project
    When setting up agentskel on a new project that does not yet have .memory/ or .agents/. Use when the user says "set up agentskel", "install agentskel", or "add agent memory to this project".

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.