Agents & OrchestrationSûr100100/100
Create Hook (Microsoft)
Create a hook (.json) to enforce policy or automate agent lifecycle events.
ou envoie-le directement à ton agent.
Installer dans ton projet
$ curl -fsSL https://arboristhree.xyz/cli/install-skill.mjs -o /tmp/arboris-install-skill.mjs && node /tmp/arboris-install-skill.mjs create-hook__microsoft-vscode__extensions-copilot-assets-prompts-skills-cb6bf529d150Microsoft
microsoft/vscode
Contenu à copier
--- name: create-hook description: 'Create a hook (.json) to enforce policy or automate agent lifecycle events.' argument-hint: What should be enforced or automated? disable-model-invocation: true metadata: origin: Microsoft --- Related skill: `agent-customization`. Load and follow **hooks.md** for template and principles. Guide the user to create a hook in `.github/hooks/`. ## Extract from Conversation First, review the conversation history. If the user has been expressing concerns about agent behavior (e.g., "don't run this command", "always check before doing X", "inject this context"), generalize that into a hook. Extract: - Actions that should be blocked or gated - Context that should be injected at certain points - Automation needs at session start/end or tool use ## Clarify if Needed If no clear policy need emerges from the conversation, clarify: - What event should trigger this hook? (e.g. PreToolUse, SessionStart, Stop) - Should it block, warn, or inject context? - Does it need a companion script? ## Path Conventions - Hook commands and companion scripts run with `cwd` defaulting to the workspace root (when a workspace folder is available); otherwise `cwd` falls back to the user home directory. Relative paths resolve from `cwd`. Absolute paths are fine when intentional — just be deliberate about which you use. - Do not use environment variables for pathing. The only exception is plugin-provided environment variables in hooks shipped as part of an agent plugin; never use environment variables for pathing outside of a plugin context. ## Iterate 1. Draft the hook JSON (and any scripts) and save them. 2. Identify the most ambiguous or weak parts and ask about those. 3. Once finalized, summarize what the hook enforces, suggest ways to test it, and propose related customizations to create next. Remember to follow the `agent-customization` guidelines to create highly effective hooks.
Colle ce Markdown dans ton agent ou utilise les boutons ci-dessus pour l’écrire dans ton projet.
Ce que fait Create Hook (Microsoft)
Actions that should be blocked or gated
Context that should be injected at certain points
Automation needs at session start/end or tool use
What event should trigger this hook? (e.g. PreToolUse, SessionStart, Stop)
Comment utiliser Create Hook (Microsoft)
1
Copie le prompt
Un clic copie le prompt packagé (ou l'envoie à ton agent).
2
L'agent installe le skill
Il ajoute le SKILL.md et ses ressources à ton projet.
3
Activation automatique
Le skill s'active dès que le contexte correspond.
Déclencheurs pour Create Hook (Microsoft)
Dis simplement à ton agent quelque chose comme :
Applique le skill create-hook__microsoft-vscode__extensions-copilot-assets-prompts-skills-cb6bf529d150 à cette tâche
Utilise create-hook__microsoft-vscode__extensions-copilot-assets-prompts-skills-cb6bf529d150 pour améliorer cette implémentation
Passe en revue ce sujet avec create-hook__microsoft-vscode__extensions-copilot-assets-prompts-skills-cb6bf529d150
Skills liés à Create Hook (Microsoft)
Acceleration (Microsoft)
Compare synthetic acceleration options and clearly separate scenario value from forecast commitments.Account Overview (Microsoft)
Create a synthetic Acme account overview and identify evidence that merits seller attention.Acroform Writer (Microsoft)
Use this skill whenever the user wants values written INTO an existing PDF form that lives in the connected SharePoint knowledge source — filling out, completing, populating, or submitting a fillable PDF (application, intake sheet, contract, government form) from data they supply, a spreadsheet row, or the conversation. Triggers include "fill out the job application form", "complete the intake form for [person]", "populate our standard NDA template", and "make this ready to send / non-editable" (flatten). The source form should be found via knowledge search; only ask the user to upload it if knowledge search turns up nothing plausible. different task), and do NOT use it on scanned/image-only PDFs that have no real fillable fields — those need OCR or manual overlay instead, which this skill explicitly detects and reports rather than silently failing.