guide-complexity SKILL.md skillA

guide-complexity from ovich/swarmstorm is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add ovich/swarmstorm/guide-complexity@git:20261029.0f93e64

Pins git:20261029.0f93e64 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
ovich/swarmstorm
Path
skills/guides/guide-complexity/SKILL.md
Versions recorded
2
Latest version
git:20261029.0f93e64, committed Oct 29, 2026
First version recorded
Oct 29, 2026
Size
1,209 bytes
Repository stars
13
License
MIT

Use when code is written or changed that branches heavily, in any language: if/else or switch chains, type-check cascades, kind fields compared to strings, flag parameters, deep nesting. Produces the branching shaped before it lands, and the bar it must meet at merge. Not for auditing or reworking existing code (complexity-rework).

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Guide: complexity

**Applies** to any code that adds or grows branching: a chain of conditions, a dispatch on a kind, a flag that changes what a function does, nesting past two levels.

## Shaping step

1. Before writing the branch, name what varies: the kinds, the cases.
2. Put each case behind one shape: a table, a map of handlers, a type per kind, one function per flag value.
3. Keep each function one level of decision; extract the rest.
4. The branching already exists and is to be reworked: run the `complexity-rework` skill.

## Ok at merge

- No new chain of more than three conditions on the same value.
- No kind compared to strings in more than one place; no boolean flag parameter.
- Nesting at most two levels in the changed code.

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add ovich/swarmstorm/guide-complexity@sha256:3858fab2a54b0e8e

The line at the top of this page pins the label git:20261029.0f93e64, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_yozd67r6qlqbdfym.svg)](https://markdownregistry.com/a/art_yozd67r6qlqbdfym)

1 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 2 versions of this file, all committed on Oct 29, 2026.

versioncommittedcommitsizeaudit
git:20261029.0f93e64 latest2026-10-29 0f93e64 1,209 BA view · diff
git:20261029.2dc97d32026-10-29 2dc97d3 1,142 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (1209 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

ovich/swarmstorm · 13 stars · license MIT · pushed 2026-10-31 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_yozd67r6qlqbdfym
GET https://markdownregistry.com/api/v1/resolve?ref=ovich/swarmstorm/guide-complexity
GET https://markdownregistry.com/api/v1/blob/3858fab2a54b0e8eb8bc418c4d4e481d15dd14752b97d205774fa83335b0bde8

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from ovich/swarmstorm

AGENTS.md AGENTS.md file
ovich/swarmstorm · AGENTS.md
git:20261029.7ac2702 · audit A · 13 stars
brainstorm SKILL.md skill
ovich/swarmstorm · skills/alignment/brainstorm/SKILL.md · Use when a person wants to think an idea through and keep the discussion: a feature, a tool choice, an architecture…
git:20261024.7900d5e · audit A · 13 stars
brainswarm SKILL.md skill
ovich/swarmstorm · skills/alignment/brainswarm/SKILL.md · Use when a person wants a swarm of role seats to work a topic on the swarm board under a chosen protocol: a brainstorm…
git:20261031.07d1bd8 · audit A · 13 stars
interview SKILL.md skill
ovich/swarmstorm · skills/alignment/interview/SKILL.md · Use when a person says "interview me" or asks to be interviewed about an idea or an existing design document (a board…
git:20261024.7900d5e · audit A · 13 stars
whiteboard-defense SKILL.md skill
ovich/swarmstorm · skills/alignment/whiteboard-defense/SKILL.md · Use when a person wants to be questioned about a system they shipped, says "defend <feature>" or "whiteboard me on…
git:20261024.7900d5e · audit A · 13 stars
complexity-rework SKILL.md skill
ovich/swarmstorm · skills/architecture/complexity-rework/SKILL.md · Use when code is hard to follow and is to be audited or reworked: long if/else or switch chains, cascades of type…
git:20261007.75cb045 · audit A · 13 stars
deepen-module SKILL.md skill
ovich/swarmstorm · skills/architecture/deepen-module/SKILL.md · Use when a person asks to design a new module's interface or to rework an existing module so that it hides much behind…
git:20261024.148caad · audit A · 13 stars
dependency-graph SKILL.md skill
ovich/swarmstorm · skills/architecture/dependency-graph/SKILL.md · Use when a JavaScript or TypeScript project's dependencies must be seen as they are in the code: the whole graph, what…
git:20261007.75cb045 · audit A · 13 stars
write-diagrams SKILL.md skill
ovich/swarmstorm · skills/architecture/write-diagrams/SKILL.md · Use when a document produced in this collection (board, plan, report, analysis, durable doc) could carry a diagram, or…
git:20260930.1f00423 · audit A · 13 stars
aiview SKILL.md skill
ovich/swarmstorm · skills/companions/aiview/SKILL.md · Use whenever a document is produced for the user to read and react to while it evolves: a brainstorm board, a plan, a…
git:20261030.980aac1 · audit A · 13 stars
swarm-board SKILL.md skill
ovich/swarmstorm · skills/companions/swarm-board/SKILL.md · Use when agents run together on the project's swarm board: a plan, a task swarm or a brainswarm, as its orchestrator or…
git:20261031.26f698f · audit A · 13 stars
execute-plan SKILL.md skill
ovich/swarmstorm · skills/execute/execute-plan/SKILL.md · Use when carrying out an implementation plan the person has already approved, whether starting it or resuming it in a…
git:20261024.148caad · audit A · 13 stars

Every file in ovich/swarmstorm

Browse by kind, by grade A, or by owner.