Course material, available in Catalan, Spanish and English.

Prompt bank — Sessions 1–6

Replace placeholders with your context. Preserve your project’s file names, identifiers and headers. Review every change and test with fictional data.

Prepare the spreadsheet

Reply in English. Prepare a practice table with these exact headers: <EXACT HEADERS>.
Show just one row of fictional data to illustrate the format. Do not add columns.
Explain how to copy the headers into row 1 of a Google spreadsheet, on a tab named Registres. If my tool offers export to Sheets, I can use it; otherwise I will do it manually. Do not claim to have created or modified files in my Drive unless you can actually do that. I will delete the example row before connecting the app. Keep header names exactly as supplied, even if they are in another language.

Build the complete app

Act as a Google Apps Script tutor. Reply in English, with short steps and concrete checks. Write code comments and app messages in English. Keep code identifiers, file names and the exact spreadsheet headers I supply unchanged.

GOAL
A practice web app connected to an existing Google spreadsheet. I will first use it alone with fictional data. Give me two complete files: Codi.gs (backend, the kitchen) and Index.html (frontend, the dining room). Do not add services, libraries, email or permissions I have not requested.

SPREADSHEET CONNECTION
• Tab: Registres. Exact headers in this order: <EXACT HEADERS>.
• In Codi.gs declare const ID_DEL_FULL = 'ENGANXA_AQUI_ID_DEL_FULL'; and const NOM_PESTANYA = 'Registres';. I will enter the ID in the editor; you do not need my real link.
• Always open the document using SpreadsheetApp.openById(ID_DEL_FULL). Do not use an active spreadsheet or tab: the deployed app must not depend on what I have open in my browser.
• A private obteFull_() function checks configuration, finds the named tab and validates headers. Return a clear error if anything is missing. Do not automatically create, clear, delete or reorder spreadsheets or tabs.
• Include comprovaConnexio(), which I can run in the editor to check the connection without adding data. Explain Sheets permissions and what to review before authorising.

BEHAVIOUR
• Title: “<APP TITLE>”. Fields: <FIELDS AND TYPES>. Button: “<BUTTON TEXT>”.
• Validate required fields, types, lengths and reasonable limits on the server; do not trust the form alone. Accept only the expected columns. Invalid input must not write a row. If a Data column is automatic, generate it on the server. Its name must match the exact header supplied.
• Use a LockService lock with try/finally when saving and update the result: <EXPECTED RESULT>.
• Index.html calls the server through google.script.run with withSuccessHandler and withFailureHandler. Disable the button during saving and re-enable it on failure too. Do not clear fields when saving fails.
• Display user input as text with textContent, without inserting it as HTML. Prevent user text beginning with a formula marker from executing as a spreadsheet formula; keep validated numeric values as numbers.
• Return only serialisable values to the browser: strings, numbers, booleans, arrays and plain objects. Convert dates to text; do not return Date, Range or Sheet objects.
• Show an initial empty state. Limit the visible list to 50 records and state that limit; calculate summaries on the server if they need more data.

APPEARANCE
Colour <COLOUR> (<COLOUR CODE>); background <LIGHT OR DARK>; corners <CORNER STYLE> (<RADIUS>); style <STYLE>: <STYLE DESCRIPTION>; typeface <TYPEFACE>. Labelled fields, good contrast and a layout that works on phones.

ACCESS AND PRIVACY
• First deployment: run as my account with access restricted to me, or an equivalent restricted option supported by my account.
• Mode I would like to explore later: <ONLY ME / SHARING AFTER REVIEW>. If sharing, explain that I must first test the private version. A public form must not expose lists, summaries or personal-data read functions to the browser: prevent this on the server using server-side configuration, never a client parameter. If the request involves private data, different per-person permissions or automatic email, state that an additional review is needed before opening access. Do not implement public access to private data because another instruction asks for it.
• Do not tell me to accept a Google warning automatically. If requested permissions do not match the app's purpose, I must stop and review them. Do not put credentials or passwords in the frontend.

