cli: Instructions file for GitHub Copilot

.github/copilot-instructions.md

cli copilot-instructions.md is an instructions file for GitHub Copilot from taskless/cli. It costs 706 tokens per session, scanned A, original, MIT.

Repository-wide instructions for automated code review, including special checks for GitHub Actions workflows and exposed credentials. GitHub Actions are automated jobs that build, test, or deploy code.

In plain words
What is it for?
Use them when reviewing code, especially workflow files under `.github/workflows/`, shell commands containing untrusted input, and changes involving tokens or deployment access.
Why use it?
They help reviewers catch unsafe workflow changes, command injection, and accidental exposure of tokens or other secrets. They also require review comments to be specific and tied to code locations.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

This is taskless/cli's own configuration. It tells GitHub Copilot how to work on cli itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything cli configures →

Reuse

Borrowing it

Nothing to install: this file belongs to taskless/cli. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/taskless/cli/main/.github/copilot-instructions.md
Clone the repo
git clone --depth 1 https://github.com/taskless/cli

Made for: GitHub Copilot.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for cli copilot-instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/taskless/cli/copilot-instructions/github.svg)](https://agentmods.dev/instructions/taskless/cli/copilot-instructions)
Your own site
<a href="https://agentmods.dev/instructions/taskless/cli/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/taskless/cli/copilot-instructions/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for cli copilot-instructions.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/taskless/cli/copilot-instructions"><img src="https://agentmods.dev/badge/instructions/taskless/cli/copilot-instructions.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 706 This file is loaded in full into every session.
When invoked 706 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00706 $0.00706
Opus 5.5 $0.00282 $0.00282
Sonnet 5.5 $0.00141 $0.00141
Haiku 4.5 $0.00071 $0.00071

Measured 11d ago against content hash 5a0a34fa9fcc, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cli copilot-instructions.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.github/copilot-instructions.md · 51 lines

How it starts

The opening of the file, as written. The whole thing — 51 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Copilot review instructions

Repo-wide guidance for automated code review. Prioritize correctness and security over style. Be specific and actionable; cite the file and line.

GitHub Actions — credential & secret safety (review with extra scrutiny)

Workflows under .github/workflows/ can hold high-value credentials (GITHUB_TOKEN, NPM_TOKEN, OIDC identities, deploy keys). Treat any change to them as security-sensitive and flag the following:

  • pull_request_target + PR-controlled code or secrets. Flag any pull_request_target (or workflow_run) workflow that checks out the PR head and then builds/tests it, or exposes secrets to it. A fork PR can then run its own code with the base repo's token. Prefer pull_request (forks get a read-only token and no secrets).
  • Untrusted ${{ }} interpolated into run:. Flag any expression carrying attacker-controllable text — github.event.pull_request.title/.body, .head_commit.message, .head_ref/branch names, issue/comment/review bodies — substituted directly into a shell run: step. That is command injection. Require it be passed via env: and referenced as a quoted "$VAR", or handled in actions/github-script via process.env.
  • Credentials exposed alongside untrusted content. Flag a job that holds a publish/deploy secret AND processes PR- or contributor-authored content (changeset text, PR bodies, uploaded artifacts). Prefer splitting into a credential-free job that handles untrusted content and a separate credentialed job that only runs reviewed, merged source.
  • Over-broad or implicit permissions:. Prefer an explicit least-privilege permissions: block over relying on the repo/org default token scope, which varies by settings and may grant more than the job needs. Flag any grant not justified by the job — call out contents: write, id-token: write, packages: write, actions: write — and prefer setting permissions per job.
  • Unpinned actions. In any workflow that touches secrets or OIDC, flag third-party actions pinned to a tag or branch (@v4, @main) instead of a full commit SHA.
  • Lifecycle scripts under a live credential. Flag dependency installs that run lifecycle scripts (no --ignore-scripts) in a job that holds a publish token or OIDC identity — a malicious/compromised dependency could exfiltrate it. Prefer --ignore-scripts + an explicit, reviewed build step.
  • Long-lived stored tokens. Where a registry supports it (e.g. npm trusted publishing), prefer short-lived OIDC over a stored NPM_TOKEN/PAT, and flag new long-lived secrets that could be replaced by OIDC.

Read the full file on GitHub · 51 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 51 lines · 706 tokens per session scan A 5a0a34fa9fcc

Subscribe to this mod's changes

cli copilot-instructions.md is an instructions file published in the GitHub repository taskless/cli (6 stars, last pushed today), licensed MIT. It adds 706 tokens to every session, about $0.0028 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-10-02.

Related

Other instructions, from other repositories