agentleFS
GitHubKnown publishergithub/copilot-app-for-beginners/.github/copilot-instructions.md

copilot-app-for-beginners

Copilot instructions25 starsChanged 59 days agoMITView on GitHub

Use these instructions when working in this repository. This is a beginner course repo for the GitHub Copilot app. The canonical sample is samples/book-app-web: a frontend-only book collection used to practice review, tests, browser preview, issues, and pull requests. Do not edit chapter README files unless the user asks for chapter content changes. Keep changes small and beginner-readable. samples/book-app-web is a Vite, React, TypeScript, and Vitest app. It has no backend, database, or external API. Do not add those. The…

  • Installs packages

The file

We split this copilot-instructions.md into the rules it gives an agent

9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use these instructions when working in this repository.

    line 3
  2. Distinctive:

    Do not edit chapter README files unless the user asks for chapter content changes.

    line 7
  3. Very specific:

    Keep the stack as-is. Prefer small React components with clear props.

    line 15
  4. Distinctive:

    Default behavior to preserve unless a training scenario says otherwise:

    line 25
  5. Distinctive:

    Search matches title and author without depending on letter case.

    line 27
  6. Very specific:

    Use the current Node.js LTS.

    line 32
  7. Very specific:

    Always work from samples/book-app-web.

    line 36
  8. Very specific:

    Keep intentional failing behavior in training branches or in samples/app-course-issues.md and samples/app-course-pr-scenarios.md, not in …

    line 55
  9. Distinctive:

    When fixing a scenario, prefer adding or preserving a focused test before changing app logic.

    line 57

≈ “Common” is an estimate: at least 1 in 5 of the 1,644 Copilot instructions 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
copilot-instructions.md

GitHub Copilot instructions

Use these instructions when working in this repository.

This is a beginner course repo for the GitHub Copilot app. The canonical sample is samples/book-app-web: a frontend-only book collection used to practice review, tests, browser preview, issues, and pull requests.

Do not edit chapter README files unless the user asks for chapter content changes. Keep changes small and beginner-readable.

Sample app

samples/book-app-web is a Vite, React, TypeScript, and Vitest app. It has no backend, database, or external API. Do not add those.

The UI lets learners search books by title or author, filter by genre and reading status, and inspect reading stats for the books currently shown.

Keep the stack as-is. Prefer small React components with clear props. Keep seed data in src/data/books.ts and CSS in src/styles/app.css. Use accessible labels for filters, regions, and empty states.

Typical files:

  • src/App.tsx: filter state and filterBooks
  • src/components/BookCard.tsx, BookFilters.tsx, ReadingStats.tsx
  • src/data/books.ts: seed data
  • src/styles/app.css
  • src/tests/filtering.test.tsx, src/tests/stats.test.tsx

Default behavior to preserve unless a training scenario says otherwise:

  • Search matches title and author without depending on letter case.
  • Reading stats (total, read, unread, favorites, average rating) come from the books currently shown after filters, not the unfiltered list.
  • Favorite count includes unread favorites.
  • Empty-state copy should mention changing the search term, genre, or reading status.

Use the current Node.js LTS. The app declares engines.node as ^20.19.0 || >=22.12.0. CI uses Node 22.

Validation

Always work from samples/book-app-web. If node_modules is missing (including in a new worktree), run npm install first.

npm install
npm test -- --run
npm run build
npm run dev -- --host 127.0.0.1 --port 5173
  • npm test -- --run runs Vitest once and exits. Pass --run through npm so Vitest does not stay in watch mode.
  • npm run build typechecks with tsc --noEmit, then builds with Vite.
  • Browser preview is http://127.0.0.1:5173. Confirm filter, stats, and empty-state behavior there, not only in chat.

CI for this sample is .github/workflows/book-app-web.yml (Book app web). It runs npm ci, npm test -- --run, and npm run build on pull requests that touch the sample.

Course scenarios

The default app on main should pass tests and build cleanly.

Keep intentional failing behavior in training branches or in samples/app-course-issues.md and samples/app-course-pr-scenarios.md, not in the default app.

When fixing a scenario, prefer adding or preserving a focused test before changing app logic. Do not weaken a failing test to make CI pass.

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.