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.
npx agentmods add instructions/thorsten/phpmyfaq/agents-mdgit clone --depth 1 https://github.com/thorsten/phpMyFAQWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.03207 | $0.03207 |
| Opus 5 | $0.01604 | $0.01604 |
| Sonnet 5 | $0.00641 | $0.00641 |
| Haiku 4.5 | $0.00321 | $0.00321 |
Grade E, and why
phpMyFAQ AGENTS.md scanned grade E with 3 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 2d 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.
Downloads and executes remote codehighSupply chain
curl | sh runs whatever the server returns today, which is not necessarily what it returned when this was reviewed.
curl -fsSL https://get.pnpm.io/install.sh | sh - Recursive force deletehighDestructive command
rm -rf with a variable or a broad path is one typo away from removing the wrong tree.
5. Clear route cache (`rm -rf phpmyfaq/cache/routes`) after adding or modifying routes. Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -s https://getcomposer.org/installer | php How it starts
The opening of the file, as written. The whole thing — 294 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Project Overview
This project is a web application that allows users to manage FAQs. It is built using HTML5, CSS, TypeScript, and PHP and supports various databases for data storage.
Folder Structure
/docs: Contains documentation for the project, including API specifications and user guides./phpmyfaq/: Contains the source code for the frontend./phpmyfaq/admin: Contains the source code for the admin./phpmyfaq/admin/assets: Contains the TypeScript and SCSS source files for the admin frontend. The tests are located in the same directory as the source files to ensure they are always updated together./phpmyfaq/assets: Contains the TypeScript and SCSS source files for the frontend. The tests are located in the same directory as the source files to ensure they are always updated together./phpmyfaq/src/phpMyFAQ: Contains the source code for the PHP backend./tests: Contains PHPUnit v13 based unit and integration tests./tests/e2e: Contains the Playwright based end-to-end tests.
Development Setup
Download Composer and install PHP dependencies
curl -s https://getcomposer.org/installer | php
php composer.phar install
Install PNPM and install TypeScript dependencies
curl -fsSL https://get.pnpm.io/install.sh | sh -
pnpm install
pnpm build
Tool locations
Composer installs dependencies to phpmyfaq/src/libs (not vendor/).
CLI tools therefore live in phpmyfaq/src/libs/bin/ (phpunit, mago, rector, etc.).
Tech stack, libraries, and frameworks
- HTML 5, SCSS, TypeScript, Bootstrap, and Bootstrap Icons for the frontend. TypeScript in strict mode.
- PHP 8.4 and later with Symfony components for the backend.
- MySQL, MariaDB, PostgreSQL, SQLite3, and MS SQL for data storage. This option is configurable.
- Elasticsearch and OpenSearch for search functionality. This option is configurable.
- Apache, Nginx, IIS, and FrankenPHP as supported web servers. This option is configurable.
- It uses PNPM as the package manager for JavaScript/TypeScript dependencies.
- It uses Composer as the package manager for PHP dependencies.
- Twig as the templating engine.
- PHPUnit v13 for PHP-based unit testing, vitest for TypeScript-based unit testing.
- Docker for containerization.
- GitHub Actions for CI/CD.
- Mago for code quality and static analysis.
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.
- 2d ago First seen · 294 lines · 3,207 tokens per session scan E e7ac06c0a73d
phpMyFAQ AGENTS.md is an instructions file published in the GitHub repository thorsten/phpMyFAQ (619 stars, last pushed 2d ago), licensed MPL-2.0. It adds 3,207 tokens to every session, about $0.0160 per session on Opus 5. A static security scan graded it E with 3 findings (downloads and executes remote code, recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other instructions, from other repositories
coolify AGENTS.md
Instructions for coollabsio/coolify, covering agents.md, project overview, design reference, development environment and start dev environment (uses docker-compose.dev.yml).
whodb AGENTS.md
Instructions for clidey/whodb, covering whodb development guide, git commits — hard rule, terminology, non-negotiable rules and behavioral guidelines.
graphjin AGENTS.md
Instructions for dosco/graphjin, covering graphjin agent guide, architectural overview, directory structure & responsibilities, build commands and coding guidelines.
whodb CLAUDE.md
Instructions for clidey/whodb, a project described as: Where data access meets operational intelligence.
FlyEnv AGENTS.md
Instructions for xpf0000/FlyEnv, covering flyenv - ai agent development guide, project overview, technology stack, core technologies and additional libraries.
Chat2DB AGENTS.md
AGENTS.md instructions for OtterMind/Chat2DB, covering chat2db community agent contract, context, product invariants, repository map and structural code navigation.