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.
mdr add ovich/swarmstorm/guide-complexity@git:20261029.0f93e64Pins 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
mdr add ovich/swarmstorm/guide-complexity@sha256:3858fab2a54b0e8eThe 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.
[](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.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261029.0f93e64 latest | 2026-10-29 | 0f93e64 | 1,209 B | A | view · diff |
| git:20261029.2dc97d3 | 2026-10-29 | 2dc97d3 | 1,142 B | A | view |
Audit of the latest version
- 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
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.