FLALUMA · TECHNOLOGY SOLUTIONS

Develop Apps with ChatGPT and Claude: A Step-by-Step Project Guide

Prepare an AI-assisted app project with AGENTS.md, CLAUDE.md, copyable prompts, tested code and a safe review workflow.

Conceptual illustration of specifications becoming modular software with a verification seal
Leer esta guía en español

A useful application starts with a clear problem, a small scope and a way to check the result. ChatGPT and Claude can help you describe requirements, understand code and implement changes, but a convincing answer does not prove that an application works. This guide takes you from an empty practice folder to a tested, local example, with reusable instructions and a review process you can apply to a larger project.

You will build Task Lab, a temporary task list. It has no accounts, payments, bookings, AI API integration or production database. That narrow scope makes it possible to understand the complete example before adding complexity. The download includes the finished reference implementation; you can inspect it first or use the requirements to ask your assistant for its own implementation and compare the results.

1. Choose the working mode before granting access

There are two practical routes. In a conversation, provide a non-sensitive specification and selected code, then apply and run the suggested changes yourself. With a coding agent connected to a folder, the tool may inspect files, edit code and run commands within its permissions. Do not assume an ordinary chat can see your disk, or that every desktop conversation has the same tools.

OpenAI documents ChatGPT surfaces and Codex development tools in its setup guide. Anthropic documents Claude Code separately from conversational use. Choose the supported interface available to your account, sign in on the official site or app, and confirm its access and billing before starting. This example runs without an AI API key; your assistant subscription or usage may still have a cost.

Three separate responsibilities
You defineThe goal, allowed data, budget and acceptance checks.
The assistant proposesAn implementation and an explanation of changes.
Evidence confirmsTests, browser checks and a reviewed diff establish what works.

2. Prepare a safe practice folder

Download the example below and extract it into a new folder called task-lab. Keep it separate from an existing website, client repository or synchronized production directory. Open that folder in your editor. You need a browser, a supported Node.js installation for the tests and Python 3 for the local server. Install missing tools only from their official distributions; the sample needs no npm packages.

Download Task Lab and the instruction templates. The archive contains only the original example code and documents. It contains no credentials. Its interface and shared instruction files use English so both article versions refer to the same reproducible project. You may ask the assistant to explain each file in your preferred language.

Check installed tools in your terminal

node --version
python3 --version

On Windows, if Python is installed through its launcher, use py –version and replace python3 with py in the server command later. A command not found error means the executable is unavailable in that terminal; it is not a reason to paste an unrelated installer. The example was tested with Node.js 24.18.0 and Python 3.9.6. Use supported versions appropriate to your system, rather than downgrading to match this record.

3. Write acceptance criteria before asking for code

A request such as “make a professional task app” leaves too many decisions open. Describe who uses it, what they do and what must not happen. For this exercise, a task has a short title and a completion state. Reloading deliberately removes the list. That limitation must be visible so a learner does not mistake it for a reliable record of work.

REQUIREMENTS.md

# Requirements
User: a person practicing AI-assisted application development.
Goal: add short tasks and mark them complete in the current browser tab.
Acceptance: trim titles; reject empty titles and more than 120 characters.
A new task starts pending. Toggling one task leaves other tasks unchanged.
Titles render as text. Keyboard users can submit and toggle tasks.
The interface fits a 390 px viewport without horizontal scrolling.
Data is temporary and disappears on reload. Display this limitation.
Out of scope: persistence, accounts, payments, email, bookings and deployment.

Acceptance criteria are observable outcomes. “Looks good” is subjective; “no horizontal scrolling at 390 pixels” can be checked. “Secure” is too broad; “entered titles are rendered as text, not interpreted as HTML” names a specific behavior. A real application needs additional requirements for authentication, authorization, persistence, accessibility, backups and operations.

4. Give each document a clear job

Keep the project understandable to a person who has never seen your conversation. README.md explains how to run it. REQUIREMENTS.md defines success. AGENTS.md describes working agreements. CLAUDE.md provides the Claude Code entry point. A larger project may also need ARCHITECTURE.md for design decisions and HANDOFF.md for the current state. Those extra names are team conventions, not universal files every assistant automatically reads.

The example folder

task-lab/
  README.md
  REQUIREMENTS.md
  AGENTS.md
  CLAUDE.md
  .gitignore
  .env.example
  index.html
  app.mjs
  tasks.mjs
  tasks.test.mjs

