claude-strapi-skills AGENTS.md

claude-strapi-skills AGENTS.md is an instructions file for Codex, OpenCode from t-code4change/claude-strapi-skills. It costs 714 tokens per session, scanned A, original, MIT.

Backend project instructions for Strapi 5, a system for building content-management APIs, using TypeScript, PostgreSQL, Docker, and related services.

In plain words
What is it for?
Use them when creating or changing Strapi schemas, components, dynamic zones, localized content, slugs, SEO fields, or relations.
Why use it?
They standardize how content types, fields, SEO data, translations, and relationships are defined so the backend remains consistent.

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/t-code4change/claude-strapi-skills/agents-md
Clone the repo
git clone --depth 1 https://github.com/t-code4change/claude-strapi-skills

Made for: Codex, OpenCode.

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 claude-strapi-skills AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/t-code4change/claude-strapi-skills/agents-md.svg)](https://agentmods.dev/instructions/t-code4change/claude-strapi-skills/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/t-code4change/claude-strapi-skills/agents-md"><img src="https://agentmods.dev/badge/instructions/t-code4change/claude-strapi-skills/agents-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 714 This file is loaded in full into every session.
When invoked 714 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.00714 $0.00714
Opus 5 $0.00357 $0.00357
Sonnet 5 $0.00143 $0.00143
Haiku 4.5 $0.00071 $0.00071

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

Security

Grade A, and why

claude-strapi-skills 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 5d 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 · 66 lines

How it starts

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

Strapi v5 Backend Agent Rules

Stack

Strapi v5.x · TypeScript · PostgreSQL 16 · Node 22 · Docker + Traefik · Cloudflare R2

Content Types

Collection type schema (src/api/{name}/content-types/{name}/schema.json)

  • kind: "collectionType" — always
  • singularName / pluralName — lowercase kebab-case
  • options.draftAndPublish: true for content with review workflow; false for data entries
  • Always add slug (uid, targetField: "name") for URL-accessible types
  • Never localize slug fields
  • Add seo_title (string, maxLength: 70) + seo_description (text, maxLength: 160) + seo_image (media) on public-facing types

Single type (src/api/{name}/content-types/{name}/schema.json)

  • kind: "singleType" — always
  • Used for: homepage, global settings, about page, contact page

Components (src/components/{category}/{name}.json)

  • Naming: category-name.component-name
  • Dynamic zones: list all allowed components in "components": [...]

Relations — ALWAYS define both sides

// Owning side → inversedBy: "<fieldName on other type>"
// Inverse side → mappedBy: "<fieldName on other type>"

i18n

  • Add "pluginOptions": { "i18n": { "localized": true } } at schema level
  • Mark user-facing text fields as localized individually
  • NEVER localize uid fields

Storage

  • R2: strapi-provider-cloudflare-r2 — add domain to CSP img-src and media-src in config/middlewares.ts
  • S3: @strapi/provider-upload-aws-s3 — add ${BUCKET}.s3.${REGION}.amazonaws.com to CSP

Database (config/database.ts)

  • Production: DATABASE_CLIENT=postgres, pool min:2 max:10 (increase for high traffic)
  • Dev: DATABASE_CLIENT=sqlite

API limits (config/api.ts)

  • defaultLimit: 25, maxLimit: 100, withCount: true — ALWAYS set maxLimit, never return unbounded results

Bootstrap (src/index.ts)

  • Set public permissions in bootstrap hook (not manually in admin panel)
  • Check count > 0 before seeding data

Environment variables

  • All secrets in .env — never hardcoded
  • Generate secrets: node -e "console.log(require('crypto').randomBytes(32).toString('base64'))"

Read the full file on GitHub · 66 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. 5d ago First seen · 66 lines · 714 tokens per session scan A 76aaee360640

Subscribe to this mod's changes

claude-strapi-skills AGENTS.md is an instructions file published in the GitHub repository t-code4change/claude-strapi-skills (2 stars, last pushed 2mo ago), licensed MIT. It adds 714 tokens to every session, about $0.0036 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-31.