Skip to content

Instantly share code, notes, and snippets.

@bgrgicak
bgrgicak / SKILL.md
Created June 11, 2026 06:49
Just build it

name: just-build-it description: | Applies whenever the user asks for implementation, a refactor, a migration, a new feature, or any concrete written output (code, config, document, codemod, spec). Overrides the default instincts to phase the work across sessions, poll the user for preferences, propose a scoped-down version, or hedge with "this is substantial." Does NOT apply to genuinely open debugging questions where the problem itself is unknown, and does NOT apply when the task literally cannot proceed without code or credentials the user has not provided — see "The guardrail" below.

@bgrgicak
bgrgicak / blueprint.json
Created March 3, 2026 06:09
Mime type test
{
"landingPage": "/",
"preferredVersions": {
"php": "8.2",
"wp": "latest"
},
"steps": [
{
"step": "mkdir",
"path": "/wordpress/wp-content/plugins/test-cjs-mjs/assets"
<?php
/**
* Plugin Name: Cron Sleep Test
* Description: A 15-second cron job that runs on every page load.
* Version: 3.1.0
*/
if ( ! defined( 'WP_CRON_LOCK_TIMEOUT' ) ) {
define( 'WP_CRON_LOCK_TIMEOUT', 1 );
}
@bgrgicak
bgrgicak / intl-test-blueprint.json
Created December 2, 2025 09:00
intl-test-blueprint.json
{
"landingPage": "/intl-test.php",
"preferredVersions": {
"php": "latest",
"wp": "latest"
},
"steps": [
{
"step": "writeFile",
"path": "/wordpress/intl-test.php",
@bgrgicak
bgrgicak / blog-name-blueprint.json
Created November 27, 2025 08:28
Blog name Blueprint
{
"steps": [
{
"step": "setSiteOptions",
"options": {
"blogname": "My Blog",
"blogdescription": "A great blog"
}
}
]
@bgrgicak
bgrgicak / php-wasm-crash.php
Last active November 26, 2025 11:07
Crash PHP-wasm WordPress plugin
<?php
/*
* Plugin Name: Crash PHP-wasm
*/
class Top {
function __clone() {
file_get_contents("https://gist.githubusercontent.com/bgrgicak/faad52a34f909306c82800a76a936da5/raw/php-wasm-crash.php");
}
}
$x = new Top();
@bgrgicak
bgrgicak / soap-server.php
Last active November 26, 2025 10:20
SOAP server
<?php
/*
* Plugin Name: SOAP server
*/
class TestSoapServer
{
public function getMessage()
{
@bgrgicak
bgrgicak / wp-smushit-blueprint.json
Created November 20, 2025 10:47
wp-smushit blueprint
{
"landingPage": "/wp-admin/admin.php?page=smush",
"steps": [
{
"step": "installPlugin",
"pluginData": {
"resource": "wordpress.org/plugins",
"slug": "wp-smushit"
},
"options": {
@bgrgicak
bgrgicak / wp-optimize-blueprint.json
Created November 20, 2025 10:20
WP-Optimize blueprint
{
"landingPage": "/wp-admin/admin.php?page=WP-Optimize",
"steps": [
{
"step": "installPlugin",
"pluginData": {
"resource": "wordpress.org/plugins",
"slug": "wp-optimize"
},
"options": {
@bgrgicak
bgrgicak / w3tc-blueprint.json
Created November 19, 2025 12:05
W3 Total Cache
{
"landingPage": "/wp-admin/admin.php?page=w3tc_dashboard",
"steps": [
{
"step": "installPlugin",
"pluginData": {
"resource": "wordpress.org/plugins",
"slug": "w3-total-cache"
},
"options": {