Skip to content

Instantly share code, notes, and snippets.

View rafaelcalleja's full-sized avatar

Rafael Calleja rafaelcalleja

View GitHub Profile
@rafaelcalleja
rafaelcalleja / llm-wiki.md
Created May 7, 2026 13:29 — forked from rohitg00/llm-wiki.md
LLM Wiki v2 — extending Karpathy's LLM Wiki pattern with lessons from building agentmemory

LLM Wiki v2

A pattern for building personal knowledge bases using LLMs. Extended with lessons from building agentmemory, a persistent memory engine for AI coding agents.

This builds on Andrej Karpathy's original LLM Wiki idea file. Everything in the original still applies. This document adds what we learned running the pattern in production: what breaks at scale, what's missing, and what separates a wiki that stays useful from one that rots.

What the original gets right

The core insight is correct: stop re-deriving, start compiling. RAG retrieves and forgets. A wiki accumulates and compounds. The three-layer architecture (raw sources, wiki, schema) works. The operations (ingest, query, lint) cover the basics. If you haven't read the original, start there.

@rafaelcalleja
rafaelcalleja / llm-wiki.md
Created April 29, 2026 15:44 — forked from karpathy/llm-wiki.md
llm-wiki

LLM Wiki

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.

The core idea

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.

@rafaelcalleja
rafaelcalleja / CLAUDE.md
Created January 3, 2026 11:33 — forked from artshooter/CLAUDE.md
Vibe Language Learning in claude(VLL)

Vibe Language Learning (VLL)

An immersive language learning feature. During conversations, automatically replaces some words with your target language and annotates them in your native language, helping you naturally acquire new vocabulary through daily use.

Current Settings

native_language: en # Native language target_language: ja # Target language (learning) current_level: intermediate # Current level enabled: true # Feature toggle

@rafaelcalleja
rafaelcalleja / 00-skills-explained-main-article.md
Created December 28, 2025 05:16
Skills explained: How Skills compares to prompts, Projects, MCP, and subagents

Skills explained: How Skills compares to prompts, Projects, MCP, and subagents

Skills are an increasingly powerful tool for creating custom AI workflows and agents, but where do they fit in the Claude stack? We explain what tool to use when - and how they all work together.

Date: November 13, 2025 | Reading time: 5 min | Category: Agents


Since introducing Skills, there's been interest in understanding how the various components of Claude's agentic ecosystem work together.

@rafaelcalleja
rafaelcalleja / 00-Building-Skills-for-Claude-Code.md
Created December 27, 2025 08:13
Building Skills for Claude Code: Automating your procedural knowledge - Expanded article with related resources

Building Skills for Claude Code: Automating your procedural knowledge

Learn how Skills can help you package your team's workflows, schemas, and business logic into reusable instructions that Claude Code loads automatically.

Category: Coding
Product: Claude Code
Date: December 2, 2025
Reading time: 5 min


@rafaelcalleja
rafaelcalleja / 00-Best-practices-for-prompt-engineering.md
Created December 27, 2025 03:54
Best practices for prompt engineering - Article from Claude Blog with expanded resources

Best practices for prompt engineering

Get better AI results with prompt engineering techniques from the team behind Claude.

Source: Claude Blog
Date: November 10, 2025
Reading time: 5 min


# Claude Code Instruction Files: Best Practices from Production Use
*Shared by Claude (Opus 4.5), from a codebase with ~800 lines of evolved CLAUDE.md*
---
## TL;DR
| Pattern | What | Why |
|---------|------|-----|
@rafaelcalleja
rafaelcalleja / claude-code-metrics.json
Created December 14, 2025 07:42 — forked from mikelane/claude-code-metrics.json
SigNoz dashboard for claude code metrics including time leverage and cost leverage metrics.
{
"description": "Monitor Claude Code usage, costs, tokens, and productivity metrics",
"layout": [
{
"h": 1,
"i": "row-overview",
"moved": false,
"static": false,
"w": 12,
"x": 0,
@rafaelcalleja
rafaelcalleja / agent loop
Created March 10, 2025 20:06 — forked from jlia0/agent loop
Manus tools and prompts
You are Manus, an AI agent created by the Manus team.
You excel at the following tasks:
1. Information gathering, fact-checking, and documentation
2. Data processing, analysis, and visualization
3. Writing multi-chapter articles and in-depth research reports
4. Creating websites, applications, and tools
5. Using programming to solve various problems beyond development
6. Various tasks that can be accomplished using computers and the internet
@rafaelcalleja
rafaelcalleja / patterns_exaplained.md
Last active February 18, 2025 05:29
patterns_exaplained.md

Brief one-line summary from AI analysis of what each pattern does.

  • Key pattern to use: suggest_pattern, suggests appropriate fabric patterns or commands based on user input.**
  1. agility_story: Genera una historia de usuario y criterios de aceptación en formato JSON basados en el tema dado.
  2. ai: Interpreta preguntas de manera profunda y proporciona respuestas concisas e iluminadoras en viñetas de Markdown.
  3. analyse_answers: Evalúa las respuestas de un cuestionario para determinar su corrección basándose en objetivos de aprendizaje y preguntas generadas.
  4. analyse_candidates: Compara y contrasta a dos candidatos políticos basándose en temas clave y políticas.
  5. analyse_cfp_submission: Revisa y evalúa las presentaciones de sesiones de conferencias basándose en claridad, relevancia, profundidad y potencial de compromiso.
  6. analyse_claims: Analiza y califica afirmaciones de verdad con evidencia, contraargumentos, falacias y recomendaciones finales.