Linear Margin-Note Methodology Skill A developer introduced a linear margin-note methodology for distilling technical papers, algorithms, and codebases into append-only reasoning layers. The approach structures analysis into ordered files covering concept inventory, dependency graphs, glossaries, and code alignment, aiming to reduce context drift in language models and support architectural refactoring. It emphasizes source citations, cross-checks, and showstopper gates to ensure correctness. | name | linear-margin-note-methodology | |---|---| | description | Use when distilling a technical paper, specification, algorithm, or codebase into append-only margin notes, a dependency-ordered ontology, a glossary, reviewed design documentation, and code-alignment findings. | Turn a dense technical source into a sequence of inspectable, append-only reasoning layers. Each layer moves forward from source detail toward a corrected ontology, dependency order, synthesis, documentation, and code review without rewriting the evidence produced by earlier passes. The final layer is to be a standalone detailed technical explaination of the concepts as structured prose that is pedagogically optimised that is of sufficent quality to be a primer to the topic. Autoregressive language models benefit from this externalized linear process because each pass has a narrower task, stable prior artifacts, and explicit terminology. That reduces ambiguity and context drift. It does not make a model correct: source citations, independent cross-checks, and showstopper gates remain mandatory. This technique is suited to technical papers, mathematical algorithms, mechanics, protocols, and codebases where concepts have real dependencies and conversational summarization would hide them. It is also suitable run at an architectual refactoring phase where the code itself, the doc-comments of the code, and the design documentation, and prior runs are the input. That allows for an architectual refactor phase were architectual weeds can be removed and long-term drift removed from the codebase through periodical realignmet. It may be the case that the drift is the correct new path and the original design is out of date with the latest competative landscape. The "Andon アンドン" concept below should be seen as the highest level of mastery that the very foundational assumptions may be challenged and changed at any time. - Work inside a fresh project-local scratch directory, never an operating-system temporary path. - Write each layer forward and append-only. Do not repair an earlier layer after learning more; create the next corrective layer so comparisons remain possible. - Cover every substantive source paragraph, sentence, protocol step, equation, diagram claim, or code symbol. Record source locations. - Give each concept one qualified, unambiguous preferred name. Detect collisions and aliases. - Add a glossary term on first encounter only. Never duplicate definitions. - Discover, categorize and separate concepts such as correctness/safety requirements from liveness assumptions, yet also consider what might be optimizations, pragmatics, scope, historical explanation, and implementation choices. - State why each idea exists. A protocol step without its reason cannot be reviewed intelligently. - Do not synthesize final prose until the concept inventory, dependency graph, and source cross-check exist. - Apply Andon アンドン to avoid any possible future product recall: the aim is to create a formal definition from which a real system can be built. It is an unlimited liablity future risk and so a showstopper if the formalism is internally inconsistent, has undocumented undefined behaviours, or else permits arbitrary parallel architectures to coexist. - Keep old mistakes out of the final layer documentation. History remains visible in scratch layers; final docs contain only the corrected model and an explicit terminology mapping where needed. Use ordered files so each pass is independently readable: .tmp/