Skip to content

Program 01 · Module 03 of 8

Module 03: Project Scaffolding

Create a repository that a team and an assistant can work in safely. You set up the structure, tooling, configuration and context files, and keep secrets out of version control from the first commit.

Suggested study time
4–5 hours
Prerequisites
Module 2 complete.; Git, a terminal and a code editor installed.

Sign in to track your progress. Every lesson stays free to read without an account.

Learning outcomes

By the end of this module you will be able to:

  • Generate and review a project skeleton instead of accepting it unread.
  • Organise folders and modules so features have clear homes.
  • Manage configuration and secrets through environment variables.
  • Write context files that tell an assistant how the project works.

Lessons

  1. 3.1

    Generating a Project Skeleton

    Ask an assistant for a starting structure, then review every generated file before keeping it.

    40 min
  2. 3.2

    Repository Structure and Conventions

    Decide folder layout, naming and module boundaries that keep a growing codebase navigable.

    35 min
  3. 3.3

    Configuration and Secrets

    Keep settings in environment variables, ignore local env files and never commit a key.

    35 min
  4. 3.4

    Linting, Formatting and Type Checks

    Add automated checks so style and type errors are caught before review.

    30 min
  5. 3.5

    Assistant Context Files

    Write the project notes an assistant reads first: commands, conventions and what not to touch.

    30 min

About 2 h 50 min of lessons in total.

Practical assignment

Scaffold the capstone repository

Create the repository for your capstone application with working checks and safe configuration.

Deliverables

  • A runnable skeleton that starts and shows a placeholder page.
  • A .gitignore that excludes environment files, and an example env file with fake values.
  • Lint, format and type-check commands that pass.
  • A context file for assistants describing commands and conventions.

Validation checklist

Use this to check your assignment before you move on.

Knowledge check

  1. 1.Where should an API key for a third-party service live during local development?
    Show the answer and explanation

    Answer: B. Environment files kept out of version control stop keys reaching the repository. Frontend code is delivered to every visitor, and a README is committed, so both expose the key.

  2. 2.An assistant generates 40 files for a skeleton. What should you do before committing?
    Show the answer and explanation

    Answer: B. Generated files are unreviewed code and configuration. Committing first makes unneeded or unsafe content part of the history; the claim of best practice is not a check.

PromptFable is independent and is not affiliated with, endorsed by or sponsored by Anthropic, Google, OpenAI or any other vendor. Claude, Gemini, Google AI Studio and other product names are trademarks of their respective owners.