wp-react-kit AGENTS.md

Repository guidance for an AI coding agent working on a WordPress plugin with a React administration screen, a PHP REST API, and a public job board.

In plain words
What is it for?
Use it when changing job-posting features, the WordPress administration app, REST endpoints, Gutenberg blocks, or the project's JavaScript and PHP files.
Why use it?
It gives the agent the project map, naming conventions, and checks needed to make changes in the right places and catch build or PHP errors.

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/maniruzzamanakash/wp-react-kit/agents-md
Clone the repo
git clone --depth 1 https://github.com/ManiruzzamanAkash/wp-react-kit

Made for: Codex, OpenCode.

Per session 2,820 This file is loaded in full into every session.
When invoked 2,820 The same file — it is already loaded in full.
Security scan A 0 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.02820 $0.02820
Opus 5 $0.01410 $0.01410
Sonnet 5 $0.00564 $0.00564
Haiku 4.5 $0.00282 $0.00282

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

Security

Grade A, and why

wp-react-kit AGENTS.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 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.

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.

AGENTS.md · 235 lines

How it starts

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

AGENTS.md

Guidance for any AI coding agent (Cursor, Claude Code, Codex, Copilot, etc.) working in this repository. CLAUDE.md defers to this file.

Project

WP React Kit / "Job Place" — a WordPress plugin with a React admin UI (src/) backed by a PHP REST API (includes/). It manages job postings (CRUD, publish/draft, dashboard stats) inside wp-admin, and ships a public job board built with Gutenberg blocks and the Interactivity API.

  • Text domain: jobplace
  • PHP namespace root: Akash\JobPlace (PSR-4 → includes/)
  • REST namespace: job-place/v1
  • Block namespace: wrc/* (e.g. wrc/jobs-list, wrc/job-page)
  • Build output: build/ (committed-ignored; produced by @wordpress/scripts)

Commands

npm run build        # Production build (webpack) → build/
npm run start        # Watch/dev build
npm run test:unit    # Jest unit tests (jest-unit.config.js)
npm run makepot      # Regenerate languages/jobplace.pot
php -l <file>        # Lint a PHP file

After editing src/, run npm run build and confirm it compiles. After editing PHP, run php -l on changed files.

Directory map

job-place.php                 # Bootstrap: DI container, hooks, activation
includes/                     # PHP (PSR-4: Akash\JobPlace\*)
  Abstracts/                  # BaseModel, RESTController, DBMigrator
  Admin/                      # Admin menu registration
  Assets/Manager.php          # Enqueues scripts/styles (incl. DataViews CSS)
  Blocks/                     # PatternRegistry, BlockTemplatesService, EditorData
  Common/Keys.php             # Option-name constants
  Databases/
    Migrations/               # dbDelta schemas (Jobs, JobType, Company, …)
    Seeder/                   # Demo data
  Jobs/                       # Domain: Job model, JobStatus, Manager (queries)
  REST/                       # Controllers + Api.php (route registry)
  Routing/                    # Job detail permalinks + template router
  Setup/                      # Installer, Upgrader, PageSeeder
  Common/Settings.php         # Global plugin settings (option jobplace_settings)
  WordPress/Pages/            # PageService (default Jobs page)
  Traits/                     # InputSanitizer, Queryable
  blocks-interactivity.php    # Interactivity API script module registration
src/                          # React/TypeScript admin app + block sources
  index.tsx                   # Entry: mounts <App/> into #jobplace
  App.tsx                     # HashRouter + routes; runs useMenuFix
  routes/                     # Route table (path → page component)
  pages/                      # Route pages (HomePage, jobs/JobsPage, …)
  components/                 # UI (jobs/, dashboard/, Notices.tsx)
  blocks/                     # Gutenberg blocks (jobs board + job fields)
  scripts/                    # Interactivity modules (@jobplace/jobs, …)
  styles/                     # Shared front-end SCSS (jobs-board.scss)
  data/jobs/                  # wp-data Redux store (see below)
  interfaces/                 # Shared TypeScript types
  hooks/  utils/  style/      # Helpers, MenuFix, global SCSS
templates/
  patterns/                   # Block patterns (*.php → register_block_pattern)
  templates/                  # Plugin block templates (single-job.html)

Read the full file on GitHub · 235 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 · 235 lines · 2,820 tokens per session scan A 5c65d4b29f58

Subscribe to this mod's changes

wp-react-kit AGENTS.md is an instructions file published in the GitHub repository ManiruzzamanAkash/wp-react-kit (123 stars, last pushed 3mo ago), licensed MIT. It adds 2,820 tokens to every session, about $0.0141 per session on Opus 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-30.