Top 200 ReposEXPLORER
Browse agents, categories and pages
Back to results
Planned, not doneThe source describes an intention, not a finished result.

Build a Website API and Backend With Instruction Files

Overview

Describe a website API in a repository instructions file, then have GitHub Copilot cloud agent plan and write the backend in a pull request you review.

Problem or Objective

More in Coding and Code Review

AI Agents and Models

Tools and Integrations

Tools
GitHub Copilot · GitHub
Prerequisites
A GitHub repository, a paid Copilot plan for the cloud experience from 28 October 2026 subject to organization and enterprise policies, and a local setup where you can run the tests.

How It Works

Create a file named .github/copilot-instructions.md in the repository and write it in plain Markdown: the language and framework, the folder layout, the data the API handles, how to install, run and test it locally, and rules such as validating every input and keeping credentials out of the code. Add a short specification of the endpoints, with example requests, error cases and what the server setup should contain. Read both yourself, then ask Copilot cloud agent to research the repository and propose a plan. Approve or correct that plan before you ask it to implement the work, since it edits files and runs tests in a cloud environment. Review the resulting diff, run the tests on your own machine, and merge or deploy only when you decide to.

Implementation Workflow

Steps assembled from the agents, tools and prompt of this entry. Adapt them to your own setup.

  1. Choose the agentSet up GitHub Copilot.
  2. Connect the toolsConnect the tools this workflow relies on: GitHub Copilot, GitHub.
  3. Check the prerequisitesA GitHub repository, a paid Copilot plan for the cloud experience from 28 October 2026 subject to organization and enterprise policies, and a local setup where you can run the tests.
  4. Gather your detailsCollect what the prompt asks for: Path of your endpoint specification, What this first pass covers, Backend framework to use.
  5. Run the starter promptPaste the starter prompt below into GitHub Copilot and adapt it to your case.
  6. Check against the documentationCompare what you get with the documentation at docs.github.com before you rely on it.

Practical Starter Prompt: Plan and build the API from the instructions file

Fill the fields to adapt the prompt. Empty fields stay as visible [placeholders].

Preview
Read .github/copilot-instructions.md and [Path of your endpoint specification]. Research this repository, then give me a plan for building [What this first pass covers] with [Backend framework to use], including the files you would add, the server setup, and the tests for success and error cases. Stop after the plan and wait for my approval. Once I approve, implement it, run the tests and linters, and open a pull request that lists anything you assumed. Do not add real credentials, do not deploy, and do not merge.

Approve the plan before any implementation starts, and treat the pull request as a proposal: you run it, review it and decide whether it is merged or deployed.

Expected Results and Benefits

This is a suggested workflow, not a reported result. The points below are what the cited documentation says the tools can do.

This is a suggested workflow, not a reported outcome. GitHub documents repository custom instructions in a copilot-instructions.md file and a cloud agent that plans, edits files and runs tests and linters. The pages do not promise that a given specification yields a correct or secure backend, and they do not cover hosting your server.

Limitations and Considerations

GitHub says that from 28 October 2026 the new cloud experience on GitHub.com and GitHub Mobile is for paid Copilot plans, subject to organization and enterprise policies, and that repository owners and administrators can disable Copilot for particular repositories. Do not count on an instructions file to enforce a rule: check authentication, input handling and secrets yourself in review. Check your usage allowance before long sessions. Results depend on your setup and were not independently reproduced by Top 200 Repos.

Sources

  1. Adding repository custom instructions for GitHub Copilot - GitHub Docs (opens in a new tab)

    Project documentation · docs.github.com · Undated · Source checked 2 Dec 2026, 16:09 UTC

    What this source supports
    • These are specified in a copilot-instructions.md file in the .github directory of the repository.
    • Add your custom instructions in natural language, using Markdown format.
  2. GitHub Copilot on GitHub.com and GitHub Mobile - GitHub Docs (opens in a new tab)

    Project documentation · docs.github.com · Undated · Source checked 2 Dec 2026, 13:21 UTC

    What this source supports
    • Copilot can research a repository, plan changes, and implement them in the background.
    • It can edit files and run tests and linters in a cloud development environment, rather than your local IDE.
    • Starting October 28, 2026, the new Copilot in the cloud experience on GitHub.com and GitHub Mobile is available to users with a paid Copilot plan, subject to applicable organization and enterprise policies.
Report a problem

More with GitHub Copilot

Planned, not done

Request Copilot Corrections on an Existing Pull Request

Open GitHub Copilot from an existing pull request, point it at that pull request's branch and ask for specific corrections, then confirm where the commits landed before asking for review.

docs.github.com
Planned, not done

Update a Package Dependency Through a Copilot PR

Delegate a package upgrade to GitHub Copilot's coding agent, then review the pull request it prepares, checking the version change, the lockfile and the test results before you merge anything.

docs.github.com
Planned, not done

Summarize a Client Repository Within Access Boundaries

Ask GitHub Copilot to explain a client's private repository in a short orientation summary, after confirming which account and permissions you are allowed to use, without changing any code.

docs.github.com

View all: GitHub Copilot