lth-brief
Generate a structured task brief from lth memory before starting work
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Generate a structured task brief from lth memory before starting work
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Memory-driven team workflow with AST-aware code editing via grv — agents read and write Go code through the grv tool instead of raw file I/O. INIT → WORKTREE → BRAINSTORM → PLAN → EXECUTE → REVIEW → COMPLETE
Memory-driven team workflow — agents bootstrap their own guidance from lth before working. INIT → WORKTREE → BRAINSTORM → PLAN → EXECUTE → REVIEW → COMPLETE
Retroactively store session learnings to lth memory without manual store calls
Session warmup — surface recent project context from lth memory
Bootstrap agent memory from lth — reconstruct context from stored memories before working, store findings after
| name | lth:brief |
| description | Generate a structured task brief from lth memory before starting work |
| user-invocable | true |
| category | memory |
Transforms a one-line task description into a structured brief that agents can act on directly. Pulls prior art, constraints, and applicable patterns from lth memory.
/lth:brief "Add rate limiting to API"
Writes .bob/state/brief.md with:
ARGUMENTS handling: use the provided argument as the task description.
Ensure daemon is running:
export PATH="$HOME/bin:$PATH"
~/bin/lth stats
Generate context using lth prompt:
CONTEXT=$(~/bin/lth prompt "[TASK_DESCRIPTION]" --top-each 6 2>/dev/null)
If lth prompt is not yet available (pre-install), fall back to:
PRINCIPLES=$(~/bin/lth search "[TASK_DESCRIPTION]" --layers L1,L2 --top 5)
TECHNIQUES=$(~/bin/lth search "[TASK_DESCRIPTION]" --layers L3 --top 8)
PRIOR_ART=$(~/bin/lth search "[TASK_DESCRIPTION]" --layers L4,L5 --top 5)
Create .bob/state/ directory if needed:
mkdir -p .bob/state
Write .bob/state/brief.md with this structure:
# Task Brief: [TASK_DESCRIPTION]
Generated: [date]
## Context
[paste lth prompt output or formatted principles/techniques]
## Prior Art
[L4/L5 memories showing similar past work]
## Constraints
[L1/L2 principles and rules that apply to this task]
## Suggested Approach
[synthesize from above: 3-5 bullet points recommending how to tackle the task]
Print confirmation: ✓ Brief written to .bob/state/brief.md