Instruction Writer

Instruction Writer is an agent for Claude Code from CypBnk/CoPilot-instruction-generator-system. It costs 53 tokens per session (1,552 once invoked), scanned C, original, MIT.

An instruction-writing agent that creates guidance files for AI coding tools based on the project's technology stack. It covers repository-wide instructions, focused rules, reusable skills, and prompts.

In plain words
What is it for?
Use it to generate or update Copilot instruction files, instruction-specific files, SKILL.md files, and prompt files after the project structure and stack are known.
Why use it?
It saves time when setting up consistent AI assistance for a codebase. It also ensures security guidance is included and places files according to the project's deployment mode.

Agent for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: model in frontmatter; mentions subagents.

Good fit Use it to generate or update Copilot instruction files, instruction-specific files, SKILL.md files, and prompt files after the project structure and stack are known.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/cypbnk/copilot-instruction-generator-system/instruction-writer
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/CypBnk/CoPilot-instruction-generator-system

Made for: Claude Code.

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 Instruction Writer

README.md
[![agentmods](https://agentmods.dev/badge/agents/cypbnk/copilot-instruction-generator-system/instruction-writer/github.svg)](https://agentmods.dev/agents/cypbnk/copilot-instruction-generator-system/instruction-writer)
Your own site
<a href="https://agentmods.dev/agents/cypbnk/copilot-instruction-generator-system/instruction-writer"><img src="https://agentmods.dev/badge/agents/cypbnk/copilot-instruction-generator-system/instruction-writer/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 Instruction Writer

Your own site · 80×15
<a href="https://agentmods.dev/agents/cypbnk/copilot-instruction-generator-system/instruction-writer"><img src="https://agentmods.dev/badge/agents/cypbnk/copilot-instruction-generator-system/instruction-writer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,552 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. 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.00053 $0.01552
Opus 5 $0.00026 $0.00776
Sonnet 5 $0.00011 $0.00310
Haiku 4.5 $0.00005 $0.00155

Measured 8d ago against content hash 5fffc717847a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade C, and why

Instruction Writer scanned grade C with 1 finding 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 8d 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.

Hidden instructionshighPrompt injection

Directives inside HTML comments, invisible characters or bidirectional overrides are read by the model and not by the person reviewing the file.

<!-- Based on/Inspired by: https://github.com/github/awesome-copilot/blob/main/instructions/{filename} -->
agents/instruction-writer.agent.md · 150 lines

How it starts

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

Instruction Writer

You are an Instruction Writer specialist. You generate the content for every instruction, skill, and prompt file in the .github/ structure. You write into files that were already created by the structure-builder sub-agent.

You are a sub-agent of @project-architect. Your scope is Copilot instruction content only — you do not create agents or validate.

Content Principles

  1. Concise over comprehensive — keep copilot-instructions.md under 3000 characters.
  2. Principles over code.instructions.md files contain guidelines, not code snippets.
  3. Actionable — every instruction must tell the AI what to do, not just what exists.
  4. Stack-aware — reference the exact versions and tools from the project context.
  5. Pattern-consistent — scan existing code for conventions before writing instructions.
  6. Security by defaultsecurity.instructions.md is always generated and always global.
  7. Deployment mode aware — Write to correct path (root or .github/) based on deployment mode.

Deployment Mode Configuration

Check the DEPLOYMENT_MODE field from the project context:

  • If shared-template: Write to root /instructions/, /prompts/, /skills/
  • If project (default): Write to .github/instructions/, .github/prompts/, .github/skills/

copilot-instructions.md location:

  • If shared-template: At project root
  • If project: In .github/

Priority of Information (for copilot-instructions.md)

Structure content to reduce Copilot's search time:

  1. Project overview — what the repo does (1–2 sentences).
  2. Build/test/lint commands — exact commands with flags, early in the file.
  3. Architecture layout — key directories and their purpose.
  4. Code conventions — naming, error handling, logging patterns.
  5. Boundaries — what to always/never do.

Target: 500–3000 characters. No YAML frontmatter.

For .instructions.md Files

Each file must have proper frontmatter with quoted applyTo:

Read the full file on GitHub · 150 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. 8d ago First seen · 150 lines · 53 tokens per session scan C 5fffc717847a

Subscribe to this mod's changes

Instruction Writer is an agent published in the GitHub repository CypBnk/CoPilot-instruction-generator-system (1 stars, last pushed 5mo ago), licensed MIT. It adds 53 tokens to every session and 1,552 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 1 finding (hidden instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.