phpMyFAQ AGENTS.md

Project-specific instructions for phpMyFAQ, a web application for managing frequently asked questions. They describe its PHP and TypeScript code, folders, tests, and setup requirements.

In plain words
What is it for?
Use them to navigate the frontend, admin area, PHP backend, documentation, and test suites, then set up the project with Composer and pnpm.
Why use it?
They give a coding agent the project layout and the steps needed to install its PHP and frontend dependencies. This reduces guesswork when making or testing changes.

Instructions file for CodexOpenCode

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.

agentmods
npx agentmods add instructions/thorsten/phpmyfaq/agents-md
Clone the repo
git clone --depth 1 https://github.com/thorsten/phpMyFAQ

Made for: Codex, OpenCode.

Per session 3,207 This file is loaded in full into every session.
When invoked 3,207 The same file — it is already loaded in full.
Security scan E 3 findings. Scan, not verified.
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 $0.03207 $0.03207
Opus 5 $0.01604 $0.01604
Sonnet 5 $0.00641 $0.00641
Haiku 4.5 $0.00321 $0.00321

Measured 2d ago against content hash e7ac06c0a73d, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

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
AGENTS.md · 294 lines

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.

Read the full file on GitHub · 294 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. 2d ago First seen · 294 lines · 3,207 tokens per session scan E e7ac06c0a73d

Subscribe to this mod's changes

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.