Skip to content

feat: add build-models and publish-models skills#7

Open
zeke wants to merge 1 commit intomainfrom
add-build-and-publish-skills
Open

feat: add build-models and publish-models skills#7
zeke wants to merge 1 commit intomainfrom
add-build-and-publish-skills

Conversation

@zeke
Copy link
Copy Markdown
Member

@zeke zeke commented Apr 27, 2026

This PR adds two new skills covering the model-creation lifecycle on Replicate:

  • build-models — packaging custom models with Cog: cog.yaml, predict.py, weights loading with pget, cold-boot tricks, async predictors with continuous batching, multi-LoRA composition, and a weights cache helper.
  • publish-modelscog push, cog-safe-push with the full config schema, GitHub Actions patterns (DIY and the model-ci-template reusable workflow), multi-model matrix pushes, two-pass official-model pushes, deployments, and a post-publish monitoring pattern.

Descriptions are written for high triggerability: they list specific commands (cog push, cog-safe-push), file names (cog.yaml, predict.py), URLs (r8.im, cog.run), and natural trigger phrases.

Patterns are distilled from a survey of production Replicate model repos: cog-flux, cog-flux-kontext, cog-vllm, cog-comfyui, flux-fine-tuner, vibevoice, cog-yue, cog-official-nightmareai-real-esrgan, plus the cog-template, cog-official-template, and model-ci-template scaffolding repos. Each skill ends with a "Production references" section linking to the real examples on GitHub.

Both skills validate with script/lint, and the existing five skills still validate after the marketplace and AGENTS.md updates.

Two new skills covering the model-creation lifecycle:

- build-models: packaging custom models with Cog (cog.yaml, predict.py,
  weights loading with pget, cold-boot tricks, async predictors).
- publish-models: cog push, cog-safe-push, GitHub Actions patterns,
  multi-model matrix pushes, and post-publish monitoring.

Descriptions are written to be easy for agents to trigger on, with
specific file names, commands, and trigger phrases.

Patterns are distilled from production Replicate model repos including
cog-flux, cog-flux-kontext, cog-vllm, cog-comfyui, flux-fine-tuner,
vibevoice, cog-template, and model-ci-template.
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.

1 participant