一键导入
dftracer-lessons
How to use and update the lessons-learned cache at .goose/lessons-learned.md — proactive lookup before any build/install/annotate step
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
How to use and update the lessons-learned cache at .goose/lessons-learned.md — proactive lookup before any build/install/annotate step
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Communication-component (MPI/collective/network) bottleneck-to-optimization mappings, papers, and L1/L2/L3 strategies for the dftracer optimization pipeline
Compute-component bottleneck-to-optimization mappings, papers, and L1/L2/L3 strategies for the dftracer optimization pipeline
Key literature, bottleneck-to-optimization mappings, and strategies for the dftracer I/O optimization pipeline
Memory-component bottleneck-to-optimization mappings, papers, and L1/L2/L3 strategies for the dftracer optimization pipeline
VPIC-Kokkos-specific knowledge: build/annotation quirks, the two-stage deck-compile pattern, deck sizing for smoke vs validation runs, and the measured MPI-communication-bound diagnosis on Tuolumne. Load this skill whenever working with vpic-kokkos (github.com/lanl/vpic-kokkos).
Install and build dftracer into the session using the MCP install tool and record tool pitfalls early.
| name | dftracer-lessons |
| description | How to use and update the lessons-learned cache at .goose/lessons-learned.md — proactive lookup before any build/install/annotate step |
A structured log of past failures and their fixes lives at .goose/lessons-learned.md.
Before attempting any build, install, configure, or annotation step:
.goose/lessons-learned.md.tags or error match the current task (package name, build tool, error text).After resolving any non-trivial error (not a simple typo):
Append a new entry to .goose/lessons-learned.md using this format:
---
date: YYYY-MM-DD
context: <one-line description of what was being attempted>
error: |
<exact error message or key excerpt>
root_cause: <why it happened>
fix: |
<exact steps or code change that resolved it>
tags: [<package>, <build-tool>, <error-keyword>, ...]
---
Keep entries cumulative — never delete old ones. They are the institutional memory for this project.
Every agent is expected to make the skills smarter each run — capture not just failures but the working recipe (exact commands, flags, paths, versions, caveats) so the next session reuses it instead of rediscovering it.
Route each learning to the right home:
dftracer-annotate-*, software-hdf5, software-mpi, software-posix).
Keep these skills generic: they hold the general procedure that applies
everywhere.workload-<app> (e.g. workload-flashx).system-<system> (e.g. system-tuolumne).software-<lib>.Prefer: generic skill = the general how-to; specific skill = only the workload/system/software deltas layered on top.
Lessons, skills, agent definitions and memory are git-tracked and ship to other people. Redact before you persist. We learn from experience; we never record who ran it.
Never write into any of them: usernames or real names, email addresses, absolute
user paths (/usr/WS2/<user>/..., /p/lustre5/<user>/..., /g/g92/<user>/...,
/home/<user>/...), flux job ids, session UUIDs, or node hostnames. Write
$USER, $PROJECT_ROOT, $LUSTRE_ROOT, $HOME, <flux-jobid>, <uuid>,
<system><node> instead. Keep the lesson; drop the provenance.
Verify with the deterministic tools rather than by reading:
privacy_scan() # report identifying content, read-only
privacy_redact(dry_run=True) # show what would change
privacy_redact() # rewrite in place
Citation lines (**Citation:**, **Authors:**) are public bibliography and are
exempt. The dftracer-privacy-guard agent runs this as the last step of every
session, but that is a backstop — do not rely on it to clean up after you. Load
[[dftracer-privacy-guard]] for the full table and the known false positives.
Agents must NOT self-write skills, lesson files, agent definitions, or MCP tools. Instead, PROPOSE each update back to the main thread (target skill/tool