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

Use a Specification for Backend Auth and Webhooks

Overview

Write a short specification for one authenticated endpoint and its webhook, have GitHub Copilot plan and implement it with tests on a branch, and merge only after your own checks.

Problem or Objective

More in Coding and Code Review

AI Agents and Models

Tools and Integrations

Tools
GitHub Copilot
Prerequisites
A GitHub repository you can write to. 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.

How It Works

1. Add a specification file to the repository: the endpoint, the authentication rule, the webhook payload and how its sender is verified, the failure responses and the test cases you expect. 2. Create .github/copilot-instructions.md saying how to build and test the project and that only test credentials may be used. 3. Ask Copilot to research the repository and plan the change against the specification, and correct the plan before asking for implementation. 4. Have it implement the change with a test for each requirement, for example a request without credentials, a valid test credential, a webhook that fails verification and a repeated delivery. 5. Tell it not to open a pull request yet; review the proposed changes, ask for fixes, then request the pull request. 6. Run the tests yourself, compare the diff with each line of the specification, and merge by hand.

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.
  3. Check the prerequisitesA GitHub repository you can write to. 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.
  4. Gather your detailsCollect what the prompt asks for: Path to your specification, Command that runs your tests.
  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 Auth and Webhooks From a Spec

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

Preview
Read [Path to your specification] in this repository. First research the code and give me a plan that maps every numbered requirement to the files you would change and the test that will prove it, and list anything the specification leaves unclear. Wait for my approval. Then implement on a branch, use only test values, run [Command that runs your tests] and report results per requirement. Do not create a pull request until I have reviewed the changes and asked for one, and do not merge, deploy or call any real external service.

You approve the plan, review the changes before asking for a pull request, run the tests yourself and merge by hand.

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's pages say Copilot can research a repository, plan and implement changes, run tests in a cloud development environment and wait with a pull request while you review. They do not describe this endpoint, and they warn that its code can be incorrect or insecure.

Limitations and Considerations

Authentication and webhook verification need a human security review: GitHub says Copilot output can contain security vulnerabilities. Never put production secrets in the specification, instructions or tests. Check which usage allowance and costs apply to your plan, and point test webhooks at a test environment. Results depend on your setup and were not independently reproduced by Top 200 Repos.

Sources

  1. 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.
    • You can review the proposed changes and ask for refinements before creating a pull request, or request a pull request in your prompt.
    • Copilot can produce incorrect or suboptimal code, including code that contains security vulnerabilities.
  2. 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
    • In the root of your repository, create a file named .github/copilot-instructions.md .
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