algorithm-prototyping-workflow

A workflow for turning an algorithm idea into pseudocode, runnable code, and a small feasibility experiment. It also requires reports and saved test results.

In plain words
What is it for?
Use it to create algorithm documentation, implementation and tests, run a quick experiment, and save reproducible data and findings.
Why use it?
It ensures an algorithm is tested in practice instead of remaining only a discussion or design sketch.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/sillydaibo/reasflow-dev/algorithm-prototyping-workflow
Any agent
npx skills add sillyDaibo/reasflow-dev --skill algorithm-prototyping-workflow
Clone the repo
git clone --depth 1 https://github.com/sillyDaibo/reasflow-dev

Made for: Claude Code, Codex.

Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 527 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00030 $0.00527
Opus 5 $0.00015 $0.00264
Sonnet 5 $0.00006 $0.00105
Haiku 4.5 $0.00003 $0.00053

Measured yesterday against content hash f298cc011455, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

algorithm-prototyping-workflow scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/reasflow/algorithm/algorithm-prototyping-workflow/SKILL.md · 58 lines

What it actually says

Installed Root

Resolve the installed reasflow-dev skills root before running packaged scripts:

REASFLOW_SKILLS_ROOT="${REASFLOW_SKILLS_ROOT:-}"
if [ -z "$REASFLOW_SKILLS_ROOT" ]; then
  if [ -d ./.agents/skills ]; then
    REASFLOW_SKILLS_ROOT="$(pwd)/.agents/skills"
  elif [ -d "$HOME/.agents/skills" ]; then
    REASFLOW_SKILLS_ROOT="$HOME/.agents/skills"
  else
    echo "reasflow-dev skills not found in ./.agents/skills or $HOME/.agents/skills" >&2
    exit 1
  fi
fi

Algorithm Prototyping Workflow

Overview

Use this when Algorithm must deliver concrete method artifacts, not only discussion. The minimum bar is pseudocode plus runnable code plus one executed feasibility run.

Required Artifacts

  1. Alg_Exp/document/pseudocode.tex
  2. Alg_Exp/code/algorithm.py
  3. Alg_Exp/code/test_algorithm.py
  4. Alg_Exp/code/quick_experiment.py (or equivalent experiment section in test code)
  5. Alg_Exp/data/test_run.json or Alg_Exp/data/test_run.csv
  6. Alg_Exp/document/algorithm_design.md
  7. Alg_Exp/document/test_experiment_report.md

Workflow

  1. Lock assumptions and invariants first with algorithm-design-review.
  2. Draft and save pseudocode before implementation.
  3. Implement the minimal runnable algorithm API.
  4. Add and run at least one basic executable test.
  5. Run one quick experiment on a controllable toy problem and capture logs.
  6. If numeric traces are available, use smart-plotting to save at least one figure under Alg_Exp/picture/.
  7. Record commands, metrics, pass or fail judgment, and next steps in test_experiment_report.md.

Command Logging

Use experiment-execution for reproducible command logging and seed tracking whenever scripts are run from Alg_Exp/code/.

Final Response Contract

Before finishing, include:

  • a short pseudocode snippet
  • the executed test command and result
  • the executed quick experiment command and key metrics
  • an explicit feasibility judgment
  • paths to all generated artifacts
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 58 lines · 30 tokens per session scan A f298cc011455

Subscribe to this mod's changes

algorithm-prototyping-workflow is a skill published in the GitHub repository sillyDaibo/reasflow-dev (2 stars, last pushed 5d ago), licensed MIT. It adds 30 tokens to every session and 527 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

agent-host-chat-contributions

Build and review cross-cutting agent-host chat behavior through lifecycle contributions. Use when adding turn lifecycle side effects, prompt or context injection, restored-history transformation, protocol-action observation, or when reviewing changes that add code to AgentSideEffects or AgentService.

microsoft/vscode · 56 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens