reflect
Analyze workflow runs and produce a daily reflection.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Analyze workflow runs and produce a daily reflection.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Execute a work plan. Make changes, run validation, commit.
Fetch open todo issues from a repo, analyze them, and pick the best one to work on next. Prefers PRs with review feedback over new issues.
Review open issues and close obsolete, resolved, or duplicate ones. Label underspecified issues. Split oversized issues.
Check for new releases of ah and cosmic, update dependency pins, and commit changes.
Research a codebase and write a plan for a work item.
Review work execution against the plan. Validate changes, check for issues, render verdict.
| name | reflect |
| description | Analyze workflow runs and produce a daily reflection. |
You are running one phase of the reflect pipeline. The phase is specified after --- below as PHASE=<fetch|analyze-run|summarize>.
Download workflow run logs and artifacts for a date range.
SINCE — start date (YYYY-MM-DD).UNTIL — end date inclusive (YYYY-MM-DD).OUTPUT_DIR — directory to write fetched data into.WORKFLOW — workflow name to filter by (optional).get_workflow_runs with:
repo set to whilp/workingsince set to SINCEuntil_ set to UNTILoutput_dir set to OUTPUT_DIRworkflow set to WORKFLOW (if provided)OUTPUT_DIR/manifest.json.OUTPUT_DIR/fetch-done containing the number of runs fetched.OUTPUT_DIR/manifest.json — JSON array of run metadata with log/artifact paths.OUTPUT_DIR/<run-id>/log.txt — full log for each run.OUTPUT_DIR/<run-id>/artifacts/ — downloaded artifacts for each run.OUTPUT_DIR/fetch-done — completion marker.Analyze a single workflow run. You are sandboxed with no network access.
RUN_DIR — directory containing this run's log and artifacts.RUN_META — JSON string with run metadata (from manifest).OUTPUT_FILE — path to write the analysis.RUN_DIR/log.txt efficiently — do not read the full log. Logs are large (~100KB). Use targeted commands:
grep -n "==>" RUN_DIR/log.txt — phase transitions and timinggrep -n "done in\|verdict\|failed\|error\|exit" RUN_DIR/log.txt — outcomes and errorsgrep -n "no_issues\|pr_limit\|issue.json" RUN_DIR/log.txt — pick resultshead -30 RUN_DIR/log.txt and tail -30 RUN_DIR/log.txt — run boundariesread with offset and limit to inspect specific line ranges when needed.RUN_DIR/artifacts/ for structured data (these are small, safe to read fully):
*/pick/issue.json — which issue was picked*/pick/reasoning.md — why it was picked*/plan/plan.md — what was planned*/do/do.md — what was done*/check/actions.json — verdict and actions*/do/feedback.md — if needs-fixes, what feedback*/act.json — final outcome**/session*.db — session databases (note their presence/size)Write OUTPUT_FILE in this format:
## <workflowName>: <displayTitle> (<conclusion>)
- **run**: <databaseId> | **event**: <event> | **branch**: <headBranch>
- **started**: <startedAt> | **conclusion**: <conclusion>
### Summary
1-3 sentence summary of what happened in this run.
### Issue
If a work run: issue number, title, verdict, PR link (if any).
### Failures
If failed: root cause, relevant log lines (keep brief).
### Notes
Anything notable: retries, feedback loops, unusual patterns.
Keep it concise — under 80 lines. Focus on what matters for the daily summary.
Combine per-run analyses into a final reflection. You are sandboxed with no network access.
ANALYSIS_DIR — directory containing per-run analysis files.DATE — date string (YYYY-MM-DD).OUTPUT_FILE — path to write the reflection.*.md files in ANALYSIS_DIR.Write OUTPUT_FILE in this format:
# Reflection: YYYY-MM-DD
## Summary
Brief overview of the day.
## Runs
| workflow | total | pass | fail | cancel |
|---|---|---|---|---|
## Failure Analysis
Group failures by root cause. Include brief log excerpts where helpful.
## Work Loop Outcomes
Issues attempted, verdicts, PRs created.
## Patterns
Trends, flakiness, duration.
## Recommendations
Concrete improvements. Each should be specific enough to become an issue.