AgentSkillsCN

context-assembly

从“邪恶花园”各类来源中智能获取上下文信息。当您需要重启项目、调研背景资料,或从记忆、头脑风暴、看板、搜索与团队协作中汲取决策灵感与创意火花时,可优先使用此技能。

SKILL.md
--- frontmatter
name: context-assembly
description: Intelligent context gathering from wicked-garden sources. Use when resuming projects, researching background, or needing decisions and brainstorms from mem, jam, kanban, search, and crew.

Context Assembly

Gather relevant context before responding using wicked-smaht v2's tiered hybrid architecture.

When to Use

Use context assembly when:

  • Starting work on a complex topic
  • Resuming a previous conversation or project
  • Needing background on decisions, brainstorms, or code
  • Switching between projects or phases

Quick Reference

bash
# Gather context (automatic fast/slow path selection)
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/v2/orchestrator.py" gather "your query"

# Just route (see path decision without gathering)
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/v2/orchestrator.py" route "your query" --json

# Force deep analysis via slow path
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/v2/orchestrator.py" gather "your query" --session my-session

Architecture

PathLatencyAdaptersDepth
Fast~500msIntent-specific (2-3)5 items/source
Slow~525msAll adapters (6)10 items/source + history

Router triggers slow path when:

  • Low confidence (<0.5) or competing intents
  • References conversation history
  • Planning/design request
  • Novel topic or compound request

Context Sources

SourcePluginContent
memwicked-memMemories, decisions, learnings
jamwicked-jamBrainstorm sessions, perspectives
kanbanwicked-kanbanTasks, artifacts, projects
searchwicked-searchCode symbols, documentation
crewwicked-crewProject phase, outcomes, constraints
context7wicked-startahExternal documentation (optional)

Intent Types

TypePrioritizesPattern Examples
debuggingRecent items, code refs"fix", "error", "crash"
planningProject context, brainstorms"design", "strategy", "approach"
researchSemantic matches"what is", "explain", "where"
implementationTasks, code"build", "create", "add"
reviewCode, tasks"review", "check", "PR"
generalBalanced(default fallback)

Briefing Format

markdown
# Context Briefing

## Situation
**Intent**: research (confidence: 0.85)
**Entities**: router.py, FastPathAssembler

## Relevant Context

### Memories
- **Auth decision**: Use JWT with 1h expiry...

### Code & Docs
- **router.py**: Intent detection with regex patterns...

Automatic Enrichment

Context is gathered automatically via hooks:

  • SessionStart: Initial session context
  • UserPromptSubmit: Per-turn context injection