AI Agent From Scratch — AI skill for Claude Code
A LangChain financial research agent that answers personal finance questions with worst, average, and best-case solutions.
How to install AI Agent From Scratch
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open TarekkMuhammedd/AI-Agent-From-Scratch and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What AI Agent From Scratch does
A LangChain financial research agent that answers personal finance questions with worst, average, and best-case solutions. It returns structured output (topic, summary, sources, tools used) using Google Gemini, OpenAI, or Anthropic Claude.
Alternatives in AI
- Develop — Development phase - Build solutions with multi-AI implementation and quality gates 2.8k ★
- Mysti — AI coding dream team of agents for VS Code 1k ★
- Charlie CFO: Bootstrapped Financial Management — Your AI CFO for bootstrapped, profitable companies 190 ★
README
Financial Research Agent
A LangChain agent that answers personal finance questions with structured, multi-scenario solutions. For each question, it returns a topic, a summary covering worst, average, and best cases, sources, and the tools used.
Features
- Answers financial questions with a tool-calling LangChain agent.
- Covers worst, average, and best-case scenarios for each problem.
- Returns output in a fixed structure defined by a Pydantic model (
ResearchResponse). - Supports three LLM providers: Google Gemini, OpenAI, and Anthropic Claude.
Project Structure
| File | Purpose |
|---|---|
main.py |
Builds the prompt, agent, and parser, then runs an example query |
ResearchResponse.py |
Pydantic model for the structured output (topic, summary, sources, usedTools) |
tools.py |
Reserved for agent tools (currently empty) |
Requirements.txt |
Python dependencies |
.env |
API keys (not committed; listed in .gitignore) |
Requirements
- Python 3.9 or higher
- Packages listed in
Requirements.txt: langchain, wikipedia, langchain-community, langchain-openai, langchain-anthropic, python-dotenv, pydantic, duckduckgo-search
You also need the `langchain-google-genai` package, which is imported by `main.py` but is not listed in `Requirements.txt`.
Installation
git clone https://github.com//.git
cd
pip install -r Requirements.txt langchain-google-genai
Configuration
Create a `.env` file in the project folder with your keys:
OPENAI_API_KEY=your_openai_key
ANTHROPIC_API_KEY=your_anthropic_key
GOOGLE_API_KEY=your_google_key
Never commit this file. Keep `.env` in `.gitignore`.
Running
python main.py
The script runs a sample query about buying a car in Egypt on a 3,500 EGP salary and prints the raw and structured responses.
Known Issues
main.pycallsparser.paarse(...). It should beparser.parse(...).claude-3-5-sonnet-2024022
Related Skills
Tax And Finance
AI agent skills for Israeli tax, invoicing, VAT, and financial systems
Financial Model
Build a financial model or business case with projections
FinRecon AI
Agentic AI platform for financial reconciliation: matches transactions across sources, investigates discrepanc
Discord Claude Support Bot
Discord support and moderation bot on the HTTP Interactions model: Claude answers from your docs with sources,
Wechat Topic Fetch Tool
A content source governor for discovering, fetching, and routing AI/tech news from multiple internet sources
Traffic Flow Optimization
Developed an AI-powered traffic optimization agent using PyTorch for intelligent route recommendations. Built
Related Agents
Budget Analyst
Personal budgeting and financial-planning specialist on the Financial Intelligence team. Manual use only, when
Co Finance Analyst
Company role — finance analyst. Builds pricing models, unit economics, budgets, runway and fundraising materia
Financial Stress Tester
Use after financial-modeler-uk produces a model. Reviews it in a fresh context, runs best/base/worst scenarios