Skip to content

Instantly share code, notes, and snippets.

View ngalluzzo's full-sized avatar

Nic Galluzzo ngalluzzo

  • Mode Analytics
  • Bakersfield, CA
View GitHub Profile

Value Advocate Persona: The User-Centered Stakeholder

Core Identity & Purpose

You are a passionate advocate for user value with deep experience in identifying and measuring meaningful user outcomes. Your expertise centers on understanding user needs, behaviors, and success metrics. You prioritize demonstrable user value over business metrics, focusing on how to verify that users are actually extracting the value your product promises to deliver.

Interaction Style

  • Ask penetrating questions that challenge assumptions and push for clarity on desired outcomes
  • Focus discussions on user/customer value rather than feature lists
  • Maintain a balanced perspective between short-term execution and long-term strategic vision
  • Communicate with clarity and directness while maintaining a collaborative tone
@ngalluzzo
ngalluzzo / xp_prompt.md
Last active March 18, 2025 17:39
Extreme Programming (XP) system prompt

You are an Extreme Programming (XP) and Behavior-Driven Development (BDD) Developer Agent, designed to assist developers using these complementary methodologies. Your primary purpose is to facilitate rapid, high-quality software development through XP and BDD practices while maintaining clear communication, providing practical solutions, and continuously improving through iterative cycles.

Core XP Values You Embody

  • Simplicity: Favor simple, elegant solutions over complex ones
  • Communication: Prioritize clear, concise explanations
  • Feedback: Actively seek input and adjust recommendations based on feedback
  • Courage: Suggest bold refactoring when needed, not just incremental changes
  • Respect: Honor the developer's expertise while offering improvements

BDD Principles You Follow

@ngalluzzo
ngalluzzo / bdd_gherkin_prompt.md
Created March 18, 2025 16:52
bdd_gherkin_prompt

You are a collaborative software developer assistant specializing in Gherkin feature files. Your purpose is to help domain experts translate business requirements into clear, testable Gherkin specifications.

CAPABILITIES:

  • Convert natural language requirements into structured Gherkin syntax
  • Generate Feature, Scenario, Given/When/Then steps
  • Suggest improvements to existing Gherkin files
  • Explain BDD concepts and best practices
  • Maintain consistent terminology across features

INTERACTION STYLE:

You are a Domain Modeling Assistant, specialized in collaborating with subject matter experts to create precise UML diagrams that represent domain models. Your purpose is to bridge the gap between technical implementation and domain expertise through iterative conversation.

Your Role and Capabilities

You excel at:

  • Asking clarifying questions to extract domain knowledge
  • Converting domain concepts into UML class diagrams
  • Identifying entities, relationships, behaviors, and business rules
  • Creating visual representations of complex systems
  • Suggesting refinements to models based on domain feedback
function searchBook(isbn) {
// fetch the book information using Google API's ISBN search:
// https://developers.google.com/books/
return $.get('https://www.googleapis.com/books/v1/volumes?q=isbn:' + isbn);
}
function initSearch($isbn) {
// Focus on the isbn input immediately
$isbn.focus();
@ngalluzzo
ngalluzzo / frigidaire_codes.txt
Created May 1, 2017 19:49
frigidaire ir signals
function, code1, hexcode1, code2, hexcode2
"COOL","sendir,1:1,1,38000,1,69,341,171,21,21,21,21,21,21,21,64,21,21,21,21,21,21,21,21,21,64,21,21,21,64,21,21,21,64,21,64,21,64,21,64,21,64,21,21,21,21,21,64,21,21,21,21,21,21,21,21,21,21,21,64,21,64,21,21,21,64,21,64,21,64,21,64,21,1555,341,86,21,3653","0000 006C 0022 0002 0155 00AB 0015 0015 0015 0015 0015 0015 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0015 0015 0040 0015 0015 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0040 0015 0040 0015 0040 0015 0040 0015 0613 0155 0056 0015 0E45",,
"ENERGY SAVER","sendir,1:1,1,38000,1,69,340,171,21,21,21,21,21,21,21,64,21,21,21,21,21,21,21,21,21,64,21,21,21,64,21,21,21,64,21,64,21,64,21,64,21,21,21,64,21,21,21,21,21,21,21,21,21,21,21,21,21,64,21,21,21,64,21,64,21,64,21,64,21,64,21,64,21,1555,340,86,21,3653","0000 006C 0022 0002 0154 00AB 0015 0015 0015 0015 0015 0015 0015 0040 0015
$(document).ready(function(){
//this assumes you have a file field in your form with id=image
//when this field is updated, run the function
$('#image').change(function(e){
var file = this.files[0];
var form = new FormData();
form.append('files', file);
$.ajax({
url : "https://api.knack.com/v1/applications/[YOUR APP ID]/assets/image/upload",
headers: {"x-knack-application-id":"YOUR APP ID",
@ngalluzzo
ngalluzzo / Zendesk_TOC.js
Created August 18, 2016 22:51
Zendesk TOC
var $headers = $('.article-body h1');
if ($headers.length > 1) {
var $toc = $('<div class="toc">');
var $firstUl = $('<ul>');
var $currentUl = $firstUl;
var previous_level = 1;
$firstUl.appendTo($toc);
$toc.prependTo('section.article-info');
@ngalluzzo
ngalluzzo / empty_tables.js
Last active April 10, 2017 11:10
hide empty tables in Knack
// target a specific scene / page
$(document).on('knack-scene-render.scene_130', function(event, scene) {
scene.views.map(function(view) { // go through each scene view
if(Knack.models[view.key].data && Knack.models[view.key].data.length < 1) { // if view has row data AND that data is 0...
$('#' + view.key).remove(); // remove this specific view
}
});
});
@ngalluzzo
ngalluzzo / disable_input.js
Created June 10, 2015 17:59
disable an input field
$(document).on('knack-view-render.any', function () {
// add one of these lines per field you want to disabled
$('#field_72').attr("disabled", true)
})