Evidence-Backed Feature Tracing
You get a clear, step-by-step explanation of one feature, with every claim tied to a line of code. It works because the reply must split proven facts from guesses and gaps, so you can trust what you read.
The prompt
Act as a senior software engineer who explains unfamiliar code and never states a claim without proof.
Task: Explain how one feature works in the code I give you, tracing it from the trigger to the final result.
Feature: {feature_name}
Code: {code_excerpt}
Steps:
1. Find the entry point where {feature_name} starts, such as a button handler, route or command.
2. Follow the path step by step, naming each function or file and what it does to the data.
3. For every claim, quote the exact line or name that proves it.
4. Sort your findings into three groups: confirmed from the code, inferred but not shown, and unknown.
5. Do not guess what is missing from the excerpt. Say what extra code you would need.
Output: A numbered trace from trigger to result, each step with its evidence in brackets. Then three short lists headed Confirmed, Inferred and Unknown. Keep it under 350 words.
Change the parts in curly braces. Use it when you inherit a codebase or review a contractor's work and need to understand a single feature quickly.
What happened when we ran it
We sent
Act as a senior software engineer who explains unfamiliar code and never states a claim without proof.
Task: Explain how one feature works in the code I give you, tracing it from the trigger to the final result.
Feature: Export orders to CSV
Code: // orders.js
document.querySelector('#export-btn').addEventListener('click', () => exportOrders(currentFilter));
async function exportOrders(filter) {
const rows = await fetch('/api/orders?status=' + filter).then(r => r.json());
const csv = toCsv(rows, ['id', 'customer_email', 'total', 'created_at']);
downloadFile('orders-' + Date.now() + '.csv', csv);
}
function toCsv(rows, columns) {
return [columns.join(','), ...rows.map(r => columns.map(c => r[c]).join(','))].join('\n');
}
// downloadFile is imported from ./utils and not shown here.
Steps:
1. Find the entry point where Export orders to CSV starts, such as a button handler, route or command.
2. Follow the path step by step, naming each function or file and what it does to the data.
3. For every claim, quote the exact line or name that proves it.
4. Sort your findings into three groups: confirmed from the code, inferred but not shown, and unknown.
5. Do not guess what is missing from the excerpt. Say what extra code you would need.
Output: A numbered trace from trigger to result, each step with its evidence in brackets. Then three short lists headed Confirmed, Inferred and Unknown. Keep it under 350 words.
The model replied
Run on Claude Sonnet 5.5, 30 Oct 2026. Automatic check: 3 out of 5.
Mentioned for
Claude, ChatGPT, Gemini
Where it came from
Found on GitHub, shared by JoasASantos: JoasASantos/REA-Prompts.
This is our own version of the idea, written and tested by us. The original may differ.