kevinslin/agstack/html2site
Claude Code and agent skill by kevinslin/agstack
- community
Checking that the SKILL.md file is still in the repository.
Convert an existing static HTML site into a private Codex Site, optionally adding a persistent authenticated API and local programmatic writes. Use only when deliberately invoked as $html2site.
Install
npx vskill@latest install kevinslin/agstack/html2siteSKILL.md
html2site
Use only when the user explicitly invokes $html2site. An ordinary request to build, host, redesign, or edit a website does not activate this skill.
Convert an existing local HTML application into a Codex Site while preserving its user-visible design. Add D1-backed, authenticated server endpoints only when the user requests shared state, a backend API, or local programmatic access.
Intake
- Resolve the actual source HTML, stylesheet, JavaScript, assets, routes, and
existing API or persistence contracts. Ask only when the intended source or data authority cannot be determined safely.
- Choose the smallest requested deployment shape:
- Static: HTML, styles, scripts, assets, and private hosting.
- Application: static conversion plus hosted D1, browser routes, and an
authenticated machine API when local writes are requested.
- Keep the canonical Site under the existing project, normally
./site/.
Never create a nested Git repository or publish unrelated parent-repository source, history, local databases, or credentials.
- Apply
$sites-buildingbefore implementation and$sites-hostingafter a
successful build. Preserve an existing Site project and access policy.
Workflow
- Read static conversion. Preserve the
original DOM, relative URLs, browser interactions, assets, and responsive behavior. Explicitly force dynamic rendering when page content can change.
- When the user requests an authenticated API, persistent data, shared state,
or local writes, also read authenticated backend. Separate browser identity from machine authentication, declare only required D1/R2 bindings, and keep secrets outside source control.
- Build and exercise the exact requested experience. Use realistic synthetic
records unless the user authorizes creating real data. Do not report a successful local write until the deployed API and hosted interface both confirm the same record.
- Read private deployment. Publish the
validated Site privately unless the user explicitly requests local-only work or approves a different audience.
Non-negotiable boundaries
- Preserve the source HTML design; do not substitute a generic dashboard.
- Keep
.openai/hosting.jsonlimited toproject_idand logicald1/r2
bindings. Never store bearer tokens or runtime secret values there.
- A private machine API requires both a Sites bypass credential and an
independently verified application credential. Never expose either to browser JavaScript.
- Generate or rotate a Sites bypass token only when the user explicitly asks
for one. Rotation immediately invalidates the previous token.
- Never treat a private Site as public merely to make automated calls work.
- Disable unsupported uploads; configure R2 explicitly before accepting files.
- Preserve existing local persistence unless the user deliberately selects or
migrates to a hosted authoritative backend. Never silently fall back or synchronize data across stores.
- Never run
npm run precommit.
Completion
Return the deployed private URL, canonical Site source location, supported browser/API behavior, and any remaining unsupported capability. Mention token or deployment internals only when the user asks or needs to take action.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingactive/html2site/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kevinslin/agstack/html2site)