Skip to content

Instantly share code, notes, and snippets.

View Breklin's full-sized avatar

Brett Franklin Breklin

View GitHub Profile
@aashari
aashari / 00 - Cursor AI Prompting Rules.md
Last active December 9, 2025 09:37
Cursor AI Prompting Rules - This gist provides structured prompting rules for optimizing Cursor AI interactions. It includes three key files to streamline AI behavior for different tasks.

The Autonomous Agent Prompting Framework

This repository contains a disciplined, evidence-first prompting framework designed to elevate an Agentic AI from a simple command executor to an Autonomous Principal Engineer.

The philosophy is simple: Autonomy through discipline. Trust through verification.

This framework is not just a collection of prompts; it is a complete operational system for managing AI agents. It enforces a rigorous workflow of reconnaissance, planning, safe execution, and self-improvement, ensuring every action the agent takes is deliberate, verifiable, and aligned with senior engineering best practices.

I also have Claude Code prompting for your reference: https://gist.github.com/aashari/1c38e8c7766b5ba81c3a0d4d124a2f58

@mistical2008
mistical2008 / prettierrc.js
Last active June 29, 2025 16:09
Vite config: plain html + vanilla-js
module.exports = {
trailingComma: 'es5',
tabWidth: 4,
semi: false,
singleQuote: true,
}
@wpmudev-sls
wpmudev-sls / forminator-field-custom-validation.php
Created November 12, 2021 08:13
[Forminator] - Validation form fields.
<?php
/**
* Plugin Name: [Forminator] - Validation form fields.
* Description: [Forminator] - Validate form fields based on defined validation rule.
* Plugin URI: https://wpmudev.com/
* Author: Abdoljabbar Bakhshande
* Author URI: https://wpmudev.com/
* License: GPLv2 or later
*/
<?php
/**
* This add a simple verification for selected fields if those have own value
**/
add_filter('forminator_custom_form_submit_errors', 'verification_for_unique_values_forminator_wp', 10, 3);
function verification_for_unique_values_forminator_wp($submit_errors, $form_id, $field_data_array) {
<?php
add_action( 'wp_footer', function(){ ?>
<script>
(function ($) {
$(function () {
$(document).on("after.load.forminator", function (e, id) {
var cvalinput = $('.custom-validate input');
let regx = /^[0-9]*$/;
@wpmudev-sls
wpmudev-sls / forminator-calcualtion-format-number.php
Created August 2, 2020 09:45
[Forminator] Custom number format for Calculation field.
<?php
/**
* Plugin Name: [Forminator] Custom number format for Calculation field.
* Description: [Forminator] Custom number format for Calculation field.
* Jira: SLS-470
* Author: Thobk @ WPMUDEV
* Author URI: https://premium.wpmudev.org
* License: GPLv2 or later
*/
if ( ! defined( 'ABSPATH' ) ) {
@bsara
bsara / git-ssh-auth-win-setup.md
Last active November 2, 2025 14:49
Setup SSH Authentication for Git Bash on Windows

Setup SSH Authentication for Git Bash on Windows

Prepararation

  1. Create a folder at the root of your user home folder (Example: C:/Users/uname/) called .ssh.
  2. Create the following files if they do not already exist (paths begin from the root of your user home folder):
  • .ssh/config