Keep instructions short enough to review. Explain a repository-specific constraint once, in the relevant file, instead of repeating a large policy in every prompt. Update a document when the code changes its assumptions. An outdated command in README.md can waste as much time as an outdated code example.

5. Prepare AGENTS.md and CLAUDE.md

OpenAI documents AGENTS.md discovery for Codex, including directory scope and overrides. Put this example at the project root and begin work there. Confirm the loaded guidance when opening a new session. Merely naming a file AGENTS.md does not make every chat product load it.

AGENTS.md

# Task Lab project instructions
This is a local teaching example, not a production booking application.
Read README.md and REQUIREMENTS.md before editing.
Keep the implementation in native HTML, CSS and JavaScript modules.
Do not add dependencies, accounts, analytics, payments or external requests.
Treat user-entered titles as text, never HTML.
Preserve existing user changes. Inspect git status and the relevant files first.
Run: node --test tasks.test.mjs
Also check keyboard operation and a narrow mobile viewport after UI changes.
Report what changed, commands run, results and limitations.
Ask before publishing, pushing, connecting a service or deleting stored data.

For Claude Code, the current documentation supports CLAUDE.md and, in compatible configurations, AGENTS.md. To make this example explicit, CLAUDE.md imports the shared file rather than duplicating its rules. Verify the loaded context with /context. Availability and defaults depend on version and settings; use the official memory documentation if your session behaves differently.

CLAUDE.md

@AGENTS.md

# Claude Code context
This directory contains the complete learning example.
Keep the first implementation small and explain any untested behavior.

These files guide behavior. They are not a security boundary and do not replace tool permissions, operating-system access controls or a sandbox. Configure actual access separately. A sentence saying “do not read secrets” is not equivalent to preventing a tool from opening a secret file.

6. Start in ChatGPT or Claude without repository access

If you prefer an ordinary conversation, create a dedicated chat for this exercise. Paste the requirements and the relevant instruction text, or attach the non-sensitive files if your interface supports it. State that the assistant is proposing changes, not executing them. Keep an authoritative local copy of the project; a chat transcript is not version control.

First conversation prompt

I am learning to build Task Lab. Read the supplied requirements and instructions. First explain the file structure, acceptance criteria and implementation plan. Identify missing information. Do not claim you ran commands or saw local files unless tools actually gave you access. Do not add accounts, persistence, dependencies or external services. Wait for my approval before writing the implementation.

Request one coherent file or change at a time, with its exact path and a complete replacement when that is safer for a beginner. Review the proposed change before applying it. If the assistant produces a patch you do not understand, ask it to explain the affected lines rather than pasting shell commands blindly.

7. Start with a coding agent in the project folder

For OpenAI’s development workflow, follow the official setup link and select the coding experience available to you, opening only task-lab. For Claude Code, follow its official quickstart for your platform, verify the installation with claude –version, enter the task-lab directory and start claude. Complete sign-in yourself. Do not paste login tokens into the project documents.

Start with the tool’s review or permission mode that keeps consequential actions under your control. Inspect requests to install software, contact a service or access another folder. In Claude Code, /permissions displays access rules. Do not disable safeguards just because an operation asks for approval. A teaching example should not need access to your email, cloud account or production server.

Repository inspection prompt

Inspect this practice folder without editing. Report the current directory, instruction files actually loaded, existing changes, project files and test command. Read README.md and REQUIREMENTS.md. Explain which acceptance criteria are already satisfied and which require implementation. Do not print secrets or install anything.

IN PRACTICE

Confirm the project before the first edit

In the ChatGPT desktop app, open the practice folder as your project and select the coding experience described in the official quickstart. Confirm that the displayed folder is Task Lab, not another client repository. Ask for a read-only summary of REQUIREMENTS.md, AGENTS.md and the existing files before requesting edits. Compare its answer with the actual files; a claim that it read them is not enough if it describes different requirements.

For Claude Code in a terminal, follow its official installation and sign-in instructions. Open Terminal on macOS or Windows Terminal/PowerShell on Windows, change to the extracted practice folder with cd, then run the installed claude command there. Use /context to inspect loaded instruction files and confirm CLAUDE.md and its referenced guidance. Do not paste keys into the example or install a random script from an answer.

