bd-attribute

bd-attribute is a skill for Claude Code, Codex from Lonsdale201/wp-agent-skills. It costs 193 tokens per session (3,347 once invoked), scanned A, original, MIT.

A guide for adding declarative attributes to better-data. An attribute is a marker placed on a class field or constructor parameter to describe how the value should be handled.

In plain words
What is it for?
It is for defining attribute classes and wiring them through every relevant engine, including reading, writing, REST schema generation, and output formatting.
Why use it?
It prevents a new marker from working in only one part of the library while being ignored by hydration, storage, API schemas, or presentation.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for defining attribute classes and wiring them through every relevant engine, including reading, writing, REST schema generation, and output formatting.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/lonsdale201/wp-agent-skills/bd-attribute
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.

Any agent
npx skills add Lonsdale201/wp-agent-skills --skill bd-attribute
Clone the repo
git clone --depth 1 https://github.com/Lonsdale201/wp-agent-skills

Made for: Claude Code, Codex.

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 bd-attribute

README.md
[![agentmods](https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/bd-attribute/github.svg)](https://agentmods.dev/skills/lonsdale201/wp-agent-skills/bd-attribute)
Your own site
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/bd-attribute"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/bd-attribute/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 bd-attribute

Your own site · 80×15
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/bd-attribute"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/bd-attribute.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 193 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,347 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00193 $0.03347
Opus 5 $0.00097 $0.01673
Sonnet 5 $0.00039 $0.00669
Haiku 4.5 $0.00019 $0.00335

Measured 9d ago against content hash d5c95f28626c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

bd-attribute 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 9d 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.

better-data/bd-attribute/SKILL.md · 301 lines

How it starts

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

better-data: Adding a new attribute

For library maintainers introducing a new declarative hint that DTO authors will place on constructor parameters / properties — #[ArrayOf], #[Default], #[ListOf]-style markers, domain-specific decorators. The attribute itself is just a data carrier; the work is wiring it into every engine that reads attributes, because partial wiring silently degrades.

Misconception this skill corrects

"I'll add src/Attribute/Foo.php and read it in PostSink — done."

Attributes are read by multiple engines, and missing one leaves a feature that works on a happy path and fails subtly elsewhere. The original encrypt flag was meta-only; when options needed the same semantics, the partial wiring left a footgun until #[Encrypted] replaced it across OptionSink, PostSink, AttributeDrivenHydrator, RestSchemaBuilder, and Presenter — all in one go.

The engines that read attributes today, all need to know about a new attribute relevant to their concern:

If your attribute is a write-time concern (encryption, formatting, slashing), all four still need to coordinate — read-side has to invert what write-side did.

When to use this skill

Trigger when ANY of the following is true:

  • Creating a new file under src/Attribute/.
  • Adding #[Attribute(...)] to any class.
  • The diff adds a new attribute reference (#[NewThing]) to a DTO and to the consumer engine.
  • Reviewing a PR that wires an attribute into ONE engine — flag every other relevant engine as missing.

Read the full file on GitHub · 301 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. 9d ago First seen · 301 lines · 193 tokens per session scan A d5c95f28626c

Subscribe to this mod's changes

bd-attribute is a skill published in the GitHub repository Lonsdale201/wp-agent-skills (22 stars, last pushed 10d ago), licensed MIT. It adds 193 tokens to every session and 3,347 once invoked, about $0.0010 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.

Related

Other skills, from other repositories

auditing-php-applications

Audit PHP web application source for critical vulnerabilities using PHP's specific sink and footgun catalog — object injection via unserialize and phar:// POP chains, type-juggling and magic-hash auth bypass, LFI/RFI through php:// and phar:// wrappers, dynamic includes and extract()/superglobal trust, SQL injection…

trilwu/secskills · 129 tokens

mvc-expert

Expert guidelines to refactor legacy PHP codebases into clean, modern, and scalable MVC-structured projects / Pedoman ahli untuk merefaktor codebase PHP lama menjadi proyek terstruktur MVC yang bersih, modern, dan skalabel.

roedyrustam/vibes-plug · 51 tokens

yao-geoflow-template

Use only for explicit legacy GEOFlow template skill questions, old PHP template-package contracts, or historical outputs using root index.php/article.php/category.php/archive.php and includes/.php. Route current Laravel Blade themes, reference-site cloning, homepage modules, leadform, theme editor, channel frontend…

yaojingang/yao-geo-skills · 94 tokens

phpunit-testing

Guide for writing and running PHPUnit unit and integration tests for WP Rig theme components.

wprig/wprig · 16 tokens

php-laravel

Modern PHP 8.4 and Laravel patterns: architecture, Eloquent, migrations, queues, testing. Use when working with Laravel, Eloquent, Blade, artisan, or building/testing a framework-based PHP app. Not for php-src internals, standalone PHP libraries, or general PHP language discussion.

iliaal/ai-skills · 65 tokens

php

Use when writing PHP 8.2+ or working in Laravel and Symfony codebases. Covers strict types, enums, readonly classes, attributes, PSR standards, and static analysis with PHPStan.

nimadorostkar/Claude-Skills-collection · 42 tokens