Check stitch counts
count_stitchesCounts stitches in knitting and crochet pattern rows, flagging skipped stitches or totals that differ from the printed pattern. Use it to walk through a row or check instructions for errors.
Instructions
Reads written knitting or crochet instructions row by row ("*k2, p2; rep from * to last 2 sts, k2", "(sc, inc) x 6 (18)") and counts the stitches each step uses and makes. Flags rows that do not use every stitch and counts that differ from the one printed in the pattern. Use it to walk someone through a row or to check a pattern for errors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | Consecutive rows or rounds, one per item, as written in the pattern. | |
| craft | No | knitting | |
| stitches_before | No | Stitches on the needle before the first row (0 for a magic ring). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| problems | Yes | Rows with at least one warning. |