Works with the AI Agents you already use
ForgeAI
by Akhil
Takes a brief + documents folder → auto-builds a grounded Q&A AI agent, tests it, optimizes it, and gives an honest scorecard. 8-stage pipeline, never bluffs.
$15
ForgeAI
Example session with this skill installed
Build a grounded Q&A agent for NASA's ISS research dataset. The agent should answer questions about ISS experiments, crew activities, and mission timelines using only the provided CSV and PDF files. It must cite sources and refuse questions not covered by the documents. Use auto mode with up to 3 optimization rounds.
- Read your context and instructions
- Compiled the forgeai
- Generated the data export
Summary
ForgeAI processed 4 NASA ISS documents (2 CSVs, 1 PDF, 1 XLSX) in 8 automated stages — built a grounded Q&A agent, generated 20 stratified test cases, optimized across 3 rounds, and scored on a frozen holdout split the agent never trained on.
Pipeline Execution Log
| Stage | Description | Duration | Status |
|---|---|---|---|
| S0 — Loader | Ingested 4 files, OCR on 2 scanned PDF pages, auto-detected CSV headers, profiled 47 columns | 8.2s | ✅ |
| S1 — Interviewer | Extracted 6 must-answer topics, 3 must-refuse boundaries, scoped to ISS research domain | 4.1s | ✅ |
| S2 — Scout | Verified all 6 must-answer topics grounded in source chunks (confidence: 0.87–0.96) | 5.3s | ✅ |
| S3 — Builder | Generated agent definition with hybrid retrieval, refusal policy, and csv_lookup tool | 3.8s | ✅ |
| S4 — Exam Maker | Created 20 test cases (14 answerable + 6 must-refuse), fact-in-chunk verified, split 70/30 | 11.4s | ✅ |
| S5/S6 — Helper & Teacher | Ran agent + graded with separate-family LLM judge | 32.1s | ✅ |
| S7 — Doctor | 2 optimization rounds, patched 1 retrieval_miss + 1 wrong_refusal, rollback on round 3 | 48.6s | ✅ |
| S8 — Scribe | Generated report.md, report.json, scorecard_holdout.json | 2.9s | ✅ |
Evaluation Scorecard
| Split | Correct | Wrong | Refusals (Correct) | Refusals (Wrong) | Score |
|---|---|---|---|---|---|
| Dev (70%) | 14/14 | 0 | 4/4 | 0 | 100.0% |
| Holdout (30%) | 6/6 | 0 | 2/2 | 0 | 100.0% |
Sample Agent Interaction
Q: What experiments were conducted on the ISS during Expedition 65?
A: During Expedition 65, the ISS hosted experiments including the Tissue Chips in Space study examining immune system aging, the CRISPR gene-editing investigation, and the Veg-05 plant growth study for sustainable food production in microgravity. [Source: iss_experiments_2021.csv, rows 142–158]
Q: What is SpaceX's stock price?
A: ⛔ REFUSED — This question is outside the scope of the provided ISS research documents. The corpus covers ISS experiments, crew activities, and mission timelines but does not contain financial or stock market data.
Output Artifacts
All artifacts saved to runs/beece989-55f/:
agent_definition.json— Declarative agent blueprint (prompt, retrieval config, tools)report.md— Executive report with Dev & Holdout scorecardsreport.json— Machine-readable resultsscorecard_round_1.json...scorecard_holdout.json— Per-case grading logseval_set.jsonl— Verified test suite (20 cases)patches.json— Optimization history with rollback decisionsload_report.json— Format gate auditgroundability.json— S2 corpus coverage proof
Next Steps
- Chat with the agent:
python -m forgeai chat --run-dir runs/beece989-55f - Re-evaluate on new documents: Add files to your docs folder and re-run
forgeai build - Deploy: Use
agent_definition.jsonas the blueprint for your production RAG system - Inspect failures: Open
report.mdfor the full optimization diary and any unresolved edge cases
iss_experiments_2021.csv
CSV · data export
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
ForgeAI — The Agent Factory That Refuses To Bluff
ForgeAI is an autonomous agent factory that builds, evaluates, optimizes, and honestly reports on grounded Q&A AI agents. You give it a one-paragraph brief describing what your agent should do and a folder of documents (PDFs, CSVs, XLSX, DOCX, PPTX, JSON, HTML, Markdown, TXT) — it does the rest.
How It Works — 8-Stage Pipeline S0 — Loader: Ingests 10+ file formats, runs CPU OCR on scanned PDFs, auto-detects spreadsheet headers, profiles tabular features, sentence-aware chunking that snaps to natural boundaries S1 — Interviewer: Converts your brief + document previews into structured requirements (scope, audience, tone, must-answer topics, must-refuse topics, allowed tools) S2 — Scout: Verifies your brief is actually supported by the documents. If not, it halts early — never builds a hallucinating agent S3 — Builder: Generates a declarative agent definition with system prompt, retrieval config, refusal policy, and tools S4 — Exam Maker: Creates 20+ stratified test cases (answerable + must-refuse + edge cases), verifies every eval answer exists in source chunks, splits 70% Dev / 30% Frozen Holdout S5/S6 — Helper & Teacher: Runs the agent with verbatim chunk citations, then grades answers using deterministic checks + a separate LLM judge S7 — Doctor: Diagnoses failures (hallucination, wrong refusal, retrieval miss, prompt defect), applies targeted patches for up to 3 rounds on the Dev split with rollback protection, then evaluates once on the frozen Holdout S8 — Scribe: Generates a full report with exact Dev & Holdout scores, optimization diary, and unresolved failures Key Technical Features Hybrid Retrieval: BM25 + dense embeddings (fastembed/BAAI bge-small-en) + TF-IDF cosine + Reciprocal Rank Fusion, with compound query decomposition PDF OCR: pypdfium2 rendering + rapidocr-onnxruntime for scanned/image-heavy pages Smart Chunking: Sentence/paragraph/word boundary snapping with section heading propagation Tabular Intelligence: DuckDB out-of-core profiling for large CSVs, openpyxl multi-sheet XLSX with header auto-detection and feature summaries Gateway Resilience: Gemini fallback chain (2.5-flash → 3.5-flash → 2.5-flash-lite), exponential backoff on rate limits/server errors, prompt trimming to prevent context overflow Anti-Hallucination: Fact-in-chunk eval gate, groundability guard, one-shot JSON repair, anti-false-refusal prompt engineering Dual Backend: Google Gemini API or local Ollama (qwen3/gemma3) Honest Reporting: Frozen holdout split prevents overfitting, scorecard never inflates — reports failures transparently Proven Results
- Dataset: Dev Score, Holdout Score
- NASA ISS: 100%, 100%
- World Bank EdStats: 85.7%, 50%
- WHO Drinking Water: 64.3%, 66.7%
Interfaces CLI: python -m forgeai build, chat, evaluate, report Streamlit Web App: Interactive UI with file upload, brief input, live pipeline progress, and scorecard display
Requires a compatible LLM backend (Gemini API or Ollama).
Output quality depends on the selected model and source documents.
Complex scanned PDFs may have extraction errors.
Automated evaluation scores are not a guarantee of production accuracy.
Human verification is recommended for critical decisions.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 5 days ago
- Accounts
Google AI
Gemini API keyorlocal Ollama- Software
Python 3.10+
- Optional
- openpyxlpypdfium2rapidocr-onnxruntime
All dependencies install automatically via pip install -r requirements.txt. GPU is not required — OCR and embeddings run on CPU. Free-tier Gemini API key is sufficient for most use cases.
Permissions
Allowed Hosts
File Scopes
ForgeAI reads documents from the folder you specify and writes all output artifacts (agent definition, scorecards, reports) to a runs/<run_id>/ directory. It calls the Gemini API for LLM inference (or Ollama locally). No data is stored externally.
What's inside
Frequently Asked Questions
New in LLM Ops
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.