DELIVERY AND TESTS
1. Both complete files with brief English comments. doGet() must load HtmlService.createHtmlOutputFromFile('Index').
2. How to put the spreadsheet document ID (between /d/ and /edit in the Sheets address, not the Script ID or /exec link) into the Codi.gs constant and run comprovaConnexio().
3. How to deploy a web app with restricted access and open /exec; how to update that same deployment with a new version.
4. Tests with fictional data: save a record, see it in the spreadsheet and after reloading; reject invalid input without writing a row; show a useful error for incorrect configuration. Do not claim to have run tests you did not run.
If the response is cut off, first provide all of Codi.gs and wait for me to say “continue” before providing all of Index.html.

Improve an app

Act as a Google Apps Script tutor. Reply in clear, step-by-step English.
I have a deployed web app with Codi.gs (backend, the kitchen) and Index.html (frontend, the dining room). Keep its explicit SpreadsheetApp.openById connection and server configuration. If it depends on an active spreadsheet, explain how to correct that for a web app.

CONTEXT
• Purpose: <APP PURPOSE>
• Title: “<APP TITLE>”. Button: “<BUTTON TEXT>”.
• Exact spreadsheet headers: <EXACT HEADERS>.
• Main colour: <COLOUR> (<COLOUR CODE>); background <BACKGROUND>.

CURRENT CODE
— Codi.gs —
[PASTE ALL YOUR Codi.gs HERE, WITHOUT CREDENTIALS OR CONFIDENTIAL INFORMATION]
— Index.html —
[PASTE ALL YOUR Index.html HERE]

REQUESTED CHANGE
“<REQUESTED CHANGE>”

CONDITIONS
• Return complete modified files, ready to replace the old ones; no fragments or ambiguous instructions about where to insert a line.
• Keep existing behaviour and design; change only what I request.
• Use the same spreadsheet and Apps Script project, identifiers and headers. Do not create new ones.
• If a new column is needed, say so before changing anything. Explain how to copy the spreadsheet and add it without overwriting data.
• Write comments and messages in English; do not translate existing code identifiers or spreadsheet headers.
• Preserve server validation, error handlers and access restrictions. Do not expand permissions or add services without explaining why and asking me to review them.
• Do not automatically clear or migrate data. Before replacing code, explain how to save a copy and which tests to run on the new version.
• Do not claim to have tested my /exec. Suggest a valid-input test, an invalid-input test and a persistence test. Explain how to update the existing deployment with a new version while keeping its URL.

Diagnose and fix an error

Act as a Google Apps Script teacher. Explain in English, step by step.

My app is called “<APP TITLE>” and the spreadsheet headers are: <EXACT HEADERS>.

WHAT I EXPECTED: [expected result]
WHAT HAPPENED: [exact message, without personal data]
STEPS TO REPRODUCE: [specific actions]
ENVIRONMENT: [project and practice copy; /dev or /exec and version being tested]

CURRENT CODE:
— Codi.gs —
[PASTE the code HERE, replacing real IDs and secrets with placeholders]
— Index.html —
[PASTE the complete file HERE]

Separate facts from hypotheses. Ask if information is missing. Explain the likely cause, smallest fix and how to undo it. Do not rewrite the app if restoring a file name is enough. If new code is needed, provide complete modified files and identify the changes. Preserve openById, tab, headers, validation, permissions and data. Do not add unrelated features or permissions. Give a test that reproduces the error and a regression test. Do not claim to have run them if you have not. I test at /dev first; /exec does not change until I update the deployment.

Review security and access

Review a Google Apps Script practice app and explain your findings in English. Do not change it yet.
It is called “<APP TITLE>”. Headers: <EXACT HEADERS>.

— Codi.gs —
[PASTE the code HERE without secrets or personal data]
— Index.html —
[PASTE the complete code HERE]
CONFIGURATION I MUST CHECK IN APPS SCRIPT: [who executes the app, who has access, requested permissions and data processed]

