
Atomic Decomposition
Break a complex ML or systems paper into atomic concepts, each with LaTeX from literature and matching code from repos.
Overview
Atomic Decomposition is an agent skill most often used in Idea (also Validate, Build) that splits research ideas into atomic concepts with paired math formulas and code implementations.
Install
npx skills add https://github.com/lingzhi227/agent-research-skills --skill atomic-decompositionWhat is this skill?
- Three-step workflow: atomic definitions, per-atom paper math survey, per-atom code survey
- Bidirectional math formula ↔ implementation mapping with JSON knowledge entries
- Each atom must be self-contained, formally grounded, and traceable to papers and repositories
- References decomposition prompts in bundled references/decomposition-prompts.md
- Derived from the AI-Researcher Survey Agent decomposition pattern
- Three-step workflow: atomic definitions, paper survey, code survey per atom
Adoption & trust: 659 installs on skills.sh; 114 GitHub stars; 2/3 security scanners passed (skills.sh audits).
What problem does it solve?
You understand a paper at a high level but cannot map each mechanism to equations and real code you could implement.
Who is it for?
Indie builders or agent pipelines grounding ML/systems papers before writing code or a validation plan.
Skip if: Quick product ideation without papers, pure UX copy, or teams that only need a single API integration with no formal model.
When should I use this skill?
Decompose research ideas into atomic concepts with bidirectional math-code mapping for complex system papers requiring formal grounding.
What do I get? / Deliverables
You get a set of atomic definitions with LaTeX, assumptions, repo references, and JSON knowledge entries ready for scoping or implementation planning.
- Per-atom JSON knowledge entries with definition, math_formula, and implementation references
- Traceable paper and repository citations per atomic concept
Recommended Skills
Journey fit
Spans multiple journey phases - primary shelf plus alternate fits below.
Research decomposition belongs on the idea shelf because you are grounding novelty before you commit to a build or prototype scope. The skill explicitly surveys papers and code—core research work—not shipping or validation experiments.
Where it fits
Break a multimodal architecture paper into kernels you can cite before choosing a stack.
List which atomic operators are in scope for a weekend prototype versus later milestones.
Hand JSON knowledge entries to a coder agent so each function maps to a named formula.
How it compares
A structured research decomposition workflow—not a generic web search or single-shot paper summary.
Common Questions / FAQ
Who is atomic-decomposition for?
Solo builders and small teams working from research papers or formal methods who need math-and-code traceability before they build.
When should I use atomic-decomposition?
In Idea/research when surveying a complex system paper; in Validate/scope when defining what to prototype; in Build/agent-tooling when feeding structured atoms into downstream coding agents.
Is atomic-decomposition safe to install?
Review the Security Audits panel on this Prism page and inspect the skill’s reference files and any network or search behavior your agent enables before running on private ideas.
SKILL.md
READMESKILL.md - Atomic Decomposition
# Atomic Decomposition Decompose research ideas into atomic concepts with math formula <-> code implementation mapping. ## Input - `$0` — Research idea, paper, or method description ## References - Decomposition prompts and workflow: `~/.claude/skills/atomic-decomposition/references/decomposition-prompts.md` ## Workflow (from AI-Researcher Survey Agent) ### Step 1: Break Down into Atomic Definitions Analyze the research idea and decompose into atomic, self-contained concepts: - Each atom should be a single concept - Must have clear mathematical foundations - Must be implementable in code - Must be traceable to specific papers ### Step 2: For Each Atomic Definition #### A. Paper Survey (Math Formula) - Search papers for the mathematical formulation - Extract the exact LaTeX formula - Note assumptions and constraints - Record reference papers #### B. Code Survey (Implementation) - Search codebases for implementations - Extract the corresponding code - Note implementation details and variations - Record reference repositories #### C. Create Knowledge Entry ```json { "definition": "Kernelized Gumbel-Softmax Operator", "math_formula": "Z = \\text{softmax}((\\log \\pi + g) / \\tau), g \\sim \\text{Gumbel}(0,1)", "code_implementation": "def gumbel_softmax(logits, tau=1.0): ...", "reference_papers": ["Paper Title 1"], "reference_codebases": ["github_user/repo_name"], "assumptions": ["Differentiable relaxation of discrete sampling"], "connections": ["Used in Component X of the proposed method"] } ``` ### Step 3: Compile Knowledge Base - Merge all atomic definitions into a structured knowledge base - Verify consistency: every math formula has a code implementation - Verify completeness: every code module traces to a formal definition - Identify any gaps (formulas without code, or code without theory) ## Rules - Each atomic definition must be specific enough to trace to concrete formulas and code - Do not skip or combine definitions — analyze each separately - If unsure about atomicity, err on the side of breaking down further - Document breakdown reasoning before analysis - Every mathematical concept in the paper must have verified code - Every code module must trace back to a formal mathematical definition ## Related Skills - Upstream: [research-planning](../research-planning/), [idea-generation](../idea-generation/) - Downstream: [experiment-code](../experiment-code/), [algorithm-design](../algorithm-design/) - See also: [math-reasoning](../math-reasoning/) # Atomic Decomposition Prompts Extracted from AI-Researcher (survey_agent.py) — the core innovation of atomic concept decomposition. ## Decomposition System Prompt ``` You are an expert research analyst. Your task is to decompose a research idea or method into atomic, self-contained concepts. Each atomic concept must: 1. Be a single, well-defined concept 2. Have a clear mathematical formulation (extractable from papers) 3. Be implementable as a code module 4. Be traceable to specific reference papers Do not combine multiple concepts into one atom. If unsure about atomicity, break down further. ``` ## Step 1: Initial Decomposition ``` Given the research idea: "{idea_description}" Break this down into atomic definitions. For each atom: - Name: A concise, specific name - Definition: One-sentence description - Category: {mathematical_concept, algorithm, loss_function, architecture_component, training_technique, data_processing} - Dependencies: Which other atoms this depends on Example decomposition for "Graph Attention Network": 1. Message Passing → Graph convolution operation 2. Attention Coefficient → Learnable ed