framework: Instructions file for GitHub Copilot

.github/instructions/phenix.instructions.md

framework phenix.instructions.md is an instructions file for GitHub Copilot from phenixphp/framework. It costs 413 tokens per session, scanned A, original, MIT.

A set of project-specific instructions for the PhenixPHP framework, a PHP framework for building API applications. It tells a coding agent about the project’s code layout, technologies, and coding conventions.

In plain words
What is it for?
Use it when developing or maintaining this PHP framework project, especially its source code, database layer, Redis cache, Composer setup, and PestPHP tests.
Why use it?
It gives the agent the background needed to make changes that fit the existing project. It also records practices such as PSR-12 formatting, dependency injection, type hints, and unit tests.

Instructions file for GitHub Copilot

Written for GitHub Copilot: a Copilot instructions file.

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

Reuse

Borrowing it

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

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 framework phenix.instructions.md

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

Your own site · 80×15
<a href="https://agentmods.dev/instructions/phenixphp/framework/phenix"><img src="https://agentmods.dev/badge/instructions/phenixphp/framework/phenix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 413 This file is loaded in full into every session.
When invoked 413 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.00413 $0.00413
Opus 5.5 $0.00165 $0.00165
Sonnet 5.5 $0.00083 $0.00083
Haiku 4.5 $0.00041 $0.00041

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

Security

Grade A, and why

framework phenix.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/phenix.instructions.md · 50 lines

What it actually says

Coding standards, domain knowledge, and preferences that AI should follow.

  • Use clear and descriptive variable names.
  • Follow the PSR-12 coding style guide.
  • Write unit tests for all new features and bug fixes.
  • Keep functions and methods small and focused on a single task.
  • Use type hints and return types for all functions and methods.
  • Avoid using global variables.
  • Use dependency injection instead of singletons.
  • Write code that is easy to read and understand.
  • Keep the codebase organized and modular.

Context

  • This project is a framework to build API applications.
  • The primary language used is PHP.
  • This framework is based on Amphp version 3, a high-performance asynchronous PHP framework.
  • The application uses a MySQL, PostgreSQL, and SQLite database for data storage.
  • The application uses Redis for caching.
  • The application uses PestPHP for unit testing.
  • The application uses Composer for dependency management.

Paths

  • Application code is located in the src directory.
  • Tests are located in the tests directory.

Framework components

  • Crypto: src/Crypto
  • Database: src/Database
  • Query Builder: src/Database/QueryBuilder
  • Filesystem: src/Filesystem
  • Logging: src/Logging
  • Mail: src/Mail
  • Queue: src/Queue
  • Routing: src/Routing
  • Session: src/Session
  • Tasks: src/Tasks
  • Validation: src/Validation
  • Views: src/Views

Current feature under development

  • The current feature under development is the src/Queue component, which provides a unified API for managing background tasks processing.
  • The src/Queue uses queuable task src/Queue/QueuableTask for defining tasks that can be processed in the background.
  • The src/Queue component supports multiple queue drivers, including redis, database, and parallel.
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 · 50 lines · 413 tokens per session scan A 7c874afc5075

Subscribe to this mod's changes

framework phenix.instructions.md is an instructions file published in the GitHub repository phenixphp/framework (13 stars, last pushed 1mo ago), licensed MIT. It adds 413 tokens to every session, about $0.0017 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-09-02.

Related

framework phenix.instructions.md compared with instructions from other repositories

framework phenix.instructions.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
framework phenix.instructions.mdphenixphp/frameworkInstructions file131mo agoMITA413GitHub 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