| name | explain-diff-html |
|---|---|
| description | Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output. |
Please make me a rich, interactive explanation of the specified code change.
It should have these sections:
A pattern for building personal knowledge bases using LLMs.
This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.
Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.
| [ | |
| // Navigation | |
| { | |
| "key": "ctrl-h", | |
| "command": "workbench.action.navigateLeft" | |
| }, | |
| { | |
| "key": "ctrl-l", | |
| "command": "workbench.action.navigateRight" | |
| }, |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
| from pandas import read_excel | |
| import json | |
| URL = 'https://www.bccr.fi.cr/indicadores-economicos/cabys/Cabys_catalogo_historial_de_cambios.xlsx' | |
| # Los nombres de las columnas Excel vs nombres cortos y eventualmente | |
| # propiedades del json | |
| cols = { | |
| 'Descripción (categoría 1)': 'c1', | |
| 'Descripción (categoría 2)': 'c2', |
| cd ~/Downloads | |
| wget https://downloads.sourceforge.net/project/dirb/dirb/2.22/dirb222.tar.gz | |
| tar -xvf dirb222.tar.gz | |
| rm dirb222.tar.gz | |
| brew install autoconf | |
| chmod -R 755 dirb222 | |
| cd dirb222 | |
| ./configure | |
| make | |
| make install |
En la definición del método, se puede marcar como obsoleto (deprecated) con la justificación. Esto ayudará a que otros developers sepán que deben de utilizar ya la alternativa.
@Deprecated('Most use speak2 method instead')
speak() {
console.log(`${ this.name }, ${ this.name }!`)
}