
Atomic Decomposition
- 1 installs
- 255 repo stars
- Updated February 27, 2026
- lingzhi227/claude-research-skills
This is a copy of atomic-decomposition by lingzhi227 - installs and ranking accrue to the original listing.
Helps with ai & agent building tasks.
About
atomic-decomposition is a Claude Code skill for ai & agent building. It helps solo builders move faster with AI-assisted development.
- atomic-decomposition
- AI & Agent Building
- AI-coding skill
Atomic Decomposition by the numbers
- 1 all-time installs (skills.sh)
- Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/lingzhi227/claude-research-skills --skill atomic-decompositionAdd your badge
Show developers this skill is listed on Skillselion. Paste this into your README.
| Installs | 1 |
|---|---|
| repo stars | ★ 255 |
| Last updated | February 27, 2026 |
| Repository | lingzhi227/claude-research-skills ↗ |
What it does
Helps with ai & agent building tasks.
Files
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
{
"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, idea-generation
- Downstream: experiment-code, algorithm-design
- See also: 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 edge weights
3. Multi-Head Attention → Parallel attention mechanisms
4. Softmax Normalization → Attention weight normalizationStep 2A: Paper Survey (Math Formula Extraction)
For the atomic concept: "{atom_name}"
Definition: "{atom_definition}"
Search academic papers to find:
1. The original paper that introduced this concept
2. The exact mathematical formulation (LaTeX)
3. Key assumptions and constraints
4. Any important variants or extensions
Output format:
{
"math_formula": "Z = \\text{softmax}((\\log \\pi + g) / \\tau)",
"formula_explanation": "Gumbel-Softmax reparameterization trick",
"reference_papers": [
{"title": "...", "year": 2017, "where_in_paper": "Equation 3"}
],
"assumptions": ["Differentiable relaxation of discrete sampling"],
"variants": ["Straight-through estimator variant"]
}Step 2B: Code Survey (Implementation Extraction)
For the atomic concept: "{atom_name}"
Math formula: "{math_formula}"
Search code repositories to find:
1. A clean, reference implementation
2. Key implementation details not in the paper
3. Common pitfalls and workarounds
4. Popular library implementations (PyTorch, TensorFlow, JAX)
Output format:
{
"code_implementation": "def gumbel_softmax(logits, tau=1.0): ...",
"language": "Python/PyTorch",
"reference_codebases": ["github_user/repo_name"],
"implementation_notes": ["Use log-sum-exp trick for numerical stability"],
"common_pitfalls": ["Temperature must be > 0"]
}Step 2C: Knowledge Entry Template
{
"definition": "Kernelized Gumbel-Softmax Operator",
"category": "mathematical_concept",
"math_formula": "Z = \\text{softmax}((\\log \\pi + g) / \\tau), g \\sim \\text{Gumbel}(0,1)",
"formula_source": "Equation 3 in Jang et al., 2017",
"code_implementation": "def gumbel_softmax(logits, tau=1.0):\n gumbels = -torch.log(-torch.log(torch.rand_like(logits)))\n y = (logits + gumbels) / tau\n return F.softmax(y, dim=-1)",
"reference_papers": ["Categorical Reparameterization with Gumbel-Softmax"],
"reference_codebases": ["jang-e/gumbel-softmax"],
"assumptions": [
"Differentiable relaxation of discrete sampling",
"Temperature τ controls smoothness of approximation"
],
"connections": ["Used in Component X of the proposed method"],
"dependencies": ["softmax_function", "gumbel_distribution"]
}Step 3: Consistency Verification
Verify the knowledge base:
1. Math → Code completeness:
For every math formula, verify there is a corresponding code implementation.
Flag any formulas without code.
2. Code → Math completeness:
For every code module, verify it traces to a formal mathematical definition.
Flag any code without theory.
3. Cross-reference consistency:
- Variable names in code match notation in formulas
- Parameter counts match between formula and code
- Input/output dimensions are consistent
4. Dependency graph:
- No circular dependencies
- All dependencies are satisfied
- Topological order is well-definedGap Analysis Template
After decomposition, identify gaps:
| Atom | Has Math? | Has Code? | Gap Type |
|------|-----------|-----------|----------|
| atom_1 | ✓ | ✓ | None |
| atom_2 | ✓ | ✗ | Needs implementation |
| atom_3 | ✗ | ✓ | Needs formalization |
| atom_4 | ✗ | ✗ | Needs both |
Priority: Address "Needs both" first, then "Needs formalization",
then "Needs implementation".