بنقرة واحدة
reflect
Analyze diary entries → propose improvements to rules, agents, skills.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Analyze diary entries → propose improvements to rules, agents, skills.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Upgrade DLD framework files from latest template on GitHub.
Autonomous spec execution with subagents (planner, coder, tester, reviewer).
Autonomous spec execution with subagents (planner, coder, tester, reviewer).
Feature specification and research agent. Multi-agent with 4 scouts. Creates specs in ai/features/.
Feature specification and research agent. Multi-agent with 4 scouts. Creates specs in ai/features/.
Manual QA tester — tests product behavior like a real user, not code. Triggers on keywords: test, QA, check behavior, verify feature, manual testing, протестируй, потыкай, проверь как работает
استنادا إلى تصنيف SOC المهني
| name | reflect |
| description | Analyze diary entries → propose improvements to rules, agents, skills. |
| model | opus |
Analyzes diary entries AND upstream signals, creates spec with proposals for CLAUDE.md.
Activation: /reflect, "reflection", "let's analyze the diary"
| Action | Triggers | What happens |
|---|---|---|
| Diary entry | "write to diary", "save to diary", "remember for diary" | New line in index.md + file |
| Synthesis (this skill) | "/reflect", "reflection", "let's analyze the diary" | Analysis -> spec -> skill-creator |
ai/reflect/upstream-signals.mdRead ai/diary/index.md — find all entries with pending status.
Deduplication: If ai/diary/.processed.log exists, skip entries already listed there.
This prevents re-processing entries from previous reflect sessions.
If ai/reflect/upstream-signals.md exists, read it.
If ai/reflect/cross-level-patterns.md exists, read it.
Upstream signals are feedback from lower levels (Autopilot → Spark → Architect → Board). Cross-level patterns are recurring issues detected by the reflect-aggregator.
These provide ADDITIONAL input alongside diary entries.
For each pending entry — open file and analyze.
For each pattern found in diary (frequency >= 2), research external solutions:
If anti-pattern/failure:
mcp__exa__web_search_exa:
query: "{anti_pattern} solution best practice {tech_stack}"
numResults: 5
If user preference/design decision:
mcp__exa__web_search_exa:
query: "{decision} pros cons alternatives {tech_stack} 2024 2025"
numResults: 3
If tool/workflow pattern:
mcp__exa__get_code_context_exa:
query: "{tool_pattern} best practices implementation"
tokensNum: 3000
Rules:
| Pattern Type | Threshold | Action |
|---|---|---|
| User preference | 2+ | Consider adding |
| User preference | 3+ | MUST add to CLAUDE.md |
| Failure pattern | 2+ | Add as anti-pattern |
| Design decision | 3+ | Add as guideline |
| Tool/workflow | 2+ | Consider adding |
Compare entries with CLAUDE.md:
CRITICAL: Reflect does NOT create TECH specs and does NOT write to inbox. It writes durable findings to its own reflect artifacts and diary context. Hermes reviews those artifacts later and decides whether to create an inbox item.
Location: ai/reflect/findings-{date}.md (single file per session, not one per pattern)
Format:
# Reflect Findings — {date}
## {Pattern Name}
**Frequency:** {N} occurrences. **Evidence:** {task_ids}.
**Type:** {user_preference | failure_pattern | design_decision | tool_workflow}
**Proposed action:** {what should change}
---
Rules:
Route: spark — Hermes decides next steps from reflect findingsgit add ai/diary/ ai/reflect/ 2>/dev/null
git diff --cached --quiet || git commit -m "docs: reflect synthesis + findings"
git push origin develop 2>/dev/null || true
CRITICAL: Update diary index.md — change status from pending to done for ALL analyzed entries.
This prevents the orchestrator from re-dispatching reflect on every cycle.
# For each processed TASK_ID:
sed -i "s/| ${TASK_ID} |\\(.*\\)| pending |/| ${TASK_ID} |\\1| done |/" ai/diary/index.md
Also maintain dedup log and timestamp:
echo "{TASK_ID}" >> ai/diary/.processed.log
date +%s > ai/diary/.last_reflect
entries_analyzed: N
patterns_found:
- "Pattern 1 (frequency: N)"
- "Pattern 2 (frequency: N)"
findings_written: M
next_action: "Findings saved to ai/reflect/findings-{date}.md — Hermes decides next step"
| Wrong | Correct |
|---|---|
| Create TECH spec directly | Write to ai/reflect/ -> Hermes decides next step |
| Edit CLAUDE.md directly | Write to ai/reflect/ -> Hermes -> Spark -> skill-creator |
| Skip marking entries done | MUST mark diary entries pending → done in Step 5.6 |
| Write all patterns to ai/reflect/ | Only frequency >= 3, max 5 findings |
| Write findings directly into inbox | Only Hermes writes to inbox |
Before completing reflect:
Your final JSON result_preview is sent to the user via Telegram. Keep it concise:
Записей: {N} обработано
Паттернов: {M} найдено, {K} → ai/reflect/
{If K > 0: one-line top pattern}
BAD: "entries_analyzed: 5, patterns_found: [...], findings_written: 2, next_action: ..." GOOD: "Записей: 5 обработано. Паттернов: 3 найдено, 2 → ai/reflect/. Топ: мок в интеграционных тестах (×4)"