init

Initialize or refresh Lovable project configuration and agent instruction files.

20|5|Updated Jan 1, 2026
One-click install
npx skills add https://github.com/10K-Digital/lovable-agent-skills --skill init-10k-digital
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: init
Source: https://github.com/10K-Digital/lovable-agent-skills/tree/main/plugins/lovable/skills/init
Command: npx skills add https://github.com/10K-Digital/lovable-agent-skills --skill init-10k-digital

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Setting up a Lovable project for coding agents requires creating configuration files, project context, and instruction shims by hand, and re-running setup risks wiping out existing settings, custom instructions, tests, or credentials. ## Core Features & Use Cases - Project Initialization: Creates or refreshes .lovable-agent/config.json, context.md, and AGENTS.md with a managed local-agent instruction section. - Safe Reinitialization: Preserves existing settings, custom instructions, tests, and local credentials, importing legacy YOLO flags only when the neutral field is absent. - Architecture Detection: Inspects package metadata, Git remotes, Edge Functions, and migrations, optionally running detect-architecture.py to resolve Vite SPA versus TanStack Start projects. - Use Case: After cloning a Lovable project repository, run the init workflow to generate agent context and a Claude-compatible CLAUDE.md shim without losing your existing deploy and testing preferences. ## Quick Start Ask your coding agent to initialize or reinitialize this Lovable project so it generates the .lovable-agent configuration and AGENTS.md instructions.

Frequently Asked Questions about init

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I initialize a Lovable project for Claude Code or Codex?

Run the init skill, which reads existing AGENTS.md, CLAUDE.md, and .lovable-agent files, then creates or refreshes the configuration, context, and instruction shims. In Codex invoke $lovable:init; in Claude Code use /lovable:init-lovable.

Will reinitializing a Lovable project overwrite my existing settings?

No. Reinitialization preserves existing values including explicit false settings, custom instructions, tests, and local credentials. Legacy YOLO flags are imported only when the neutral field is absent, and malformed JSON is reported rather than reset.

Does the init skill deploy or publish my Lovable project?

No. Initialization is local setup only. It does not submit a Lovable prompt, deploy, or publish; those operations happen through separate deploy workflows after setup completes.

How does the init skill detect my project architecture?

It inspects package metadata, Git remotes, application directories, Edge Functions, and migrations, and can run the detect-architecture.py helper script. Ambiguous architecture is resolved from actual files, never guessed from URLs.

What is YOLO mode in Lovable project configuration?

YOLO mode grants standing authorization for in-scope Lovable prompts via MCP or browser, including publication to main. When off, generic confirmation rules apply; new projects default it to false unless explicitly requested.