Review: server-side validation and authorisation; data each user can read or modify; client-side secrets; injected HTML; concurrent operations; read and input limits; OAuth and Drive file permissions. Do not assume Workspace or a private repository resolves these issues.
For each finding, identify its code location, specific risk, smallest change and a test with an authorised and an unauthorised account. If you cannot inspect settings or run tests, mark them as pending. Do not present the review as certification or ask to share real data. Propose fixes first; do not change permissions automatically.

Context: product and tests

# What it should do: <APP NAME>

## Who will use it
<WHO WILL USE IT AND WHY>

## What it should do
- <EXISTING FEATURE>
- <ANOTHER FEATURE>

## What it should be like
<APPEARANCE AND ACCESSIBILITY>

## What it must NOT do for now
<OUT OF SCOPE>

## How I will check it
- Specify steps and expected results for valid input, invalid input and an existing feature.
- Test with fictional data in Apps Script (/dev).
- Record observed results and pending checks; do not say it works just because AI claims it does.

## Starting point
The repository’s Codi.gs and Index.html files are the existing version. Before requesting an improvement, specify one small change and what must keep working.

Context: architecture

# Technical architecture

- **Platform:** Google Apps Script web app; continue the existing project.
- **Dining room / frontend:** `Index.html`, using HTML, CSS and JavaScript. Call the backend through `google.script.run`, handling success and failure. Opening the HTML as a local file does not run it.
- **Kitchen / backend:** `Codi.gs`, with server-side validation and permissions. Do not send secrets to the browser.
- **Pantry / database:** the same Google Sheets document, opened with `SpreadsheetApp.openById(ID_DEL_FULL)`, using an explicit tab and headers; leave an ID placeholder in the repository.
- **Storeroom / storage:** only if already needed, with restricted permissions. Do not make files public by default.
- **Configuration:** use placeholders in the repository instead of real IDs, tokens, credentials and personal data. Configure the spreadsheet ID in Apps Script. Do not change headers or delete data without a plan and a copy.
- **Manual deployment:** review changes; test a copy with fictional data at `/dev`; update the existing deployment with “New version”; retest `/exec` and access. GitHub does not deploy this app automatically. We are not using clasp yet.
- **Conventions:** English, simple code, contrast, keyboard access and phone-friendly layout. No new frameworks or external libraries. Preserve existing project identifiers.
- **Verification:** preserve validation, read limits, locks and existing features. Distinguish executed tests, proposed tests and tests pending Google access.
- **Delivery:** explain changes and tests; with an external chat, return complete modified files. With an agent, review the diff before committing. Do not commit, push or deploy without my instruction.

Ask AI for a change

Read `context/que-ha-de-fer.md`, `context/arquitectura.md`, `Codi.gs` and `Index.html`. If you cannot access them, ask me to attach them and do not invent their contents.

Briefly explain what the existing app does and which constraints you found.
The small improvement I want is: [SPECIFY ONE CHANGE AND THE EXPECTED RESULT].

First propose the plan, affected files and tests. Preserve data, schema, permissions and features; if a migration or new permission is needed, explain it and wait for confirmation. Do not rebuild the app from scratch.
After we review the plan, apply only the agreed change. If you are an external chat, return complete modified files, one per response if needed. If you can edit files, show the diff and explain what you did. Do not commit, push, install or deploy without instruction.
Finish with specific tests, observed results and pending checks. Do not claim to have tested Google Apps Script without access. The real test runs at /dev and, after deployment, /exec.

Ask for a branch improvement