If the example does not start
Observation Check
node is not recognized / command not found Install a supported Node.js release from its official source, reopen the terminal and rerun the version check.
Cannot find tasks.test.mjs List the current folder; enter the extracted example directory before running the existing test command.
Browser opened a file:// address Use the local HTTP server in step 11; do not disable browser module security.
Address already in use Choose a free local port as step 11 explains; do not stop an unknown process.
Tests pass but the page fails Perform the separate browser checks. Four unit tests are not a browser, persistence or production-security test.

8. Establish a recoverable starting point

Before modifying an existing project, inspect git status and preserve work that belongs to someone else. For a new practice folder, you can initialize Git and commit a reviewed baseline. Do not run these commands in a client repository as a substitute for understanding its workflow. The explicit file list avoids accidentally staging unrelated files.

Optional baseline for the new practice folder

git init
git status --short
git add README.md REQUIREMENTS.md AGENTS.md CLAUDE.md .gitignore .env.example index.html app.mjs tasks.mjs tasks.test.mjs
git diff --cached
git commit -m "Add reviewed Task Lab baseline"

If Git asks for your identity, configure it according to your own repository policy. A local commit is not an external backup. Push only to a destination you have reviewed and authorized. For later changes, use a branch and inspect the diff before merging; avoid using destructive reset commands to hide a confusing state.

9. Understand the small implementation

The example separates task logic from browser interaction. tasks.mjs validates and transforms data without touching the page. app.mjs handles the form and renders text. index.html supplies the accessible controls and styles. This is enough structure to test behavior without introducing a framework or package installation.

tasks.mjs

export function addTask(tasks, title, id) {
  if (typeof title !== 'string' || !title.trim() || title.trim().length > 120) {
    throw new Error('Use 1 to 120 characters.');
  }
  return [...tasks, { id, title: title.trim(), done: false }];
}
export function toggleTask(tasks, id) {
  return tasks.map(task => task.id === id ? { ...task, done: !task.done } : task);
}

addTask returns a new list, trims whitespace and rejects invalid titles. The caller supplies an identifier so tests remain deterministic. toggleTask updates only the matching task and preserves the original data. In app.mjs, createTextNode renders the title as text, so a title containing markup does not become executable HTML. That is a useful boundary to preserve when asking for improvements.

A focused implementation request

Implement only the task creation and completion behavior described in REQUIREMENTS.md. Use native JavaScript modules and text-safe DOM rendering. Preserve unrelated files. Run the existing tests and report the exact results. Do not add persistence, dependencies or deployment. Explain any requirement you cannot verify.

10. Run the tests and read what they prove

tasks.test.mjs

import test from 'node:test';
import assert from 'node:assert/strict';
import { addTask, toggleTask } from './tasks.mjs';
test('adds a trimmed task without changing the input', () => {
  const original = [];
  assert.deepEqual(addTask(original, '  Review brief  ', 'a'), [{ id: 'a', title: 'Review brief', done: false }]);
  assert.deepEqual(original, []);
});
test('rejects empty, oversized and non-text titles', () => {
  for (const title of ['', '   ', 'a'.repeat(121), null]) assert.throws(() => addTask([], title, 'a'));
});
test('toggles only the chosen task and preserves the original', () => {
  const original = addTask(addTask([], 'First', 'a'), 'Second', 'b');
  const result = toggleTask(original, 'a');
  assert.equal(result[0].done, true);
  assert.equal(result[1].done, false);
  assert.equal(original[0].done, false);
  assert.equal(toggleTask(result, 'a')[0].done, false);
});
test('unknown identifiers leave task values unchanged', () => {
  const tasks = addTask([], 'First', 'a');
  assert.deepEqual(toggleTask(tasks, 'missing'), tasks);
});
Run from the project folder

node --test tasks.test.mjs

The four tests check trimming, validation, targeted toggling and behavior for an unknown identifier. They also check that the original list is preserved. A passing run does not prove the form is usable, that the layout fits a phone or that a future database is safe. Those are separate checks. Never ask an assistant to weaken a test simply to obtain a green result.

If a test fails, keep its actual output, identify the relevant function and compare the behavior with the requirement. Ask for the smallest correction and rerun the affected checks. Record a pre-existing failure separately from one introduced by the latest change.

11. Open the real application and check the interface

