agentleFS
TheVellerTheVeller/claude-skills/skills/engineering/start-cc+lv/SKILL.md

start-cc+lv

Skill3 starsChanged 3 months agoMITView on GitHub

Bootstrap a Claude Code session for projects connected to Lovable + Cloud Native + Render via GitHub main branch. Syncs local repo to origin/main and locks in a "commit and push to main after every change" contract for the rest of the session so the user can preview changes live in Lovable and roll back via git history. Use when the user invokes `/start-cc+lv`, says "empezar con Lovable", "setup proyecto Lovable+Render", "sync con main para Lovable", "trabajar con Cloud Native", or starts work on any repo wired to Lovable.

  • Deletes or force-pushes
  • Commits and pushes

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 7 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before any work, align the local working tree with the remote:

    line 12
  2. Very specific:

    If working tree is dirty or on another branch: STOP. Ask the user what to do (commit + push, stash, or discard) — never reset --hard over …

    line 23
  3. Distinctive:

    If not on main: ask the user — do not auto-checkout.

    line 24
  4. Distinctive:

    Single branch: main: Never create feature branches.

    line 32
  5. Very specific:

    After each push, mention briefly: "Pushed <sha> — Lovable / Render should pick this up on next deploy."

    line 50
  6. Distinctive:

    If push fails because remote is ahead → git pull --rebase origin main then retry.

    line 51
  7. Distinctive:

    Does not configure Render / Cloud Native / Lovable themselves — that wiring already exists at the GitHub repo level.

    line 56
  8. Distinctive:

    Does not run tests or builds automatically — the user wants speed.

    line 57
  9. Distinctive:

    Does not write to CLAUDE.md or memory — the skill is the source of truth for this workflow.

    line 58

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

start-cc+lv — Claude Code + Lovable session contract

Activate this workflow at the start of any session where the project's deploy target is Lovable + Cloud Native + Render and the user previews live from origin/main.

Step 1 — Sync local to origin/main

Before any work, align the local working tree with the remote:

git status
  • If working tree is clean and on main:
    git fetch origin
    git reset --hard origin/main
  • If working tree is dirty or on another branch: STOP. Ask the user what to do (commit + push, stash, or discard) — never reset --hard over their work without explicit confirmation. See "Executing actions with care" in the root CLAUDE.md.
  • If not on main: ask the user — do not auto-checkout; they may have intentional state.

Report the resulting HEAD sha and commit subject in one line so the user can confirm Lovable is on the same commit.

Step 2 — Session contract (active until session ends)

Once synced, follow these rules for every change made during the session:

  1. Single branch: main. Never create feature branches. Lovable watches main.
  2. Commit + push after every meaningful change. Pattern:
    git pull --rebase origin main   # pick up edits made in Lovable directly
    git add <specific files>        # never `-A` / `.` — avoid pulling secrets or junk
    git commit -m "<short imperative subject>"
    git push origin main
  3. Small commits. The user rolls back via git history when something breaks — granular commits make rollback cheap.
  4. No destructive shortcuts without explicit user confirmation:
    • No --force / --force-with-lease push to main.
    • No --no-verify to skip hooks. If a hook fails, fix the root cause.
    • No git reset --hard mid-session.
  5. Hook failures = fix the code, not bypass the hook. Re-stage and commit again (new commit, not --amend if the original was already pushed).
  6. Conflicts with Lovable edits: rebase, resolve, push. Do not discard remote changes — Lovable may have edited from the UI side.

Step 3 — Routine reminders to surface

  • After each push, mention briefly: "Pushed <sha> — Lovable / Render should pick this up on next deploy."
  • If push fails because remote is ahead → git pull --rebase origin main then retry. Do not force.
  • At end of session, confirm git status clean and git log @{u}.. empty.

What this skill does NOT do

  • Does not configure Render / Cloud Native / Lovable themselves — that wiring already exists at the GitHub repo level.
  • Does not run tests or builds automatically — the user wants speed; let CI on the deploy target catch issues.
  • Does not write to CLAUDE.md or memory — the skill is the source of truth for this workflow.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.