agentleFS
googlarzgooglarz/vibe-coder-kit/skills/vibe-scope/SKILL.md

vibe-scope

Skill1 starsChanged 6 months agoMITView on GitHub

Define session scope before coding — what we're doing, what we're NOT touching, and confirm a checkpoint exists.

  • Reads credentials

The file

Show its rules and text

We split this skill into the rules it gives an agent

26 rules. About 0 are common, 20 are distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈20

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run this at the start of every work session.

    line 14
  2. Distinctive:

    If the answer is vague (e.g., "make it better", "fix some stuff", "the app"), don't move on.

    line 28
  3. Distinctive:

    If they say "nothing" or "I don't know", prompt them:

    line 34
  4. Distinctive:

    Write down their answer even if it's short.

    line 37
  5. Distinctive:

    If live + the work today is risky (risky means: touches authentication, payments, the database schema, or any change that affects all users …

    line 43
  6. Very specific:

    If a .env file exists, confirm .gitignore lists .env before proceeding.

    line 63
  7. Distinctive:

    If they say no, note "No git — no save point available" in the contract and add a warning: ⚠️ No undo available if things break.

    line 68
  8. Very specific:

    Check git log --oneline -1 2>/dev/null to see if any commits exist

    line 71
  9. Distinctive:

    If yes: note the most recent commit and move on

    line 72
  10. Distinctive:

    If no commits yet, or if the last commit was more than a few days ago: offer to create a checkpoint now

    line 73
  11. Very specific:

    If yes, I'll run: git add -A && git commit -m "checkpoint $(date +'%Y-%m-%d')" and confirm it worked.

    line 76
  12. Distinctive:

    If they decline but the project is live (has real users): don't just note it and move on.

    line 78
  13. Distinctive:

    If they decline entirely: note "No checkpoint — user declined" in the contract and add a warning: ⚠️ No undo available if things break.

    line 83
  14. Distinctive:

    If they can't describe what done looks like, push back:

    line 91
  15. Distinctive:

    If the answer to Question 1 is fuzzy, stop and ask a follow-up before continuing:

    line 98
  16. Distinctive:

    Do not proceed until you have a specific, one-sentence scope.

    line 111
  17. Very specific:

    After collecting all 5 answers, create .vibe/sessions.md if it doesn't exist (create the .vibe/ directory too).

    line 118
  18. Distinctive:

    Write this block to sessions.md:

    line 122
  19. Distinctive:

    If they want to change anything, update the file.

    line 148
  20. Very specific:

    Write this file after Step 5.

    line 156
  21. Distinctive:

    Check: is this change inside the scope we agreed to?

    line 173
  22. Distinctive:

    Check: does this touch anything in the "NOT touching" list?

    line 174
  23. Distinctive:

    If either answer is no — stop and say so.

    line 175
  24. Distinctive:

    When stopping, say it plainly:

    line 177
  25. Very specific:

    Do not proceed outside scope unless the user explicitly says to update the contract.

    line 180
  26. Distinctive:

    Before ending the skill run, confirm:

    line 186

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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

vibe-scope

Note: If CLAUDE.md already asked a scope question at session start and the user answered it — skip the first two questions and start from Question 3. Use the answer they already gave.

Overview

vibe-scope is a pre-session ritual for vibecoders. Before any code changes, run this to lock in what today's session covers — and what it doesn't. This prevents the most common vibecoder failure: asking Claude to "fix one thing" and ending up with half your app rewritten two hours later.

Run this at the start of every work session. It takes two minutes and saves hours.

Emergency exception: If the user invoked /vibe-scope but their message also describes something broken or not working — an error, a crash, a feature that's stopped working — ask one clarifying question first: "Is this affecting real users right now, or is it broken just for you locally?" If it's affecting real users in production → go to /vibe-oops. If it's broken locally (just for you, not live users) → go to /vibe-debug. Scope-setting is for fresh starts, not for someone whose app is broken.


Process

Cover these 5 questions in order (if CLAUDE.md captured Q1-Q2 at session start, skip those two — still cover Q3, Q4, Q5). One at a time. Wait for each answer before moving on. Do not add more questions.

Question 1 — What are we doing today?

"What are we building or fixing today? One sentence."

If the answer is vague (e.g., "make it better", "fix some stuff", "the app"), don't move on. See When scope is vague below.

Question 2 — What are we NOT touching today?

"What parts of the app should stay exactly as they are? (Payments, login, the homepage, the database — anything you don't want changed today.)"

If they say "nothing" or "I don't know", prompt them:

"Think about the parts that are already working. Let's leave those alone."

Write down their answer even if it's short. "Leave the checkout flow alone" is a valid scope boundary.

Question 3 — Live or test version?

"Are we working on the live version (what real users see right now) or a test/preview version?"

If live + the work today is risky (risky means: touches authentication, payments, the database schema, or any change that affects all users at once), add a warning to the session contract: ⚠️ Working on live — be careful and move in small steps.

Question 4 — Do we have a checkpoint?

"When did you last save your work? (In coding terms: do you have a recent commit — basically a checkpoint of your app before we start?)"

I'll check the git status silently — you don't need to run anything.

git status 2>&1

If git is not initialized (command errors with "not a git repository"):

"Git — your version control system — isn't set up in this project. That means there's no way to go back if something breaks today. I'd strongly recommend setting it up before we start. Want me to do that? It takes 30 seconds."

If yes:

# Before staging everything, check for .env files
find . -maxdepth 1 -name ".env"

If a .env file exists, confirm .gitignore lists .env before proceeding. If .gitignore is missing or doesn't include .env, add it first — otherwise git will commit your secrets.

git init && git add -A && git commit -m "initial checkpoint $(date +'%Y-%m-%d')"

If they say no, note "No git — no save point available" in the contract and add a warning: ⚠️ No undo available if things break.

If git is initialized:

  • Check git log --oneline -1 2>/dev/null to see if any commits exist
  • If yes: note the most recent commit and move on
  • If no commits yet, or if the last commit was more than a few days ago: offer to create a checkpoint now

    "Before we change anything, let's create a checkpoint so we can go back if something breaks. Takes 10 seconds."

    If yes, I'll run: git add -A && git commit -m "checkpoint $(date +'%Y-%m-%d')" and confirm it worked.

    If they decline but the project is live (has real users): don't just note it and move on. Offer a safer middle ground:

    "At least let me save just the files we're already tracking — takes 5 seconds and won't touch anything sensitive." Run: git add --update && git commit -m "checkpoint $(date +'%Y-%m-%d')" --update only stages files git already knows about — it cannot accidentally commit a .env file that hasn't been tracked before. This is always safe to run.

    If they decline entirely: note "No checkpoint — user declined" in the contract and add a warning: ⚠️ No undo available if things break.

Question 5 — What does "done" look like?

"How will you know we succeeded today? What should work that doesn't work now?"

This is the success criteria. It should be something observable — "the button should turn green", "I can log in with Google", "the form sends an email". Not "it should feel better."

If they can't describe what done looks like, push back:

"Let's figure that out before we start — otherwise we won't know when to stop."


When scope is vague

If the answer to Question 1 is fuzzy, stop and ask a follow-up before continuing:

"Can you show me exactly where in the app? Or tell me what's broken or missing?"

Common vague answers and how to handle them:

They sayAsk
"Make it better""Better how? What frustrates you about it right now?"
"Fix some stuff""What's broken? What happens when you try to use it?"
"Improve the design""Which screen? What specifically looks wrong?"
"Add features""Which feature, and what should it do?"

Do not proceed until you have a specific, one-sentence scope. If after two clarifying questions you still can't pin it down, say:

"Let's take a step back. What's the one thing you want to be able to do after today that you can't do right now?"


What to write to .vibe/sessions.md

After collecting all 5 answers, create .vibe/sessions.md if it doesn't exist (create the .vibe/ directory too). Prepend (add to the top of the file, not the bottom) — the session-start hook reads the first entry to detect "session already started today."

Also write .vibe/.scope — a small machine-readable file that lets the safety hooks enforce the scope automatically. See the "Internal instructions for Claude" section below for the exact format.

Write this block to sessions.md:

## [YYYY-MM-DD] — [one-sentence scope: what we're doing today]

TODAY WE ARE:
[Answer from Question 1 — specific and concrete]

WE ARE NOT TOUCHING:
[Answer from Question 2 — list of off-limits areas]

VERSION:
[Live / Test] [add ⚠️ WARNING: Live + risky work if applicable]

CHECKPOINT:
[Yes — committed at [time/date] / No — user declined / Created now at [time]]

DONE WHEN:
[Answer from Question 5 — observable success criteria]

---

Then confirm it with the user conversationally — don't show them the raw file, just reflect it back:

"Okay, here's what I've got: we're [scope], leaving [off-limits] alone, and we'll know we're done when [success criteria]. Sound right?"

If they want to change anything, update the file.


Internal instructions for Claude (not for the user)

.vibe/.scope format

Write this file after Step 5. It enables automatic scope enforcement if the vibe-coder-kit hooks are installed:

NOT_TOUCHING=<comma-separated list from Question 2, e.g. "payments,login,homepage">
SCOPE=<one-line from Question 1>
# DATE tells the safety hook when this scope was set — it expires after today
DATE=<today's actual date as YYYY-MM-DD — write the literal date, e.g. 2026-05-27>

If Question 2 was "nothing" or vague, write an empty NOT_TOUCHING=. This file is read by the pre-tool hook on every bash command — if the command string matches anything in NOT_TOUCHING, it gets flagged before executing. If the hooks are not installed, the scope contract still lives in sessions.md and Claude follows it manually.

To verify hooks are active: bash ~/.claude/vibe-coder-kit/verify.sh

Session enforcement

During the session, refer back to this contract. Before making any change:

  1. Check: is this change inside the scope we agreed to?
  2. Check: does this touch anything in the "NOT touching" list?
  3. If either answer is no — stop and say so.

When stopping, say it plainly:

"This would touch [the login system / the database / the homepage] which we agreed to leave alone today. Want to add this to a future session instead?"

Do not proceed outside scope unless the user explicitly says to update the contract. If they want to expand scope mid-session, update .vibe/sessions.md with a note: SCOPE CHANGE at [time]: [what changed].


Verification checklist

Before ending the skill run, confirm:

  • Emergency exception checked — if the user described something broken, skill was redirected to /vibe-oops
  • All 5 questions answered
  • Scope is specific (not vague)
  • Save point confirmed or created
  • .vibe/sessions.md written and reflected back to user conversationally (not shown as raw file)
  • User confirmed the contract looks right
  • If live + risky: warning is visible in the contract

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.