# Init

> Init is an open-source agent skill for developer tools. Sets up or refreshes a Lovable project's local agent config, AGENTS.md and CLAUDE.md. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/10K-Digital/lovable-agent-skills/tree/main/plugins/lovable/skills/init
- **Repository:** https://github.com/10k-digital/lovable-agent-skills
- **GitHub stars:** 23
- **License:** MIT
- **Skill name:** init
- **Collection:** https://github.com/10K-Digital/lovable-agent-skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill prepares a Lovable-hosted project for local coding agents. It creates or refreshes a .lovable-agent configuration and context files, an AGENTS.md instruction section, and a CLAUDE.md shim that points to the neutral files. Re-running it is meant to be safe: existing settings, custom instructions, tests and local credentials are kept rather than reset.

The workflow reads existing instruction and config files, inspects package metadata, Git remotes, app directories, Edge Functions and migrations, and runs a bundled architecture detection script when available. It records secret names and status only, never values, and avoids guessing project URLs or backends. It also sets default YOLO and auto-push flags to off for new projects, and reports the effective YOLO status and files changed afterwards.

It expects a Lovable project checkout and a Python 3 interpreter for its helper scripts. It also refers to shared reference documents bundled in the plugin for instruction boundaries, prompt authorization, credit efficiency and drafts.

## When your agent uses it

> Initialize or reinitialize a Lovable project for coding agents. Create or refresh .lovable-agent configuration and context, AGENTS.md, and the Claude compatibility shim while preserving project settings, custom instructions, tests, and local credentials.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/10K-Digital/lovable-agent-skills/tree/HEAD/plugins/lovable/skills/init)
- [License: MIT](https://github.com/10K-Digital/lovable-agent-skills/tree/HEAD/plugins/lovable/skills/init)

## Features

- **Project config setup:** Creates or merges the .lovable-agent configuration while keeping existing values and custom fields intact.
- **Agent instruction sections:** Writes one delimited AGENTS.md section with rules for local agents and Lovable prompt authorization.
- **Claude compatibility shim:** Keeps a CLAUDE.md file that points to the neutral agent instruction files.
- **Secret-safe inspection:** Records secret names and status only and keeps tokenized URLs out of generated context.
- **Legacy workspace migration:** Uses a bundled script to move a legacy test workspace while preserving canonical tests and ignored tokens.
- **Validation and reporting:** Checks JSON validity, reviews the diff for preserved settings and reports files updated.

## Good for

- Set up a new Lovable project for local coding agents
- Refresh AGENTS.md and CLAUDE.md after project changes
- Update the .lovable-agent config without losing custom settings
- Migrate a legacy Lovable test workspace
- Check that YOLO rules are consistent across config and instruction files

## Install

### Claude Code

This skill ships in the `lovable` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add 10K-Digital/lovable-agent-skills
/plugin install lovable@10k-digital
```

Or copy only this skill to `~/.claude/skills/init`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/10K-Digital/lovable-agent-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/init &&
cp -R "$tmp/plugins/lovable/skills/init" ~/.claude/skills/init &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/init` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/init` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/10K-Digital/lovable-agent-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/init &&
cp -R "$tmp/plugins/lovable/skills/init" ~/.agents/skills/init &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/init` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/init` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/10K-Digital/lovable-agent-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/init &&
cp -R "$tmp/plugins/lovable/skills/init" ~/.cursor/skills/init &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/init` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/10K-Digital/lovable-agent-skills.git --path plugins/lovable/skills/init
```

Or copy the folder to `~/.gemini/skills/init` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/init`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/10K-Digital/lovable-agent-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/init &&
cp -R "$tmp/plugins/lovable/skills/init" ~/.copilot/skills/init &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/init` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/10K-Digital/lovable-agent-skills.git
```

Then copy `lovable-agent-skills/plugins/lovable/skills/init` into your agent's skills folder as `init`. Agents that support SKILL.md read one folder per skill.

## FAQ

### Does running init submit a Lovable prompt or deploy the project?

No. The skill describes initialization as local setup only. It does not itself submit a Lovable prompt, deploy or publish.

### What happens to existing settings when I run Init again?

Reinitialization preserves existing values, including explicit false settings and custom or unknown configuration fields. Malformed JSON is reported and left in place rather than reset.

### Are secret values stored in the generated files?

The skill records secret names and status only, never values, and it does not place tokenized URLs in generated context.

### What are the default YOLO and auto-push settings for a new project?

For new projects, YOLO, auto-push and deploy.use_drafts default to off unless the user requests otherwise.

### How do I install Init in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/init to use it in all your projects, or to .claude/skills/init in one project. Or install the lovable plugin, which includes it: /plugin marketplace add 10K-Digital/lovable-agent-skills, then /plugin install lovable@10k-digital.

### Does Init run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Init?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Init?

The closest alternatives to Init are Lovable project, Lovable deploy, Yolo, Lovable sync and Lovable.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Lovable project](https://ai-powered.com/skills/lovable-project): Lovable project is an open-source agent skill for developer tools.
- [Lovable deploy](https://ai-powered.com/skills/lovable-deploy): Lovable deploy is an open-source agent skill for cloud and infrastructure.
- [Yolo](https://ai-powered.com/skills/yolo): Yolo is an open-source agent skill for developer tools.
- [Lovable sync](https://ai-powered.com/skills/lovable-sync): Lovable sync is an open-source agent skill for developer tools.
- [Lovable](https://ai-powered.com/skills/lovable-10k-digital): Lovable is an open-source agent skill for developer tools.
- [Lovable testing](https://ai-powered.com/skills/lovable-testing): Lovable testing is an open-source agent skill for developer tools.
- [Agents md](https://ai-powered.com/skills/agents-md): Agents md is an open-source agent skill for files and documents.
- [Agent hub init](https://ai-powered.com/skills/agent-hub-init): Agent hub init is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/init-10k-digital