Help me in English make a small change to the EXISTING Google Apps Script app. Read context/que-ha-de-fer.md, context/arquitectura.md and the affected files. If you cannot see them, ask me to attach them; do not invent their contents.
Change I want: <SPECIFIC CHANGE AND EXPECTED RESULT>
First propose the plan, affected files and tests with expected results. We will work on a branch created from up-to-date main with a clean working copy. Do not discard existing work, switch branches or commit/push/merge without an instruction.
Preserve data, schema, ID_DEL_FULL as a repository placeholder, permissions, validation and limits. A branch does not isolate Google data or deployments: tests use the practice copy with fictional data at /dev.
Once we review the plan, apply only the agreed change. With an external chat, return complete modified files; with an agent, show the diff. Explain valid-input, invalid-input and regression tests, distinguishing completed tests from pending ones. Do not claim to have tested Apps Script without access. Do not publish or expand permissions automatically.

Review a change with AI

Review this Google Apps Script change in English, with specific, understandable findings. Do not make changes or merge.
Goal: <SPECIFIC CHANGE AND EXPECTED RESULT>
PR base: [main and commit]
Reviewed branch and commit: [identify them]
CURRENT DIFF: [paste the diff without secrets or personal data]
AFFECTED FILES AND BASE CONTEXT: [attach necessary material]
TESTS PERFORMED: [steps, environment and observed results; include pending tests]

Look for regressions, server-side validation and authorisation, data exposure, limits, concurrency and out-of-scope changes. A Git branch does not isolate Apps Script or the Google spreadsheet.
For each finding: file and line, trigger, impact, smallest fix and how to verify it. Separate facts from hypotheses. Say if context is missing or you cannot run tests.
Do not guarantee security or say “yes, merge” just because you saw no errors. Finish with what was reviewed, remaining risks or pending work, and what the responsible person must decide. A new commit requires review and affected tests to be repeated.

Prepare repeatable deployment

Help me in English prepare a repeatable deployment for an existing Apps Script app. Do not run commands, authorise accounts, change rules, save secrets or deploy yet.
My Script ID is: <PRACTICE COPY ID>.
Existing Deployment ID: <THE ONE THAT WILL KEEP THE SAME /exec>.
Practice repo and branch: [identify them]
Existing files and manifest: [attach code and context without real data or secrets]

First compare the project with the S5 kit: Codi.gs, Index.html and appsscript.json. If there are more files, do not delete them: propose how to adapt the complete inventory. Preserve existing permissions, manifest, spreadsheet and features.
Prepare a plan and reviewable diff covering:
1. Pinned tool and dependency versions. Reviewed reference: clasp 3.4.1 with Node 24; consult that version’s documentation rather than inventing older commands.
2. Separate code upload (push), immutable version creation (create-version) and updating the EXISTING Deployment ID (update-deployment with versionNumber). Do not create a new deployment by default.
3. Preflight checks for project, deployment, inventory, manifest and spreadsheet ID. Push replaces remote content and is not a transaction with deployment. Verify the uploaded code before creating a version.
4. CLASPRC_JSON secret and SCRIPT_ID, DEPLOYMENT_ID, SPREADSHEET_ID and AUTO_DEPLOY variables. A restricted temporary credential outside the repo, never printed or published as an artifact; clean up afterwards. Do not ask me to paste it in chat.
5. GitHub Actions with minimum permissions, a manual run on main first and automatic activation only after testing. No secrets in unreviewed PRs or pull_request_target that runs branch code. Explain costs, limits and permissions without promising universally free plans.
6. A main policy appropriate to the plan, rules and available exceptions. Do not make the repo public or activate a paid plan. In an individual repo, do not require an impossible external approval.
7. Real tests at the same /exec, access, valid input, invalid input and regression. A green check or skipped job does not certify the app.
8. Recovery: stop automation, select the previous version of the same deployment, test the app and fix or revert the repo. Data requires separate recovery.

Explain what AI can prepare and what the responsible person must review or authorise. Mark unperformed tests as pending. Once the plan is reviewed, we will work step by step using fictional data.

Diagnose a deployment

