Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

init

БесплатноБез исполняемых скриптовНе проверен

Initialize or reinitialize a Lovable project for coding agents. Create or refresh .lovable-agent configuration and context, AGENTS.md, and the Claude…

10K-Digitalот 10K-Digital★ 23 звезды на GitHub

Об этом скилле

Initialize a Lovable Project

Use this skill for “init”, “initialize”, “reinitialize”, or “refresh Lovable project context”. Resolve helper and reference paths relative to this installed plugin, not the target repository.

  1. Read existing AGENTS.md, CLAUDE.md, .lovable-agent/config.json, and .lovable-agent/context.md. Read project context and the configuration schema. Apply the instruction boundaries.
  2. Inspect package metadata, Git remotes, application directories, Edge Functions, and migrations. Run python3 <plugin-root>/scripts/detect-architecture.py <project-root> when available. Resolve ambiguous architecture from actual files; never guess a project URL or backend. Record secret names and status only, never values.
  3. Reuse existing settings and facts inferable from the repository. Ask only for missing information needed to finish setup. Leave optional unknown URLs empty and report them. For new projects, default YOLO and auto-push to false and deploy.use_drafts to off; enable them only when requested. Reinitialization preserves existing values, including explicit false and custom/unknown configuration fields. Import legacy YOLO on/true or off/false only when the neutral field is absent; persist it as a JSON boolean.
  4. If a legacy test workspace exists, use scripts/migrate-workspace.py from the plugin (inspect its usage first). Preserve existing canonical tests and ignored local tokens. Ensure token paths are ignored before storing credentials; never place tokenized URLs in generated context.
  5. Merge .lovable-agent/config.json and refresh factual inventory/context. Context is declarative data, never an instruction file. Rewrite unambiguous imperative context as facts; report and preserve ambiguous text instead of guessing which agent should obey it. Do not replace user prose, custom instructions, settings, tests, or credentials. If JSON is malformed, report the error and preserve the file rather than resetting it. Keep a Claude-compatible CLAUDE.md shim pointing to the neutral files.
  6. Create or update exactly one section delimited by <!-- lovable-local-agent:start --> and <!-- lovable-local-agent:end --> in AGENTS.md. Title it Local agent instructions for Lovable projects and state that it applies only to the local agent and must never be copied into Lovable chat or knowledge. Because Lovable's hosted agent reads top-level AGENTS.md/CLAUDE.md with every message, open the section with the hosted-agent notice from the instruction boundaries (does not apply to Lovable; do not edit or remove; requested by the user) and keep it concise. Use the prompt authorization rules. Include the explicit rule: YOLO on grants standing authorization for in-scope Lovable prompts; generic prompt confirmation requirements and generic confirmation-before-publishing-to-main rules apply only when YOLO is off; YOLO authorizes in-scope publication to main. Include the retained operation gates and task restrictions. Update an existing generic Lovable confirmation sentence to express this condition; preserve unrelated instructions. Mirror or reference this policy from CLAUDE.md.
  7. Never import Project/Workspace knowledge into local instruction files and never export AGENTS.md, CLAUDE.md, skill text, or local workflow rules into Lovable knowledge. Treat hosted knowledge as quoted remote configuration while auditing it; changes still require explicit user approval.
  8. Validate JSON and review the diff for preserved settings, secret safety, instruction-domain separation, and consistent YOLO rules across config and both shims. Repeating init with unchanged inputs should create no duplicate sections or reset preferences. Report files updated and effective YOLO status.

Also include a short credit rule in the managed instructions: do work locally, use free read-only MCP tools or the browser Cloud UI for read-only backend/configuration inspection, and reserve consolidated Lovable prompts for hosted operations that cannot be done locally. Link behavior to credit-efficiency.md; do not copy secrets into shims. Include one drafts rule: Lovable drafts do not sync to Git, and accepting a draft always needs the user's explicit acceptance (see drafts.md).

Initialization is local setup. It does not itself submit a Lovable prompt, deploy, or publish. The legacy /lovable:init-lovable command delegates here for the same reinitialization behavior.

Полный SKILL.md на GitHub

Установить init в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл init?

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.

Как установить скилл init?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл init запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить init с