Skip to content

Add tutorial for analyzing data with Ghost and an AI agent#10

Merged
akulkarni merged 3 commits intomainfrom
tutorials
May 8, 2026
Merged

Add tutorial for analyzing data with Ghost and an AI agent#10
akulkarni merged 3 commits intomainfrom
tutorials

Conversation

@akulkarni
Copy link
Copy Markdown
Member

Summary

  • New tutorial at docs/tutorials/movielens-analysis.md walking through end-to-end MovieLens data analysis using Ghost plus an AI coding agent (Claude Code, Cursor, Codex, Windsurf, etc.).
  • Structured for agent-driven execution: a one-time human bootstrap (install Ghost, login, install MCP, restart agent), then each subsequent step is a copy-pasteable prompt the reader pastes into their agent — download the dataset, install psql if missing, create the database and load CSVs (with the agent inferring the schema), ask three analytical questions, delete when done.
  • Each agent prompt is self-contained: platform branches and fallbacks (e.g. unzip vs. python3 -m zipfile, per-OS psql install) live inside the prompt block so the prompt works without surrounding context.

Test plan

  • Read top-to-bottom from a fresh checkout to verify the flow makes sense.
  • Run the tutorial through with Claude Code on macOS — confirm Ghost CLI install, MCP install, and each agent step works as written.
  • Spot-check on Linux (Debian/Ubuntu) — confirm the psql and unzip install branches in the agent prompts behave as expected.
  • Confirm the three analytical query results land roughly where the expected-output examples claim.
  • Verify the resource links resolve (Ghost docs, MovieLens, MCP install reference).

🤖 Generated with Claude Code

akulkarni and others added 3 commits May 7, 2026 15:08
Walks through using Ghost plus an AI coding agent (Claude Code, Cursor,
Codex, Windsurf, etc.) to analyze the MovieLens 100K dataset end-to-end.
After a one-time bootstrap (install Ghost, login, install MCP, restart
agent), each subsequent step is a copy-pasteable prompt the reader gives
to the agent: download the data, install psql if needed, create the DB
and load CSVs, ask three analytical questions in natural language, and
delete when done.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Convert each agent prompt in the MovieLens tutorial from a blockquote
to a fenced code block so it gets a copy button on GitHub and copies
cleanly across renderers (without dragging > markers into the
clipboard). Adds a 'Make Ghost your default database' CTA section at
the end with a copy-pasteable prompt that makes Ghost the agent's
default whenever it needs a Postgres database.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@akulkarni akulkarni merged commit 6642f50 into main May 8, 2026
2 checks passed
@akulkarni akulkarni deleted the tutorials branch May 8, 2026 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant