Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add chrisgagne/grounded-forge --skill ingesting-imagesgit clone --depth 1 https://github.com/chrisgagne/grounded-forgeWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/chrisgagne/grounded-forge/ingesting-images)<a href="https://agentmods.dev/skills/chrisgagne/grounded-forge/ingesting-images"><img src="https://agentmods.dev/badge/skills/chrisgagne/grounded-forge/ingesting-images.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00044 | $0.01699 |
| Opus 5 | $0.00022 | $0.00849 |
| Sonnet 5 | $0.00009 | $0.00340 |
| Haiku 4.5 | $0.00004 | $0.00170 |
Grade A, and why
ingesting-images scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 69 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Ingesting Images
Visual image classification for a source whose text-axis ingestion is already complete. Produces SUBSTANTIVE entries appended to corpus.commons/{corpus}/sources/converted/IMAGE-INDEX.yaml, deletes DECORATIVE files, updates the source's Pass H verification log count.
Completes the image axis when ingesting-resources ran text-only (or image classification was abandoned mid-run from context budget).
When to use
- The source's IMAGE-INDEX.yaml entries are stub-format or labelled PARTIAL and you want full coverage.
- A source was ingested text-only originally and you want to add the image axis now.
- A source's images were re-extracted (e.g., after a substantive PDF revision) and need re-classification.
When not to use
- Full source ingestion: use
ingesting-resources. - Searching the corpus for an existing source: use
matching-references. - Routine reading of an existing classified source: read
corpus.commons/{corpus}/sources/converted/IMAGE-INDEX.yamldirectly.
Prerequisites
- The source's deep reference exists at
corpus.commons/{corpus}/references/{prefix}-{slug}-deep.md. - Either (a) the source PDF / EPUB exists at
corpus.commons/{corpus}/sources/original/{slug}.{ext}(so images can be re-extracted), or (b) the image directory atcorpus.commons/{corpus}/sources/converted/{md-slug}-images/already contains extracted files.
Procedure
- Resolve scope. If the argument is a single slug, classify that source. If
all, scan IMAGE-INDEX.yaml for entries whose comments includePARTIALorDescription not yet authored, and process each affected source in turn. - Ensure images extracted. If
{md-slug}-images/is empty or missing, runpython3 scripts/extract-images.py corpus.commons/{corpus}/sources/original/{slug}.{ext}to populate. - Read existing index entries for the source from the corpus's
IMAGE-INDEX.yamlto know what's already classified. Do not duplicate entries already present. - Split into waves. For sources over ~100 images, group the file list into waves of 64 (8 batches × 8 files conceptually). One wave = one read-only Sonnet dispatch + one splice + one commit. This bounds context per dispatch, gives a clean recovery point if a session is interrupted, and lets the operator pause between waves without losing state.
- Dispatch one read-only Sonnet agent per wave. The agent gets the Read tool only: no Bash, no Edit, no Write. Brief it with: (a) the full list of file paths for this wave, (b) the SUBSTANTIVE / DECORATIVE criteria, (c) the exact YAML-line format for substantive entries, (d) the hard rule that data tables / exercise data sets / source documents are substantive (do not flag as decorative just because they lack diagrams), (e) instruction to read each file and report, never fabricate from filename. The single-agent-of-64 pattern is materially more context-efficient than fanning out 8 parallel agents of 8.
- Stage the wave's YAML in
/tmp. Write the agent's substantive entries to/tmp/{slug}-wave{N}.yaml. This keeps the in-progress wave out of git and recoverable if validation fails. - Delete decoratives file-by-file. The auto-mode classifier blocks bulk-glob
rmof pre-existing files. Chain individualrmcommands with&&(one per file). Then verify the new disk count. - Splice the staging YAML into IMAGE-INDEX.yaml. Use
sed -i.bakto update the PARTIAL header (entries / decoratives deleted / unclassified remaining), thencat /tmp/{slug}-wave{N}.yaml >> IMAGE-INDEX.yaml. Validate withpython3 -c "import yaml; yaml.safe_load(open(...))": fails fast on any malformed entry. - Commit each wave. Convention:
image-ingestion: {slug} wave {N} — N kept, M deleted [corpus-data]with a body summarising the chapter / topic coverage. Per-wave commits are the recovery point; if a later wave goes sideways, the wave-N commit is intact. - On the final wave, switch PARTIAL → FINAL in the header, with the reconciliation line
indexed + deleted = original-extraction-count. Update the planning log entry from PARTIAL to the consolidated final summary. - Append one consolidated line per source to
_planning/image-ingestion-log.md(or whichever the operator names). Per-wave entries belong in commit messages, not the log. Drift between log header and actual index entries is a known drift hazard: verify the index count withpython3 -c "import yaml; d=yaml.safe_load(open(...)); print(len([e for e in d if e.get('file','').startswith('{slug}-images/')]))"before writing FINAL counts. - Update Pass H at
corpus.commons/{corpus}/references/_audit/_ingest_pass_H_{prefix}-{slug}_verification.mdwith the refreshed image-classification counts (substantive / decorative). - Verify and report: total images processed, substantive count, decorative count, decorative rate, anomalies, recovery actions needed (e.g., orphaned files on disk without index entries).
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 7d ago First seen · 69 lines · 44 tokens per session scan A 5a3d37c3aa3f
ingesting-images is a skill published in the GitHub repository chrisgagne/grounded-forge (7 stars, last pushed 17d ago), licensed MIT. It adds 44 tokens to every session and 1,699 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other skills, from other repositories
warpp-workflow-authoring
Author WARPP workflows for Manifold as typed-port dataflow JSON. Use when a user asks to build, create, design, generate, or edit a Flow / workflow / automation / pipeline / DAG in Manifold, or mentions WARPP, workflow nodes, or the /flow builder. Covers the document format, port types and coercions, the builtin node…
manifold-api
Use when an agent needs to inspect or call the local Manifold HTTP API. Provides guidelines and scripts to filter specs before reading and handle payloads safely.
subagent-driven-development
Execute plans via delegatetask subagents (2-stage review).
duckduckgo-search
Free keyless web, news, and image search via ddgs.
mcporter
List, auth, and call MCP servers/tools from the terminal.
mem0-oss-to-platform
Plan and then execute a migration of a project from the mem0 open-source / self-hosted SDK (the local Memory class) to the mem0 Platform / hosted / managed SDK (the MemoryClient class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS/self-hosted to the hosted API — e.g.…