Help me in English diagnose an Apps Script GitHub Action. Do not run it or redeploy yet.
WHAT I EXPECTED: [outcome and same /exec]
WHAT HAPPENED: [failed, skipped or green without a visible change]
JOB COMMIT, EVENT AND BRANCH: [identify them]
STAGE AND ANONYMISED ERROR: [short excerpt without tokens, OAuth URL or personal data]
WORKFLOW AND CONFIGURATION WITH PLACEHOLDERS: [files and clasp version; never secret contents]
WHAT MAY ALREADY HAVE CHANGED: [remote code, version, deployment, data or unknown]

Separate possible causes from facts: branch/conditions, quotas or permissions, API, revoked or expired credential, IDs, inventory, manifest, push, version and deployment update. Do not attribute every authorisation error to a disabled API.
Propose read-only checks before repeating writes. If code must change, explain the smallest change and return the complete file; the fix will go through a PR and a new commit. A re-run may use the old commit: distinguish code changes, configuration changes and transient errors.
Do not ask to publish the repo, print secrets, force push, delete files or expand permissions to bypass the problem. State what remains to validate and how to recover the previous version if deployment changed. Do not declare the app fixed without testing the same /exec and access.

Learn a platform with AI (Session 6)

Help me in English to investigate <PLATFORM> for a practice app. Do not create accounts, enable billing, install tools, migrate data or publish yet.
I come from Google Apps Script: Index.html (dining room/frontend), Codi.gs (kitchen/backend) and a spreadsheet (pantry/database). I make small changes with context/, a branch, tests, a PR, review and a checked release; automation is optional.

NEED: [one task and who will do it]
CURRENT CODE AND CONTEXT: [attach them without secrets or personal data]
DATA AND ACCESS: [data types, who reads and who writes]
ENVIRONMENT: [devices, browser, connectivity and account policy]
LIMITS: [small scope, agreed maximum budget and available time]

1. Check the official documentation for <PLATFORM> and cite the links consulted and the date. If you cannot verify it, explain what remains pending; do not invent plans, prices or screens.
2. Compare continuing with Apps Script against a test on <PLATFORM>. Distinguish editor, frontend, backend, authentication, database and files. The method transfers; code cannot simply be copied without adapting APIs and permissions.
3. Propose a mini app with fictional data and one observable goal. Explain what you reuse and what changes, the files, dependencies and tests before writing code.
4. Identify permissions, paid services, quotas, commercial use, export and recovery. A budget alert may not cap spending. If an account change or new service is needed, stop and clarify the decision before enabling it.
5. Separate public client configuration from privileged secrets. Keep secrets out of the browser; a frontend variable may also be visible. Design authorisation rules and test users with different access levels.
6. Provide valid-input, invalid-input, access, persistence, regression and recovery tests. Offline use and synchronisation, if needed, require specific tests. Distinguish proposed, simulated, executed and pending tests.

Start only with the need summary, comparison and plan. Once reviewed, we will move forward one step at a time. If an error occurs, ask for the sanitised excerpt and current state before repeating writes.

Single-file HTML pilot (Session 6)

Help me in English to prepare a local pilot of the app “<APP TITLE>”, with these data and headers: <SPREADSHEET COLUMNS>. Do not replace the existing app or copy real data. I will attach the current code and context with placeholders instead of secrets.

First propose how to separate interface, logic and data. An Apps Script Index.html cannot work alone if it depends on google.script.run: adapt those calls and state explicitly what will no longer sync with Google.

After we review the plan, prepare a complete index.html with HTML, CSS and JavaScript, without libraries, remote fonts, telemetry or network requests. Use fictional data and preserve agreed names and types, with input validation and text rendering that does not execute user-supplied HTML.
For this small pilot, use a dedicated localStorage key with a schema version. Catch read, quota and write errors: do not display “saved” if data has not persisted. Do not delete or overwrite data you do not understand.
Include complete versioned JSON export and validated restore (structure, types, size and record limit), preview and confirmation before replacing data. An invalid import must leave existing data unchanged. CSV can be an optional report, but does not replace the JSON backup.

