ychampion/cskill-agents/hook-context-attachment-injection

Claude Code and agent skill by ychampion/cskill-agents

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Surface hook-provided startup context by packaging it as metadata attachments before the agent's first request.

Install

npx vskill@latest install ychampion/cskill-agents/hook-context-attachment-injection

SKILL.md

SKILL: Hook Context Attachment Injection

Domain: multi-agent Trigger: Use when startup hooks generate extra context that a child agent should see before it makes its first model request. Source Pattern: Distilled from reviewed startup-hook context seeding flows.

Core Method

Collect any hook-provided context while the child agent is starting, combine it into a structured metadata attachment, and inject that attachment into the initial conversation state before the query loop begins. This lets startup hooks enrich the child agent without mutating shared parent state or pretending the hook output came from the user. Keeping the payload as metadata preserves provenance and keeps the startup context easy to reason about.

Key Rules

  • Gather hook output before the first request so the initial reasoning step sees the same context as later logging and transcript paths.
  • Package hook output as metadata attachments, not as synthetic user or assistant text.
  • Keep attachment construction deterministic so retries and resumes produce the same startup context.

Example Application

If a startup hook gathers repository hints and policy notes for a spawned coding agent, inject them as one metadata attachment before the child begins planning.

Anti-Patterns (What NOT to do)

  • Do not append startup hook context after the first model turn.
  • Do not mix hook metadata into user-authored content.
  • Do not mutate shared parent conversation state just to deliver child-specific startup hints.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
36
Repository forks
7
7-day trend score
18

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ychampion/cskill-agents/hook-context-attachment-injection/badge)](https://verified-skill.com/skills/ychampion/cskill-agents/hook-context-attachment-injection)

Something wrong with this skill or its page? Tell us.