copilot-repo-template: Instructions file for GitHub Copilot

.github/instructions/yaml.instructions.md

copilot-repo-template yaml.instructions.md is an instructions file for GitHub Copilot from franklesniak/copilot-repo-template. It costs 12,598 tokens per session, scanned A, original, MIT.

A set of rules for writing YAML configuration files, which are human-readable files commonly used to configure software and automated workflows. The rules emphasize explicit values, supported schemas, safe edits, and clear diffs.

In plain words
What is it for?
Use it when authoring or reviewing GitHub Actions, Azure Pipelines, pre-commit, linter, and other human-written YAML configuration files.
Why use it?
It helps prevent invalid or ambiguous YAML that could break workflows, tools, or application settings. It also clarifies when JSON is more suitable than YAML.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

This is franklesniak/copilot-repo-template's own configuration. It tells GitHub Copilot how to work on copilot-repo-template 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 copilot-repo-template configures →

Reuse

Borrowing it

Nothing to install: this file belongs to franklesniak/copilot-repo-template. 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/franklesniak/copilot-repo-template/main/.github/instructions/yaml.instructions.md
Clone the repo
git clone --depth 1 https://github.com/franklesniak/copilot-repo-template

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 copilot-repo-template yaml.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/franklesniak/copilot-repo-template/yaml/github.svg)](https://agentmods.dev/instructions/franklesniak/copilot-repo-template/yaml)
Your own site
<a href="https://agentmods.dev/instructions/franklesniak/copilot-repo-template/yaml"><img src="https://agentmods.dev/badge/instructions/franklesniak/copilot-repo-template/yaml/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 copilot-repo-template yaml.instructions.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/franklesniak/copilot-repo-template/yaml"><img src="https://agentmods.dev/badge/instructions/franklesniak/copilot-repo-template/yaml.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 12,598 This file is loaded in full into every session.
When invoked 12,598 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.12598 $0.12598
Opus 5.5 $0.05039 $0.05039
Sonnet 5.5 $0.02520 $0.02520
Haiku 4.5 $0.01260 $0.01260

Measured 1mo ago against content hash c2341d4c02b1, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

copilot-repo-template yaml.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 1mo 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/instructions/yaml.instructions.md · 609 lines

How it starts

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

YAML Writing Style

Version: 1.7.20260923.0

Metadata

  • Status: Active
  • Owner: Repository Maintainers
  • Last Updated: 2026-09-23
  • Scope: Defines authoring standards for all YAML files in this repository, including GitHub Actions workflows, Azure Pipelines YAML, pre-commit configuration, linter configuration, and any other human-authored YAML configuration. Does not cover JSON files (covered by the companion JSON guide, if present) or generated YAML artifacts that are owned by another tool's serializer.
  • Related: Repository Copilot Instructions

Purpose and Scope

YAML in this repository is the preferred format for human-authored configuration that benefits from comments, multi-line strings, and a forgiving syntax for editors (workflow files, pre-commit configs, linter configs, application config files committed to source control). JSON is preferred for strict machine interchange and for generated artifacts (lock files, schema documents, tool outputs, structured data exchanged between systems).

To keep YAML safe to edit, easy to diff, and portable across parsers, this repository adopts a conservative, tool-friendly subset of YAML 1.2. Authors MUST prefer explicit, unambiguous constructs over clever or compact YAML features that vary by parser.

Note: This document uses RFC 2119 keywords (MUST, MUST NOT, SHOULD, SHOULD NOT, MAY) to indicate requirement levels.

Quick Reference Checklist

  • [All] MUST use 2-space indentation; MUST NOT use tabs.
  • [All] MUST use block style by default; SHOULD NOT use flow style for non-trivial structures.
  • [All] MUST use lowercase true, false, and null; MUST NOT use yes/no/on/off (or capitalized variants) as booleans.
  • [All] MUST quote values that could be misparsed as booleans, nulls, numbers, dates, or YAML 1.1 truthy tokens.
  • [All] MUST quote version pins (for example, "3.13", "1.0") so they cannot be coerced to numbers.
  • [All] SHOULD use double quotes only when escape sequences are needed; SHOULD use single quotes for literal regexes and Windows paths.
  • [All] SHOULD use block scalars (|, >, |-, >-) for multi-line strings.
  • [All] SHOULD NOT use anchors, aliases, merge keys, custom tags, or multi-document files unless required and supported by the consumer.
  • [All] MUST NOT commit secrets in YAML.
  • [Actions] MUST apply least-privilege permissions: on GitHub Actions workflows.
  • [Actions] setup-* action with.*-version: inputs (for example, python-version, node-version, go-version, and dotnet-version) in workflow files under .github/workflows/ MUST resolve from checked-in release-line selectors and MUST NOT use a broad floating selector such as '3.x', 'latest', or '*'. The required granularity follows each ecosystem's release model: Python and Go MUST use major.minor (for example, "3.13" or "1.26"); Node.js MAY use major for an LTS line (for example, "24") or major.minor (for example, "24.17"); .NET MAY use the most specific stable SDK channel selector documented by actions/setup-dotnet, such as major.minor.x (for example, "10.0.x"); for other ecosystems, use the most specific stable release-line selector documented by the action's README.
  • [Actions] actions/setup-node MAY instead use the guarded exact Node.js version-file exception. Its file, precedence, exactness, and verification conditions all apply.
  • [AzurePipelines] Repositories that use Azure Pipelines language/runtime/SDK tool-installer tasks MUST explicitly provide checked-in compliant selectors for in-scope version or versionSpec inputs and MUST NOT rely on broad task defaults, queue-time-only values, "latest", bare "*", comparator/operator ranges, or composite ranges.
  • [AzurePipelines] Azure Pipelines YAML MUST pass retained host-neutral local YAML hooks, and pipeline schema/branch-policy validation MUST be treated as Azure DevOps Services-backed validation rather than actionlint.
  • [Actions] Documentation/navigation comments above uses: lines MUST use versionless upstream URLs; the uses: line remains the authoritative action version.
  • [Actions] Comments documenting where a GitHub Actions with: tool-version input is pinned, or that such a value must stay aligned across files, SHOULD describe the membership criterion instead of a hardcoded workflow-file list; if a concrete file list is included for convenience, it SHOULD be labeled as a non-authoritative snapshot.
  • [Actions] Optional workflow_dispatch string inputs that also need defaults on non-dispatch triggers SHOULD derive the effective value from a single source, using a fallback only in keys where the needed contexts are available, rather than duplicating an unmarked input default: and env: literal.
  • [Schemas] Schema-backed YAML MUST pass any schema validator wired into pre-commit or CI; where no validator is wired up for a particular file family, authors SHOULD run the appropriate validator locally before committing.
  • [Naming] YAML filenames SHOULD be lowercase kebab-case; GitHub Actions workflows MUST use the .yml extension; project-owned YAML MUST choose .yml or .yaml and use it consistently.
  • [IssueForms] In .github/ISSUE_TEMPLATE/*.yml, repo-internal targets in both issue-form value: Markdown links (e.g., bug_report.yml) and config.yml contact_links url: fields MUST use absolute GitHub URLs such as https://github.com/<owner>/<repo>/blob/HEAD/<path> for file links; relative paths MUST NOT be used. Template repositories MAY ship unresolved live URLs using literal OWNER/REPO; other placeholder spellings MUST NOT serve that live role. Angle-bracket URL shapes here are schematic after substitution, and the final rendered URL still needs the real host, owner, and repository. The two file types fail for different reasons: value: Markdown blocks render at /{owner}/{repo}/issues/new?... so relative paths resolve against that URL and 404, while contact_links url: fields are not Markdown at all — GitHub validates them as absolute URLs at form-load time and rejects relative values outright.

Read the full file on GitHub · 609 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. 1mo ago Changed · +117 lines · +2,571 tokens per session c2341d4c02b1
  2. 2mo ago First seen · 492 lines · 10,027 tokens per session scan A 866a2868f1e1

Subscribe to this mod's changes

copilot-repo-template yaml.instructions.md is an instructions file published in the GitHub repository franklesniak/copilot-repo-template (9 stars, last pushed 5d ago), licensed MIT. It adds 12,598 tokens to every session, about $0.0504 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-08-31.

Related

Other instructions, from other repositories

vscode buildNext.instructions.md

Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).

microsoft/vscode · 9,715 tokens

next.js AGENTS.md

AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.

vercel/next.js · 7,461 tokens

vscode oss-third-party-notices.instructions.md

Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, cache eligibility and rollout and applying the notice (cutover).

microsoft/vscode · 5,262 tokens

langchain AGENTS.md

AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.

langchain-ai/langchain · 4,680 tokens

vscode copilot-instructions.md

Copilot instructions for microsoft/vscode, covering vs code copilot instructions, project overview, root folders, core architecture (src/ folder) and built-in extensions (extensions/ folder).

microsoft/vscode · 2,750 tokens

deepseek-harness AGENTS.md

AGENTS.md instructions for deepseek-ai/deepseek-harness, covering agents.md, pre-stable apis and released session data, repository layout, commands and host sandbox failures.

deepseek-ai/deepseek-harness · 4,261 tokens