Install
openclaw skills install @voronindenis5/knitting-pattern-solverParse, decode, and expand written knitting patterns. Translates abbreviations, calculates yarn requirements from gauge, tracks stitch counts across rows, and generates row-by-row instructions from condensed pattern notation. Use when a knitter needs help understanding, planning, or tracking a knitting project.
openclaw skills install @voronindenis5/knitting-pattern-solverKnitting patterns are written in dense shorthand — k2, p2, *k2tog, yo, rep from * to last 4 sts — that's impenetrable to beginners and error-prone even for experts. Row counts get miscounted, yarn runs out mid-project, and pattern repeats are easy to botch. This skill decodes that notation into plain-English instructions, calculates exactly how much yarn a project needs based on a gauge swatch, tracks your progress row by row, and flags stitch-count errors before they compound.
python scripts/pattern_parser.py "k2, p1, *yo, k2tog, rep from * 3 times, k2"
Output: plain-English step-by-step for each segment, with the expanded repeat count.
python scripts/yarn_calculator.py --gauge-swraps 20 --gauge-rows 28 --swatch-yards 18 --project-stitches 200 --project-rows 300
Output: total yards needed, recommended buy-yardage (with 15% buffer), estimated skeins.
python scripts/pattern_parser.py --verify "CO 100, Row 1: k2, *p2, k2, rep from * to end"
Output: per-row expected stitch count and flag if any row's net change doesn't balance.
| Abbrev | Full Term | Effect on Stitch Count |
|---|---|---|
| k | knit | 0 |
| p | purl | 0 |
| yo | yarn over | +1 |
| k2tog | knit 2 together | -1 |
| ssk | slip slip knit | -1 |
| m1 | make 1 | +1 |
| kfb | knit front & back | +1 |
| bo | bind off | -1 per st bound off |
| co | cast on | sets initial count |
*...rep from * N times into concrete stitch sequences.Confusing "rep from * to end" with "rep from * N times." The former repeats until stitches run out; the latter does an exact count. The parser handles both but flags when "to end" doesn't divide evenly.
Forgetting that yo and k2tog in the same repeat may be decorative holes with zero net change. Always compute the net per-repeat delta, not individual stitches.
Yarn calculator assumes consistent gauge. If the user's tension varies (common for beginners), actual usage may differ ±20%. Always add a 15% safety buffer.
Gauge swatch must be washed and blocked before measuring. Pre-block measurements underestimate yardage for stretchy yarns.
Pattern substitution without re-gauging. Switching from DK to worsted changes everything. The user must knit a new swatch with the substitute yarn.
User: "I'm knitting a scarf. Pattern says: CO 40 sts. Row 1: *k3, p2, rep from * to end. Row 2: *p2, k3, rep from * to end. How much yarn do I need for 200 rows? My swatch is 20sts/4", 24 rows/4", and used 15 yards."
Agent workflow:
k3, p2 = 5-stitch repeat × 8 = 40 ✓ (divides evenly)