
Algorithm Design
Turns your method descriptions into LaTeX algorithm blocks and Mermaid diagrams that actually match your code. It generates pseudocode using the algorithmic package with proper Require/Ensure blocks, numbered lines, and standard notation, then creates corresponding UML class and sequence diagrams. The real value is in step 4: it enforces consistency between your pseudocode, diagrams, and implementation so parameter names and structure stay aligned. Best used when you're writing a paper and need to formalize an existing implementation, or when you're designing something new and want the documentation to guide the code. Saves you from the usual mess of pseudocode that doesn't match what you actually built.
- skills.sh installs
- 1.7K
- GitHub stars
- 459
- last updated
- Aug 21, 2026
Install
$ npx -y skills add lingzhi227/agent-research-skills --skill algorithm-design --agent claude-codeInstalls into .claude/skills of the current project.
Files
Algorithm Design
Formalize methods into algorithm pseudocode and system architecture diagrams.
Input
$0— Method description or implementation to formalize
References
- Algorithm and diagram templates:
~/.claude/skills/algorithm-design/references/algorithm-templates.md
Workflow
Step 1: Formalize the Algorithm
- Define clear inputs and outputs
- Identify the main loop / recursive structure
- Specify all parameters and their types
- Write step-by-step pseudocode
Step 2: Generate LaTeX Pseudocode
Use algorithm + algpseudocode environments:
\begin{algorithm}[t]
\caption{Method Name}
\label{alg:method}
\begin{algorithmic}[1]
\Require Input $x$, parameters $\theta$
\Ensure Output $y$
\State Initialize ...
\For{$t = 1$ to $T$}
\State $z_t \gets f(x_t; \theta)$
\If{convergence criterion met}
\State \textbf{break}
\EndIf
\EndFor
\State \Return $y$
\end{algorithmic}
\end{algorithm}
Step 3: Generate UML Diagrams (Mermaid)
Class Diagram
classDiagram
class Model {
+forward(x: Tensor) Tensor
+train_step(batch) float
}
Sponsors
Details
- Repository
- github.com/lingzhi227/agent-research-skills
- Categories
- AI & Agent Building, Data Science & ML, Sales & Marketing, Design & UI/UX
- First seen
- Jun 3, 2026
More from lingzhi227/agent-research-skills
All 31- Rebuttal Writing1.7K
- Code Debugging1.7K
- Related Work Writing1.7K
- Table Generation1.7K
- Self Review1.7K
- Slide Generation1.7K
- Paper Compilation1.7K
- Atomic Decomposition1.6K
- Paper To Code1.6K
- Experiment Code1.6K
- Paper Assembly1.6K
- Symbolic Equation1.6K
- Excalidraw Skill1.6K
- Literature Review4.1K
- Literature Search2.7K
- Figure Generation2.3K
- Latex Formatting2.3K
- Backward Traceability2.3K
- Math Reasoning2.2K
- Citation Management2.2K
- Data Analysis2K
- Deep Research2K
- Idea Generation1.9K
- Novelty Assessment1.9K