AGENT SKILL

daily-reflection

Scheduled end-of-day synthesis. Runs at 18:00 daily — reads the day's sessions, writes a structured journal entry to memory/journal/, and proposes rule candidates from patterns across recent journals. Use when the harness schedule fires or when the user asks to summarize today's activity.

License 许可
MIT
最近更新
2026-04-30
Stars
★ 1
Forks
2

01 前言 Front Matter

name
daily-reflection
license
MIT
metadata
{ "harness-tags": "workflow,scheduled,reflection", "harness-author": "human", "harness-status": "active", "harness-related": "research,respect-the-user", "harness-schedule": "0 18 * * *" }
description
Scheduled end-of-day synthesis. Runs at 18:00 daily — reads the day's sessions, writes a structured journal entry to memory/journal/, and proposes rule candidates from patterns across recent journals. Use when the harness schedule fires or when the user asks to summarize today's activity.

02 资源文件 8

03 SKILL.md 正文

Workflow: Daily Reflection

When to use

This skill is triggered automatically at 18:00 by the harness scheduler (metadata.harness-schedule: 0 18 * * *). Invoke it manually when:

  • The user asks to synthesize or summarize today's work.
  • The user asks what was accomplished, learned, or left open.
  • You want to extract rule candidates from recent journals after a significant session.

Available scripts

  • scripts/synthesize.sh [--date YYYY-MM-DD] [--harness-dir <path>] — Run the daily journal synthesis for the given date (default: today). Returns structured JSON with journal_path, sessions_processed, and patterns_detected.
  • scripts/propose-rules.sh [--harness-dir <path>] — Analyze recent journals and propose instinct/rule candidates. Returns JSON with a list of candidates and their source reasoning.

Workflow

  1. Synthesize: Run scripts/synthesize.sh (optionally with --date). On status: ok, the journal file is at result.journal_path.
  2. Propose rules: Run scripts/propose-rules.sh to extract rule candidates from the new (and recent) journal entries.
  3. Review: Present the journal summary and rule candidates to the user for review before any rule is promoted to an instinct.

Gotchas

  • Both scripts require a working harness binary on PATH (or --harness-dir pointing to a valid harness directory).
  • synthesize.sh is idempotent by default — re-running on the same date overwrites the existing journal entry. Pass --no-force if you want to preserve an existing entry.
  • propose-rules.sh reads the last 7 days of journal entries. On a fresh harness with fewer than 7 days of history the output will be sparse — this is expected.

Failure modes

  • NO_SESSIONS — No session files found for the requested date. Nothing to synthesize. Inform the user and exit.
  • JOURNAL_COMMAND_FAILED — The underlying harness journal command returned a non-zero exit code. The error details are in error.message. Check that Ollama is running and the configured model is available.
  • LEARN_COMMAND_FAILED — The harness learn command failed. See error.message. Same checks as above.
  • INVALID_DATE — The --date argument does not match YYYY-MM-DD. Fix the format and retry.

04 同仓库更多 Skills

Phoenixrr2113
Phoenixrr2113/agent-harness

research

Conduct research.

资料检索与研究
★ 1
Phoenixrr2113
Phoenixrr2113/agent-harness

{{NAME=null}=null}

Briefly describe what this skill does AND when to use it. Use imperative phrasing ("Use this skill when..."). Aim for 80-500 chars. Include keywords the model can pattern-match against the user's prompt.

Skill与智能体开发
★ 1
Phoenixrr2113
Phoenixrr2113/agent-harness

working-in-a-git-repo

Operating manual for dev work: worktree discipline, build/test/lint commands, file ownership zones, commit style, and a verification checklist before reporting done. Use when starting any feature/fix work in this repo.

Skill与智能体开发
★ 1
Phoenixrr2113
Phoenixrr2113/agent-harness

test-runner

Runs the project's test suite (or a targeted subset), parses the output, and reports pass/fail with failing-test details. Use when you need to know test status; call with the test command to run, or leave blank for the project default.

测试与质量Skill与智能体开发
★ 1
Phoenixrr2113
Phoenixrr2113/agent-harness

reviewer

Reviews a diff or change set for bugs, security issues, test gaps, and style. Use when evaluating a code change, reviewing a pull request, or running a structured review pass before merge.

Skill与智能体开发
★ 1
Phoenixrr2113
Phoenixrr2113/agent-harness

fix-failing-tests

Seven-step flow for diagnosing and fixing failing tests. Use when the user asks to fix failing tests, green the suite, or says 'tests are red' — works through reproduce → read → root-cause → propose → apply → verify → commit.

测试与质量
★ 1