lingzhi227/algorithm-design
Design algorithms with LaTeX pseudocode and UML diagrams. Generate algorithmic environments, Mermaid class/sequence diagrams, and ensure consistency between pseudocode and implementation. Use when formalizing methods for a paper.
npx skills add https://github.com/lingzhi227/agent-research-skills --skill algorithm-design
Formalize methods into algorithm pseudocode and system architecture diagrams.
$0 — Method description or implementation to formalize~/.claude/skills/algorithm-design/references/algorithm-templates.mdUse 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}
classDiagram
class Model {
+forward(x: Tensor) Tensor
+train_step(batch) float
}
sequenceDiagram
participant M as Main
participant D as DataLoader
M->>D: load_data()
D-->>M: batches
\Require / \Ensure for inputs/outputsTake lingzhi227/algorithm-design from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.