Claude Code 協助獨立開發者完成 24 小時網站衝刺
Soul in Motion — 2:16 PM | 2026-12-01
一名獨立開發者使用 Claude Code 的 /loop 提示詞保持進度,在 24 小時網站衝刺中把空白 HTML 頁面建成可用網站,並於下午 3 時上線。網站以 vanilla HTML/CSS/JS 建構,使用 Netlify 託管,並透過 GitHub Actions 部署。
TL;DR
- Ran a site‑in‑24h sprint, using Claude Code’s
/loopprompt to stay on track. - Took a mental break with Curb Your Enthusiasm to reset focus.
- Automated data collection & web scraping with Bash/PowerShell, updated
PLAYBOOK.md. - Experimented with Higgsfield.ai for text‑to‑image video generation.
- Ended the day juggling dev, ops, strategy, and housekeeping—typical solo‑dev grind.
The 24‑Hour Site Sprint
I started the day with a clear goal: turn a blank HTML page into a fully functional website in 24 hours. The biggest challenge wasn’t the code; it was the rabbit holes that pop up when you’re trying to move fast.
To keep momentum, I hooked Claude Code up to a recurring /loop prompt:
/loop "Are you actually making progress, or are you tweaking CSS padding again?"
Every few minutes the prompt nudged me back to the core task—deploying the site, not polishing the UI. It was a simple but effective guardrail against perfectionism.
What the Site Ended Up Looking Like
- Static front‑end built with vanilla HTML/CSS/JS.
- Netlify for hosting and continuous deployment.
-
GitHub Actions pipeline that runs
npm run buildand pushes to Netlify on every push tomain.
# .github/workflows/deploy.yml
name: Deploy to Netlify
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20'
- run: npm ci
- run: npm run build
- uses: nwtgck/actions-netlify@v2
with:
publish-dir: ./dist
production-branch: main
netlify-auth-token: ${{ secrets.NETLIFY_TOKEN }}
The result was a live site by 3 pm, ready for traffic and feedback.
Mid‑Day Mental Reset
After a few hours of code, my brain was fried. I stepped away, skimmed LinkedIn, and watched a few episodes of Curb Your Enthusiasm on JioHotstar. Larry David’s knack for turning a minor inconvenience into a full‑blown catastrophe is oddly therapeutic—reminds you that not everything needs a perfect solution.
Afternoon: Scripts & Ops
Bash & PowerShell Automation
I spent the afternoon writing scripts to automate routine tasks:
# collect-data.sh
#!/usr/bin/env bash
set -euo pipefail
# Scrape a list of URLs from a CSV
while IFS=, read -r url; do
curl -sL "$url" -o "data/$(basename "$url").html"
done < urls.csv
# Update-Directories.ps1
Get-ChildItem -Recurse | Where-Object { $_.PSIsContainer } | ForEach-Object {
$_.FullName | Write-Host "Organizing $_"
}
Both scripts were triggered by a nightly cron job that also updated PLAYBOOK.md, the living document that now serves as the brain of my operations.
Updating PLAYBOOK.md
PLAYBOOK.md is my go‑to ops manual. I added new sections:
- Data Collection – scripts, schedules, and data retention policies.
- Tool Hunting – a list of new utilities discovered during the day.
- Incident Response – quick‑start guide for common outages.
Evening: Strategy & Housekeeping
I wrapped up with a mix of business strategy and housekeeping:
- Directory Organization – more terminal scripts to keep the repo tidy.
- Project Roadmaps – updated milestones and deliverables.
- Artifact Review – ensured consistency across docs, code, and marketing assets.
I also spent a few minutes testing Higgsfield.ai for text‑and‑image AI video generation. The platform lets you feed a script and a set of images, then outputs a short video. It’s a promising tool for rapid content creation, but I’m still evaluating its workflow and cost model.
Reflections
Looking back at the day’s screen logs, it wasn’t just code. It was a blend of terminal commands, LinkedIn messages, AI experiments, random credit‑card ads, and Larry David rants. Building solo means wearing every hat—developer, marketer, strategist, janitor—before midnight.
Messy? A little. Productive? Definitely. The key takeaway: use AI prompts to stay on task, take deliberate breaks, automate the repetitive, and keep a living ops playbook. That’s how you turn a 24‑hour sprint into a sustainable workflow.
來源:DEV Community · dev.to