context-trace
Skill304 starsChanged 2 months agoMITView on GitHub
Show which context the AI analyst would receive for a question, why each item was selected, how it is delivered, and which conflicts, stale items, or omissions need attention. Use when the user asks what context was loaded, why a definition did or did not reach an analysis, what the analyst knows about a question, or invokes /context-trace.
In this repository65 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- always-compareSkill
- analysis-designSkill
- analyst-coreSkill
- archaeologySkill
- archive-analysisSkill
- auth-preflightSkill
- businessSkill
- causalSkill
- chart-to-driveSkill
- close-the-loopSkill
- codex-reviewSkill
- compare-datasetsSkill
- connect-dataSkill
- connect-snowflakeSkill
- context-compareSkill
- data-inspectSkill
- data-mapSkill
- data-profilingSkill
- data-quality-checkSkill
- datasetsSkill
- distribution-profilerSkill
- evalSkill
- evaluate-graderSkill
- experiment-briefSkill
- experimentSkill
- exploreSkill
- exportSkill
- forecastSkill
- google-doc-exportSkill
- google-slides-exportSkill
- guardrailsSkill
- historySkill
- improve-contextSkill
- knowledge-bootstrapSkill
- log-correctionSkill
- maintain-contextSkill
- metric-specSkill
- metricsSkill
- monitor-evalsSkill
- notion-exportSkill
- paceSkill
- patternsSkill
- question-framingSkill
- question-routerSkill
- reliabilitySkill
- resume-pipelineSkill
- run-pipelineSkill
- runsSkill
- score-analysisSkill
- session-handoffSkill
- setup-dev-contextSkill
- setup-notionSkill
- setupSkill
- setup-slackSkill
- setup-snowflakeSkill
- srm-checkSkill
- stakeholder-communicationSkill
- stress-testSkill
- switch-datasetSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Read .knowledge/active.yaml and confirm an active dataset exists.
- Distinctive: line 11
Run the deterministic manifest builder.
- Very specific: line 20
When a live DuckDB path is available, add --duckdb PATH.
- Very specific: line 25
Read working/context-trace.md and working/context-trace.json.
- Very specific: line 26
If blocking is true, stop the analysis and show the conflicting trusted definitions or relevant schema quarantine.
- Distinctive: line 28
If a selected item is stale or missing a review date, name it before using it.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Context trace
Build an evidence record before explaining the context.
- Read
.knowledge/active.yamland confirm an active dataset exists. Run the deterministic manifest builder. Replace the question and output path with the user's values:
python -m helpers.knowledge.context_manifest \ --project-root . \ --question "THE EXACT QUESTION" \ --output working/context-trace.jsonWhen a live DuckDB path is available, add
--duckdb PATH. This runs the schema guard and excludes relevant items whose table shape no longer matches the reviewed snapshot. For another warehouse, callguard_context()with the live connection and pass its result tobuild_context_manifest(quarantined=...).- Read
working/context-trace.mdandworking/context-trace.json. - If
blockingis true, stop the analysis and show the conflicting trusted definitions or relevant schema quarantine. Ask for an approved decision or re-verification. - If a selected item is stale or missing a review date, name it before using it.
- Explain the result in four parts:
- content: what information was supplied;
- representation: metric, relationship, example, correction, or instruction;
- delivery: resident, selected, or compiled;
- governance: source, owner, status, review date, conflict, and omission.
- State the limit plainly: the manifest proves what the selector supplied. It does not prove the worker used it or that it is correct.
When an analysis is available, ask the worker to return the context item IDs it cited and used. Reconcile those IDs and the SQL with reconcile_context_use() from helpers.knowledge.context_manifest. Distinguish supplied, cited, and applied. Never treat a citation alone as proof that the SQL followed the context.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

