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 skills add Lonsdale201/wp-agent-skills --skill je-query-builder-custom-typegit clone --depth 1 https://github.com/Lonsdale201/wp-agent-skillsWrote 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.
[](https://agentmods.dev/skills/lonsdale201/wp-agent-skills/je-query-builder-custom-type)<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/je-query-builder-custom-type"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/je-query-builder-custom-type/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.
<a href="https://agentmods.dev/skills/lonsdale201/wp-agent-skills/je-query-builder-custom-type"><img src="https://agentmods.dev/badge/skills/lonsdale201/wp-agent-skills/je-query-builder-custom-type.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00101 | $0.01842 |
| Opus 5 | $0.00051 | $0.00921 |
| Sonnet 5 | $0.00020 | $0.00368 |
| Haiku 4.5 | $0.00010 | $0.00184 |
Grade A, and why
je-query-builder-custom-type 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.
How it starts
The opening of the file, as written. The whole thing — 214 lines — stays where its author put it; the contents beside it link to each section on GitHub.
JetEngine Query Builder custom type
Build a saved-query type as two coordinated components: a runtime query and an admin editor. Keep the runtime authoritative; editor controls, REST inputs, filters, and MCP-created settings are all untrusted input to that runtime.
When to use this skill
- Expose a custom table, service, or repository to Query Builder/Listings.
- Add query-type-specific editor controls.
- Diagnose abstract-class fatals after a JetEngine upgrade.
- Fix dynamic arguments, filters, cache, count, or pagination behavior.
- Make a custom type intentionally usable from saved-query REST or MCP tooling.
Architecture and registration
Use the same vendor-prefixed slug in both registrations.
add_action(
'jet-engine/query-builder/queries/register',
static function($factory): void {
require_once __DIR__ . '/src/class-my-plugin-query.php';
$factory::register_query('my-plugin-records', My_Plugin_Query::class);
}
);
add_action(
'jet-engine/query-builder/query-editor/register',
static function($editor): void {
require_once __DIR__ . '/src/class-my-plugin-query-editor.php';
$editor->register_type(new My_Plugin_Query_Editor());
}
);
The runtime base has six required methods in 3.8.14:
_get_items()
get_items_total_count()
get_items_page_count()
get_items_pages_count()
get_current_items_page()
set_filtered_prop($prop = '', $value = null)
Omitting set_filtered_prop() leaves the subclass abstract and causes a fatal
when JetEngine instantiates it.
Runtime skeleton
use Jet_Engine\Query_Builder\Queries\Base_Query;
final class My_Plugin_Query extends Base_Query {
private function args(): array {
$this->setup_query();
$args = $this->get_query_args();
return array(
'status' => sanitize_key($args['status'] ?? 'active'),
'page' => max(1, absint($args['page'] ?? 1)),
'per_page' => min(100, max(1, absint($args['per_page'] ?? 20))),
);
}
public function _get_items() {
return my_plugin_repository()->find($this->args());
}
public function get_items_total_count() {
$cached = $this->get_cached_data('count');
if (false !== $cached) {
return (int) $cached;
}
$count = (int) my_plugin_repository()->count($this->args());
$this->update_query_cache($count, 'count');
return $count;
}
public function get_items_per_page() {
return $this->args()['per_page'];
}
public function get_current_items_page() {
return $this->args()['page'];
}
public function get_items_pages_count() {
return max(1, (int) ceil(
$this->get_items_total_count() / $this->get_items_per_page()
));
}
public function get_items_page_count() {
return count($this->get_items());
}
public function set_filtered_prop($prop = '', $value = null) {
if ('_page' === $prop) {
$this->final_query['page'] = max(1, absint($value));
return;
}
$this->merge_default_props($prop, $value);
}
}
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 9d ago First seen · 214 lines · 101 tokens per session scan A de6bb4f80c29
je-query-builder-custom-type is a skill published in the GitHub repository Lonsdale201/wp-agent-skills (22 stars, last pushed 2d ago), licensed MIT. It adds 101 tokens to every session and 1,842 once invoked, about $0.0005 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-09-03.
Other skills, from other repositories
wp-plugin-performance
Performance guidelines for WordPress plugin development: database optimization, object caching, conditional asset loading, efficient hooks, HTTP requests, WP-Cron, AJAX/REST optimization, and common anti-patterns. Based on official WordPress Developer Resources and WP VIP documentation.
obsidian-bases
Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, filters, or formulas in Obsidian.
alloydb-basics
Manages clusters, instances, and backups for AlloyDB for PostgreSQL, and integrates with AlloyDB Model Context Protocol (MCP) tools for automated database operations. Use when creating, configuring, or administering AlloyDB databases. Do NOT use for general PostgreSQL instances (e.g. Cloud SQL) or other GCP databases.
cloud-databases-onboarding
Guides users through discovering their database requirements, recommends a Google Cloud database based on a recommendation matrix, and assists in database creation. Use when a user asks 'What database service should I use?', 'Help me pick a database', or when a user wants to create a new database on Google Cloud.…
supabase
Use when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron, Queues); client libraries and SSR integrations (supabase-js, @supabase/ssr) in Next.js, React, SvelteKit, Astro, Remix; auth issues (login, logout, sessions, JWT, cookies…
supabase-postgres-best-practices
Postgres best practices maintained by Supabase, for Postgres running anywhere. Load this skill BEFORE writing or changing anything that lives in a Postgres database: creating or altering tables and columns (including choosing column types), schema design, migrations and declarative schema files, RLS policies and the…