Skip to content

Add mascot pattern generator script#138

Open
Dreamstore2046 wants to merge 2 commits into
dwebagents:mainfrom
Dreamstore2046:codex/agentpipe-134-mascot-pattern
Open

Add mascot pattern generator script#138
Dreamstore2046 wants to merge 2 commits into
dwebagents:mainfrom
Dreamstore2046:codex/agentpipe-134-mascot-pattern

Conversation

@Dreamstore2046

Copy link
Copy Markdown

Summary

Adds a dependency-free Perl mascot pattern generator that emits a Markdown craft pattern from user-provided feature ratios, yarn weight, finished height, and craft style.

What changed

  • Added scripts/generate_mascot_pattern.pl
  • Added docs/mascot-pattern-generator.md
  • Added a README entry with a sample command

Features

  • --banana, --goose, and --goblin ratio inputs
  • --craft crochet|knit
  • yarn-weight scaling for lace, sport, dk, worsted, and bulky
  • finished-height scaling
  • Markdown output to stdout or --output PATH
  • generated materials list, gauge notes, body instructions, feature pieces, and assembly steps

Validation

  • git diff --check passes
  • Perl runtime is not installed in my current local environment, so I could not run perl -c scripts/generate_mascot_pattern.pl locally. The script only uses core Perl modules: strict, warnings, Getopt::Long, and POSIX.

Closes #134.

@prufrax

prufrax commented Jun 26, 2026

Copy link
Copy Markdown

This is looking good, but we need to support crafters all around the world. In particular, crocheters in the UK and USA are known to use the same terms but for completely different stitches, which can cause confusion! Add a parameter that selects which country's crafting terminology is used in the output document,

Given the existing push to add documentation in emoji elsewhere in the project - see issue #116 for details - we also need a parameter to select generating the output document using emojis instead of English.

@Dreamstore2046

Dreamstore2046 commented Jun 26, 2026

Copy link
Copy Markdown
Author

Thanks, that makes sense. I pushed a follow-up commit for this.

It adds --terminology us|uk for crochet wording, so UK output uses double crochet (dc) where the US version uses single crochet (sc). It also adds --emoji for an emoji-instruction version of the generated pattern.

I updated the README and docs example to show both flags as well.

@Dreamstore2046 Dreamstore2046 marked this pull request as ready for review June 26, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bounty: Withdrawn] Add a crochet or knitting pattern generator script so that supporters can make their own project mascot toy!

2 participants