/shub-workflow-toolkit:shub-workflow-architecturesfrom shub-workflow-toolkit
Runs an interactive design session for shub-workflow Scrapy Cloud projects: interviews requirements, maps to independent-agents architecture, writes design doc with roles/storage contracts/scaling, and scaffolds script skeletons.
Ships in shub-workflow-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This skill turns a project's requirements into a workflow architecture, and then into script skeletons. Its knowledge is the architecture described in Part III of the shub-workflow wiki:
Developers rarely arrive with complete requirements, and the decisions that shape the architecture (continuous or on demand? seeds or urls? deduplication across runs? downloads?) are often ones they haven't thought about yet. So:
setup.py scripts, spiders
(base classes, arguments), existing managers/scripts, scrapinghub.yml, storage paths in the
settings. Don't ask what the code already answers; do ask whether what the code does is still
what they want.docs/architecture.md in the project). Review it with the developer
and iterate.shub-workflow-diagrams skill.setup.py, with TODOs where project decisions remain. For the details of each component, defer to
the shub-workflow-crawl-managers, shub-workflow-issuers, shub-workflow-hcf,
shub-workflow-scripts and shub-workflow-monitors skills rather than re-deriving them here.load_last_outputs, job acquisition). If you can't
name it, the design is not done.acquire_all_jobs = True, ownership narrowed per
spider when several instances share a name); they never resume.examples/batch_crawlmanager.py (opens in a new tab)examples/common.py (opens in a new tab)examples/delivery.py (opens in a new tab)examples/keepalive_scheduler.py (opens in a new tab)examples/seeded_spider.py (opens in a new tab)examples/seeds_consumer.py (opens in a new tab)examples/seeds_crawlmanager.py (opens in a new tab)examples/slot_deduplicator.py (opens in a new tab)examples/url_batch_crawlmanager.py (opens in a new tab)references/design-doc-template.md (opens in a new tab)references/interview.md (opens in a new tab)references/patterns.md (opens in a new tab)references/pitfalls.md (opens in a new tab)references/reference-architectures.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub scrapinghub/shub-workflow --plugin shub-workflow-toolkit10 skills in this plugin
/scanjobs-programsUse for help using shub_workflow's scanjobs tool — scanning ScrapyCloud jobs to extract and plot data from stats, logs, items, spider args or job metadata. Also reach for it, instead of a hand-rolled job-listing script, to take a census of a spider's jobs over a time window: how many ended with each close_reason (e.g. memusage_exceeded / killed by oom), on which deployed version, with which units, alongside per-job stats such as memusage/max. Covers building a scanjobs command line (the stat/log/item/spider-arg/meta patterns, the postscript post-processor -c, the --plot mini-language, time windows, and output modes) and the predefined "programs" shortcut: the PROGRAMS dict in a project's scripts/scanjobs.py (a subclass of shub_workflow.utils.scanjobs.ScanJobs), invoked as `scanjobs.py -g <program> -v key:val`, including {var} placeholders and {{ }} escaping. Applies to any project whose scripts/scanjobs.py subclasses shub_workflow's ScanJobs./shub-workflow-crawl-managersUse when building, updating, fixing, or understanding a shub-workflow crawl manager — a script that schedules spider jobs on Scrapy Cloud and reacts to their outcomes, built on shub_workflow.crawl (CrawlManager / PeriodicCrawlManager / GeneratorCrawlManager / AsyncSchedulerCrawlManagerMixin) and WorkFlowManager. Covers choosing the base class, the set_parameters_gen() generator pattern, the outcome/retry/throttling hooks, async concurrent scheduling, and the name/flow-id/loop-mode rules. Use for any crawl-manager script in any project that subclasses these classes (directly or via a project base mixin).Other plugins' skills for the same job