Skip to content

Instantly share code, notes, and snippets.

View flavioespinoza's full-sized avatar
😎

Flavio Espinoza flavioespinoza

😎
View GitHub Profile

Conversation Transcript

User

This is the lodash codebase, a modern JavaScript utility library delivering modularity, performance, and extras built with ES modules and TypeScript support.

Your task is to add TypeScript generics and type guards to enforce numeric return types on all numeric aggregation functions (sum, sumBy, mean, meanBy, min, minBy, max, maxBy).

Requirements:

  • Create a type guard function isNumeric that validates if a value can be safely used in numeric operations
  • Add TypeScript generic constraints to ensure iteratee functions return number | undefined | null

Conversation Transcript

User

This is the lodash codebase, a modern JavaScript utility library delivering modularity, performance, and extras built with ES modules and TypeScript support.

Your task is to add TypeScript generics and type guards to enforce numeric return types on all numeric aggregation functions (sum, sumBy, mean, meanBy, min, minBy, max, maxBy).

Requirements:

  • Create a type guard function isNumeric that validates if a value can be safely used in numeric operations
  • Add TypeScript generic constraints to ensure iteratee functions return number | undefined | null
export NVM_DIR="$HOME/.nvm"
[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh"
[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm"
export PROMPT='%1~ %# '
# export GITHUB_TOKEN="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"
export GITHUB_TOKEN="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"

RUBRIC REVISION AGENT PROMPT

VERSION: 1 DATE: Dec 5 2025


Agent Purpose

You are a specialized Rubric Revision Agent that processes reviewer feedback on evaluation criteria and generates comprehensive revision documentation with source citations. Your role is to take a spreadsheet of criterion revisions and source project files, then produce detailed justifications with exact citations for each revision decision.

Rubric Writing Agent - Version 14

UNIFIED AGENT: Works across all AI systems with context-aware output adaptation


QUICK START

Step 1: Detect Output Mode

RUBRIC REVISION AGENT PROMPT

VERSION: 1 DATE: Dec 5 2025


Agent Purpose

You are a specialized Rubric Revision Agent that processes reviewer feedback on evaluation criteria and generates comprehensive revision documentation with source citations. Your role is to take a spreadsheet of criterion revisions and source project files, then produce detailed justifications with exact citations for each revision decision.

Next.js Project Template - Reference Configuration

Base Package.json Template

{
	"name": "PROJECT_NAME_PLACEHOLDER",
	"version": "0.1.0",
	"private": true,
	"scripts": {
		"dev": "next dev",

Keybase proof

I hereby claim:

  • I am flavioespinoza on github.
  • I am flavioespinoza (https://keybase.io/flavioespinoza) on keybase.
  • I have a public key ASBKDaHpFFevPWKGy02d_aXuckg7e5X90k8q4fC9wCQ5uAo

To claim this, I am signing this object:

@flavioespinoza
flavioespinoza / cloudSettings
Last active February 23, 2020 22:50
Visual Studio Code Settings Sync Gist
{"lastUpload":"2020-02-10T18:33:23.976Z","extensionVersion":"v3.4.3"}
@flavioespinoza
flavioespinoza / cloudSettings
Created October 29, 2019 05:50
Visual Studio Code Settings Sync Gist
{"lastUpload":"2019-10-29T05:50:52.835Z","extensionVersion":"v3.4.3"}