← ÎnvațăLearn
UnealtăTool5 minute5 minutes

Când ceva nu merge.When something doesn't work.

Lipește mai jos o eroare sau un răspuns care te-a încurcat. Afli ce înseamnă, ce verifici și ce să-i spui asistentului.Paste an error or a reply that confused you below. You'll find out what it means, what to check and what to tell the assistant.

1 · Decodorul1 · The decoder

Ce a vrut să zică?What did it mean?

Textul e căutat în pagina asta și nu pleacă nicăieri. Dacă eroarea conține o cheie sau o parolă, scoate-o înainte s-o trimiți cuiva.The text is searched within this page and goes nowhere. If the error contains a key or a password, take it out before you send it to anyone.

2 · Simulatorul2 · The simulator

Exersează pe site-ul Mirelei.Practise on Mirela's site.

Asistentul a stricat ceva pe prajiturile-mirelei.ro. Alege ce-i scrii și vezi ce face.The assistant broke something on prajiturile-mirelei.ro. Choose what you write and see what it does.

    3 · Obiceiuri3 · Habits

    Șase obiceiuri care scurtează orice reparație.Six habits that shorten every fix.

    Asistentul nu vede ce vezi tu. Vede doar ce îi scrii: ce ai făcut, unde te uiți, ce apare pe ecran. Cu cât mesajul e mai precis, cu atât ghicește mai puțin.The assistant doesn't see what you see. It only sees what you write: what you did, where you're looking, what's on the screen. The more precise the message, the less it guesses.

    1Descrie-l ca unui prieten.Describe it like to a friend.

    Pentru cine e site-ul, ce trebuie să găsească oamenii pe el, cum să arate. „Un site pentru prăjiturile mele din Iași, cu poze, prețuri și un buton de WhatsApp” merge mai bine decât „fă-mi un site”.Who the site is for, what people should find on it, how it should look. "A site for my cakes in Iași, with photos, prices and a WhatsApp button" works better than "make me a site".

    2Cere întâi un plan.Ask for a plan first.

    „Spune-mi ce ai de gând să schimbi, înainte să schimbi.” Vezi din timp dacă vrea să adauge un framework de care n-ai nevoie."Tell me what you're going to change, before you change it." You see early on if it wants to add a framework you don't need.

    3Un pas mic o dată.One small step at a time.

    O schimbare, te uiți la ea, apoi următoarea. Când se strică ceva, știi de la ce.One change, you look at it, then the next. When something breaks, you know what did it.

    4Trimite o captură când arată ciudat.Send a screenshot when it looks wrong.

    Captura arată unde și cum. Spune și pe ce te uiți: telefon sau calculator, ce browser, site-ul online sau folderul de pe calculator.The screenshot shows where and how. Also say what you're looking at: phone or computer, which browser, the site online or the folder on your computer.

    5După două reparații ratate, ia-o de la capăt.After two failed fixes, start fresh.

    Cere-i să anuleze ultima schimbare, sau deschide o conversație nouă, cu un rezumat de trei rânduri. O conversație lungă, plină de încercări, îl încurcă mai mult decât îl ajută.Ask it to undo the last change, or open a new conversation with a three-line summary. A long conversation full of attempts confuses it more than it helps.

    6Ține un fișier cu notițe.Keep a short notes file.

    Un AGENTS.md sau CLAUDE.md în folderul site-ului. Codex și Cursor citesc AGENTS.md, Claude Code citește CLAUDE.md, la începutul fiecărei conversații.An AGENTS.md or CLAUDE.md in the site's folder. Codex and Cursor read AGENTS.md, Claude Code reads CLAUDE.md, at the start of every conversation.

    # prajiturile-mirelei.ro
    Site static pentru prăjiturile Mirelei, din Iași.
    - Doar HTML, CSS și puțin JavaScript. Fără framework-uri.
    - Nume de fișiere cu litere mici, fără spații.
    - După fiecare schimbare, verifică pe 375 px lățime.
    - Întreabă-mă înainte de orice cost.
    # prajiturile-mirelei.ro
    A static site for Mirela's cakes, in Iași.
    - Only HTML, CSS and a little JavaScript. No frameworks.
    - File names in lowercase, no spaces.
    - After every change, check at 375 px wide.
    - Ask me before any cost.

    Și patru reguli de siguranțăAnd four safety rules

    1. Nu lipi parole sau chei într-un chat.Never paste passwords or keys into a chat.Nici la asistent, nici într-o eroare pe care o trimiți cuiva. Dacă ai lipit deja una, schimb-o: o cheie pe care a văzut-o altcineva nu mai e secretă.Not to the assistant, not in an error you send someone. If you've already pasted one, change it: a key someone else has seen is no longer secret.
    2. Cere-i să te întrebe înainte să cheltuie.Have it ask before it spends money.Spune-i asta în primul mesaj și în notițe. La Weird pui și o limită de bani pe lună; peste un prag, asistentul te întreabă în panou.Say it in the first message and in the notes. At Weird you also set a monthly spending limit; above a threshold, the assistant asks you in the dashboard.
    3. Public înseamnă public.Public means public.Ce pui pe net la domeniul tău poate citi oricine are adresa, inclusiv motoarele de căutare. Înainte să pui ceva, întreabă-te dacă te-ar deranja să-l vadă oricine.What you put online at your domain can be read by anyone with the address, search engines included. Before you put something up, ask yourself whether you'd mind anyone seeing it.
    4. Verifică cine îți poate citi datele.Check who can read your data.Când site-ul primește ceva de la oameni (un formular, o comandă, un mesaj), întreabă asistentul unde ajung datele și cine le poate citi.When the site receives something from people (a form, an order, a message), ask the assistant where the data goes and who can read it.
    În terminalIn the terminal
    $ weird versions numele-tau.ro
    
    $ weird put ./site numele-tau.ro
    Primul îți arată versiunile puse pe net, fiecare cu amprenta ei; una veche o poți pune înapoi. Al doilea pune pe net versiunea reparată.The first lists the versions you've put online, each with its fingerprint; you can bring an old one back. The second puts the fixed version online.
    Spune-i asistentuluiTell the assistant

    „Ce s-a stricat: [ce]. Unde: [pagina, telefon sau calculator]. De când: [după ce schimbare]. Atașez o captură. Spune-mi întâi ce crezi că e, apoi repară doar asta.”

    "What broke: [what]. Where: [the page, phone or computer]. Since when: [after which change]. Screenshot attached. Tell me first what you think it is, then fix only that."

    Cât costăWhat it costsnimic în plusnothing extraDecodorul și simulatorul rulează în pagina asta. Versiunile vechi ocupă spațiu ca orice fișier, cât le ții; cu un domeniu luat prin Weird, primul GB e inclus, cu tot cu ele.The decoder and the simulator run in this page. Old versions take up space like any file, while you keep them; with a domain bought through Weird, the first GB is included, them too.