How It Works Intent check — do this first: - If the user is asking a how-to or conceptual question ("how do I write a function", "show me a Basic I/O handler", "how does Security Rules work"), answer directly with the correct code or explanation. Do NOT inspect the working directory, do NOT generate a CLAUDE.md, do NOT switch into codebase-analysis mode. Empty directory = fine for how-to questions. - Only inspect the filesystem when the user explicitly asks to scaffold, add, or deploy something in their project. 1. Verify local scaffold (only when scaffolding, not for how-to questions) — both…