Synthèse automatique
Ce skill fournit un planificateur piloté par LLM qui transforme des instructions en langage naturel en plans structurés de sous-objectifs pour orchestrer l'exécution de tâches visuelles, avec un repli déterministe par mots-clés en l'absence de LLM.
Points forts
- Décomposition flexible d'instructions complexes en plusieurs étapes avec dépendances
- Gestion des références croisées entre étapes et de l'état via des schémas standardisés
- Découverte automatique des outils et modèles disponibles
- Repli déterministe robuste quand aucun fournisseur LLM n'est configuré
Limites
- Nécessite un fournisseur LLM configuré pour exploiter pleinement la planification intelligente
- Le repli déterministe peut être insuffisant pour des instructions complexes ou ambiguës
- Risque de sur-décomposition pour des instructions triviales si le LLM n'est pas bien guidé
Utilisez ce skill lorsque vous devez exécuter des instructions de génération ou d'édition visuelle complexes impliquant plusieurs étapes et des dépendances entre elles.
Ne l'utilisez pas pour des instructions simples en une seule étape qui peuvent être traitées directement par un sous-objectif unique sans planification.
Analyse de sécurité
SûrThe skill is a declarative instruction file that describes a planner component for an orchestration system. It does not contain any destructive commands, exfiltration attempts, or obfuscated payloads. It references existing scripts (propose_plan.py, etc.) that are part of the host system, with no indication of malicious intent or risky operations like arbitrary code execution from untrusted sources.
Aucun point d'attention détecté
Comment cette analyse est faiteExemples
Generate an image of a cat sitting on a chair, then animate it to wag its tail.Take the image from my previous turn and add a party hat to the cat.Search for a workflow that creates a 3D render, then run it on the model 'cityscape' and finally evaluate the output quality.name: planning-visual-tasks
description: v1.2 LLM-driven planner. Turns a natural-language instruction into a structured Plan envelope (contracts/agent/plan.schema.json) of typed sub-goals (workflow_search → model_resolve → comfyui_execute → llm_transform → evaluate → mcp_tool → checkpoint → wait_user). Use whenever a user instruction needs routing through the host orchestrator. The legacy v1 keyword router is preserved as a deterministic fallback when no LLM provider is configured.
planning-visual-tasks
v1.2 — the brain of the agent loop. Inputs: a user instruction +
optional task_state + the discovered tool / model / template
inventory. Output: a Plan envelope (matching
contracts/agent/plan.schema.json) that the host
Orchestrator consumes via Executor.run(sub_goal, task_state).
The v1 keyword router (scripts/decompose.py + scripts/emit_dag.py)
is preserved as a deterministic, no-LLM fallback. The host
POST /api/chat/invoke route picks v1.2 when an LLM provider is
configured (host.llm.provider.resolve_credentials() returns a key)
and falls through to the v1 router otherwise. See
host/api/chat_invoke.py::_llm_available and _invoke_stream_v12.
When this Skill applies
- Any natural-language image / video generation, edit, or
composition request that the host has routed through
POST /api/chat/invoke. - Single-goal instructions still go through this Skill — the LLM planner is responsible for the "do not over-decompose" decision and emits a 1-step Plan in that case.
- Multi-step "generate then adjust the light" / "and then make it
dance" instructions become a multi-subgoal DAG with explicit
state://,template://, andmodel://refs across steps. - Cross-turn "and then" continuations consume the prior turn's
TaskState.named_outputsso an earlier image can be referenced by name in the next turn.
Do not invoke when the caller already has a fully-specified
comfyui_execute sub-goal — instantiate the Executor and call
its comfyui_execute handler directly.
Scripts
scripts/propose_plan.py— v1.2 LLM-driven planner. Stdin:{instruction, task_state, available_tools}. Stdout: a Plan envelope. Wrapshost.agent.planner.Planner.propose.scripts/discover_tools.py— stdin{}, stdout{tools, models, templates, mcp_tools}. Lists every executorkindplus stubs from any installed Stream M / W / X surfaces.scripts/validate_plan.py— stdin Plan, stdout{ok, errors}. Checks schema, DAG acyclicity, ref resolution.scripts/legacy/decompose.py— v1 keyword router (no-LLM fallback). Heuristic clause-to-skill mapping. Still callable from the legacy code path for users without an LLM key.scripts/legacy/emit_dag.py— v1 DAG emitter for the legacy router output.scripts/decompose.pyandscripts/emit_dag.py— copies of the legacy scripts kept in place so v1.1 callers (the existinghost.api.chat_invoke.plan_instruction) keep working without modification. Removing these breaks the v1.1 fallback path.
Output contract — v1.2
The Plan envelope shape is canonical
(contracts/agent/plan.schema.json): {plan_id, task_id, user_instruction, execution_order, subgoals[]}. Sub-goal kind
values are limited to: workflow_search, model_resolve, model_download, comfyui_execute, llm_transform, evaluate, mcp_tool, checkpoint, wait_user. Cross-step refs use
scheme://sgN/<name> format only (state, template, model,
artifact schemes); the legacy $sgN.field form is rejected
by the executor's resolve_inputs unless allow_legacy_refs=True
is set explicitly.
The legacy v1 router emits a different shape ({steps, execution_order, created_at} keyed by skill+intent) — that
shape is consumed by host.runner.runner.Runner.run_dag and is
ONLY used on the no-LLM fallback path.
When this Skill applies
- The user issues an instruction that is not a trivial pass-through to one capability Skill (e.g. "generate a cyberpunk portrait, then replace the background with a neon street, then preserve the face across a style transfer"). Any instruction with ≥2 visual goals must go through the planner.
- Single-goal instructions still go through the planner — it is responsible for the "do not over-decompose" decision and emits a 1-step DAG in that case.
- Unusual requests that aren't covered by any bundled capability Skill route
through
searching-comfyui-solutionsfirst; the planner consumes the ranked search results as candidates.
Do not invoke when the caller already has a fully-specified Visual Intent Object for a single Skill — call the capability Skill directly.
Pipeline
- Parse the instruction: extract
goals[], optionalconstraints, optionalinputs.image_refs[]. - If any clause has no matching keyword and the caller supplies
search_candidateson stdin, the planner emits a search-grounded step for it. The planner itself does not shell out tosearch_local.pyorsearch_web.py— the caller (host runner) is responsible for invoking thesearching-comfyui-solutionsSkill scripts and passing the ranked hits in. Each candidate must carryskillandgoalfields declaring the target capability Skill; candidates without them are rejected (the planner fails loudly instead of guessing). Seescripts/decompose.pyVALID_SKILLS/VALID_GOALS. - Run
scripts/decompose.py— heuristics map (goals + constraints + search candidates) → ordered list of{skill, intent, depends_on, evaluators, provenance}. Any clause that cannot be resolved (no keyword match and no usable candidate) causes the script to exit 2 with ano_matcherror; partial plans are rejected. - Run
scripts/emit_dag.py— validates the decomposition, attaches provenance, returns the DAG JSON on stdout. - Caller (host) renders the DAG, gets user approval, then executes step by
step through each capability Skill's
compile.pyand thencomfyui-execution/submit_prompt.py.
Every step carries:
provenance.source—"bundled"|"search:<url>"|"user-supplied"provenance.retrieved_at— ISO 8601 UTC timestamp (ornullfor bundled)provenance.trust_tier— one ofbundled/web_trusted/web_unverifiedper../searching-comfyui-solutions/reference/trust-tiers.md
One-step vs multi-step decision
See reference/strategies.md. Hard rule: if the instruction contains a
single atomic visual action (generate, inpaint, replace bg,
transfer style, preserve face) and no compositional connective
("then", "and after", "while keeping"), emit a 1-step DAG.
Reference files
reference/intent-schema.md— Visual Intent Object fieldsreference/strategies.md— decomposition heuristicsreference/dag-examples.md— four worked examples including the v1 acceptance test
Scripts
scripts/decompose.py— pure Python; stdlib only; keyword + pattern match; no LLM. Input:{instruction, project_state?, search_candidates?}.scripts/emit_dag.py— validates and attaches provenance.
Error handling
Both scripts emit {"error": "...", "code": "..."} on bad input with exit
code 2. Never raise to caller.
References
knowledge/plans/v1/plan_v1.md§1, §7, §8.4knowledge/plans/v1/todo.md§6 (Stage 3)
Du fichier au premier essai
Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.
Consulter la source et ses fichiers annexesCe téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.
1. Télécharger le fichier
Télécharger SKILL.mdDepuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/visual-task-planning-mrwaka6e/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.
Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.
mkdir -p '.skill-downloads/visual-task-planning-mrwaka6e' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/visual-task-planning-mrwaka6e/download' --output '.skill-downloads/visual-task-planning-mrwaka6e/SKILL.md.part' && mv '.skill-downloads/visual-task-planning-mrwaka6e/SKILL.md.part' '.skill-downloads/visual-task-planning-mrwaka6e/SKILL.md'2. Vérifier les prérequis
Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.
Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.
Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.
3. Charger la skill
Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.
Claude Code
test -f '.skill-downloads/visual-task-planning-mrwaka6e/SKILL.md' && test -s '.skill-downloads/visual-task-planning-mrwaka6e/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/planning-visual-tasks' && cp -R '.skill-downloads/visual-task-planning-mrwaka6e' '.claude/skills/planning-visual-tasks'OpenSkills
OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.
Installation officielle d’OpenSkillsopenskills install './.skill-downloads/visual-task-planning-mrwaka6e'openskills read 'visual-task-planning-mrwaka6e'La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.
Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.
openskills syncMode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.
4. Faire un premier essai
Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :
Lis .skill-downloads/visual-task-planning-mrwaka6e/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.
Bonnes pratiques React Hook Form
Developpement
Maîtrisez React Hook Form : évitez les anti-patterns, gérez les abonnements, et traitez correctement reset, dirty state et entrées contrôlées.
Migration Emotion vers Mantine
Developpement
Migrer les styled-components Emotion vers des composants Mantine avec style props et modules CSS. Pour convertir .styled.tsx ou supprimer les imports @emotion.
Détecteur de dérive de périmètre
Developpement
Analyse les diffs git par rapport à une intention pour détecter la dérive de périmètre, fichiers non liés et PR trop larges, puis suggère de garder, diviser ou justifier.