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).
cli-and-automationRoutes reliable Hugging Face Hub CLI and shell automation, including hf output modes, authentication, file movement, repository and catalog operations, hosted jobs, extensions, and agent-skill generation. Use for hf command selection, JSON or quiet parsing, login and token handling, dry-run or confirmation planning, extensions, or compatible CLI skills.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when a researcher needs to select, explain, or safely
automate the hf command-line interface. Treat the installed executable's
--help as the release-specific authority: the generated CLI surface changes
with the installed huggingface_hub version.
Load this skill for:
hf command/flag should I use?” and shell scripts around the Hub;jq/pipeline parsing, or stderr hygiene;HF_TOKEN, auth state, or non-interactive operation;hf cp, bucket sync, URI/revision/type selection, or
dry-run/plan/apply review;hf skills add, update, preview, marketplace skills, or the implicit
skill freshness check.Read CLI reference before using a detailed flag. Run only safe probes first:
command -v hf && hf --help
hf version
hf --version
hf is the supported entry point. huggingface-cli is a deprecated entry
point and may warn and exit instead of providing the old CLI. tiny-agents is
a separate MCP/agent CLI, not an alias for hf; inspect it with
tiny-agents --help and do not infer its syntax from this skill. If the
commands resolve to different installations, report the paths and use the
one intended by the current environment.
hf <group> --help and then hf <group> <command> --help for the
installed version. Do not copy a flag from an older generated reference
without checking help.--dry-run, --plan, or a
read-only list), inspect the exact target and action set, then obtain
confirmation before applying.--repo-type/--revision or encode them in one hf:// URI. Never
combine URI-encoded type/revision/path with duplicate positional/options.skills/extensions surface.hf, bounded timeouts/probe counts, and exact
allowlisted built-in command paths with no arguments; every invocation ends
in --help. It never invokes a mutating command and always disables startup
update checks for its child processes.| Need | Route |
|---|---|
| Format, parse, auth, shell safety | CLI reference → automation workflows |
| Download/cache/read path | downloads-and-storage sibling, then this skill for CLI flags |
| Upload, repo CRUD, branches/tags, discussions | hub-operations sibling, with this skill for command routing |
| Models/datasets/Spaces catalog or cards | this skill; route inference endpoint details to its sibling |
| Jobs, sandboxes, buckets, cloud storage | this skill; use dry-run/plan gates |
| Python API rather than a terminal command | the relevant sibling/API skill |
This sub-skill does not replace the sibling operating skills for detailed Python APIs, inference behavior, cache internals, or Hub mutation policy. It owns the CLI boundary and automation contract.
--yes bypasses a confirmation gate; it does not make the target safe.
Never add it merely to make a script non-interactive.--format json does not mean every command is non-interactive. In
particular, login's browser/menu flow has restrictions; use an environment
token for automation.hf auth token intentionally prints a secret. Treat it as a narrow,
deliberate pipe, never as a diagnostic command.hf cp for local-to-local or unsupported bucket-to-repo copies;
use the documented alternative. Do not pass a directory to single-file cp.hf skills preview produces generated target-side hf-cli/SKILL.md
content. That generated file is distinct from this managed
huggingface-hub/sub-skills/cli-and-automation/ skill; do not overwrite or
present one as the other.A useful route ends with observable evidence: help exits zero; stdout parses
under the selected mode; stderr remains separate; a dry-run/plan reports the
intended actions without payload mutation; refused confirmation exits non-zero;
and a final status command verifies the operation. For the difficult synthetic
case, use a fake CLI/API fixture or help-only invocation to exercise a
hf download --dry-run --format json parse, preserve a warning on stderr, and
prove that hf repos delete without --yes is refused before any delete API
call. Broad production-marked native tests do not establish this end-to-end
shell contract.