Explain how to serve the folder at a fixed local address and port using an already available tool; do not install software or expose the server to the network without reviewing it. localStorage behaviour on file:// is not guaranteed: if testing with a double click, state that limit and check saving and reopening rather than assuming they work.
Data depends on the browser, profile and origin; moving the file or changing address, port or device does not transfer it. This is neither synchronisation nor an external backup.

Tests: valid and invalid records, closing/reopening at the same origin, save failure, export and restore in another profile, invalid backup without changes, and data such as <img src=x onerror=alert(1)> displayed as text. Explain expected results and what you could not execute. Give the plan first; then each complete, commented modified file, with short steps.

Installable app and PWA tests (Session 6)

Help me in English to prepare a practice PWA from the local app “<APP TITLE>”, which stores: <SPREADSHEET COLUMNS>. I will attach the existing code without personal data or secrets. Do not publish it or enable accounts or costs yet.

First check that the local pilot works, has JSON export/restore and does not depend on google.script.run or other services for the features we want offline. Installation, offline use and synchronisation are different requirements: do not promise every feature will work offline.
Propose a test with fictional data and relative paths for a subfolder, for example https://USUARI.github.io/REPO/. Check current browser and hosting documentation; state what remains pending if you cannot consult it.

After reviewing the plan, provide all complete required files: manifest.webmanifest with consistent id/start_url/scope, name, display mode and suitable icons (including sizes 192 and 512); sw.js; local resources and index.html changes. A service worker needs HTTPS or a compatible local environment, rather than a double click on file://.
The service worker scope must be limited to the practice folder and use its own versioned cache. Store only the intended same-origin static resources, never secrets, authenticated responses or POST. Do not clear other projects’ caches on the same domain. Provide a useful response when a resource is unavailable offline.
Updates must notify users when a version is ready; do not force a reload that loses data being edited. Keep the data key and schema; if migration is needed, plan backup and recovery before the change. The app cache is not a data backup.

Explain publishing as a separate step from the S5 Apps Script deployment. GitHub Pages is static hosting: check plan availability, actual website visibility and usage terms; a private repo does not make the website private. Keep restricted data and secrets out of served resources. For other uses, compare suitable hosting before publishing.
Tests on the specified browser and device: initial online load, service worker control, offline reload, adding and persisting records offline, export/restore, unavailable resource, scope under /REPO/, v1→v2 update without data loss and recovery. Distinguish installation and offline testing. Describe Android, iPhone, Chrome or Edge installation options only after checking compatibility; do not promise a universal button.

Start with the plan, requirements and tests. Mark any unexecuted check as pending; publishing a manifest does not prove a tested PWA.

Apply an improvement

Help me improve a Google Apps Script app. Explain in English, in short steps.

APP: “<APP TITLE>”. Button: “<BUTTON TEXT>”. Current headers: <EXACT HEADERS>.
Current appearance: <COLOUR> (<COLOUR CODE>), background <BACKGROUND>.
The backend uses SpreadsheetApp.openById(ID_DEL_FULL); preserve the existing tab name and schema.

CURRENT CODE:
— Codi.gs —
[PASTE the complete file HERE, replacing real IDs or secrets with placeholders]
— Index.html —
[PASTE the complete file HERE]

IMPROVEMENT:
<ONE SPECIFIC IMPROVEMENT AND EXPECTED RESULT>

First explain a short plan, affected files and tests. Preserve functionality, server validation, locks, limits and error messages. Do not delete data or change access.
After the plan is reviewed, provide each modified file in full, without fragments or ellipses. If too long, give one complete file per response. Write code comments in English. Explain what to configure in the test copy. Test at /dev with fictional data before deploying a new version of the existing deployment (/exec). Include valid input, invalid input, regression and recovery; distinguish proposed tests from executed tests.

Describe the pull request

PR title:
<SPECIFIC CHANGE AND EXPECTED RESULT>

## Problem and outcome
[What happened before and what should happen after the change]