Serve only on your own computer

python3 -m http.server 8765 --bind 127.0.0.1

Open http://127.0.0.1:8765 in your browser. On Windows with the Python launcher, use py instead of python3. Keep the terminal open while testing and press Ctrl+C to stop it. The address is your own computer, not a published website. Opening index.html directly can fail because the example uses modules. If port 8765 is busy, choose another unused port and use that same port in the browser.

Task Lab running locally with one completed task and one pending task
Actual screenshot of Task Lab, the included example. English interface.

The screenshot shows the actual included application: “Review requirements” is checked and “Run the tests” remains pending. Add two fictional tasks, toggle just one, and confirm the other stays unchanged. Use Tab and Enter, test a blank or spaces-only title, and try text containing angle brackets. It must remain text. At a narrow viewport, check the input, button and long title for overflow.

Reload once and confirm the list disappears, as the requirements state. If you need persistence, treat that as a new feature with storage, recovery and privacy requirements. Do not silently repurpose this practice app for customer records.

12. Protect secrets and separate environments

The sample has no credentials. .env.example documents that fact; it is not a place to paste a real key. .gitignore helps keep untracked local files out of Git, but it does not encrypt them, prevent agent access or remove a secret already committed. If a real credential is exposed, follow its provider’s revocation and replacement process. Deleting the visible line is not enough.

.gitignore

.env
.env.*
!.env.example
node_modules/
.DS_Store
*.log

If you later connect an AI API or database, create a separate development environment with limited credentials and fictional data. Keep server secrets out of frontend JavaScript. Design authorization on the server, configure usage limits and logging without sensitive payloads, and review retention. That is a separate integration project, not a small cosmetic change to this example.

13. Review the change instead of trusting the summary

Inspect local changes

git status --short
git diff --stat
git diff

Look for unexpected files, removed validation, changed dependencies, new network requests and accidental credentials. Compare every acceptance criterion with a test or manual observation. Ask the assistant to distinguish checks it ran from checks it recommends. If two agents work on the same files, coordinate their scope or use isolated branches; simultaneous edits are not automatically merged safely.

Review prompt

Review the current diff against REQUIREMENTS.md. Prioritize incorrect behavior, data handling, missing validation and regressions. List findings with the file and reason. Do not edit yet. Separate verified facts from assumptions and identify tests not run.

14. Leave a useful handoff and plan deployment separately

At the end of a session, record the current goal, files changed, commands run, results and next decision. Keep this handoff in the repository when appropriate, without secrets. Before the next session, verify that it still matches the files. The assistant’s recollection can be helpful, but the current repository and test evidence are the authoritative record.

Handoff template

Goal:
Current behavior:
Files changed:
Commands actually run and results:
Manual checks completed:
Known limitations:
Next small task:
Actions requiring owner approval:

A local preview is not a production release. Before publishing a real application, review hosting, HTTPS, domains, authentication, data migration, monitoring, backups, restoration and rollback. If the system handles payments, personal records or business operations, include the appropriate specialist review. Keep production credentials and deployment approval separate from routine code generation.

A repeatable delivery cycle
SpecifyWrite the outcome and boundaries.
ImplementMake one small coherent change.
VerifyRun tests and inspect the real interface.
ReviewApprove the diff before release.

Common questions before your next project

Do I need both assistants? No. Start with one tool you understand and can supervise. A second opinion can help review a design, but it does not remove your responsibility to verify the result.

Should every instruction go in AGENTS.md? No. Keep durable working agreements there and detailed requirements in their own document. Ask the assistant to read the relevant files explicitly when needed.

Can I build a client application from this? You can adapt the learning process and code, but this temporary list is not a complete production architecture. Define the actual data, users, permissions and operational requirements first.

Continue with our prompt writing guide, AI privacy guide and assistant comparison. If you need help turning a brief into a maintainable application or website, review our web development services. The initial consultation is free; implementation scope and cost are agreed before work begins.

Sources and scope

Official documentation reviewed on October 31, 2026. Options may vary by platform, version and account type.

Back to all guides

Related guides

Would you like a hand?

Tell us what is happening. Your initial consultation is free; the scope and cost of technical work are agreed before we begin.

Request tech help
FLALUMA · EXPLORE

Find your next step

Find solutions, practical guides and Flaluma services.

Explore guidesView servicesAsk a question