/aws-startups-solution-architecture:self-hosted-llm-batch-inferencefrom AWS Startups Solution Architecture
Prescribes AWS Batch with ECS Spot, S3 model staging, vLLM offline inference, and automatic recovery for recurring 1B-8B LLM batch inference on a single GPU. Covers sizing, sharding, retries, and output reconciliation.
Ships in AWS Startups Solution Architecture. 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.
Build a repeatable offline inference path for a startup that needs GPU economics without operating an ML platform. Use one AWS Batch job for one corpus run, backed by Amazon ECS Managed Instances Spot. Stage model weights in Amazon S3, divide the corpus into deterministic shards, and process those shards sequentially with vLLM on one GPU.
Keep the infrastructure stack separate from each run. Provision reusable Batch, ECR, IAM, logging, and optional networking resources with infrastructure as code. Submit each run separately with immutable image, model, prompt, input manifest, and output identifiers.
Set scaleInAfter to 0 for this architecture. No follow-up task is expected on the instance after
the Batch job ends, so retaining idle GPU capacity adds cost without improving the run.
Apply this skill only when all of these conditions hold:
Do not apply this skill to online endpoints, training or fine-tuning, embedding models, other inference engines, multi-GPU or distributed inference, or one-off experiments where an operator can rerun the command manually.
references/prepare-model-and-input.md and define the immutable model artifact, prompt
contract, deterministic shard manifest, output schema, quarantine schema, and measured sizing
inputs.references/run-with-aws-batch.md and author the reusable infrastructure plus the
separate SubmitJob invocation. Preserve one Batch job per corpus run.references/verify-and-optimize.md before the canary and again after the full run.
Reconcile records, confirm retry behavior, measure cost inputs, and verify that GPU capacity has
terminated.SubmitJob invocation containing immutable image, model, prompt, input manifest, and
output prefix identifiers.Invoke upstream skills only when authoring the artifacts they own:
Skill("aws-core:aws-containers"): ECS Managed Instances, ECR, and container mechanics.Skill("aws-core:aws-cloudformation") or Skill("aws-core:aws-cdk"): the selected
infrastructure-as-code implementation.Skill("aws-core:aws-iam"): role and policy implementation.Skill("aws-core:aws-storage"): S3 storage and transfer implementation.Skill("aws-core:aws-compute"): actual single-GPU instance candidates after measuring the
workload.Skill("aws-core:aws-billing-and-cost-management"): current rates and cost calculations
using the measurements defined here.Skill("aws-core:aws-messaging-and-streaming"): Batch state-change notifications when
unattended completion needs a notification path.Skill("aws-core:aws-secrets-manager"): gated model credentials during staging only.references/prepare-model-and-input.md: Read before choosing GPU capacity or writing
infrastructure. Defines model staging, prompt and record contracts, deterministic shards,
manifests, output and quarantine schemas, and measurement inputs.references/run-with-aws-batch.md: Read before authoring the stack or submitting a run.
Defines the AWS Batch architecture, scaleInAfter, networking decision, job lifecycle, retries,
resumability, IAM boundaries, and stack-to-run contract.references/verify-and-optimize.md: Read before the canary and after every full run. Defines
acceptance checks, reconciliation, interruption testing, capacity-release verification, and the
measurements passed to cost analysis.What SKILL.md sets; muted values are Claude Code's defaults
5 skills in this plugin
/agentcore-patternsThis skill should be used when an automated agent's output is published under its own identity and carries weight in someone else's work, such as a reviewer whose verdict lands on a pull request, and the open question is how much authority it has actually earned. Covers which conclusions such an agent may state as settled and which it must hand to a person, why a verdict that moves between runs on unchanged input cannot be allowed to decide anything, handing an uncertain item to a human rather than discarding it, grounding each claim in something computed rather than recalled, and the published-state and recall behaviour that decides whether people keep reading the output or learn to skim it. It should also be used when such an agent is being ignored, contradicts itself between runs, or reports a state that nothing current supports. Not for measuring or improving an agent's own output quality, which belongs to aws-agents:agents-optimize, nor for building, deploying, or hardening an agent./cost-regression-checkThis skill should be used when a company that pays its AWS bill from a fixed monthly ceiling, often funded by credits, asks what a pull request or other infrastructure-as-code change (Terraform, AWS CDK, or AWS CloudFormation) will add to that bill before apply, or wants that cost on every pull request, including through Infracost or another estimator in CI. It reports two numbers at list price before credits: the fixed monthly floor added at zero traffic, and the change in cost per unit of the team's own usage, against absolute thresholds derived from the ceiling and kept in the repository. It sets up a CI job and a repository-owned script so the author and the bill owner decide on each pull request. Not for spend that already happened (aws-core:aws-billing-and-cost-management), price lookups with no change under review, advice on infrastructure code as it stands, general release risk, or choosing services that avoid a floor.npx claudepluginhub awslabs/startups --plugin aws-startups-solution-architectureOther plugins' skills for the same job