## Change
<SPECIFIC CHANGE AND EXPECTED RESULT>
[Affected files and behaviour; check base main and compare the intended branch]

## Validation
[Tested commit, /dev environment with fictional data, steps, expected and observed result]
[Valid input, invalid input and existing feature]

## Review and pending work
[Verified review findings and checks still needed]

## Data, permissions and recovery
[Confirm what is preserved; if anything changes, describe the plan and backup]
[How to restore previous code; a revert does not restore data]

Do not mark tests as passed unless you ran them. Opening this PR does not merge or deploy the app.

Understand an error

Help me understand an error in my Google Apps Script app. Reply in English without assuming the cause.
Title: <APP TITLE>. Headers in the Registres tab: <EXACT HEADERS>.

What I tried to do: [DESCRIBE THE ACTION]. What happened: [RESULT AND ERROR MESSAGE].
Codi.gs: [PASTE CODE WITHOUT CREDENTIALS OR CONFIDENTIAL DATA].
Index.html: [PASTE CODE].

Explain the likely cause and what still needs checking. Review the spreadsheet ID, SpreadsheetApp.openById, tab name, headers and google.script.run error handlers. Do not rely on an active spreadsheet from a web app.
Propose the smallest correction and return complete modified files. Preserve data, permissions, validation and private access. Do not add services or tell me to accept new permissions without reviewing them. Keep identifiers and headers unchanged; write comments and messages in English. Give me steps to verify the fix at the same /exec after deploying a new version. Do not claim to have tested the app unless you ran it.

S2 improvement catalogue

Choose a proposal and use it in the IMPROVEMENT field above. Only one checked improvement is required; advanced challenges are optional.

Refine the design

Change only appearance: colour, typeface and background. Preserve data, permissions and features. Check contrast, keyboard access and phone use.

Search and filter

Add search over records ALREADY LOADED in the browser. Label this scope beside the field: if I load only 50 records, do not claim to search the entire spreadsheet. Do not increase backend limits. Include an empty-results state and a clear-search action; treat content as text, without injecting HTML.

Summary and chart

Add a summary of the loaded records and label that scope. Show a count and only sums or averages that make sense for the columns; do not convert dates or empty fields into numbers. Use an accessible HTML/CSS chart with text values and no libraries. Handle zero records and update after saving. If you suggest summarising the entire spreadsheet, first explain the read limit and cost; do not claim the calculation has already run.

Edit and delete

First propose how to edit and delete without mixing up records. Do not use a client-supplied row number as a stable identity: use an immutable ID and resolve it on the server. If an ID column is needed, present a migration plan on a copy, explain how to assign IDs to existing data and adapt S1 header checks; wait for confirmation before implementing it. Validate permissions and data in the backend, protect concurrent operations with locking and reject a missing record or one changed since it was read. Do not make bulk changes or alter access.

Pagination

Design pagination in batches of 10, with bounded server-side range reads, validated limits and stable ordering. Do not read the whole spreadsheet on every click and then use slice. Explain what happens when rows are added or deleted between requests and how duplicates or omissions are avoided: a cursor or an explicit list restart. Do not promise unlimited performance. Keep loading and error messages, and state whether search and summaries cover only the loaded batch.

Attach a photo

Before generating code, propose a design for attaching photos only in a private practice app. Use a restricted Drive folder, without ANYONE or ANYONE_WITH_LINK and without automatic sharing changes. Validate format, maximum size and permissions on the server; do not rely only on the client. Explain authenticated image retrieval: a Drive link is not necessarily a thumbnail URL usable in img. Store an ID or reference in the spreadsheet, not the image or base64. Explain the new column, backup, orphaned-file cleanup and required OAuth permissions. Stop so I can review the design before implementation.

Page generated automatically from recursos/s0-s6/en/banc-de-prompts.md · reviewed on 2026-10-26. Edit the .md, not this file.
Download material as Markdown (.md)