agentsclimarketplace

Split llm codegen into idea plus per item

Skill kjuhwa/skills-hub/skills/workflow/split-llm-codegen-into-idea-plus-per-item

Split large LLM code generation into lightweight idea call + per-item full code calls to maximize output per artifactFrom its SKILL.md

Install
npx -y skills add kjuhwa/skills-hub --skill split-llm-codegen-into-idea-plus-per-item

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.7 KB, 310 tokens by cl100k_base, as published. Nobody here has run it

Split LLM Code Generation: Idea + Per-Item Calls

When generating multiple large code artifacts via LLM CLI, a single call requesting N items produces N small results. Splitting into (1 + N) calls — one lightweight idea call plus N individual code calls — gives each artifact the full response capacity.

When to use

  • Generating 3+ substantial code artifacts (apps, components, modules) in one workflow
  • Each artifact needs 500+ lines
  • Single-call approach produces undersized results

Pattern

Call 1 (lightweight, 2min timeout):
  "Generate N ideas with names, descriptions, features"
  → Parse N idea blocks

Call 2..N+1 (heavy, 30min timeout each):
  "Build ONE complete app for idea[i] with full spec"
  → Each gets full response capacity

Key decisions

  • Idea call is cheap (short response) — use tight timeout (60-120s)
  • Code calls are heavy — use generous timeout (15-30min)
  • Pass idea metadata (name, features) into each code call for consistency
  • Concatenate results after all calls complete

Anti-patterns

  • Requesting all artifacts in one call ("generate 3 complete 2000-line apps") — each gets ~1/3 capacity
  • Not parsing idea output before code calls — fails silently if ideas malformed
  • Equal timeouts for idea vs code calls — wastes time or causes premature timeout

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,144. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.