Overview
Use Claude Code to build a personal portfolio site with a small chatbot that answers visitors' questions only from a facts file about your work that you wrote and approved.
Problem or Objective
More in Coding and Code Review
AI Agents and Models
Tools and Integrations
- Tools
- Claude Code
- Prerequisites
- Claude Code (most surfaces require a Claude subscription or Anthropic Console account), an account and API key with a model provider for the chatbot, and a hosting service for the site; check each provider's costs and limits.
How It Works
Write a plain facts file about your work: roles, dates, projects, skills, links and the topics the chatbot must decline, and keep only what you are happy to publish. Create a project folder, put the facts file and your portfolio images in it, and add a CLAUDE.md with the rules: the chatbot answers only from the facts file, says when it does not know, and never invents employers, dates or figures. In Claude Code, describe the site in plain language and ask for a plan before any code. Approve the plan, then let it build the pages and a chat endpoint that calls a model API from the server side, so the API key never reaches the browser. Run the site locally and ask the chatbot twenty questions, including ones it should refuse. Fix what it gets wrong, review the code with Claude Code, and deploy it yourself to a host you choose.
Implementation Workflow
Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.
- Choose the agentSet up Claude Code.
- Connect the toolsConnect the tools this workflow relies on: Claude Code.
- Check the prerequisitesClaude Code (most surfaces require a Claude subscription or Anthropic Console account), an account and API key with a model provider for the chatbot, and a hosting service for the site; check each provider's costs and limits.
- Gather your detailsCollect what the prompt asks for: Your name, What you do, Pages you want, Facts file, Topics to decline, Model API.
- Run the starter promptPaste the starter prompt below into Claude Code and adapt it to your case.
- Check against the documentationCompare what you get with the documentation at code.claude.com before you rely on it.
Practical Starter Prompt: Plan my portfolio site with a facts-only chatbot
Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].
Plan a portfolio website for [Your name], a [What you do], with pages for [Pages you want] and a chat box where visitors can ask about my work. The chatbot must answer only from [Facts file], say plainly when the answer is not there, and decline [Topics to decline]. It must call [Model API] from server-side code so the API key never reaches the browser. Write the plan as a task list and wait for my approval before writing code. Do not deploy anything.Approve the plan before any code. Test the chatbot locally with at least twenty questions, including ones it should refuse, and deploy the site yourself once you are happy with the answers.
Expected Results and Benefits
This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.
This is a suggested workflow, not a reported outcome. Anthropic's Claude Code overview says it reads your codebase, edits files and runs commands, that you describe what you want in plain language, and that CLAUDE.md is read at the start of every session. No cited page covers the chatbot's model API or a hosting service, so check their documentation for keys, costs and limits.
Limitations and Considerations
The chatbot speaks for you in public, so test it with awkward questions before going live and keep the facts file as the only thing it may use. Keep the API key on the server, and check how your model provider charges for each visitor message and whether it offers spending limits. Visitors may type personal details into the chat, so decide whether you store chat logs and say so on the site. Most Claude Code surfaces require a Claude subscription or Anthropic Console account. Results depend on your setup and were not independently reproduced by Top 200 Repos.
GitHub Repositories
AI Agent Repository
Source code of the agent that does the work.
Related Videos
About anthropics/claude-code
The SECRET Claude Code Upgrade That Has Everyone Going Nuts (Full Guide) (opens in a new tab)
The title names the project, the description links the project website.
Watch on YouTube (opens in a new tab)About anthropics/claude-code
The only Claude Code guide you'll ever need (Opus 4.5) (opens in a new tab)
The title names the project, the description links the project website.
Watch on YouTube (opens in a new tab)Independent creators. Listing a video implies no endorsement, sponsorship or partnership.
Sources
- Overview - Claude Code Docs (opens in a new tab)
Project documentation · code.claude.com · Undated · Source checked 25 Nov 2026, 11:57 UTC
What this source supports
- Claude Code is an agentic coding tool that reads your codebase, edits files, runs commands, and integrates with your development tools.
- Describe what you want in plain language.
- CLAUDE.md is a markdown file you add to your project root that Claude Code reads at the start of every session.
- Most surfaces require a Claude subscription or Anthropic Console account.

