brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
customization-and-developmentExtend ModelScope with custom pipelines, registered components, safe scaffolding, contributor workflow, test levels, and trust-boundary guidance.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the user wants to extend ModelScope itself or create a custom ModelScope-facing pipeline/model/preprocessor wrapper. Keep the workflow safe by default: plan scaffolding before running it, avoid downloads and training during design checks, and treat remote code/plugin execution as an explicit trust decision.
pipeline(), Model.from_pretrained(), devices,
batching, and output keys: use ../pipelines-and-models/SKILL.md.../training-and-evaluation/SKILL.md.configuration.json shape, registration patterns, and trust gates:
references/extension-workflows.md.references/contributor-guidance.md.references/troubleshooting.md.Before running ModelScope's scaffold command, create a dry-run command plan:
python scripts/pipeline_template_plan.py \
--task_name my-task \
--model_name MyCustomModel \
--preprocessor_name MyCustomPreprocessor \
--pipeline_name MyCustomPipeline \
--filename ms_wrapper.py \
--save_file_path ./custom_pipeline \
--configuration_path ./custom_pipeline
The bundled planner prints the modelscope pipeline --action create ... command
only. It validates that --filename ends with .py; it does not create files,
import ModelScope, contact the network, download models, train, or overwrite
anything.
configuration.json when the generated Python file is imported
or run. Inspect and refactor generated code before using it as a package
module.@PIPELINES.register_module
run only after the wrapper/plugin module has been imported, or after a
packaged ModelScope module has been indexed and lazily imported.task/registry group, decorator module_name, and
configuration.json type fields must agree.plugins, allow_remote, and trust_remote_code=True as code
execution boundaries. Do not enable them merely to bypass an error.