power-platform-github-copilot-kit: Instructions file for GitHub Copilot

.github/instructions/clean-code.instructions.md

power-platform-github-copilot-kit clean-code.instructions.md is an instructions file for GitHub Copilot from calsora/power-platform-github-copilot-kit. It costs 1,156 tokens per session, scanned A, original, MIT.

A shared set of coding guidelines for HTML, JavaScript, TypeScript, and C# projects. It focuses on readable structure, consistent naming, simple designs, maintainability, and fixing underlying causes of problems.

In plain words
What is it for?
Use it while designing or reviewing code to improve naming, structure, testability, dependency handling, asynchronous logic, and long-term maintainability.
Why use it?
It gives projects a common quality baseline, making code easier to review and safer to change. The guidance also discourages unnecessary complexity and hidden dependencies.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

This is calsora/power-platform-github-copilot-kit's own configuration. It tells GitHub Copilot how to work on power-platform-github-copilot-kit 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 power-platform-github-copilot-kit configures →

Reuse

Borrowing it

Nothing to install: this file belongs to calsora/power-platform-github-copilot-kit. 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/calsora/power-platform-github-copilot-kit/main/.github/instructions/clean-code.instructions.md
Clone the repo
git clone --depth 1 https://github.com/calsora/power-platform-github-copilot-kit

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 power-platform-github-copilot-kit clean-code.instructions.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/calsora/power-platform-github-copilot-kit/clean-code/github.svg)](https://agentmods.dev/instructions/calsora/power-platform-github-copilot-kit/clean-code)
Your own site
<a href="https://agentmods.dev/instructions/calsora/power-platform-github-copilot-kit/clean-code"><img src="https://agentmods.dev/badge/instructions/calsora/power-platform-github-copilot-kit/clean-code/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 power-platform-github-copilot-kit clean-code.instructions.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/calsora/power-platform-github-copilot-kit/clean-code"><img src="https://agentmods.dev/badge/instructions/calsora/power-platform-github-copilot-kit/clean-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,156 This file is loaded in full into every session.
When invoked 1,156 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.01156 $0.01156
Opus 5.5 $0.00462 $0.00462
Sonnet 5.5 $0.00231 $0.00231
Haiku 4.5 $0.00116 $0.00116

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

Security

Grade A, and why

power-platform-github-copilot-kit clean-code.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 2mo 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/clean-code.instructions.md · 146 lines

How it starts

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

Clean Code Instructions

This guidance summarizes essential clean code principles for HTML, JavaScript, TypeScript, and C# projects. Use it as a shared code quality baseline across projects.

Why clean code matters

  • Clean code is easy to understand, review, and maintain.
  • It reduces defects and makes changes safer.
  • It keeps teams aligned around consistent naming, structure, and intent.

General rules

  1. Follow standard conventions for the language and framework.
  2. Keep it simple. Simpler solutions are easier to read and change.
  3. Leave code cleaner than you found it.
  4. Find and fix root causes, not just symptoms.

Design rules

  1. Keep configurable data at high levels.
  2. Prefer polymorphism or strategy patterns over long if/else or switch chains.
  3. Keep concurrency and async control logic separate from business logic.
  4. Avoid over-configurability and unnecessary indirection.
  5. Use dependency injection where it improves testability and decoupling.
  6. Follow the Law of Demeter: use only direct dependencies.

Understandability tips

  1. Be consistent in style, naming, and structure.
  2. Use explanatory variables and clear expressions.
  3. Encapsulate boundary conditions and edge-case logic.
  4. Prefer domain-specific value objects over raw primitives.
  5. Avoid hidden dependencies between methods or modules.
  6. Avoid negative conditionals when a positive form is clearer.

Names rules

  1. Choose descriptive, unambiguous names.
  2. Make meaningful distinctions between similar concepts.
  3. Use pronounceable names.
  4. Use searchable names that are easy to find in the codebase.
  5. Replace magic numbers with named constants.
  6. Avoid encoding type or prefix information in names.

Functions and methods

  1. Keep functions small.
  2. Do one thing per function.
  3. Use descriptive names.
  4. Prefer fewer arguments.
  5. Avoid side effects whenever possible.
  6. Don’t use flag arguments; split behavior into separate functions.

Comments

  1. Prefer self-explanatory code to comments.
  2. Don’t add redundant comments.
  3. Avoid noisy comments that state the obvious.
  4. Don’t use closing-brace comments.
  5. Don’t leave commented-out code in the repository.
  6. Use comments to explain intent, clarify decisions, or warn about consequences.

Read the full file on GitHub · 146 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. 2mo ago First seen · 146 lines · 1,156 tokens per session scan A 03538b74279b

Subscribe to this mod's changes

power-platform-github-copilot-kit clean-code.instructions.md is an instructions file published in the GitHub repository calsora/power-platform-github-copilot-kit (6 stars, last pushed 27d ago), licensed MIT. It adds 1,156 tokens to every session, about $0.0046 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

power-platform-github-copilot-kit clean-code.instructions.md compared with instructions from other repositories

power-platform-github-copilot-kit clean-code.instructions.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
power-platform-github-copilot-kit clean-code.instructions.mdcalsora/power-platform-github-copilot-kitInstructions file627d agoMITA1,156GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode